:root {
  --black: #111111;
  --black-soft: #1b1b1b;
  --gold: #f5c84c;
  --gold-dark: #d6a91f;
  --gold-soft: #fff6d8;
  --background: #f3f4f6;
  --surface: #ffffff;
  --border: #e5e7eb;
  --text: #161616;
  --muted: #72757d;
  --danger: #c93535;
  --danger-soft: #fff0f0;
  --success: #16825d;
  --success-soft: #e9f8f2;
  --blue: #2d68c4;
  --blue-soft: #edf4ff;
  --shadow: 0 22px 70px rgba(17, 17, 17, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--background);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.eyebrow.dark {
  color: #94720b;
}

.muted {
  color: var(--muted);
  line-height: 1.55;
}

.login-view {
  min-height: 100vh;
  padding: 28px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top left, rgba(245, 200, 76, 0.18), transparent 34%),
    linear-gradient(135deg, #f7f7f7, #eceef1);
}

.login-shell {
  width: min(1060px, 100%);
  min-height: 630px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  overflow: hidden;
  border-radius: 34px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.brand-panel {
  position: relative;
  padding: 68px 64px;
  color: #ffffff;
  background:
    radial-gradient(circle at 90% 10%, rgba(245, 200, 76, 0.26), transparent 30%),
    linear-gradient(145deg, #0f0f0f, #222222);
}

.brand-panel::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(245, 200, 76, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 40px rgba(245, 200, 76, 0.04),
    0 0 0 80px rgba(245, 200, 76, 0.025);
}

.brand-mark {
  width: 78px;
  height: 78px;
  margin-bottom: 55px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: var(--black);
  background: var(--gold);
  font-size: 22px;
  font-weight: 1000;
  letter-spacing: -0.08em;
  box-shadow: 0 15px 35px rgba(245, 200, 76, 0.18);
}

.brand-mark.small {
  width: 48px;
  height: 48px;
  margin: 0;
  border-radius: 14px;
  font-size: 15px;
}

.brand-panel h1 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(38px, 4vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.brand-copy {
  max-width: 500px;
  margin: 25px 0 38px;
  color: #c8c8c8;
  font-size: 16px;
  line-height: 1.7;
}

.brand-feature {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e6e6e6;
}

.brand-feature + .brand-feature {
  margin-top: 12px;
}

.brand-feature span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--black);
  background: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.brand-feature p {
  margin: 0;
  font-size: 13px;
}

.login-card {
  align-self: center;
  padding: 70px 58px;
}

.login-card h2 {
  margin: 0 0 10px;
  font-size: 32px;
  letter-spacing: -0.035em;
}

.mobile-logo {
  display: none;
}

.form-stack {
  margin-top: 32px;
  display: grid;
  gap: 12px;
}

.form-stack label {
  font-size: 12px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  background: #ffffff;
  transition: 160ms ease;
}

input,
select {
  min-height: 48px;
  padding: 0 14px;
}

textarea {
  padding: 14px;
  resize: vertical;
  line-height: 1.5;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 4px rgba(245, 200, 76, 0.18);
}

input[readonly] {
  color: #4f5157;
  background: #f7f7f8;
}

.button {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-md);
  font-weight: 900;
  transition: 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.button.primary {
  color: var(--black);
  background: var(--gold);
  box-shadow: 0 12px 26px rgba(214, 169, 31, 0.18);
}

.button.primary:hover {
  background: #f8d365;
}

.button.ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: #ffffff;
}

.button.compact {
  min-height: 41px;
  padding: 0 15px;
  font-size: 12px;
}

.form-message {
  margin-top: 16px;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  color: #744f00;
  background: var(--gold-soft);
  font-size: 12px;
  line-height: 1.5;
}

.form-message.error {
  color: var(--danger);
  background: var(--danger-soft);
}

.app-view {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
}

.sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  width: 250px;
  padding: 25px 17px 18px;
  display: flex;
  flex-direction: column;
  color: #ffffff;
  background: var(--black);
}

.sidebar-brand {
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-brand strong,
.sidebar-brand span {
  display: block;
}

.sidebar-brand strong {
  font-size: 15px;
  letter-spacing: 0.04em;
}

.sidebar-brand span {
  margin-top: 2px;
  color: #9c9c9c;
  font-size: 11px;
}

.status-nav {
  margin-top: 38px;
  display: grid;
  gap: 7px;
}

.status-button {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 13px;
  color: #bdbdbd;
  background: transparent;
  text-align: left;
  font-size: 12px;
  font-weight: 800;
}

.status-button:hover,
.status-button.active {
  color: #ffffff;
  background: #292929;
}

.status-button.active {
  box-shadow: inset 3px 0 0 var(--gold);
}

.status-button b {
  min-width: 25px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #d6d6d6;
  background: #3a3a3a;
  text-align: center;
  font-size: 10px;
}

.status-button.active b {
  color: var(--black);
  background: var(--gold);
}

.status-icon {
  text-align: center;
  color: var(--gold);
}

.status-icon.waiting {
  color: #e5a323;
}

.status-icon.replied {
  color: #5f9cec;
}

.status-icon.completed {
  color: #48b78c;
}

.sidebar-footer {
  margin-top: auto;
  padding: 16px 9px 0;
  border-top: 1px solid #2d2d2d;
}

.admin-mini-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar,
.member-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--black);
  background: var(--gold);
  font-weight: 1000;
}

.avatar {
  width: 38px;
  height: 38px;
  font-size: 13px;
}

.admin-mini-profile strong,
.admin-mini-profile span {
  display: block;
}

.admin-mini-profile strong {
  font-size: 12px;
}

.admin-mini-profile span {
  max-width: 142px;
  margin-top: 3px;
  overflow: hidden;
  color: #858585;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logout-button {
  width: 100%;
  margin-top: 14px;
  padding: 10px;
  border: 1px solid #383838;
  border-radius: 11px;
  color: #bdbdbd;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.logout-button:hover {
  color: #ffffff;
  border-color: #565656;
}

.main-layout {
  grid-column: 2;
  min-width: 0;
}

.topbar {
  height: 82px;
  padding: 0 25px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.topbar h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.035em;
}

.topbar .eyebrow {
  margin-bottom: 3px;
  font-size: 8px;
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.last-refresh {
  color: var(--muted);
  font-size: 10px;
}

.icon-button,
.mobile-menu-button,
.back-button {
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  background: #ffffff;
}

.icon-button {
  width: 41px;
  height: 41px;
  font-size: 19px;
}

.icon-button:hover,
.mobile-menu-button:hover,
.back-button:hover {
  border-color: #cfd1d5;
  background: #f8f8f8;
}

.mobile-menu-button,
.back-button {
  display: none;
  width: 39px;
  height: 39px;
}

.workspace {
  height: calc(100vh - 82px);
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(310px, 37%) minmax(0, 1fr);
  gap: 16px;
}

.ticket-panel,
.conversation-panel {
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 8px 30px rgba(17, 17, 17, 0.045);
}

.ticket-panel {
  display: flex;
  flex-direction: column;
}

.ticket-toolbar {
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 9px;
  border-bottom: 1px solid var(--border);
}

.search-box {
  position: relative;
}

.search-box span {
  position: absolute;
  left: 14px;
  top: 50%;
  color: #87898e;
  transform: translateY(-50%);
}

.search-box input {
  padding-left: 37px;
  font-size: 11px;
}

.ticket-toolbar select {
  font-size: 11px;
  font-weight: 700;
}

.ticket-panel-heading {
  padding: 15px 17px 11px;
}

.ticket-panel-heading h2,
.ticket-panel-heading p {
  margin: 0;
}

.ticket-panel-heading h2 {
  font-size: 15px;
}

.ticket-panel-heading p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.ticket-list {
  min-height: 0;
  overflow-y: auto;
  padding: 2px 9px 12px;
}

.ticket-item {
  width: 100%;
  padding: 14px 12px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
  border: 0;
  border-radius: 15px;
  background: transparent;
  text-align: left;
}

.ticket-item:hover {
  background: #f7f7f8;
}

.ticket-item.active {
  background: var(--gold-soft);
  box-shadow: inset 3px 0 0 var(--gold-dark);
}

.ticket-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #7b5d00;
  background: #fff0bc;
  font-size: 13px;
  font-weight: 1000;
}

.ticket-content {
  min-width: 0;
}

.ticket-meta,
.ticket-title-row,
.ticket-footer {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ticket-meta {
  justify-content: space-between;
}

.ticket-member {
  overflow: hidden;
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 9px;
}

.ticket-title-row {
  margin-top: 5px;
}

.ticket-subject {
  min-width: 0;
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-preview {
  margin: 5px 0 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-footer {
  justify-content: space-between;
}

.ticket-number {
  color: #8a8d93;
  font-size: 8.5px;
  font-weight: 800;
}

.status-chip {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 1000;
}

.status-chip.waiting {
  color: #8a5d00;
  background: #fff1c2;
}

.status-chip.replied {
  color: #245696;
  background: var(--blue-soft);
}

.status-chip.completed {
  color: #0d6d4c;
  background: var(--success-soft);
}

.panel-state,
.conversation-empty {
  min-height: 240px;
  padding: 35px;
  display: grid;
  place-items: center;
  align-content: center;
  color: var(--muted);
  text-align: center;
}

.panel-state h3,
.panel-state p,
.conversation-empty h2,
.conversation-empty p {
  margin: 0;
}

.panel-state p,
.conversation-empty p {
  margin-top: 7px;
  font-size: 11px;
}

.empty-icon,
.conversation-empty-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 15px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--gold-soft);
  font-size: 22px;
}

.spinner {
  width: 25px;
  height: 25px;
  border: 3px solid #e7e7e7;
  border-top-color: var(--gold-dark);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.conversation-panel {
  position: relative;
}

.conversation-empty {
  height: 100%;
}

.conversation-content {
  height: 100%;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.conversation-header {
  position: relative;
  min-height: 72px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--border);
}

.member-avatar {
  width: 43px;
  height: 43px;
  font-size: 14px;
}

.conversation-identity {
  min-width: 0;
}

.conversation-identity h2,
.conversation-identity p {
  margin: 0;
}

.conversation-identity h2 {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-identity p {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dot {
  margin: 0 4px;
}

.conversation-header-actions {
  position: relative;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ticket-menu {
  position: absolute;
  z-index: 15;
  top: 49px;
  right: 0;
  width: 180px;
  padding: 7px;
  display: grid;
  gap: 3px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.ticket-menu button {
  padding: 10px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  text-align: left;
  font-size: 10px;
  font-weight: 800;
}

.ticket-menu button:hover {
  background: #f4f4f5;
}

.ticket-summary {
  padding: 10px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr 1.7fr 1fr;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  background: #fafafa;
}

.ticket-summary div {
  min-width: 0;
}

.ticket-summary span,
.ticket-summary strong {
  display: block;
}

.ticket-summary span {
  color: var(--muted);
  font-size: 8px;
}

.ticket-summary strong {
  margin-top: 3px;
  overflow: hidden;
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-list {
  min-height: 0;
  overflow-y: auto;
  padding: 16px 18px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)),
    radial-gradient(circle at 1px 1px, #e5e7eb 1px, transparent 0);
  background-size: auto, 18px 18px;
}

.message-row {
  margin-bottom: 12px;
  display: flex;
}

.message-row.admin {
  justify-content: flex-end;
}

.message-bubble {
  max-width: min(560px, 78%);
  padding: 11px 13px 8px;
  border: 1px solid var(--border);
  border-radius: 17px 17px 17px 5px;
  background: #ffffff;
  box-shadow: 0 5px 15px rgba(17, 17, 17, 0.04);
}

.message-row.admin .message-bubble {
  border-color: #edd17a;
  border-radius: 17px 17px 5px 17px;
  background: var(--gold-soft);
}

.message-sender {
  margin-bottom: 5px;
  color: #906e0a;
  font-size: 8px;
  font-weight: 1000;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.message-text {
  margin: 0;
  color: #333438;
  font-size: 11px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.message-time {
  margin-top: 5px;
  color: #898b91;
  font-size: 8px;
  text-align: right;
}

.message-loading {
  position: absolute;
  z-index: 5;
  inset: 122px 0 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.72);
}

.reply-box {
  padding: 9px 12px 10px;
  border-top: 1px solid var(--border);
  background: #ffffff;
}

.reply-box textarea {
  height: 68px;
  min-height: 68px;
  max-height: 160px;
  font-size: 11px;
  resize: vertical;
}

.reply-footer {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reply-footer span {
  color: var(--muted);
  font-size: 9px;
}

.closed-ticket-notice {
  min-height: 99px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-top: 1px solid #ccebdd;
  background: var(--success-soft);
}

.closed-ticket-notice > span {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--success);
  font-weight: 1000;
}

.closed-ticket-notice div {
  min-width: 0;
}

.closed-ticket-notice strong,
.closed-ticket-notice p {
  display: block;
  margin: 0;
}

.closed-ticket-notice strong {
  font-size: 11px;
}

.closed-ticket-notice p {
  margin-top: 3px;
  color: #31785f;
  font-size: 9px;
}

.closed-ticket-notice .button {
  margin-left: auto;
}

.toast-container {
  position: fixed;
  z-index: 100;
  top: 18px;
  right: 18px;
  width: min(360px, calc(100vw - 36px));
  display: grid;
  gap: 9px;
}

.toast {
  padding: 13px 15px;
  border: 1px solid #ead27d;
  border-radius: 13px;
  color: #6c5200;
  background: #fff8dd;
  box-shadow: 0 15px 35px rgba(17, 17, 17, 0.15);
  font-size: 11px;
  line-height: 1.5;
  animation: toastIn 180ms ease-out;
}

.toast.error {
  border-color: #efbcbc;
  color: var(--danger);
  background: var(--danger-soft);
}

.toast.success {
  border-color: #b8e5d4;
  color: var(--success);
  background: var(--success-soft);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.mobile-overlay {
  position: fixed;
  z-index: 25;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
}

@media (max-width: 1050px) {
  .workspace {
    grid-template-columns: 350px minmax(0, 1fr);
  }

  .last-refresh {
    display: none;
  }

  .ticket-summary {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 850px) {
  .login-view {
    padding: 16px;
  }

  .login-shell {
    max-width: 520px;
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .brand-panel {
    display: none;
  }

  .login-card {
    padding: 48px 30px;
  }

  .mobile-logo {
    margin-bottom: 30px;
    display: block;
  }

  .app-view {
    display: block;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: 180ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-layout {
    width: 100%;
  }

  .mobile-menu-button {
    display: grid;
  }

  .workspace {
    height: calc(100vh - 82px);
    grid-template-columns: 1fr;
  }

  .ticket-panel {
    display: flex;
  }

  .conversation-panel {
    position: fixed;
    z-index: 20;
    inset: 82px 0 0;
    display: none;
    border: 0;
    border-radius: 0;
  }

  .conversation-panel.mobile-open {
    display: block;
  }

  .conversation-content {
    height: 100%;
  }

  .back-button {
    display: grid;
  }
}

@media (max-width: 520px) {
  .topbar {
    height: 72px;
    padding: 0 13px;
  }

  .topbar h1 {
    font-size: 18px;
  }

  .workspace {
    height: calc(100vh - 72px);
    padding: 8px;
  }

  .conversation-panel {
    inset: 72px 0 0;
  }

  .ticket-toolbar {
    grid-template-columns: 1fr;
  }

  .ticket-toolbar select {
    display: none;
  }

  .conversation-header {
    padding: 10px;
  }

  .conversation-header .status-chip {
    display: none;
  }

  .conversation-identity p {
    max-width: 190px;
  }

  .ticket-summary {
    padding: 9px 11px;
  }

  .ticket-summary div:nth-child(3) {
    grid-column: 1 / -1;
  }

  .message-list {
    padding: 14px 10px;
  }

  .message-bubble {
    max-width: 88%;
  }

  .reply-box {
    padding: 8px 9px 9px;
  }

  .reply-box textarea {
    height: 62px;
    min-height: 62px;
    max-height: 140px;
  }

  .closed-ticket-notice {
    flex-wrap: wrap;
  }

  .closed-ticket-notice .button {
    width: 100%;
    margin-left: 46px;
  }
}

/* ==========================================================
   MRXPANEL MULTI-ADMIN V3
   ========================================================== */

.main-nav {
  margin: 28px 0 18px;
  display: grid;
  gap: 7px;
}

.main-nav-button {
  width: 100%;
  min-height: 45px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: 13px;
  color: #bdbdbd;
  background: transparent;
  text-align: left;
  font-size: 12px;
}

.main-nav-button span {
  width: 24px;
  color: var(--gold);
  font-size: 18px;
  text-align: center;
}

.main-nav-button strong {
  font-size: 12px;
}

.main-nav-button:hover,
.main-nav-button.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
}

.sidebar-section {
  min-height: 0;
  overflow: auto;
}

.sidebar-section-title {
  margin: 0 10px 8px;
  color: #777777;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.admin-mini-copy {
  min-width: 0;
  display: grid;
}

.admin-mini-copy strong,
.admin-mini-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-label {
  width: fit-content;
  margin: 2px 0;
  padding: 2px 6px;
  border-radius: 999px;
  color: #191919 !important;
  background: var(--gold);
  font-size: 8px !important;
  font-weight: 900;
}

.status-icon.unassigned,
.status-chip.unassigned {
  color: #a05c12;
}

.status-icon.processing,
.status-chip.processing {
  color: var(--blue);
}

.status-icon.waiting-member,
.status-chip.waiting-member {
  color: #7d5e00;
}

.status-chip.unassigned {
  background: #fff2df;
}

.status-chip.processing {
  background: var(--blue-soft);
}

.status-chip.waiting-member {
  background: var(--gold-soft);
}

.ticket-assignee {
  margin: 6px 0 1px;
  color: #6f7279;
  font-size: 9.5px;
  font-weight: 700;
}

.assignment-card {
  margin: 0 14px 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.assignment-card.is-open {
  border-color: rgba(226, 174, 29, 0.58);
  box-shadow: 0 8px 22px rgba(20, 20, 20, 0.07);
}

.assignment-toggle {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.assignment-toggle:hover {
  background: #fffaf0;
}

.assignment-toggle:focus-visible {
  outline: 3px solid rgba(226, 174, 29, 0.24);
  outline-offset: -3px;
}

.assignment-heading,
.assignment-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.assignment-heading {
  justify-content: space-between;
  margin: 0;
}

.assignment-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.assignment-heading span {
  color: var(--muted);
  font-size: 9px;
}

.assignment-heading strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.assignment-heading-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.assignment-chevron {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 9px;
  color: #303238 !important;
  background: var(--background);
  font-size: 17px !important;
  font-weight: 900;
  line-height: 1;
  transition: transform 160ms ease;
}

.assignment-card.is-open .assignment-chevron {
  transform: rotate(180deg);
}

.assignment-body {
  padding: 10px 12px 12px;
  border-top: 1px solid var(--border);
  background: #fffdfa;
}

.assignment-lock {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--danger) !important;
  background: var(--danger-soft);
  font-weight: 900;
}

.assignment-controls select {
  min-width: 0;
  flex: 1;
  min-height: 41px;
  font-size: 11px;
}

.assigned-notice {
  border-top-color: #e4d9b3;
  background: #fff9e8;
}

.assigned-notice > span {
  background: #a57a00;
}

.assigned-notice p {
  color: #7c671f;
}

.admin-management-view {
  min-height: calc(100vh - 82px);
  padding: 18px;
  display: grid;
  gap: 16px;
  overflow: auto;
}

.management-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(420px, 1.28fr);
  gap: 16px;
  align-items: start;
}

.management-card {
  padding: 20px;
  border: 1px solid rgba(17, 17, 17, 0.05);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 35px rgba(17, 17, 17, 0.05);
}

.management-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.management-heading h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.management-heading .eyebrow {
  margin-bottom: 6px;
}

.compact-copy {
  margin: 13px 0 18px;
  font-size: 12px;
}

.admin-form {
  display: grid;
  gap: 13px;
}

.admin-form label,
.admin-account-controls label {
  display: grid;
  gap: 6px;
  color: #42444a;
  font-size: 10px;
  font-weight: 900;
}

.count-pill {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  color: #725600;
  background: var(--gold-soft);
  font-size: 10px;
  font-weight: 900;
}

.compact-state {
  min-height: 110px;
}

.admin-accounts-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.admin-account-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: #fbfbfc;
}

.admin-account-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-account-avatar {
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  color: var(--black);
  background: var(--gold);
}

.admin-account-identity {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 2px;
}

.admin-account-identity strong,
.admin-account-identity span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-account-identity strong {
  font-size: 12px;
}

.admin-account-identity span {
  color: var(--muted);
  font-size: 9.5px;
}

.account-status {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 900;
}

.account-status.active {
  color: var(--success);
  background: var(--success-soft);
}

.account-status.pending {
  color: #7d5e00;
  background: var(--gold-soft);
}

.account-status.inactive {
  color: var(--danger);
  background: var(--danger-soft);
}

.admin-account-controls {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 10px;
}

.admin-account-controls input,
.admin-account-controls select {
  min-height: 40px;
  font-size: 11px;
}

.admin-account-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.button.danger {
  border: 1px solid #efbcbc;
  color: var(--danger);
  background: var(--danger-soft);
}

.invite-meta {
  margin: 10px 0;
  color: var(--muted);
  font-size: 10px;
}

.activity-card {
  min-height: 240px;
}

.activity-list {
  margin-top: 14px;
  display: grid;
}

.activity-row {
  padding: 12px 0;
  display: flex;
  gap: 11px;
  border-top: 1px solid var(--border);
}

.activity-row:first-child {
  border-top: 0;
}

.activity-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
  background: var(--background);
  font-size: 14px;
}

.activity-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.activity-copy strong {
  font-size: 11px;
  line-height: 1.35;
}

.activity-copy span {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.4;
}

@media (max-width: 1050px) {
  .management-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 850px) {
  .admin-management-view {
    min-height: calc(100vh - 82px);
    padding: 12px;
  }
}

@media (max-width: 520px) {
  .assignment-heading {
    align-items: center;
  }

  .assignment-heading-actions {
    max-width: 46%;
  }

  .assignment-lock {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .assignment-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .assignment-controls .button {
    width: 100%;
  }

  .admin-management-view {
    min-height: calc(100vh - 72px);
    padding: 8px;
  }

  .management-card {
    padding: 16px;
    border-radius: 18px;
  }

  .admin-account-controls {
    grid-template-columns: 1fr;
  }

  .admin-account-actions .button {
    width: 100%;
  }
}

/* Baris tambahan untuk kartu penanggung jawab. */
.conversation-content {
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
}

.message-loading {
  inset: 190px 0 0;
}


/* ============================================================
   PENGATURAN DEPOSIT TERPUSAT V4
   ============================================================ */
.deposit-settings-view {
  min-height: 0;
  padding: 22px;
  overflow: auto;
}

.deposit-settings-grid {
  display: grid;
  grid-template-columns: minmax(320px, .86fr) minmax(420px, 1.4fr);
  gap: 18px;
  align-items: start;
}

.deposit-plan-form {
  display: grid;
  gap: 13px;
  margin-top: 18px;
}

.deposit-plan-form label {
  display: grid;
  gap: 7px;
  color: #303238;
  font-size: 11px;
  font-weight: 900;
}

.deposit-plan-form small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

.deposit-plan-form input,
.deposit-plan-form textarea {
  width: 100%;
}

.form-two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.switch-label {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px !important;
  padding: 12px;
  border-radius: 14px;
  background: var(--background);
}

.switch-label input {
  width: 18px;
  height: 18px;
}

.deposit-warning {
  margin: 13px 0;
  padding: 12px 13px;
  border: 1px solid rgba(226, 174, 29, .36);
  border-radius: 14px;
  background: #fff8df;
}

.deposit-warning strong {
  font-size: 11px;
}

.deposit-warning p {
  margin: 4px 0 0;
  color: #6f5a18;
  font-size: 10px;
  line-height: 1.45;
}

.deposit-plans-list {
  display: grid;
  gap: 11px;
}

.deposit-plan-card {
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: #fff;
}

.deposit-plan-card.inactive {
  opacity: .7;
  background: #f7f7f8;
}

.deposit-plan-top,
.deposit-plan-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.deposit-plan-top {
  justify-content: space-between;
}

.deposit-plan-identity {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.deposit-plan-identity strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.deposit-plan-identity span,
.deposit-plan-meta,
.deposit-plan-method {
  color: var(--muted);
  font-size: 10px;
}

.deposit-plan-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 13px 0 10px;
}

.deposit-plan-metrics div {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 9px;
  border-radius: 12px;
  background: var(--background);
}

.deposit-plan-metrics span {
  color: var(--muted);
  font-size: 8px;
}

.deposit-plan-metrics strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
}

.deposit-plan-method {
  margin: 0;
  padding: 9px 10px;
  border-radius: 11px;
  color: #4d411c;
  background: #fff8df;
  line-height: 1.4;
  word-break: break-word;
}

.deposit-plan-meta {
  margin: 9px 0 12px;
}

.deposit-plan-actions {
  flex-wrap: wrap;
}

@media (max-width: 1050px) {
  .deposit-settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .deposit-settings-view {
    padding: 13px;
  }

  .form-two-columns,
  .deposit-plan-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .deposit-plan-actions .button {
    flex: 1;
  }
}


/* ================================================================
   BANNER APLIKASI V4.4
   ================================================================ */

.banner-settings-view {
  min-height: 0;
  overflow-y: auto;
  padding: 22px;
}

.banner-settings-grid {
  display: grid;
  grid-template-columns: minmax(330px, 0.82fr) minmax(430px, 1.18fr);
  gap: 18px;
  align-items: start;
}

.banner-form,
.banner-form label {
  display: grid;
  gap: 7px;
}

.banner-form {
  gap: 14px;
  margin-top: 18px;
}

.banner-form label {
  color: #34363d;
  font-size: 11px;
  font-weight: 850;
}

.banner-form small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.4;
}

.banner-active-switch {
  min-height: 74px;
  align-content: center;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--background);
}

.banner-preview {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 12 / 5;
  place-items: center;
  overflow: hidden;
  border: 1px dashed #c9cbd1;
  border-radius: 18px;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(226, 174, 29, 0.08), rgba(17, 17, 17, 0.03));
  font-size: 11px;
  text-align: center;
}

.banner-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-preview.empty img {
  display: none;
}

.banner-info {
  margin: 14px 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(226, 174, 29, 0.32);
  border-radius: 15px;
  background: rgba(226, 174, 29, 0.08);
}

.banner-info strong {
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
}

.banner-info p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.banners-list {
  display: grid;
  gap: 14px;
}

.banner-admin-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
}

.banner-admin-image {
  position: relative;
  aspect-ratio: 12 / 5;
  overflow: hidden;
  background: var(--background);
}

.banner-admin-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-admin-status {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.13);
}

.banner-admin-status.active {
  color: #11682d;
  background: #e7f8ec;
}

.banner-admin-status.inactive {
  color: #8b2530;
  background: #fdecef;
}

.banner-admin-copy {
  padding: 13px 14px 14px;
}

.banner-admin-copy h3 {
  margin: 0;
  font-size: 13px;
}

.banner-admin-link,
.banner-admin-meta {
  overflow: hidden;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.banner-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.banner-admin-actions .button {
  min-width: 0;
}

@media (max-width: 980px) {
  .banner-settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .banner-settings-view {
    padding: 13px;
  }

  .banner-form-card,
  .banner-list-card {
    padding: 15px;
  }

  .banner-admin-actions .button {
    flex: 1 1 calc(50% - 8px);
  }
}


/* ================================================================
   MRXPANEL CONTROL CENTER V4.5
   ================================================================ */

.control-view {
  min-height: 0;
  overflow-y: auto;
  padding: 22px;
}

.control-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.88fr) minmax(420px, 1.12fr);
  gap: 18px;
  align-items: start;
}

.control-form,
.control-form label {
  display: grid;
  gap: 7px;
}

.control-form {
  gap: 14px;
  margin-top: 18px;
}

.control-form label {
  color: #34363d;
  font-size: 11px;
  font-weight: 850;
}

.control-form small {
  color: var(--muted);
  font-size: 9px;
}

.control-warning,
.control-info {
  padding: 12px 14px;
  border-radius: 15px;
  font-size: 10px;
  line-height: 1.45;
}

.control-warning {
  border: 1px solid rgba(209, 53, 72, 0.25);
  color: #7c2531;
  background: rgba(209, 53, 72, 0.07);
}

.control-info {
  border: 1px solid rgba(44, 116, 214, 0.22);
  color: #24558f;
  background: rgba(44, 116, 214, 0.07);
}

.control-warning strong {
  display: block;
  margin-bottom: 3px;
}

.control-warning p {
  margin: 0;
}

.broadcast-list {
  display: grid;
  gap: 11px;
  margin-top: 16px;
}

.broadcast-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: #fff;
}

.broadcast-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.broadcast-card h3 {
  margin: 0;
  font-size: 12px;
}

.broadcast-card-body {
  margin: 7px 0 0;
  color: #555861;
  font-size: 10.5px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.broadcast-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 9px;
}

.broadcast-status {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 900;
}

.broadcast-status.completed {
  color: #12682f;
  background: #e6f8eb;
}

.broadcast-status.partial,
.broadcast-status.sending,
.broadcast-status.queued {
  color: #8b620e;
  background: #fff4d6;
}

.broadcast-status.failed {
  color: #922936;
  background: #fdecef;
}

.app-control-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 18px;
  align-items: start;
}

.compact-switch {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--background);
}

.danger-switch {
  border-color: rgba(209, 53, 72, 0.22);
  background: rgba(209, 53, 72, 0.05);
}

.menu-toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.menu-switch {
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--background);
}

.app-control-save-bar {
  position: sticky;
  bottom: 0;
  z-index: 4;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(226, 174, 29, 0.38);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 13px 32px rgba(17, 17, 17, 0.12);
  backdrop-filter: blur(12px);
}

.app-control-save-bar div {
  display: grid;
  gap: 3px;
}

.app-control-save-bar strong {
  font-size: 11px;
}

.app-control-save-bar span {
  color: var(--muted);
  font-size: 9px;
}

@media (max-width: 980px) {
  .control-grid,
  .app-control-layout {
    grid-template-columns: 1fr;
  }

  .app-control-save-bar {
    grid-column: 1;
  }
}

@media (max-width: 620px) {
  .control-view {
    padding: 13px;
  }

  .menu-toggle-grid {
    grid-template-columns: 1fr;
  }

  .app-control-save-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .app-control-save-bar .button {
    width: 100%;
  }
}


/* ================================================================
   PEMANTAUAN DEPOSIT V4.6
   ================================================================ */
.deposit-monitor-view {
  min-height: 0;
  overflow-y: auto;
  padding: 22px;
}

.deposit-monitor-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 18px;
}

.deposit-summary-card {
  display: grid;
  gap: 5px;
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.05);
}
.deposit-summary-card span { color: var(--muted); font-size: 10px; font-weight: 800; }
.deposit-summary-card strong { font-size: 21px; line-height: 1.15; }
.deposit-summary-card small { align-self: end; color: var(--muted); font-size: 9px; }
.deposit-summary-card.warning { border-color: rgba(226,174,29,.36); background: #fffaf0; }
.deposit-summary-card.danger { border-color: rgba(209,53,72,.28); background: #fff7f8; }

.deposit-monitor-panel { min-height: 360px; }
.deposit-monitor-heading { margin-bottom: 14px; }
.deposit-monitor-filters {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(190px, .35fr);
  gap: 12px;
  margin-bottom: 12px;
}
.deposit-monitor-filters label { display: grid; gap: 6px; color: #34363d; font-size: 10px; font-weight: 850; }
.deposit-monitor-note {
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(44,116,214,.20);
  border-radius: 14px;
  color: #375b84;
  background: rgba(44,116,214,.06);
  font-size: 9.5px;
  line-height: 1.45;
}
.deposit-monitor-list { display: grid; gap: 12px; }
.deposit-transaction-card {
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
}
.deposit-transaction-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.deposit-transaction-identity { min-width: 0; }
.deposit-transaction-identity h3 { margin: 0; font-size: 13px; }
.deposit-transaction-identity p { overflow: hidden; margin: 4px 0 0; color: var(--muted); font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.deposit-status-badge { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; font-size: 8.5px; font-weight: 900; }
.deposit-status-badge.completed { color: #12682f; background: #e6f8eb; }
.deposit-status-badge.pending { color: #8b620e; background: #fff4d6; }
.deposit-status-badge.paid_uncredited, .deposit-status-badge.review { color: #9a4d0a; background: #fff0df; }
.deposit-status-badge.failed { color: #922936; background: #fdecef; }
.deposit-status-badge.expired { color: #5f626a; background: #eceef2; }
.deposit-transaction-order { margin-top: 10px; padding: 9px 10px; border-radius: 12px; background: var(--background); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9.5px; }
.deposit-transaction-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 11px; }
.deposit-transaction-metrics div { display: grid; gap: 3px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 12px; }
.deposit-transaction-metrics span { color: var(--muted); font-size: 8.5px; }
.deposit-transaction-metrics strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.deposit-transaction-meta { display: flex; flex-wrap: wrap; gap: 6px 13px; margin-top: 10px; color: var(--muted); font-size: 9px; }
.deposit-transaction-error { margin-top: 10px; padding: 9px 10px; border-radius: 12px; color: #8c2834; background: #fff1f3; font-size: 9px; line-height: 1.45; white-space: pre-wrap; }
.deposit-transaction-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

@media (max-width: 1000px) {
  .deposit-monitor-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deposit-transaction-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .deposit-monitor-view { padding: 13px; }
  .deposit-monitor-summary { grid-template-columns: 1fr 1fr; gap: 9px; }
  .deposit-summary-card { min-height: 102px; padding: 13px; }
  .deposit-summary-card strong { font-size: 17px; }
  .deposit-monitor-filters { grid-template-columns: 1fr; }
  .deposit-transaction-top { align-items: stretch; flex-direction: column; }
  .deposit-status-badge { align-self: flex-start; }
  .deposit-transaction-metrics { grid-template-columns: 1fr 1fr; }
  .deposit-transaction-actions .button { flex: 1 1 calc(50% - 8px); }
}


/* ================================================================
   MRXPANEL TICKET TOOLS V4.7
   ================================================================ */

.ticket-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.priority-summary select {
  width: 100%;
  min-height: 31px;
  padding: 5px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 850;
}

.ticket-tools-bar {
  display: flex;
  gap: 9px;
  margin: 0 14px 8px;
}

.ticket-tool-button {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 13px;
  color: #33353b;
  background: #fff;
  text-align: left;
}

.ticket-tool-button:hover {
  border-color: rgba(226, 174, 29, 0.55);
  background: #fffaf0;
}

.ticket-tool-button strong {
  min-width: 0;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-tool-button small {
  margin-left: auto;
  padding: 3px 7px;
  border-radius: 999px;
  color: #765400;
  background: var(--soft-gold);
  font-size: 8.5px;
  font-weight: 900;
}

.quick-reply-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.quick-reply-bar select {
  min-width: 0;
  flex: 1;
  min-height: 38px;
  font-size: 10.5px;
}

.priority-badge {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 950;
}

.priority-badge.high {
  color: #8a5900;
  background: #fff0c2;
}

.priority-badge.urgent {
  color: #9b2534;
  background: #fde8eb;
}

.ticket-item.priority-urgent {
  border-color: rgba(209, 53, 72, 0.42);
}

.ticket-item.priority-high {
  border-color: rgba(226, 174, 29, 0.48);
}

.ticket-note-indicator {
  color: #7a620f;
  font-size: 8.8px;
  font-weight: 850;
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(10, 10, 12, 0.62);
  backdrop-filter: blur(6px);
}

.modal-card {
  width: min(760px, 100%);
  max-height: min(82vh, 760px);
  overflow-y: auto;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.modal-heading h2 {
  margin: 4px 0 0;
  font-size: 20px;
}

.modal-close-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: #303238;
  background: var(--background);
  font-size: 22px;
  line-height: 1;
}

.modal-description {
  margin: 9px 0 15px;
  color: var(--muted);
  font-size: 10.5px;
}

.ticket-note-form {
  padding: 12px;
  border: 1px solid rgba(226, 174, 29, 0.32);
  border-radius: 16px;
  background: #fffaf0;
}

.ticket-note-form textarea {
  min-height: 88px;
}

.modal-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 9px;
}

.ticket-notes-list,
.ticket-activity-list,
.quick-replies-manage-list {
  display: grid;
  gap: 10px;
  margin-top: 15px;
}

.internal-note-card {
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}

.internal-note-card p {
  margin: 0;
  color: #3f4148;
  font-size: 10.5px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.internal-note-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 8.8px;
}

.internal-note-delete {
  border: 0;
  color: var(--danger);
  background: transparent;
  font-size: 8.8px;
  font-weight: 900;
}

.ticket-activity-row {
  display: flex;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: #fff;
}

.ticket-activity-row .activity-icon {
  flex: 0 0 auto;
}

.quick-reply-manager-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(320px, 1.14fr);
  gap: 18px;
  margin-top: 16px;
}

.quick-reply-form,
.quick-reply-form label {
  display: grid;
  gap: 7px;
}

.quick-reply-form {
  align-content: start;
  gap: 13px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--background);
}

.quick-reply-form label {
  color: #34363d;
  font-size: 10px;
  font-weight: 850;
}

.quick-reply-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.quick-reply-card {
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}

.quick-reply-card.inactive {
  opacity: 0.62;
}

.quick-reply-card h3 {
  margin: 0;
  font-size: 11.5px;
}

.quick-reply-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.quick-reply-card-actions {
  display: flex;
  gap: 7px;
  margin-top: 10px;
}

@media (max-width: 980px) {
  .ticket-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-reply-manager-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .ticket-tools-bar,
  .quick-reply-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .modal-layer {
    align-items: end;
    padding: 8px;
  }

  .modal-card {
    max-height: 90vh;
    border-radius: 22px 22px 12px 12px;
  }

  .quick-reply-form-actions {
    flex-direction: column;
  }

  .quick-reply-form-actions .button {
    width: 100%;
  }
}


/* ================================================================
   MRXPANEL MEMBER CENTER V4.8
   ================================================================ */

.member-center-view {
  min-height: 0;
  overflow-y: auto;
  padding: 22px;
}

.member-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.member-summary-card {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(17, 17, 17, 0.05);
}

.member-summary-card.warning {
  border-color: rgba(226, 174, 29, 0.48);
  background: #fffaf0;
}

.member-summary-card span {
  color: #62656e;
  font-size: 10.5px;
  font-weight: 800;
}

.member-summary-card strong {
  font-size: 27px;
  line-height: 1;
}

.member-summary-card small {
  color: var(--muted);
  font-size: 9px;
}

.member-center-controls {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(220px, 300px);
  gap: 12px;
  margin: 16px 0;
}

.member-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}

.member-search-box span {
  color: var(--muted);
  font-size: 18px;
}

.member-search-box input {
  min-width: 0;
  flex: 1;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.member-center-controls select {
  min-height: 48px;
  border-radius: 16px;
  background: #fff;
}

.member-center-workspace {
  display: grid;
  grid-template-columns: minmax(330px, 0.72fr) minmax(520px, 1.28fr);
  gap: 16px;
  align-items: start;
}

.member-list-panel,
.member-detail-panel {
  min-height: 650px;
}

.member-center-list {
  display: grid;
  gap: 9px;
  margin-top: 15px;
  max-height: 720px;
  overflow-y: auto;
  padding-right: 4px;
}

.member-list-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: #282a30;
  background: #fff;
  text-align: left;
}

.member-list-item:hover,
.member-list-item.active {
  border-color: rgba(226, 174, 29, 0.58);
  background: #fffaf0;
}

.member-list-avatar {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 15px;
  color: #4d3a00;
  background: var(--soft-gold);
  font-size: 15px;
  font-weight: 950;
}

.member-list-copy {
  min-width: 0;
}

.member-list-copy strong,
.member-list-copy span,
.member-list-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-list-copy strong {
  font-size: 11px;
}

.member-list-copy span {
  margin-top: 3px;
  color: #595c65;
  font-size: 9.5px;
}

.member-list-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8.7px;
}

.member-list-badges {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.member-mini-badge {
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 7.8px;
  font-weight: 900;
  white-space: nowrap;
}

.member-mini-badge.active {
  color: #12682f;
  background: #e6f8eb;
}

.member-mini-badge.ticket {
  color: #8a5900;
  background: #fff0c2;
}

.member-mini-badge.deposit {
  color: #28568f;
  background: #eaf3ff;
}

.member-detail-empty {
  display: grid;
  min-height: 580px;
  place-items: center;
  align-content: center;
  color: var(--muted);
  text-align: center;
}

.member-detail-empty-icon {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 24px;
  color: #775700;
  background: var(--soft-gold);
  font-size: 28px;
}

.member-detail-empty h2 {
  margin: 0;
  color: #5b5e66;
}

.member-detail-empty p {
  max-width: 300px;
  margin: 8px 0 0;
  font-size: 10.5px;
  line-height: 1.5;
}

.member-detail-content {
  display: grid;
  gap: 15px;
}

.member-detail-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

.member-detail-avatar {
  display: grid;
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 20px;
  color: #4f3a00;
  background: var(--soft-gold);
  font-size: 22px;
  font-weight: 950;
}

.member-detail-identity {
  min-width: 0;
  flex: 1;
}

.member-detail-identity h2,
.member-detail-identity p,
.member-detail-identity span {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-detail-identity h2 {
  font-size: 18px;
}

.member-detail-identity p {
  margin-top: 4px;
  color: #705200;
  font-size: 10px;
  font-weight: 850;
}

.member-detail-identity span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9.5px;
}

.member-detail-status {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  color: #12682f;
  background: #e6f8eb;
  font-size: 8.5px;
  font-weight: 900;
}

.member-profile-meta,
.member-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.member-profile-meta > div,
.member-metric-grid article {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--background);
}

.member-profile-meta span,
.member-metric-grid span {
  color: var(--muted);
  font-size: 8.5px;
}

.member-profile-meta strong {
  overflow: hidden;
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-metric-grid article {
  min-height: 92px;
  background: #fff;
}

.member-metric-grid strong {
  font-size: 15px;
}

.member-metric-grid small {
  color: var(--muted);
  font-size: 8.5px;
}

.member-activity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.member-activity-card {
  min-height: 250px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
}

.member-section-heading h3 {
  margin: 3px 0 0;
  font-size: 13px;
}

.member-sub-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.member-sub-item {
  display: grid;
  gap: 5px;
  padding: 10px 11px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--background);
}

.member-sub-item-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.member-sub-item strong {
  min-width: 0;
  overflow: hidden;
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-sub-item p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #565963;
  font-size: 8.8px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.member-sub-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  color: var(--muted);
  font-size: 7.8px;
}

.member-sub-status {
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 999px;
  font-size: 7.2px;
  font-weight: 900;
}

.member-sub-status.good {
  color: #12682f;
  background: #e6f8eb;
}

.member-sub-status.warning {
  color: #8a5900;
  background: #fff0c2;
}

.member-sub-status.danger {
  color: #982d3a;
  background: #fdecef;
}

.member-sub-empty {
  display: grid;
  min-height: 115px;
  place-items: center;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

@media (max-width: 1120px) {
  .member-summary-grid,
  .member-profile-meta,
  .member-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-center-workspace {
    grid-template-columns: 1fr;
  }

  .member-list-panel,
  .member-detail-panel {
    min-height: auto;
  }

  .member-center-list {
    max-height: 480px;
  }
}

@media (max-width: 680px) {
  .member-center-view {
    padding: 13px;
  }

  .member-summary-grid,
  .member-center-controls,
  .member-profile-meta,
  .member-metric-grid,
  .member-activity-grid {
    grid-template-columns: 1fr;
  }

  .member-list-item {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .member-list-badges {
    grid-column: 1 / -1;
    display: flex;
    justify-items: start;
    flex-wrap: wrap;
  }

  .member-detail-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .member-detail-status {
    margin-left: 76px;
  }
}


/* ================================================================
   MRXPANEL MEMBER CENTER V4.8.1 Ã¢ÂÂ LAYOUT OVERFLOW FIX
   Menjaga seluruh kartu Tiket Terbaru tetap berada di dalam kotak.
   ================================================================ */

.member-detail-panel,
.member-detail-content,
.member-activity-grid,
.member-activity-card,
.member-sub-list,
.member-sub-item,
.member-sub-item-heading {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.member-activity-card,
.member-sub-item {
  width: 100%;
  overflow: hidden;
}

.member-sub-item-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  justify-content: initial;
}

.member-sub-item-heading strong {
  display: -webkit-box;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.member-sub-status {
  max-width: 104px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-sub-item-meta {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.member-sub-item-meta span {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (max-width: 680px) {
  .member-sub-item-heading {
    grid-template-columns: minmax(0, 1fr);
  }

  .member-sub-status {
    width: fit-content;
    max-width: 100%;
  }
}


/* ================================================================
   MRXPANEL OVERVIEW CENTER V6
   ================================================================ */

.overview-view {
  min-height: 0;
  overflow-y: auto;
  padding: 22px;
}

.overview-content {
  display: grid;
  gap: 16px;
}

.overview-loading {
  min-height: 460px;
}

.overview-hero-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.overview-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 142px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 23px;
  background: #fff;
  box-shadow: 0 13px 32px rgba(17, 17, 17, 0.055);
}

.overview-hero-card.primary {
  color: #fff;
  border-color: #171717;
  background:
    radial-gradient(circle at 82% 18%, rgba(239, 185, 37, .23), transparent 36%),
    linear-gradient(145deg, #171717, #090909);
}

.overview-hero-card > div:first-child {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.overview-hero-card span {
  color: #656871;
  font-size: 10px;
  font-weight: 850;
}

.overview-hero-card.primary span,
.overview-hero-card.primary small {
  color: rgba(255, 255, 255, .68);
}

.overview-hero-card strong {
  overflow: hidden;
  font-size: clamp(23px, 2.4vw, 31px);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-hero-card small {
  color: var(--muted);
  font-size: 8.8px;
}

.overview-card-icon {
  display: grid;
  width: 51px;
  height: 51px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 17px;
  color: #684d00;
  background: var(--soft-gold);
  font-size: 19px;
  font-weight: 950;
}

.overview-attention-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.attention-card {
  display: grid;
  gap: 7px;
  min-height: 111px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
}

.attention-card.danger {
  border-color: rgba(209, 53, 72, .30);
  background: rgba(209, 53, 72, .055);
}

.attention-card.warning {
  border-color: rgba(226, 174, 29, .42);
  background: #fffaf0;
}

.attention-card.good {
  border-color: rgba(46, 152, 81, .28);
  background: rgba(46, 152, 81, .055);
}

.attention-card span {
  color: #5c5f67;
  font-size: 9.5px;
  font-weight: 850;
}

.attention-card strong {
  font-size: 23px;
}

.attention-card small {
  color: var(--muted);
  font-size: 8.3px;
}

.overview-main-grid {
  display: grid;
  grid-template-columns: minmax(520px, 1.35fr) minmax(320px, .65fr);
  gap: 16px;
  align-items: stretch;
}

.overview-panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 23px;
  background: #fff;
  box-shadow: 0 13px 32px rgba(17, 17, 17, .045);
}

.overview-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.overview-panel-heading h2 {
  margin: 4px 0 0;
  font-size: 20px;
}

.trend-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 750;
}

.trend-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.trend-legend i {
  width: 8px;
  height: 8px;
  border-radius: 3px;
}

.trend-legend i.members {
  background: #1f1f1f;
}

.trend-legend i.tickets {
  background: #e2ae1d;
}

.trend-legend i.deposits {
  background: #69a77d;
}

.overview-trend-chart {
  display: grid;
  grid-template-columns: repeat(14, minmax(22px, 1fr));
  gap: 7px;
  min-height: 270px;
  margin-top: 22px;
  overflow-x: auto;
  padding: 10px 2px 3px;
}

.trend-day {
  display: grid;
  grid-template-rows: minmax(185px, 1fr) auto;
  gap: 9px;
  min-width: 26px;
}

.trend-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 100%;
  padding: 0 1px;
  border-bottom: 1px solid var(--border);
}

.trend-bar {
  width: min(8px, 28%);
  min-height: 3px;
  border-radius: 5px 5px 2px 2px;
  transition: height .25s ease;
}

.trend-bar.members {
  background: #1f1f1f;
}

.trend-bar.tickets {
  background: #e2ae1d;
}

.trend-bar.deposits {
  background: #69a77d;
}

.trend-day-label {
  color: var(--muted);
  font-size: 7.3px;
  text-align: center;
  white-space: nowrap;
}

.performance-list {
  display: grid;
  gap: 0;
  margin-top: 13px;
}

.performance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 47px;
  border-bottom: 1px solid var(--border);
}

.performance-row:last-child {
  border-bottom: 0;
}

.performance-row span {
  color: #5d6068;
  font-size: 9.3px;
}

.performance-row strong {
  color: #24262b;
  font-size: 10.5px;
  text-align: right;
}

.overview-updated-label {
  color: var(--muted);
  font-size: 8.5px;
}

.overview-activity-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 16px;
}

.overview-activity-item {
  display: grid;
  grid-template-columns: 41px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--background);
}

.overview-activity-icon {
  display: grid;
  width: 41px;
  height: 41px;
  place-items: center;
  border-radius: 13px;
  color: #604800;
  background: var(--soft-gold);
  font-size: 15px;
}

.overview-activity-copy {
  min-width: 0;
}

.overview-activity-copy strong,
.overview-activity-copy p,
.overview-activity-copy small {
  display: block;
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-activity-copy strong {
  font-size: 9.5px;
}

.overview-activity-copy p {
  margin-top: 3px;
  color: #595c64;
  font-size: 8.6px;
}

.overview-activity-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 7.7px;
}

.overview-empty {
  grid-column: 1 / -1;
  display: grid;
  min-height: 120px;
  place-items: center;
  color: var(--muted);
  font-size: 9px;
}

@media (max-width: 1120px) {
  .overview-hero-grid,
  .overview-attention-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .overview-view {
    padding: 13px;
  }

  .overview-hero-grid,
  .overview-attention-grid,
  .overview-activity-list {
    grid-template-columns: 1fr;
  }

  .overview-trend-chart {
    grid-template-columns: repeat(14, minmax(28px, 1fr));
  }

  .overview-panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .trend-legend {
    justify-content: flex-start;
  }
}


/* ================================================================
   MRXPANEL DASHBOARD TIKET V6.1 Ã¢ÂÂ STATUS CARDS
   Status tiket dipindahkan dari sidebar ke kartu ringkasan.
   ================================================================ */

.ticket-workspace-view {
  display: flex;
  height: calc(100vh - 82px);
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}

.ticket-status-overview {
  flex: 0 0 auto;
  padding: 14px 16px 12px;
}

.ticket-status-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.ticket-status-heading h2 {
  margin: 3px 0 0;
  font-size: 16px;
}

.ticket-status-heading > span {
  color: var(--muted);
  font-size: 8.5px;
}

.ticket-status-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(145px, 1fr));
  gap: 10px;
  margin: 0;
}

.ticket-status-card-grid .status-button {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 82px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 18px;
  color: #34363d;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 17, 17, .04);
  text-align: left;
}

.ticket-status-card-grid .status-button:hover {
  color: #22242a;
  border-color: rgba(226, 174, 29, .48);
  background: #fffaf0;
  transform: translateY(-1px);
}

.ticket-status-card-grid .status-button.active {
  color: #171717;
  border-color: rgba(226, 174, 29, .72);
  background:
    linear-gradient(145deg, rgba(255, 248, 222, .98), rgba(255, 255, 255, 1));
  box-shadow:
    inset 0 0 0 1px rgba(226, 174, 29, .15),
    0 10px 28px rgba(95, 72, 7, .09);
}

.ticket-status-card-grid .status-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  color: #735600;
  background: var(--soft-gold);
  font-size: 14px;
}

.ticket-status-card-grid .status-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.ticket-status-card-grid .status-copy strong,
.ticket-status-card-grid .status-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-status-card-grid .status-copy strong {
  font-size: 10px;
}

.ticket-status-card-grid .status-copy small {
  color: var(--muted);
  font-size: 7.8px;
  font-weight: 600;
}

.ticket-status-card-grid .status-button b {
  display: grid;
  min-width: 31px;
  height: 31px;
  place-items: center;
  padding: 0 7px;
  border-radius: 11px;
  color: #565961;
  background: #f2f3f5;
  font-size: 10px;
}

.ticket-status-card-grid .status-button.active b {
  color: #171717;
  background: var(--gold);
}

.ticket-status-card-grid .unassigned-card .status-icon {
  color: #912e3a;
  background: #fdecef;
}

.ticket-status-card-grid .processing-card .status-icon {
  color: #235b9e;
  background: #eaf3ff;
}

.ticket-status-card-grid .waiting-card .status-icon {
  color: #865c00;
  background: #fff0c2;
}

.ticket-status-card-grid .completed-card .status-icon {
  color: #12682f;
  background: #e6f8eb;
}

.ticket-workspace-view > .workspace {
  min-height: 0;
  height: auto;
  flex: 1 1 auto;
  padding-top: 0;
}

.sidebar {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.main-nav {
  min-height: 0;
  overflow-y: auto;
  padding-right: 3px;
}

@media (max-width: 1180px) {
  .ticket-status-card-grid {
    overflow-x: auto;
    grid-template-columns: repeat(5, minmax(170px, 1fr));
    padding-bottom: 3px;
  }
}

@media (max-width: 850px) {
  .ticket-workspace-view {
    height: calc(100vh - 82px);
  }

  .ticket-status-overview {
    padding: 10px 12px 8px;
  }

  .ticket-status-heading {
    margin-bottom: 8px;
  }

  .ticket-status-heading h2 {
    font-size: 14px;
  }

  .ticket-status-heading > span {
    display: none;
  }

  .ticket-status-card-grid {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    scroll-snap-type: x proximity;
  }

  .ticket-status-card-grid .status-button {
    min-width: 168px;
    min-height: 72px;
    padding: 10px;
    scroll-snap-align: start;
  }

  .ticket-workspace-view > .workspace {
    height: auto;
    flex: 1 1 auto;
  }
}

@media (max-width: 520px) {
  .ticket-workspace-view {
    height: calc(100vh - 72px);
  }

  .ticket-status-overview {
    padding: 8px;
  }

  .ticket-status-heading {
    display: none;
  }

  .ticket-status-card-grid .status-button {
    min-width: 150px;
    min-height: 65px;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 7px;
    border-radius: 15px;
  }

  .ticket-status-card-grid .status-icon {
    width: 32px;
    height: 32px;
    border-radius: 11px;
  }

  .ticket-status-card-grid .status-copy small {
    display: none;
  }

  .ticket-workspace-view > .workspace {
    padding: 0 8px 8px;
  }
}


/* ================================================================
   MRXPANEL BANNER ANALYTICS V7
   ================================================================ */

.banner-analytics-view {
  min-height: 0;
  overflow-y: auto;
  padding: 22px;
}

.banner-analytics-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.banner-analytics-heading h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.banner-analytics-heading > div > span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 9.5px;
}

.analytics-period-control {
  display: grid;
  min-width: 150px;
  gap: 6px;
  color: #4d5058;
  font-size: 9px;
  font-weight: 850;
}

.analytics-period-control select {
  min-height: 42px;
  border-radius: 14px;
  background: #fff;
}

.banner-analytics-content {
  display: grid;
  gap: 16px;
}

.banner-analytics-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.banner-analytics-summary-card {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 19px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(17, 17, 17, .045);
}

.banner-analytics-summary-card.highlight {
  color: #fff;
  border-color: #171717;
  background:
    radial-gradient(circle at 85% 20%, rgba(226, 174, 29, .28), transparent 38%),
    linear-gradient(145deg, #171717, #090909);
}

.banner-analytics-summary-card span {
  color: #62656e;
  font-size: 10px;
  font-weight: 850;
}

.banner-analytics-summary-card.highlight span,
.banner-analytics-summary-card.highlight small {
  color: rgba(255, 255, 255, .68);
}

.banner-analytics-summary-card strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 26px;
  line-height: 1.12;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.banner-analytics-summary-card small {
  color: var(--muted);
  font-size: 8.7px;
}

.banner-analytics-main-grid {
  display: grid;
  grid-template-columns: minmax(520px, 1.35fr) minmax(300px, .65fr);
  gap: 16px;
}

.banner-analytics-legend {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
}

.banner-analytics-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.banner-analytics-legend i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
}

.banner-analytics-legend .impression {
  background: #1f1f1f;
}

.banner-analytics-legend .click {
  background: #e2ae1d;
}

.banner-analytics-trend {
  display: grid;
  grid-template-columns: repeat(30, minmax(17px, 1fr));
  gap: 5px;
  min-height: 265px;
  margin-top: 20px;
  overflow-x: auto;
  padding: 8px 2px 3px;
}

.banner-analytics-day {
  display: grid;
  min-width: 19px;
  grid-template-rows: minmax(180px, 1fr) auto;
  gap: 8px;
}

.banner-analytics-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  height: 100%;
  border-bottom: 1px solid var(--border);
}

.banner-analytics-bar {
  width: min(8px, 38%);
  min-height: 2px;
  border-radius: 5px 5px 2px 2px;
}

.banner-analytics-bar.impression {
  background: #1f1f1f;
}

.banner-analytics-bar.click {
  background: #e2ae1d;
}

.banner-analytics-day-label {
  color: var(--muted);
  font-size: 6.8px;
  text-align: center;
  white-space: nowrap;
}

.banner-analytics-notes {
  display: grid;
  gap: 0;
  margin-top: 12px;
}

.banner-analytics-notes > div {
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.banner-analytics-notes > div:last-child {
  border-bottom: 0;
}

.banner-analytics-notes strong {
  font-size: 10px;
}

.banner-analytics-notes p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 8.8px;
  line-height: 1.5;
}

.banner-analytics-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.banner-performance-card {
  display: grid;
  grid-template-columns: minmax(170px, 250px) minmax(0, 1fr);
  gap: 15px;
  overflow: hidden;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 19px;
  background: #fff;
}

.banner-performance-image {
  position: relative;
  aspect-ratio: 12 / 5;
  overflow: hidden;
  border-radius: 14px;
  background: var(--background);
}

.banner-performance-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-performance-status {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 7.5px;
  font-weight: 900;
}

.banner-performance-status.active {
  color: #12682f;
  background: #e6f8eb;
}

.banner-performance-status.inactive {
  color: #982d3a;
  background: #fdecef;
}

.banner-performance-copy {
  min-width: 0;
}

.banner-performance-copy h3 {
  overflow: hidden;
  margin: 1px 0 0;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.banner-performance-link {
  overflow: hidden;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.banner-performance-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}

.banner-performance-metrics > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--background);
}

.banner-performance-metrics span {
  color: var(--muted);
  font-size: 7.5px;
}

.banner-performance-metrics strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.banner-performance-meta {
  margin-top: 9px;
  color: var(--muted);
  font-size: 8px;
}

.banner-analytics-empty {
  display: grid;
  min-height: 140px;
  place-items: center;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

@media (max-width: 1120px) {
  .banner-analytics-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .banner-analytics-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .banner-analytics-view {
    padding: 13px;
  }

  .banner-analytics-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .analytics-period-control {
    min-width: 0;
  }

  .banner-performance-card {
    grid-template-columns: 1fr;
  }

  .banner-performance-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .banner-analytics-summary-grid {
    grid-template-columns: 1fr;
  }

  .banner-analytics-trend {
    grid-template-columns: repeat(30, minmax(24px, 1fr));
  }
}


/* ================================================================
   MRXPANEL REPORT CENTER V8
   ================================================================ */

.report-center-view {
  min-height: 0;
  overflow-y: auto;
  padding: 22px;
}

.report-center-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.report-center-heading h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.report-center-heading > div:first-child > span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 9.5px;
}

.report-center-actions {
  display: flex;
  gap: 8px;
}

.report-type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.report-type-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-width: 0;
  min-height: 88px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 19px;
  color: #32343a;
  background: #fff;
  text-align: left;
  box-shadow: 0 10px 28px rgba(17, 17, 17, .04);
}

.report-type-card:hover,
.report-type-card.active {
  border-color: rgba(226, 174, 29, .64);
  background: #fffaf0;
}

.report-type-card.active {
  box-shadow:
    inset 0 0 0 1px rgba(226, 174, 29, .14),
    0 10px 28px rgba(92, 69, 7, .08);
}

.report-type-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  color: #674d00;
  background: var(--soft-gold);
  font-size: 16px;
}

.report-type-card > span:last-child {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.report-type-card strong,
.report-type-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-type-card strong {
  font-size: 11px;
}

.report-type-card small {
  color: var(--muted);
  font-size: 8px;
}

.report-filter-panel {
  display: grid;
  grid-template-columns: minmax(310px, 1fr) minmax(145px, 190px) minmax(145px, 190px) auto;
  gap: 10px;
  align-items: end;
  margin: 14px 0;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
}

.report-period-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.report-period-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: #53565e;
  background: var(--background);
  font-size: 8.7px;
  font-weight: 850;
}

.report-period-button:hover,
.report-period-button.active {
  color: #1d1f23;
  border-color: rgba(226, 174, 29, .65);
  background: var(--soft-gold);
}

.report-filter-panel label {
  display: grid;
  gap: 6px;
  color: #4d5058;
  font-size: 8.7px;
  font-weight: 850;
}

.report-filter-panel input {
  min-height: 38px;
  border-radius: 12px;
}

.report-center-content {
  display: grid;
  gap: 16px;
}

.report-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.report-summary-card {
  display: grid;
  gap: 8px;
  min-height: 124px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 11px 28px rgba(17, 17, 17, .04);
}

.report-summary-card.highlight {
  color: #fff;
  border-color: #171717;
  background:
    radial-gradient(circle at 84% 17%, rgba(226, 174, 29, .29), transparent 37%),
    linear-gradient(145deg, #171717, #090909);
}

.report-summary-card span {
  color: #646770;
  font-size: 9.7px;
  font-weight: 850;
}

.report-summary-card.highlight span,
.report-summary-card.highlight small {
  color: rgba(255, 255, 255, .68);
}

.report-summary-card strong {
  overflow: hidden;
  font-size: 23px;
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
}

.report-summary-card small {
  color: var(--muted);
  font-size: 8.4px;
}

.report-table-panel {
  min-width: 0;
}

.report-table-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
}

.report-table-heading h2 {
  margin: 4px 0 0;
  font-size: 19px;
}

.report-table-heading > div > span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 8.5px;
}

.report-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(340px, 100%);
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--background);
}

.report-search-box > span {
  color: var(--muted);
}

.report-search-box input {
  min-width: 0;
  flex: 1;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 9px;
}

.report-table-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 13px 0 8px;
  color: var(--muted);
  font-size: 8.2px;
}

.report-table-wrap {
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.report-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: #fff;
}

.report-table th,
.report-table td {
  max-width: 280px;
  padding: 10px 11px;
  border-bottom: 1px solid var(--border);
  color: #44474f;
  font-size: 8.4px;
  line-height: 1.4;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.report-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: #34363c;
  background: #f7f7f8;
  font-size: 7.8px;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.report-table tbody tr:hover {
  background: #fffaf0;
}

.report-table tbody tr:last-child td {
  border-bottom: 0;
}

.report-status-pill {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 7.3px;
  font-weight: 900;
  white-space: nowrap;
}

.report-status-pill.good {
  color: #12682f;
  background: #e6f8eb;
}

.report-status-pill.warning {
  color: #865c00;
  background: #fff0c2;
}

.report-status-pill.danger {
  color: #982d3a;
  background: #fdecef;
}

.report-status-pill.neutral {
  color: #4e5159;
  background: #eceef1;
}

.report-table-empty {
  display: grid;
  min-height: 160px;
  place-items: center;
  color: var(--muted);
  font-size: 9px;
}

@media (max-width: 1120px) {
  .report-type-grid,
  .report-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-filter-panel {
    grid-template-columns: 1fr 1fr;
  }

  .report-period-presets {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .report-center-view {
    padding: 13px;
  }

  .report-center-heading,
  .report-table-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .report-center-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .report-type-grid,
  .report-summary-grid,
  .report-filter-panel {
    grid-template-columns: 1fr;
  }

  .report-period-presets {
    grid-column: auto;
  }

  .report-search-box {
    width: 100%;
  }
}

@media print {
  body.report-print-mode {
    background: #fff;
  }

  body.report-print-mode .sidebar,
  body.report-print-mode .topbar,
  body.report-print-mode .report-type-grid,
  body.report-print-mode .report-filter-panel,
  body.report-print-mode .report-center-actions,
  body.report-print-mode .report-search-box {
    display: none !important;
  }

  body.report-print-mode .app-view {
    display: block !important;
  }

  body.report-print-mode .main-content {
    display: block !important;
    overflow: visible !important;
  }

  body.report-print-mode .report-center-view {
    display: block !important;
    overflow: visible !important;
    padding: 0;
  }

  body.report-print-mode .report-table-panel,
  body.report-print-mode .report-summary-card {
    box-shadow: none;
  }

  body.report-print-mode .report-table-wrap {
    overflow: visible;
  }

  body.report-print-mode .report-table {
    min-width: 0;
    font-size: 7px;
  }

  body.report-print-mode .report-table th {
    position: static;
  }
}


/* ================================================================
   MRXPANEL ADMIN PERFORMANCE V9
   ================================================================ */

.admin-performance-view {
  min-height: 0;
  overflow-y: auto;
  padding: 22px;
}

.admin-performance-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
}

.admin-performance-heading h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.admin-performance-heading > div > span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 9.5px;
}

.admin-performance-filter {
  display: grid;
  grid-template-columns: minmax(310px, 1fr) minmax(145px, 190px) minmax(145px, 190px) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 15px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
}

.admin-performance-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-performance-period-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: #53565e;
  background: var(--background);
  font-size: 8.7px;
  font-weight: 850;
}

.admin-performance-period-button:hover,
.admin-performance-period-button.active {
  color: #1d1f23;
  border-color: rgba(226, 174, 29, .65);
  background: var(--soft-gold);
}

.admin-performance-filter label {
  display: grid;
  gap: 6px;
  color: #4d5058;
  font-size: 8.7px;
  font-weight: 850;
}

.admin-performance-filter input {
  min-height: 38px;
  border-radius: 12px;
}

.admin-performance-content {
  display: grid;
  gap: 16px;
}

.admin-performance-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-performance-summary-card {
  display: grid;
  gap: 8px;
  min-height: 126px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 11px 28px rgba(17, 17, 17, .04);
}

.admin-performance-summary-card.highlight {
  color: #fff;
  border-color: #171717;
  background:
    radial-gradient(circle at 84% 17%, rgba(226, 174, 29, .29), transparent 37%),
    linear-gradient(145deg, #171717, #090909);
}

.admin-performance-summary-card span {
  color: #646770;
  font-size: 9.7px;
  font-weight: 850;
}

.admin-performance-summary-card.highlight span,
.admin-performance-summary-card.highlight small {
  color: rgba(255, 255, 255, .68);
}

.admin-performance-summary-card strong {
  overflow: hidden;
  font-size: 25px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.admin-performance-summary-card small {
  color: var(--muted);
  font-size: 8.4px;
}

.admin-performance-main-grid {
  display: grid;
  grid-template-columns: minmax(520px, 1.35fr) minmax(310px, .65fr);
  gap: 16px;
}

.admin-performance-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 13px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
}

.admin-performance-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.admin-performance-legend i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
}

.admin-performance-legend .reply { background: #1f1f1f; }
.admin-performance-legend .completed { background: #69a77d; }
.admin-performance-legend .notes { background: #e2ae1d; }

.admin-performance-chart {
  display: grid;
  grid-template-columns: repeat(30, minmax(17px, 1fr));
  gap: 5px;
  min-height: 265px;
  margin-top: 20px;
  overflow-x: auto;
  padding: 8px 2px 3px;
}

.admin-performance-day {
  display: grid;
  min-width: 19px;
  grid-template-rows: minmax(180px, 1fr) auto;
  gap: 8px;
}

.admin-performance-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  height: 100%;
  border-bottom: 1px solid var(--border);
}

.admin-performance-bar {
  width: min(7px, 29%);
  min-height: 2px;
  border-radius: 5px 5px 2px 2px;
}

.admin-performance-bar.reply { background: #1f1f1f; }
.admin-performance-bar.completed { background: #69a77d; }
.admin-performance-bar.notes { background: #e2ae1d; }

.admin-performance-day-label {
  color: var(--muted);
  font-size: 6.8px;
  text-align: center;
  white-space: nowrap;
}

.admin-workload-list {
  display: grid;
  gap: 11px;
  margin-top: 15px;
}

.admin-workload-row {
  display: grid;
  gap: 7px;
}

.admin-workload-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #44474f;
  font-size: 9px;
}

.admin-workload-heading strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-workload-heading span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 8px;
}

.admin-workload-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #eceef1;
}

.admin-workload-fill {
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
  background: linear-gradient(90deg, #e2ae1d, #f0ca5f);
}

.admin-workload-urgent {
  color: #982d3a;
  font-size: 7.7px;
}

.admin-performance-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.admin-performance-card {
  display: grid;
  grid-template-columns: minmax(190px, 1.15fr) minmax(0, 2.85fr);
  gap: 15px;
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 19px;
  background: #fff;
}

.admin-performance-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.admin-performance-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 16px;
  color: #5b4300;
  background: var(--soft-gold);
  font-size: 16px;
  font-weight: 950;
}

.admin-performance-name {
  min-width: 0;
}

.admin-performance-name strong,
.admin-performance-name span,
.admin-performance-name small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-performance-name strong { font-size: 11px; }

.admin-performance-name span {
  margin-top: 4px;
  color: #725400;
  font-size: 8.5px;
  font-weight: 850;
}

.admin-performance-name small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
}

.admin-performance-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.admin-performance-metric {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--background);
}

.admin-performance-metric span {
  color: var(--muted);
  font-size: 7.3px;
}

.admin-performance-metric strong {
  overflow: hidden;
  color: #303238;
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-performance-card-footer {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 15px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 7.8px;
}

.admin-performance-status {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 7.4px;
  font-weight: 900;
}

.admin-performance-status.active {
  color: #12682f;
  background: #e6f8eb;
}

.admin-performance-status.inactive {
  color: #982d3a;
  background: #fdecef;
}

.admin-performance-empty {
  display: grid;
  min-height: 140px;
  place-items: center;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

@media (max-width: 1180px) {
  .admin-performance-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-performance-main-grid {
    grid-template-columns: 1fr;
  }

  .admin-performance-card {
    grid-template-columns: 1fr;
  }

  .admin-performance-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 850px) {
  .admin-performance-filter {
    grid-template-columns: 1fr 1fr;
  }

  .admin-performance-presets {
    grid-column: 1 / -1;
  }
}

@media (max-width: 650px) {
  .admin-performance-view {
    padding: 13px;
  }

  .admin-performance-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-performance-summary-grid,
  .admin-performance-filter,
  .admin-performance-metrics {
    grid-template-columns: 1fr;
  }

  .admin-performance-presets {
    grid-column: auto;
  }

  .admin-performance-chart {
    grid-template-columns: repeat(30, minmax(24px, 1fr));
  }
}


/* ================================================================
   MRXPANEL V9.3 Ã¢ÂÂ ADMIN IDENTITY CLEANUP
   Role hanya terlihat pada pengaturan hak akses.
   ================================================================ */

#adminRoleLabel {
  display: none !important;
}

.admin-performance-name > span {
  display: none !important;
}


/* ================================================================
   MRXPANEL V10 Ã¢ÂÂ PRIVATE TICKET ATTACHMENTS
   ================================================================ */

.reply-footer-left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.reply-attachment-preview {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 30px;
  gap: 10px;
  align-items: center;
  margin-bottom: 9px;
  padding: 9px 10px;
  border: 1px solid rgba(226, 174, 29, .42);
  border-radius: 13px;
  background: #fffaf0;
}

.reply-attachment-icon {
  display: grid;
  width: 42px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: #5f4700;
  background: var(--soft-gold);
  font-size: 8px;
  font-weight: 950;
}

.reply-attachment-preview > div {
  min-width: 0;
}

.reply-attachment-preview strong,
.reply-attachment-preview small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reply-attachment-preview strong { font-size: 9.5px; }
.reply-attachment-preview small { margin-top: 3px; color: var(--muted); font-size: 8px; }

.reply-attachment-preview button {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: #8f2936;
  background: #fdecef;
  font-size: 18px;
}

.ticket-message-attachment {
  display: block;
  min-width: 210px;
  max-width: 100%;
  overflow: hidden;
  margin-top: 8px;
  border: 1px solid rgba(120, 122, 130, .22);
  border-radius: 13px;
  color: inherit;
  background: rgba(255, 255, 255, .72);
  text-decoration: none;
}

.ticket-message-attachment img {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  background: #eceef1;
}

.ticket-message-attachment-info {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 9px;
}

.ticket-message-attachment-info > span {
  display: grid;
  width: 38px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  color: #5f4700;
  background: var(--soft-gold);
  font-size: 7px;
  font-weight: 950;
}

.ticket-message-attachment-info > div { min-width: 0; }
.ticket-message-attachment-info strong,
.ticket-message-attachment-info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ticket-message-attachment-info strong { font-size: 9px; }
.ticket-message-attachment-info small { margin-top: 3px; color: var(--muted); font-size: 7.5px; }

@media (max-width: 620px) {
  .reply-footer { align-items: stretch; flex-direction: column; }
  .reply-footer-left { justify-content: space-between; }
  .ticket-message-attachment { min-width: 180px; }
}


/* ================================================================
   MRXPANEL V11 Ã¢ÂÂ ADMIN TICKET ALERTS
   ================================================================ */

.ticket-nav-with-badge {
  position: relative;
}

.admin-ticket-nav-badge {
  display: grid;
  min-width: 22px;
  height: 22px;
  margin-left: auto;
  padding: 0 6px;
  place-items: center;
  border-radius: 999px;
  color: #171717;
  background: #f5c842;
  font-size: 8px;
  font-style: normal;
  font-weight: 950;
}

.admin-ticket-alerts-anchor {
  position: relative;
}

.admin-ticket-alerts-button {
  position: relative;
}

.admin-ticket-alerts-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: #d83c4d;
  font-size: 7px;
  font-weight: 950;
}

.admin-ticket-alerts-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1000;
  width: min(390px, calc(100vw - 28px));
  max-height: min(610px, calc(100vh - 105px));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(10, 10, 10, .18);
}

.admin-ticket-alerts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px;
  border-bottom: 1px solid var(--border);
}

.admin-ticket-alerts-header > div {
  display: grid;
  gap: 3px;
}

.admin-ticket-alerts-header strong {
  font-size: 11px;
}

.admin-ticket-alerts-header span {
  color: var(--muted);
  font-size: 8px;
}

.admin-ticket-alerts-header .text-button {
  padding: 5px;
  color: #795b00;
  border: 0;
  background: transparent;
  font-size: 8px;
  font-weight: 900;
}

.admin-ticket-alerts-permission {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px;
  padding: 11px;
  border-radius: 14px;
  color: #654d08;
  background: #fff4cf;
  font-size: 8px;
  line-height: 1.45;
}

.admin-ticket-alerts-permission span {
  flex: 1;
}

.admin-ticket-alerts-state {
  padding: 34px 15px;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

.admin-ticket-alerts-list {
  max-height: 500px;
  overflow-y: auto;
}

.admin-ticket-alert-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  width: 100%;
  padding: 13px 15px;
  border: 0;
  border-bottom: 1px solid var(--border);
  color: #292b31;
  background: #fff;
  text-align: left;
}

.admin-ticket-alert-item:hover {
  background: #fffaf0;
}

.admin-ticket-alert-item.unread {
  background: #fff8e6;
}

.admin-ticket-alert-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  color: #604700;
  background: #ffecae;
  font-size: 14px;
}

.admin-ticket-alert-copy {
  min-width: 0;
}

.admin-ticket-alert-copy strong,
.admin-ticket-alert-copy span,
.admin-ticket-alert-copy small {
  display: block;
}

.admin-ticket-alert-copy strong {
  overflow: hidden;
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-ticket-alert-copy span {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 4px;
  color: #555860;
  font-size: 8.3px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.admin-ticket-alert-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 7.5px;
}

.admin-ticket-alert-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 999px;
  background: #d83c4d;
}

@media (max-width: 650px) {
  .admin-ticket-alerts-panel {
    position: fixed;
    top: 72px;
    right: 10px;
    left: 10px;
    width: auto;
  }
}


/* ================================================================
   MRXPANEL V12 Ã¢ÂÂ TICKET SLA & ESCALATION
   ================================================================ */

.ticket-sla-nav-badge {
  display: grid;
  min-width: 22px;
  height: 22px;
  margin-left: auto;
  padding: 0 6px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #d83c4d;
  font-size: 8px;
  font-style: normal;
  font-weight: 950;
}

.ticket-sla-view {
  min-height: 0;
  overflow-y: auto;
  padding: 22px;
}

.ticket-sla-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
}

.ticket-sla-heading h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.ticket-sla-heading > div > span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 9.5px;
}

.ticket-sla-content {
  display: grid;
  gap: 15px;
}

.ticket-sla-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ticket-sla-summary-card {
  display: grid;
  gap: 8px;
  min-height: 122px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 11px 28px rgba(17, 17, 17, .04);
}

.ticket-sla-summary-card.danger {
  color: #fff;
  border-color: #8f2736;
  background:
    radial-gradient(circle at 85% 20%, rgba(255,255,255,.13), transparent 38%),
    linear-gradient(145deg, #b43648, #7e1f2d);
}

.ticket-sla-summary-card.warning {
  color: #332500;
  border-color: #e9c85c;
  background:
    radial-gradient(circle at 85% 20%, rgba(255,255,255,.42), transparent 38%),
    linear-gradient(145deg, #f6d873, #e8bd37);
}

.ticket-sla-summary-card span {
  color: #646770;
  font-size: 9.7px;
  font-weight: 850;
}

.ticket-sla-summary-card.danger span,
.ticket-sla-summary-card.danger small {
  color: rgba(255,255,255,.78);
}

.ticket-sla-summary-card.warning span,
.ticket-sla-summary-card.warning small {
  color: rgba(51,37,0,.68);
}

.ticket-sla-summary-card strong {
  font-size: 25px;
  line-height: 1.08;
}

.ticket-sla-summary-card small {
  color: var(--muted);
  font-size: 8.4px;
}

.ticket-sla-filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
}

.ticket-sla-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ticket-sla-filter-button {
  min-height: 35px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: #565961;
  background: var(--background);
  font-size: 8.5px;
  font-weight: 850;
}

.ticket-sla-filter-button.active,
.ticket-sla-filter-button:hover {
  color: #1f2024;
  border-color: rgba(226,174,29,.65);
  background: var(--soft-gold);
}

.ticket-sla-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(330px, 100%);
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--background);
}

.ticket-sla-search input {
  min-width: 0;
  flex: 1;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 8.8px;
}

.ticket-sla-list {
  display: grid;
  gap: 11px;
  margin-top: 15px;
}

.ticket-sla-item {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(250px, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-left-width: 5px;
  border-radius: 17px;
  background: #fff;
}

.ticket-sla-item.breached { border-left-color: #d83c4d; }
.ticket-sla-item.warning { border-left-color: #e2ae1d; }
.ticket-sla-item.unassigned { border-left-color: #7f8692; }
.ticket-sla-item.safe { border-left-color: #6ca67d; }

.ticket-sla-main {
  min-width: 0;
}

.ticket-sla-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ticket-sla-ticket-number {
  color: #765700;
  font-size: 8px;
  font-weight: 950;
  white-space: nowrap;
}

.ticket-sla-priority {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 7px;
  font-weight: 950;
}

.ticket-sla-priority.normal {
  color: #4f535a;
  background: #eceef1;
}

.ticket-sla-priority.high {
  color: #7a5600;
  background: #fff0c0;
}

.ticket-sla-priority.urgent {
  color: #9a2837;
  background: #fde9ed;
}

.ticket-sla-main h3 {
  overflow: hidden;
  margin: 7px 0 0;
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-sla-main p {
  overflow: hidden;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 8.3px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-sla-timers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ticket-sla-timer {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 13px;
  background: var(--background);
}

.ticket-sla-timer span {
  color: var(--muted);
  font-size: 7.3px;
}

.ticket-sla-timer strong {
  font-size: 9.3px;
}

.ticket-sla-timer small {
  color: var(--muted);
  font-size: 7px;
}

.ticket-sla-actions {
  display: grid;
  gap: 7px;
  justify-items: end;
}

.ticket-sla-state {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 7.4px;
  font-weight: 950;
}

.ticket-sla-state.breached {
  color: #9a2837;
  background: #fde9ed;
}

.ticket-sla-state.warning {
  color: #7a5600;
  background: #fff0c0;
}

.ticket-sla-state.unassigned {
  color: #4f535a;
  background: #eceef1;
}

.ticket-sla-state.safe {
  color: #12682f;
  background: #e6f8eb;
}

.ticket-sla-empty {
  display: grid;
  min-height: 160px;
  place-items: center;
  color: var(--muted);
  font-size: 9px;
}

.ticket-sla-settings-modal {
  width: min(760px, calc(100vw - 28px));
}

.ticket-sla-settings-note {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 8.8px;
  line-height: 1.5;
}

.ticket-sla-settings-list {
  display: grid;
  gap: 11px;
}

.ticket-sla-setting-row {
  display: grid;
  grid-template-columns: minmax(120px, .7fr) repeat(3, minmax(110px, 1fr)) auto;
  gap: 9px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--background);
}

.ticket-sla-setting-row > strong {
  align-self: center;
  font-size: 10px;
}

.ticket-sla-setting-row label {
  display: grid;
  gap: 5px;
  color: #4f525a;
  font-size: 7.7px;
  font-weight: 850;
}

.ticket-sla-setting-row input[type="number"] {
  min-height: 38px;
  border-radius: 11px;
}

.ticket-sla-setting-active {
  display: flex !important;
  align-items: center;
  gap: 6px !important;
  min-height: 38px;
}

@media (max-width: 1100px) {
  .ticket-sla-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ticket-sla-item {
    grid-template-columns: 1fr;
  }

  .ticket-sla-actions {
    justify-items: start;
  }
}

@media (max-width: 760px) {
  .ticket-sla-view {
    padding: 13px;
  }

  .ticket-sla-heading,
  .ticket-sla-filter-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .ticket-sla-search {
    width: 100%;
  }

  .ticket-sla-setting-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .ticket-sla-summary-grid,
  .ticket-sla-timers {
    grid-template-columns: 1fr;
  }
}

.ticket-sla-heading::after {
  content: "Eskalasi otomatis aktif";
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #cde8d3;
  border-radius: 999px;
  color: #1f6d35;
  background: #eefaf1;
  font-size: 7.8px;
  font-weight: 900;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .ticket-sla-heading::after { align-self: flex-start; }
}


/* ================================================================
   MRXPANEL V13.1 Ã¢ÂÂ SCROLLBAR SERASI
   ================================================================ */

/* Firefox */
.sidebar,
.admin-ticket-alerts-list,
.ticket-sla-view,
.ticket-list,
.ticket-conversation,
main,
body {
  scrollbar-width: thin;
  scrollbar-color: #d9aa24 #171717;
}

/* Chrome, Edge, Safari */
.sidebar::-webkit-scrollbar,
.admin-ticket-alerts-list::-webkit-scrollbar,
.ticket-sla-view::-webkit-scrollbar,
.ticket-list::-webkit-scrollbar,
.ticket-conversation::-webkit-scrollbar,
main::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.sidebar::-webkit-scrollbar-track,
.admin-ticket-alerts-list::-webkit-scrollbar-track,
.ticket-sla-view::-webkit-scrollbar-track,
.ticket-list::-webkit-scrollbar-track,
.ticket-conversation::-webkit-scrollbar-track,
main::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: #171717;
  border-radius: 999px;
}

.sidebar::-webkit-scrollbar-thumb,
.admin-ticket-alerts-list::-webkit-scrollbar-thumb,
.ticket-sla-view::-webkit-scrollbar-thumb,
.ticket-list::-webkit-scrollbar-thumb,
.ticket-conversation::-webkit-scrollbar-thumb,
main::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  min-height: 42px;
  border: 2px solid #171717;
  border-radius: 999px;
  background: linear-gradient(180deg, #f1c94a, #c89412);
}

.sidebar::-webkit-scrollbar-thumb:hover,
.admin-ticket-alerts-list::-webkit-scrollbar-thumb:hover,
.ticket-sla-view::-webkit-scrollbar-thumb:hover,
.ticket-list::-webkit-scrollbar-thumb:hover,
.ticket-conversation::-webkit-scrollbar-thumb:hover,
main::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ffd85b, #dfa817);
}

/* Mengurangi tampilan tombol panah scrollbar bawaan */
.sidebar::-webkit-scrollbar-button,
.admin-ticket-alerts-list::-webkit-scrollbar-button,
.ticket-sla-view::-webkit-scrollbar-button,
.ticket-list::-webkit-scrollbar-button,
.ticket-conversation::-webkit-scrollbar-button,
main::-webkit-scrollbar-button,
body::-webkit-scrollbar-button {
  width: 0;
  height: 0;
  display: none;
}


/* ================================================================
   MRXPANEL V14 Ã¢ÂÂ APP VERSION CONTROL
   ================================================================ */

.app-version-view {
  min-height: 0;
  overflow-y: auto;
  padding: 22px;
}

.app-version-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
}

.app-version-heading h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.app-version-heading span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 9.5px;
}

.app-version-content {
  display: grid;
  gap: 15px;
}

.app-version-current-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.app-version-current-card > div {
  display: grid;
  gap: 7px;
  min-height: 110px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
}

.app-version-current-card span {
  color: var(--muted);
  font-size: 8.8px;
  font-weight: 850;
}

.app-version-current-card strong {
  font-size: 20px;
}

.app-version-form-panel {
  padding: 18px;
}

.app-version-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.app-version-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
}

.app-version-form label {
  display: grid;
  gap: 6px;
}

.app-version-form label > span {
  color: #4f525a;
  font-size: 8px;
  font-weight: 850;
}

.app-version-form textarea {
  resize: vertical;
  min-height: 110px;
}

.app-version-warning-box {
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid #eed48a;
  border-radius: 15px;
  color: #6d5208;
  background: #fff7dc;
}

.app-version-warning-box strong {
  font-size: 9px;
}

.app-version-warning-box span {
  font-size: 8px;
  line-height: 1.5;
}

.app-version-actions {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 1050px) {
  .app-version-current-card,
  .app-version-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .app-version-view {
    padding: 13px;
  }

  .app-version-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .app-version-current-card,
  .app-version-grid {
    grid-template-columns: 1fr;
  }
}


/* ================================================================
   MRXPANEL V15 Ã¢ÂÂ SALDO & STATUS MEMBER PERFECTPANEL
   ================================================================ */

.member-summary-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.member-summary-card.balance {
  border-color: rgba(32, 119, 70, 0.28);
  background:
    radial-gradient(circle at top right, rgba(32, 119, 70, 0.12), transparent 50%),
    #f7fff9;
}

.member-summary-card.balance strong {
  overflow: hidden;
  color: #185f38;
  font-size: 21px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-mini-badge.balance {
  color: #5f4600;
  background: #fff0b6;
}

.member-mini-badge.balance.unavailable {
  color: #666971;
  background: #f0f1f3;
}

.member-mini-badge.suspended {
  color: #922936;
  background: #fdecef;
}

.member-detail-status-group {
  display: grid;
  flex: 0 0 auto;
  justify-items: end;
  gap: 6px;
}

.member-detail-status.active {
  color: #12682f;
  background: #e6f8eb;
}

.member-detail-status.suspended {
  color: #922936;
  background: #fdecef;
}

.member-detail-status.unknown {
  color: #7d6116;
  background: #fff4d6;
}

.member-device-status {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 7.8px;
  font-weight: 850;
}

.member-device-status.active {
  color: #28568f;
  background: #eaf3ff;
}

.member-device-status.inactive {
  color: #666971;
  background: #f0f1f3;
}

.member-live-balance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(226, 174, 29, 0.35);
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(226, 174, 29, 0.20), transparent 46%),
    linear-gradient(145deg, #111, #242424);
  box-shadow: 0 14px 30px rgba(17, 17, 17, 0.12);
}

.member-live-balance-copy {
  min-width: 0;
}

.member-live-balance-copy > span,
.member-live-balance-copy small {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 9px;
}

.member-live-balance-copy strong {
  display: block;
  overflow: hidden;
  margin: 6px 0;
  font-size: 27px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-live-balance-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.member-live-balance-actions .button.ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.member-profile-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.member-balance-guide {
  padding: 14px 16px;
  border: 1px solid rgba(226, 174, 29, 0.32);
  border-radius: 17px;
  background: #fff9e8;
}

.member-balance-guide strong {
  color: #5f4600;
  font-size: 10.5px;
}

.member-balance-guide p {
  margin: 6px 0 0;
  color: #625b48;
  font-size: 9px;
  line-height: 1.55;
}

@media (max-width: 1280px) {
  .member-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .member-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-live-balance-card {
    align-items: stretch;
    flex-direction: column;
  }

  .member-live-balance-actions {
    width: 100%;
  }

  .member-live-balance-actions .button {
    flex: 1;
  }

  .member-detail-status-group {
    width: 100%;
    justify-items: start;
  }

  .member-profile-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .member-summary-grid,
  .member-profile-meta {
    grid-template-columns: 1fr;
  }

  .member-live-balance-actions {
    flex-direction: column;
  }

  .member-list-badges {
    grid-column: 2;
    justify-items: start;
  }
}


/* ================================================================
   MRXPANEL V16 Ã¢ÂÂ DATA PESANAN PERFECTPANEL
   ================================================================ */

.member-live-balance-actions .button.ghost {
  background: transparent;
  color: #fff;
}

.order-center-view {
  min-height: 0;
  overflow-y: auto;
  padding: 22px;
}

.order-summary-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 0.85fr)
    repeat(2, minmax(190px, 1.15fr))
    repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.order-summary-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: 116px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(17, 17, 17, 0.05);
}

.order-summary-card > span {
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 850;
}

.order-summary-card > strong {
  overflow: hidden;
  font-size: 23px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-summary-card > small {
  align-self: end;
  color: var(--muted);
  font-size: 8.3px;
  line-height: 1.4;
}

.order-summary-card.money {
  border-color: rgba(226, 174, 29, 0.34);
  background: #fffaf0;
}

.order-summary-card.money strong {
  color: #775800;
  overflow: visible;
  max-width: 100%;
  font-size: clamp(14px, 1.28vw, 22px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  text-overflow: clip;
}

.order-summary-card.profit {
  border-color: rgba(20, 135, 79, 0.28);
  background: #f3fff8;
}

.order-summary-card.profit strong {
  color: #116d42;
  overflow: visible;
  max-width: 100%;
  font-size: clamp(14px, 1.28vw, 22px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  text-overflow: clip;
}

.order-summary-card.monthly-profit {
  border-color: rgba(195, 143, 12, 0.34);
  background: linear-gradient(145deg, #fffdf5, #f4fff8);
}

.order-monthly-finance {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(195, 143, 12, 0.24);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(226, 174, 29, 0.13), transparent 34%),
    linear-gradient(145deg, #fffdf8, #fff);
  box-shadow: 0 12px 30px rgba(17, 17, 17, 0.045);
}

.order-monthly-finance-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
}

.order-monthly-finance-header > div > span {
  color: #9a7008;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.order-monthly-finance-header h3 {
  margin: 3px 0 0;
  font-size: 17px;
  line-height: 1.25;
}

.order-monthly-finance-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.order-monthly-header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  gap: 10px;
}

.order-monthly-spreadsheet-button {
  min-height: 38px;
  white-space: nowrap;
}

.order-monthly-spreadsheet-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.order-monthly-period-control {
  display: grid;
  flex: 0 0 auto;
  gap: 5px;
  min-width: 170px;
}

.order-monthly-period-control > span {
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 850;
}

.order-monthly-period-control > input {
  width: 100%;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid rgba(195, 143, 12, 0.34);
  border-radius: 12px;
  outline: none;
  background: rgba(255, 255, 255, 0.9);
  color: #5e480b;
  font-family: inherit;
  font-size: 10px;
  font-weight: 750;
}

.order-monthly-period-control > input:focus {
  border-color: #c38f0c;
  box-shadow: 0 0 0 3px rgba(195, 143, 12, 0.12);
}

.order-monthly-period-control > input:disabled {
  cursor: wait;
  opacity: 0.65;
}

.order-monthly-finance-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 13px;
}

.order-monthly-finance-grid .order-summary-card {
  min-height: 148px;
}

.order-summary-card.monthly-profit strong {
  color: #116d42;
  overflow: visible;
  max-width: 100%;
  font-size: clamp(14px, 1.28vw, 22px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  text-overflow: clip;
}

.order-summary-card.monthly-profit > small {
  white-space: normal;
}

.order-summary-card.monthly-panel-cost {
  border-color: rgba(189, 112, 11, 0.28);
  background: #fff9ef;
}

.order-summary-card.monthly-cost-per-order {
  border-color: rgba(42, 108, 196, 0.25);
  background: #f5f9ff;
}

.order-summary-card.monthly-tax {
  border-color: rgba(115, 78, 181, 0.26);
  background: #faf7ff;
}

.order-summary-card.monthly-net-profit {
  border-color: rgba(103, 111, 126, 0.25);
  background: #f8f9fb;
}

.order-summary-card.monthly-net-profit.is-positive {
  border-color: rgba(20, 135, 79, 0.34);
  background: #effcf5;
}

.order-summary-card.monthly-net-profit.is-negative {
  border-color: rgba(188, 47, 65, 0.3);
  background: #fff2f4;
}

.order-summary-card.monthly-net-profit.is-neutral {
  border-color: rgba(160, 104, 18, 0.25);
  background: #fffaf0;
}

.order-summary-card.monthly-panel-cost > strong,
.order-summary-card.monthly-cost-per-order > strong,
.order-summary-card.monthly-tax > strong,
.order-summary-card.monthly-net-profit > strong {
  overflow: visible;
  max-width: 100%;
  font-size: clamp(14px, 1.28vw, 22px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  text-overflow: clip;
}

.order-summary-card.monthly-panel-cost > strong {
  color: #8a5708;
}

.order-summary-card.monthly-cost-per-order > strong {
  color: #28568f;
}

.order-summary-card.monthly-tax > strong {
  color: #6745a6;
}

.order-summary-card.monthly-net-profit > strong {
  color: #505966;
}

.order-summary-card.monthly-net-profit.is-positive > strong {
  color: #116d42;
}

.order-summary-card.monthly-net-profit.is-negative > strong {
  color: #a22939;
}

.order-summary-card.monthly-net-profit.is-neutral > strong {
  color: #87570f;
}

.order-summary-card.monthly-panel-cost > small,
.order-summary-card.monthly-cost-per-order > small,
.order-summary-card.monthly-tax > small,
.order-summary-card.monthly-net-profit > small {
  white-space: normal;
}

.order-monthly-cost-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.order-monthly-cost-editor > label {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(189, 112, 11, 0.28);
  border-radius: 10px;
  background: #fff;
}

.order-monthly-cost-editor > label > span {
  padding-left: 8px;
  color: #8a5708;
  font-size: 8.5px;
  font-weight: 850;
}

.order-monthly-cost-editor input {
  width: 100%;
  min-width: 0;
  padding: 7px 8px 7px 4px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #5e480b;
  font-family: inherit;
  font-size: 9px;
  font-weight: 750;
}

.order-monthly-cost-editor button {
  padding: 7px 9px;
  border: 0;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-family: inherit;
  font-size: 8.5px;
  font-weight: 850;
  cursor: pointer;
}

.order-monthly-cost-editor button:hover {
  background: #2c2c2c;
}

.order-summary-card.processing {
  border-color: rgba(42, 108, 196, 0.25);
  background: #f5f9ff;
}

.order-summary-card.processing strong {
  color: #28568f;
}

.order-summary-card.completed {
  border-color: rgba(32, 119, 70, 0.25);
  background: #f5fff8;
}

.order-summary-card.completed strong {
  color: #185f38;
}

.order-summary-card.canceled {
  border-color: rgba(188, 47, 65, 0.22);
  background: #fff6f7;
}

.order-summary-card.canceled strong {
  color: #922936;
}

.order-summary-card.partial {
  border-color: rgba(160, 104, 18, 0.25);
  background: #fffaf0;
}

.order-summary-card.partial strong {
  color: #87570f;
}

.order-monthly-tax-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.order-monthly-tax-editor > label {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(115, 78, 181, 0.28);
  border-radius: 10px;
  background: #fff;
}

.order-monthly-tax-editor > label > input {
  width: 100%;
  min-width: 0;
  padding: 8px;
  border: 0;
  outline: none;
  background: transparent;
  color: #51358a;
  font-family: inherit;
  font-size: 9.5px;
  font-weight: 800;
}

.order-monthly-tax-editor > label > span {
  padding-right: 8px;
  color: #6745a6;
  font-size: 9px;
  font-weight: 900;
}

.order-monthly-tax-editor > button {
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: #6745a6;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 8.5px;
  font-weight: 850;
}

.order-monthly-tax-editor > button:hover {
  background: #55378d;
}

.order-center-controls {
  display: grid;
  grid-template-columns:
    minmax(300px, 1fr)
    180px
    145px
    145px
    auto;
  gap: 10px;
  margin-bottom: 18px;
}

.order-search-box,
.order-date-control {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.order-search-box input,
.order-date-control input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.order-date-control {
  display: grid;
  grid-template-columns: auto 1fr;
}

.order-date-control span {
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 850;
}

.order-center-workspace {
  display: grid;
  grid-template-columns: minmax(440px, 1fr) minmax(380px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.order-list-panel,
.order-detail-panel {
  min-height: 600px;
}

.order-center-list {
  display: grid;
  gap: 10px;
  margin-top: 15px;
}

.order-list-item {
  display: grid;
  gap: 7px;
  width: 100%;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: inherit;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.order-list-item:hover {
  border-color: rgba(226, 174, 29, 0.65);
  transform: translateY(-1px);
  box-shadow: 0 9px 22px rgba(17, 17, 17, 0.06);
}

.order-list-item.active {
  border-color: var(--gold);
  background: #fffaf0;
  box-shadow: 0 9px 22px rgba(226, 174, 29, 0.14);
}

.order-list-item-header,
.order-list-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-list-item-header > strong {
  font-size: 10.5px;
}

.order-list-item h3 {
  overflow: hidden;
  margin: 0;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-list-item p {
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 8.8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-list-link {
  color: #4f525a !important;
}

.order-list-item-footer {
  padding-top: 3px;
}

.order-list-item-footer strong {
  color: #715400;
  font-size: 10px;
}

.order-list-item-footer span {
  color: var(--muted);
  font-size: 8px;
}

.order-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 999px;
  color: #666971;
  background: #f0f1f3;
  font-size: 8px;
  font-weight: 900;
  white-space: nowrap;
}

.order-status.pending,
.order-status.processing,
.order-status.in_progress {
  color: #765600;
  background: #fff2c5;
}

.order-status.completed {
  color: #12682f;
  background: #e6f8eb;
}

.order-status.partial {
  color: #7a4a0f;
  background: #fff0dc;
}

.order-status.canceled,
.order-status.failed {
  color: #922936;
  background: #fdecef;
}

.order-load-more {
  width: 100%;
  margin-top: 13px;
}

.order-detail-empty {
  display: grid;
  min-height: 520px;
  place-content: center;
  place-items: center;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.order-detail-empty-icon {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 22px;
  color: #251d06;
  background: var(--soft-gold);
  font-size: 28px;
}

.order-detail-empty h2 {
  margin: 14px 0 5px;
  color: #202126;
  font-size: 15px;
}

.order-detail-empty p {
  max-width: 320px;
  margin: 0;
  font-size: 10px;
  line-height: 1.5;
}

.order-detail-content {
  display: grid;
  gap: 15px;
}

.order-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.order-detail-header h2 {
  margin: 3px 0 0;
  font-size: 18px;
}

.order-detail-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 8.5px;
}

.order-charge-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(226, 174, 29, 0.35);
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(226, 174, 29, 0.20), transparent 46%),
    linear-gradient(145deg, #111, #242424);
}

.order-charge-card > div:first-child {
  min-width: 0;
}

.order-charge-card span,
.order-charge-card small {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 9px;
}

.order-charge-card strong {
  display: block;
  overflow: hidden;
  margin: 6px 0;
  font-size: 26px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-charge-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.order-charge-actions .button.ghost {
  border-color: rgba(255, 255, 255, 0.30);
  color: #fff;
  background: transparent;
}

.order-profit-detail-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 0.9fr));
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(20, 135, 79, 0.25);
  border-radius: 20px;
  background: linear-gradient(145deg, #f2fff7, #fffdf5);
}

.order-profit-detail-card > div {
  display: grid;
  min-width: 0;
  align-content: center;
  padding: 12px;
  border: 1px solid rgba(20, 135, 79, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.order-profit-detail-card span,
.order-profit-detail-card small {
  color: var(--muted);
  font-size: 8.3px;
  line-height: 1.4;
}

.order-profit-detail-card strong {
  display: block;
  min-width: 0;
  margin-top: 6px;
  overflow-wrap: anywhere;
  color: #116d42;
  font-size: clamp(14px, 1.1vw, 19px);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.order-profit-detail-main strong {
  font-size: clamp(18px, 1.45vw, 24px);
}

.order-profit-detail-main small {
  display: block;
  margin-top: 6px;
}

.order-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.order-detail-grid > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--background);
}

.order-detail-grid span,
.order-link-card span {
  display: block;
  color: var(--muted);
  font-size: 8.3px;
}

.order-detail-grid strong {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}

.order-link-card > div {
  min-width: 0;
}

.order-link-card strong {
  display: block;
  overflow: hidden;
  max-width: 100%;
  margin-top: 5px;
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-readonly-note {
  padding: 14px 16px;
  border: 1px solid rgba(42, 108, 196, 0.24);
  border-radius: 17px;
  background: #f4f8ff;
}

.order-readonly-note strong {
  color: #28568f;
  font-size: 10.5px;
}

.order-readonly-note p {
  margin: 6px 0 0;
  color: #4f5d6e;
  font-size: 9px;
  line-height: 1.55;
}

@media (max-width: 1500px) {
  .order-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .order-monthly-finance-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1280px) {
  .order-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .order-monthly-finance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-center-controls {
    grid-template-columns: minmax(280px, 1fr) 170px 140px 140px;
  }

  .order-center-controls .button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1050px) {
  .order-center-workspace {
    grid-template-columns: 1fr;
  }

  .order-list-panel,
  .order-detail-panel {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .order-center-view {
    padding: 13px;
  }

  .order-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .order-monthly-finance {
    padding: 14px;
  }

  .order-monthly-finance-header {
    align-items: stretch;
    flex-direction: column;
  }

  .order-monthly-header-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .order-monthly-period-control {
    min-width: 0;
  }

  .order-monthly-spreadsheet-button {
    width: 100%;
  }

  .order-monthly-finance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .order-center-controls {
    grid-template-columns: 1fr 1fr;
  }

  .order-search-box {
    grid-column: 1 / -1;
  }

  .order-center-controls select,
  .order-center-controls .button {
    grid-column: 1 / -1;
  }

  .order-charge-card {
    align-items: stretch;
    flex-direction: column;
  }

  .order-profit-detail-card {
    grid-template-columns: 1fr 1fr;
  }

  .order-profit-detail-main {
    grid-column: 1 / -1;
  }

  .order-charge-actions {
    width: 100%;
  }

  .order-charge-actions .button {
    flex: 1;
  }
}

@media (max-width: 520px) {
  .order-summary-grid,
  .order-monthly-finance-grid,
  .order-center-controls,
  .order-detail-grid {
    grid-template-columns: 1fr;
  }

  .order-search-box,
  .order-center-controls select,
  .order-center-controls .button {
    grid-column: 1;
  }

  .order-charge-actions {
    flex-direction: column;
  }

  .order-profit-detail-card {
    grid-template-columns: 1fr;
  }

  .order-profit-detail-main {
    grid-column: 1;
  }

  .order-link-card {
    align-items: stretch;
    flex-direction: column;
  }
}

/* ================================================================
   MRXPANEL V18.7 Ã¢ÂÂ AUTO LOAD & RIWAYAT PEMAKAIAN SALDO MEMBER
   ================================================================ */
.member-order-usage-card {
  grid-column: 1 / -1;
  min-height: 0;
}

.member-order-usage-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.member-order-usage-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.member-order-usage-summary article {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--background);
}

.member-order-usage-summary span,
.member-order-usage-note {
  color: var(--muted);
  font-size: 8.5px;
}

.member-order-usage-summary strong {
  font-size: 14px;
}

.member-order-usage-note {
  display: block;
  margin-top: 10px;
  line-height: 1.45;
}

.member-order-usage-list {
  max-height: 520px;
  overflow-y: auto;
  padding-right: 3px;
}

.member-order-usage-more {
  padding: 10px;
  border-radius: 12px;
  color: var(--muted);
  background: var(--background);
  font-size: 8.5px;
  text-align: center;
}

@media (max-width: 680px) {
  .member-order-usage-summary {
    grid-template-columns: 1fr;
  }

  .member-order-usage-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* V18.8 Ã¢ÂÂ Daftar member website (dipertahankan pada V18.9) */
.website-member-panel {
  margin-top: 24px;
  overflow: hidden;
}

.website-member-heading {
  align-items: flex-start;
  gap: 18px;
}

.website-member-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.website-member-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.website-member-summary article {
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid #e6e8ec;
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff, #f7f8fa);
}

.website-member-summary span {
  display: block;
  margin-bottom: 7px;
  color: #727987;
  font-size: 12px;
}

.website-member-summary strong {
  display: block;
  overflow: hidden;
  color: #17191d;
  font-size: clamp(18px, 2vw, 25px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.website-member-controls {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) repeat(3, minmax(160px, 220px));
  gap: 10px;
  align-items: end;
  margin-bottom: 8px;
}

.website-member-controls select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #dfe2e8;
  border-radius: 15px;
  background: #fff;
  color: #20242b;
  font: inherit;
}

.website-member-filter-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.website-member-filter-field > span {
  padding-left: 4px;
  color: #737985;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .03em;
}

.website-member-filter-hint {
  margin: 0 4px 14px;
  color: #747b87;
  font-size: 11px;
  line-height: 1.45;
}

.website-member-filter-hint strong {
  color: #6f5200;
}

.website-member-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e2e5ea;
  border-radius: 18px;
  background: #fff;
}

.website-member-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
}

.website-member-table th,
.website-member-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #eceef2;
  color: #25282f;
  font-size: 13px;
  text-align: left;
  vertical-align: middle;
}

.website-member-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff6d8;
  color: #6a5200;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.website-member-table tbody tr:last-child td {
  border-bottom: 0;
}

.website-member-table tbody tr:hover {
  background: #fffaf0;
}

.website-member-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
}

.website-member-identity > div {
  min-width: 0;
}

.website-member-identity strong,
.website-member-identity small {
  display: block;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.website-member-identity small {
  margin-top: 3px;
  color: #7b818c;
  font-size: 11px;
}

.website-member-avatar {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, #ffd451, #e8ae0d);
  color: #17130a;
  font-weight: 900;
}

.website-member-money {
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  white-space: nowrap;
}

.website-member-status,
.website-member-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.website-member-status.active {
  background: #e3f8e9;
  color: #137333;
}

.website-member-status.inactive {
  background: #edf0f4;
  color: #626b78;
}

.website-member-status.suspended {
  background: #ffe7e7;
  color: #b4232f;
}

.website-member-link.linked {
  background: #e5f5ff;
  color: #175d87;
}

.website-member-link.unlinked {
  background: #fff2c7;
  color: #805d00;
}

.website-member-copy-button {
  margin-left: 7px;
  padding: 5px 8px;
  border: 1px solid #d8bd5b;
  border-radius: 9px;
  background: #fffaf0;
  color: #6f5200;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.website-member-copy-button:hover {
  background: #ffedab;
}

.website-member-note {
  margin: 13px 2px 0;
  color: #737985;
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 1000px) {
  .website-member-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


@media (max-width: 1280px) {
  .website-member-controls {
    grid-template-columns: minmax(280px, 1fr) repeat(2, minmax(170px, 1fr));
  }

  .website-member-filter-field:last-child {
    grid-column: 2 / -1;
  }
}

@media (max-width: 900px) {
  .website-member-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .website-member-search-wide {
    grid-column: 1 / -1;
  }

  .website-member-filter-field:last-child {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .website-member-heading-actions,
  .website-member-controls {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .website-member-heading-actions {
    justify-content: flex-start;
  }

  .website-member-summary {
    grid-template-columns: 1fr;
  }
}

/* V18.9 Ã¢ÂÂ saldo penyedia dan mutasi saldo member website */
.provider-balance-strip {
  margin: 16px 0 18px;
  padding: 18px 20px;
  border: 1px solid rgba(216, 163, 20, 0.28);
  border-radius: 22px;
  background: linear-gradient(135deg, #171717, #3a3118);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.provider-balance-strip > div {
  display: grid;
  gap: 4px;
}

.provider-balance-strip span,
.provider-balance-strip small {
  color: rgba(255, 255, 255, 0.7);
}

.provider-balance-strip strong {
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
  line-height: 1.1;
}

.provider-balance-strip .button {
  flex: 0 0 auto;
  background: #f7c843;
  border-color: #f7c843;
  color: #111;
}

.website-member-link + .website-member-copy-button,
.website-member-copy-button + .website-member-copy-button {
  margin-left: 6px;
}

.website-member-copy-button.mutation-button {
  background: #fff5cf;
  border-color: #e7ba2d;
  color: #624a00;
}

.website-member-mutation-modal {
  width: min(980px, calc(100vw - 32px));
  max-height: min(880px, calc(100vh - 32px));
  overflow: auto;
}

.mutation-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.mutation-summary-grid article {
  padding: 15px;
  border: 1px solid #e4e7eb;
  border-radius: 18px;
  background: #f7f8fa;
  display: grid;
  gap: 7px;
}

.mutation-summary-grid span {
  color: #737a86;
  font-size: 0.8rem;
}

.mutation-summary-grid strong {
  font-size: 1.05rem;
}

.mutation-warning {
  padding: 13px 15px;
  border-radius: 14px;
  background: #fff7d9;
  border: 1px solid #efd47a;
  color: #62500d;
  font-size: 0.86rem;
  line-height: 1.55;
  margin-bottom: 14px;
}

.mutation-list {
  display: grid;
  gap: 10px;
}

.mutation-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #e4e7eb;
  border-radius: 16px;
  background: #fff;
}

.mutation-row > div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.mutation-row strong {
  font-size: 0.92rem;
}

.mutation-row small {
  color: #767d87;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.mutation-row b {
  flex: 0 0 auto;
  font-size: 0.96rem;
  white-space: nowrap;
}

.mutation-row.in b,
.mutation-row.refund b {
  color: #087b45;
}

.mutation-row.out b {
  color: #b32231;
}

.mutation-row.cancel b {
  color: #ad6a00;
}

.mutation-empty {
  padding: 24px;
  border: 1px dashed #d7dbe1;
  border-radius: 16px;
  text-align: center;
  color: #727984;
}

@media (max-width: 900px) {
  .mutation-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .provider-balance-strip,
  .mutation-row {
    align-items: stretch;
    flex-direction: column;
  }

  .provider-balance-strip .button {
    width: 100%;
  }

  .mutation-summary-grid {
    grid-template-columns: 1fr;
  }

  .mutation-row b {
    white-space: normal;
  }
}

/* V18.11 Ã¢ÂÂ status kegagalan pembacaan mutasi tidak lagi berhenti di spinner */
.mutation-empty.mutation-error {
  border-style: solid;
  border-color: #efb8bd;
  background: #fff1f2;
  color: #9f1d2c;
  text-align: left;
  padding: 14px 16px;
}


/* ================================================================
   V18.11 Ã¢ÂÂ MUTASI SALDO TABEL LENGKAP
   ================================================================ */
.website-member-mutation-modal {
  width: min(1420px, calc(100vw - 32px));
  max-height: min(940px, calc(100vh - 28px));
  overflow: auto;
}

.mutation-summary-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mutation-filter-bar {
  display: grid;
  grid-template-columns: 150px 190px 180px minmax(240px, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.mutation-filter-bar select,
.mutation-filter-bar input {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid #dfe3e8;
  border-radius: 13px;
  color: #25272b;
  background: #fff;
  font: inherit;
  outline: none;
}

.mutation-filter-bar select:focus,
.mutation-filter-bar input:focus {
  border-color: #e5b827;
  box-shadow: 0 0 0 3px rgba(229, 184, 39, .15);
}

.mutation-table-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 9px;
}

.mutation-table-heading strong {
  font-size: 1rem;
}

.mutation-table-heading span {
  color: #747b86;
  font-size: .82rem;
}

.mutation-table-wrap {
  overflow: auto;
  max-height: 520px;
  border: 1px solid #e1e4e8;
  border-radius: 16px;
  background: #fff;
}

.mutation-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .84rem;
}

.mutation-table th,
.mutation-table td {
  padding: 12px 13px;
  border-right: 1px solid #edf0f3;
  border-bottom: 1px solid #edf0f3;
  vertical-align: middle;
}

.mutation-table th:last-child,
.mutation-table td:last-child {
  border-right: 0;
}

.mutation-table tbody tr:last-child td {
  border-bottom: 0;
}

.mutation-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: #3a3d43;
  background: #fff4c9;
  text-align: left;
  white-space: nowrap;
}

.mutation-table tbody tr:hover td {
  background: #fffdf5;
}

.mutation-description-cell {
  min-width: 330px;
  max-width: 520px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.mutation-category-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  white-space: nowrap;
}

.mutation-category-badge.deposit,
.mutation-category-badge.credit {
  color: #12682f;
  background: #e5f7ea;
}

.mutation-category-badge.bonus {
  color: #765500;
  background: #fff1b8;
}

.mutation-category-badge.refund {
  color: #087b45;
  background: #dff7e9;
}

.mutation-category-badge.order {
  color: #244aa7;
  background: #e8efff;
}

.mutation-category-badge.fee,
.mutation-category-badge.adjustment {
  color: #a22331;
  background: #fde9ec;
}

.mutation-category-badge.verify {
  color: #9b6100;
  background: #fff0cf;
}

.mutation-money,
.mutation-balance-cell {
  text-align: right;
  font-weight: 800;
  white-space: nowrap;
}

.mutation-money.credit {
  color: #087b45;
}

.mutation-money.debit {
  color: #bd2130;
}

.mutation-money.verify {
  color: #a86700;
}

@media (max-width: 1100px) {
  .mutation-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mutation-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .website-member-mutation-modal {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  .mutation-summary-grid,
  .mutation-filter-bar {
    grid-template-columns: 1fr;
  }

  .mutation-table-wrap {
    max-height: 58vh;
  }
}


/* V18.12 Ã¢ÂÂ dasar tampilan mutasi; logika refund diperbaiki kembali pada V18.14 */
.mutation-category-badge.zero {
  color: #4f5968;
  background: #edf1f5;
}

.mutation-money.neutral {
  color: #596273;
}


/* V18.17 Ã¢ÂÂ refund resmi melalui refresh access token otomatis + Cookie sesi admin website */
.mutation-category-badge.refund {
  background: #dcfce7;
  color: #087a37;
}


/* V18.20 Ã¢ÂÂ ringkasan mutasi disinkronkan dengan seluruh baris tabel final. */


/* ================================================================
   V18.22 Ã¢ÂÂ PERAPIHAN TAMPILAN MUTASI SALDO MEMBER
   Hanya tampilan; seluruh perhitungan V18.21 tetap dipertahankan.
   ================================================================ */
#websiteMemberMutationModal {
  padding: 12px;
  background: rgba(10, 10, 12, .66);
  backdrop-filter: blur(9px);
}

.website-member-mutation-modal {
  width: min(1480px, calc(100vw - 24px));
  height: min(920px, calc(100dvh - 24px));
  max-height: none;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 26px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .34);
}

.website-member-mutation-modal .modal-heading {
  flex: 0 0 auto;
  align-items: center;
  padding: 20px 24px 0;
}

.website-member-mutation-modal .modal-heading h2 {
  margin-top: 3px;
  font-size: clamp(18px, 1.5vw, 23px);
  letter-spacing: -.02em;
}

.website-member-mutation-modal .eyebrow {
  margin-bottom: 5px;
  font-size: 9px;
  letter-spacing: .18em;
}

.website-member-mutation-modal .modal-close-button {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 13px;
  color: #4c515b;
  background: #f6f7f9;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.website-member-mutation-modal .modal-close-button:hover {
  transform: translateY(-1px);
  border-color: #d8aa20;
  background: #fff8df;
}

#websiteMemberMutationIdentity {
  flex: 0 0 auto;
  margin: 5px 24px 0;
  color: #7a818c;
  font-size: 10px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.website-member-mutation-modal .mutation-summary-grid {
  flex: 0 0 auto;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 15px 24px 13px;
}

.mutation-summary-card {
  position: relative;
  min-height: 86px;
  overflow: hidden;
  padding: 14px 16px 13px !important;
  gap: 8px !important;
  border-radius: 17px !important;
  background: #f8f9fb !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.mutation-summary-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 17px 0 0 17px;
  background: #d9dde4;
}

.mutation-summary-card span {
  font-size: 10px;
  font-weight: 700;
  color: #747b86;
}

.mutation-summary-card strong {
  font-size: clamp(16px, 1.45vw, 21px);
  line-height: 1.12;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.mutation-summary-card.balance {
  border-color: rgba(39, 92, 163, .20) !important;
  background: linear-gradient(145deg, #f7faff, #f3f6fb) !important;
}
.mutation-summary-card.balance::before { background: #3c6eb4; }
.mutation-summary-card.balance strong { color: #173f76; }

.mutation-summary-card.incoming {
  border-color: rgba(20, 135, 75, .20) !important;
  background: linear-gradient(145deg, #f5fcf7, #f1f9f4) !important;
}
.mutation-summary-card.incoming::before { background: #14905a; }
.mutation-summary-card.incoming strong { color: #087445; }

.mutation-summary-card.outgoing {
  border-color: rgba(184, 38, 52, .18) !important;
  background: linear-gradient(145deg, #fff8f8, #fcf3f4) !important;
}
.mutation-summary-card.outgoing::before { background: #c63b48; }
.mutation-summary-card.outgoing strong { color: #a92432; }

.mutation-summary-card.adjustment {
  border-color: rgba(202, 133, 18, .22) !important;
  background: linear-gradient(145deg, #fffaf1, #fcf5e8) !important;
}
.mutation-summary-card.adjustment::before { background: #d8951a; }
.mutation-summary-card.adjustment strong { color: #8b5a00; }

.mutation-summary-card.refund {
  border-color: rgba(41, 143, 95, .20) !important;
  background: linear-gradient(145deg, #f4fcf7, #eef9f2) !important;
}
.mutation-summary-card.refund::before { background: #2d9a64; }
.mutation-summary-card.refund strong { color: #087846; }

#websiteMemberMutationLoading,
#websiteMemberMutationContent {
  margin: 0 24px 20px;
}

#websiteMemberMutationLoading {
  flex: 1 1 auto;
  min-height: 260px;
  place-content: center;
}

#websiteMemberMutationContent:not(.hidden) {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
}

.website-member-mutation-modal .mutation-warning {
  position: relative;
  flex: 0 0 auto;
  margin: 0 0 9px;
  padding: 11px 14px 11px 40px;
  border-radius: 14px;
  color: #67530f;
  background: #fff9e7;
  border-color: #efd06a;
  font-size: 10.5px;
  line-height: 1.5;
}

.website-member-mutation-modal .mutation-warning::before {
  content: "i";
  position: absolute;
  left: 14px;
  top: 12px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #d2a11a;
  font-size: 11px;
  font-weight: 900;
  font-family: Georgia, serif;
}

.website-member-mutation-modal .mutation-empty.mutation-error,
.website-member-mutation-modal .mutation-empty.mutation-success {
  position: relative;
  flex: 0 0 auto;
  margin: 0 0 9px;
  padding: 11px 14px 11px 40px;
  border-radius: 14px;
  text-align: left;
  font-size: 10.5px;
  line-height: 1.5;
}

.website-member-mutation-modal .mutation-empty.mutation-error::before,
.website-member-mutation-modal .mutation-empty.mutation-success::before {
  position: absolute;
  left: 14px;
  top: 12px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.website-member-mutation-modal .mutation-empty.mutation-error::before {
  content: "!";
  background: #bd2f3d;
}

.website-member-mutation-modal .mutation-empty.mutation-success {
  color: #17613b;
  border: 1px solid #b9e2ca;
  background: #f1fbf5;
}

.website-member-mutation-modal .mutation-empty.mutation-success::before {
  content: "Ã¢ÂÂ";
  background: #238657;
}

.website-member-mutation-modal .mutation-filter-bar {
  flex: 0 0 auto;
  grid-template-columns: 145px 180px 170px minmax(260px, 1fr);
  gap: 9px;
  margin: 0 0 10px;
  padding: 10px;
  border: 1px solid #e6e9ee;
  border-radius: 16px;
  background: #f8f9fb;
}

.website-member-mutation-modal .mutation-filter-bar select,
.website-member-mutation-modal .mutation-filter-bar input {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 11px;
  border-color: #dce1e7;
  background-color: #fff;
  font-size: 11px;
}

.website-member-mutation-modal .mutation-filter-bar input {
  padding-left: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23757d88' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
}

.website-member-mutation-modal .mutation-table-heading {
  flex: 0 0 auto;
  margin: 0 2px 7px;
}

.website-member-mutation-modal .mutation-table-heading strong {
  font-size: 12px;
  letter-spacing: -.01em;
}

.website-member-mutation-modal .mutation-table-heading span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #626a75;
  background: #f0f2f5;
  font-size: 9.5px;
  font-weight: 700;
}

.website-member-mutation-modal .mutation-table-wrap {
  flex: 1 1 auto;
  min-height: 220px;
  max-height: none;
  overflow: auto;
  border-radius: 15px;
  border-color: #dde2e8;
  box-shadow: 0 8px 20px rgba(25, 31, 40, .04);
  scrollbar-color: #d9ad21 #171717;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}

.website-member-mutation-modal .mutation-table-wrap::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.website-member-mutation-modal .mutation-table-wrap::-webkit-scrollbar-track {
  background: #151515;
}
.website-member-mutation-modal .mutation-table-wrap::-webkit-scrollbar-thumb {
  min-height: 46px;
  border: 2px solid #151515;
  border-radius: 999px;
  background: #dbae20;
}

.website-member-mutation-modal .mutation-table {
  min-width: 1120px;
  table-layout: fixed;
  font-size: 10px;
}

.website-member-mutation-modal .mutation-table th,
.website-member-mutation-modal .mutation-table td {
  padding: 10px 11px;
  vertical-align: top;
}

.website-member-mutation-modal .mutation-table th {
  top: 0;
  z-index: 3;
  padding-top: 11px;
  padding-bottom: 11px;
  border-bottom: 2px solid #e5c75d;
  color: #39371f;
  background: #fff3c5;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: .015em;
}

.website-member-mutation-modal .mutation-table th:nth-child(1),
.website-member-mutation-modal .mutation-table td:nth-child(1) { width: 88px; }
.website-member-mutation-modal .mutation-table th:nth-child(2),
.website-member-mutation-modal .mutation-table td:nth-child(2) { width: 148px; }
.website-member-mutation-modal .mutation-table th:nth-child(3),
.website-member-mutation-modal .mutation-table td:nth-child(3) { width: 135px; }
.website-member-mutation-modal .mutation-table th:nth-child(5),
.website-member-mutation-modal .mutation-table td:nth-child(5) { width: 130px; }
.website-member-mutation-modal .mutation-table th:nth-child(6),
.website-member-mutation-modal .mutation-table td:nth-child(6),
.website-member-mutation-modal .mutation-table th:nth-child(7),
.website-member-mutation-modal .mutation-table td:nth-child(7) { width: 132px; }

.website-member-mutation-modal .mutation-table tbody tr:nth-child(even) td {
  background: #fbfcfd;
}

.website-member-mutation-modal .mutation-table tbody tr:hover td {
  background: #fff9e8;
}

.website-member-mutation-modal .mutation-description-cell {
  min-width: 0;
  max-width: none;
  color: #333842;
  line-height: 1.42;
}

.website-member-mutation-modal .mutation-category-badge {
  min-height: 22px;
  padding: 4px 8px;
  font-size: 9px;
  letter-spacing: -.01em;
}

.website-member-mutation-modal .mutation-category-badge.adjustment {
  color: #744a09;
  background: #f2e7d1;
}

.website-member-mutation-modal .mutation-money,
.website-member-mutation-modal .mutation-balance-cell {
  padding-top: 11px;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.website-member-mutation-modal .mutation-balance-cell {
  color: #252a31;
}

@media (max-width: 1150px) {
  .website-member-mutation-modal .mutation-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .website-member-mutation-modal .mutation-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .website-member-mutation-modal .mutation-filter-bar input {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  #websiteMemberMutationModal {
    align-items: end;
    padding: 0;
  }

  .website-member-mutation-modal {
    width: 100vw;
    height: 100dvh;
    max-height: none;
    border-radius: 20px 20px 0 0;
  }

  .website-member-mutation-modal .modal-heading {
    padding: 15px 14px 0;
  }

  #websiteMemberMutationIdentity {
    margin: 4px 14px 0;
  }

  .website-member-mutation-modal .mutation-summary-grid {
    display: flex;
    gap: 8px;
    margin: 12px 14px 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .website-member-mutation-modal .mutation-summary-grid::-webkit-scrollbar { display: none; }

  .website-member-mutation-modal .mutation-summary-card {
    min-width: 155px;
    min-height: 78px;
    scroll-snap-align: start;
  }

  #websiteMemberMutationLoading,
  #websiteMemberMutationContent {
    margin: 0 12px 12px;
  }

  .website-member-mutation-modal .mutation-warning,
  .website-member-mutation-modal .mutation-empty.mutation-error,
  .website-member-mutation-modal .mutation-empty.mutation-success {
    padding-right: 11px;
    font-size: 9.5px;
  }

  .website-member-mutation-modal .mutation-filter-bar {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    padding: 8px;
  }

  .website-member-mutation-modal .mutation-filter-bar select,
  .website-member-mutation-modal .mutation-filter-bar input {
    min-height: 39px;
    font-size: 10px;
  }

  .website-member-mutation-modal .mutation-table {
    min-width: 1030px;
  }
}

@media (max-width: 430px) {
  .website-member-mutation-modal .mutation-filter-bar {
    grid-template-columns: 1fr;
  }
  .website-member-mutation-modal .mutation-filter-bar input {
    grid-column: auto;
  }
}


/* ================================================================
   V18.24 Ã¢ÂÂ LOG LOGIN TERAKHIR MEMBER
   ================================================================ */
.website-member-table {
  min-width: 1320px;
}

.website-member-login-cell {
  min-width: 220px;
}

.website-member-login-cell small {
  display: block;
  margin-top: 5px;
  color: #7b818c;
  font-size: 10px;
  white-space: nowrap;
}

.website-member-login {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 850;
  white-space: nowrap;
}

.website-member-login.online {
  color: #0a6a36;
  background: #dcf8e7;
}

.website-member-login.recent {
  color: #236128;
  background: #edf8df;
}

.website-member-login.idle {
  color: #8a5900;
  background: #fff0c2;
}

.website-member-login.dormant {
  color: #af2430;
  background: #ffe5e8;
}

.website-member-login.unknown {
  color: #606875;
  background: #edf0f4;
}

.member-mini-badge.login.online,
.member-mini-badge.login.recent {
  color: #12682f;
  background: #e6f8eb;
}

.member-mini-badge.login.idle {
  color: #8a5900;
  background: #fff0c2;
}

.member-mini-badge.login.dormant {
  color: #a1202b;
  background: #ffe7e9;
}

.member-mini-badge.login.unknown {
  color: #626b78;
  background: #edf0f4;
}

@media (max-width: 720px) {
  .website-member-login-cell {
    min-width: 195px;
  }
}

/* ================================================================
   V18.25 Ã¢ÂÂ RIWAYAT LOGIN ASLI MEMBER WEBSITE
   V18.26 Ã¢ÂÂ TOTAL HARI + RINCIAN BULAN/HARI
   ================================================================ */
.website-member-login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 7px;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(218, 165, 32, 0.58);
  border-radius: 999px;
  background: #fffaf0;
  color: #6f5200;
  font: inherit;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.website-member-login-button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #fff3c9;
  box-shadow: 0 6px 14px rgba(111, 82, 0, .11);
}

.website-member-login-button:disabled {
  cursor: wait;
  opacity: .62;
}

#websiteMemberLoginModal {
  padding: 22px;
}

.website-member-login-modal {
  width: min(920px, calc(100vw - 44px));
  max-height: min(760px, calc(100vh - 44px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
}

.login-history-summary-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr .8fr;
  gap: 12px;
  margin: 16px 0;
}

.login-history-summary-grid article {
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid #e2e6ec;
  border-radius: 18px;
  background: linear-gradient(145deg, #fbfcfe, #f4f6f9);
}

.login-history-summary-grid span {
  display: block;
  margin-bottom: 7px;
  color: #707783;
  font-size: 11px;
}

.login-history-summary-grid strong {
  display: block;
  color: #11151c;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.login-history-table-wrap {
  max-height: min(430px, calc(100vh - 330px));
  overflow: auto;
  border: 1px solid #e0e4ea;
  border-radius: 17px;
  background: #fff;
}

.login-history-table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
}

.login-history-table th,
.login-history-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e9ecf1;
  text-align: left;
  vertical-align: middle;
  font-size: 12px;
}

.login-history-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: #332b14;
  background: #fff3c5;
  font-weight: 900;
}

.login-history-table tbody tr:nth-child(even) td {
  background: #fbfcfe;
}

.login-history-table tbody tr:hover td {
  background: #fffaf0;
}

.login-history-table th:first-child,
.login-history-table td:first-child {
  width: 64px;
  text-align: center;
}

.login-history-table th:nth-child(2),
.login-history-table td:nth-child(2) {
  width: 190px;
}

.login-history-table th:nth-child(3),
.login-history-table td:nth-child(3) {
  width: 170px;
}

.login-history-table th:nth-child(4),
.login-history-table td:nth-child(4) {
  width: 155px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.login-history-empty,
.login-history-error {
  margin-top: 14px;
  padding: 15px 16px;
  border-radius: 15px;
  font-size: 12px;
  line-height: 1.55;
}

.login-history-empty {
  color: #68707c;
  background: #f4f6f9;
  border: 1px solid #e2e6ec;
}

.login-history-error {
  color: #a51f2b;
  background: #fff0f1;
  border: 1px solid #f0b9bf;
}

@media (max-width: 820px) {
  #websiteMemberLoginModal {
    padding: 10px;
  }

  .website-member-login-modal {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    border-radius: 20px;
  }

  .login-history-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .login-history-summary-grid {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .login-history-summary-grid::-webkit-scrollbar {
    display: none;
  }

  .login-history-summary-grid article {
    flex: 0 0 215px;
  }

  .login-history-table-wrap {
    max-height: calc(100vh - 360px);
  }
}


/* V18.30 Ã¢ÂÂ filter kombinasi akun + saldo + aktivitas login */
@media (max-width: 720px) {
  .website-member-controls {
    grid-template-columns: 1fr;
  }

  .website-member-search-wide,
  .website-member-filter-field:last-child {
    grid-column: auto;
  }
}


/* ================================================================
   V18.33 Ã¢ÂÂ STABILITAS TAMPILAN DATA MEMBER & MUTASI
   ================================================================ */

/* Kolom tindakan tetap terlihat tanpa harus mencari tombol di sisi paling kanan. */
.website-member-table th:last-child,
.website-member-table td:last-child {
  position: sticky;
  right: 0;
  min-width: 250px;
  background: #fff;
  box-shadow: -10px 0 18px rgba(30, 34, 42, .06);
}
.website-member-table th:last-child {
  z-index: 4;
  background: #fff6d8;
}
.website-member-table td:last-child {
  z-index: 2;
}
.website-member-table tbody tr:nth-child(even) td:last-child {
  background: #fffdf8;
}
.website-member-table tbody tr:hover td:last-child {
  background: #fff8e8;
}

/* Filter tetap rapi pada laptop dengan lebar menengah. */
.website-member-controls {
  grid-template-columns: minmax(280px, 1fr) repeat(3, minmax(150px, 210px));
}

/* Modal menyesuaikan jumlah transaksi; tidak menyisakan ruang putih terlalu besar. */
.website-member-mutation-modal {
  height: auto;
  min-height: min(560px, calc(100dvh - 24px));
  max-height: calc(100dvh - 24px);
}
#websiteMemberMutationContent:not(.hidden) {
  flex: 0 1 auto;
  overflow: hidden;
}
.website-member-mutation-modal .mutation-table-wrap {
  flex: 0 1 auto;
  min-height: 210px;
  max-height: min(58dvh, 610px);
}
.website-member-mutation-modal .mutation-summary-grid {
  grid-template-columns: repeat(5, minmax(170px, 1fr));
  overflow-x: auto;
  padding-bottom: 2px;
}
.website-member-mutation-modal .mutation-summary-card {
  min-width: 170px;
}
.website-member-mutation-modal .mutation-empty.mutation-error {
  margin-bottom: 8px;
  padding-top: 9px;
  padding-bottom: 9px;
}

@media (max-width: 1280px) {
  .website-member-controls {
    grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(145px, 1fr));
  }
  .website-member-filter-field:last-child { grid-column: auto; }
}

@media (max-width: 980px) {
  .website-member-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .website-member-search-wide { grid-column: 1 / -1; }
  .website-member-table th:last-child,
  .website-member-table td:last-child {
    position: static;
    min-width: 240px;
    box-shadow: none;
  }
}

@media (max-width: 700px) {
  .website-member-mutation-modal {
    min-height: 100dvh;
    max-height: 100dvh;
  }
  .website-member-mutation-modal .mutation-summary-grid {
    grid-template-columns: none;
  }
  .website-member-mutation-modal .mutation-table-wrap {
    max-height: none;
    flex: 1 1 auto;
  }
}
/* =========================================================
   MRXPANEL PROVIDER MANAGEMENT V18.34 Ã¢ÂÂ READ ONLY
   ========================================================= */

.provider-center-view {
  display: grid;
  gap: 18px;
}

.provider-center-view.hidden {
  display: none;
}

.provider-center-toolbar,
.provider-panel-heading,
.provider-services-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.provider-center-toolbar h2,
.provider-panel-heading h3,
.provider-services-heading h3 {
  margin: 0;
}

.provider-center-subtitle,
.provider-panel-heading p,
.provider-services-heading p {
  margin: 6px 0 0;
  color: var(--muted);
}

.provider-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.provider-summary-card {
  display: grid;
  gap: 7px;
  min-height: 104px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.provider-summary-card span,
.provider-summary-card small {
  color: var(--muted);
}

.provider-summary-card strong {
  font-size: 24px;
}

.provider-panel {
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.provider-table-wrap,
.provider-services-table-wrap {
  margin-top: 14px;
  overflow-x: auto;
}

.provider-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.provider-table th,
.provider-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.provider-table th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.provider-table td {
  font-size: 12px;
}

.provider-table-sub {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.provider-detail-panel {
  display: grid;
  gap: 16px;
}

.provider-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.provider-detail-grid > div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.provider-detail-grid span {
  color: var(--muted);
  font-size: 11px;
}

.provider-detail-grid strong {
  overflow-wrap: anywhere;
}

.provider-capability-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.provider-capability-row span {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 11px;
  font-weight: 700;
}

.provider-readonly-note {
  margin: 0;
  padding: 11px 13px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 980px) {
  .provider-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .provider-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .provider-center-toolbar,
  .provider-panel-heading,
  .provider-services-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .provider-summary-grid,
  .provider-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* MRXPANEL_R347_MENU_REORDER_STYLE_V1 */

.mrx-menu-controls {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top:
    1px solid
    rgba(212, 175, 55, 0.22);
}

.mrx-menu-control-button {
  width: 100%;
  min-height: 38px;
  padding: 9px 12px;
  border:
    1px solid
    rgba(212, 175, 55, 0.45);
  border-radius: 10px;
  background:
    rgba(212, 175, 55, 0.08);
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.mrx-menu-control-button:hover {
  border-color:
    rgba(212, 175, 55, 0.80);
  background:
    rgba(212, 175, 55, 0.14);
}

.mrx-menu-edit-mode
.main-nav-button {
  cursor: grab;
  outline:
    1px dashed
    rgba(212, 175, 55, 0.42);
  outline-offset: -3px;
}

.mrx-menu-edit-mode
.main-nav-button:active {
  cursor: grabbing;
}

.mrx-menu-edit-mode
.main-nav-button.mrx-menu-dragging {
  opacity: 0.48;
}

.mrx-menu-edit-mode
.main-nav-button.mrx-menu-drop-target {
  box-shadow:
    inset 0 0 0 2px
    rgba(212, 175, 55, 0.75);
}


/* MRXPANEL_R349_PROVIDER_MANAGEMENT_STYLE_V1 */

.r349-provider-toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.r349-editor {
  margin-top: 18px;
}

.r349-form {
  display: grid;
  grid-template-columns:
    repeat(
      auto-fit,
      minmax(210px, 1fr)
    );
  gap: 14px;
}

.r349-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

.r349-form input,
.r349-form select {
  width: 100%;
}

.r349-capabilities {
  grid-column: 1 / -1;
  display: flex;
  gap: 14px 20px;
  flex-wrap: wrap;
  border: 1px solid #dfe3ea;
  border-radius: 12px;
  padding: 14px;
}

.r349-capabilities label,
.r349-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.r349-capabilities input,
.r349-check input {
  width: auto;
}

.r349-section {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns:
    repeat(
      auto-fit,
      minmax(190px, 1fr)
    );
  gap: 12px;
  padding: 14px;
  border: 1px solid #dfe3ea;
  border-radius: 12px;
}

.r349-section h4 {
  grid-column: 1 / -1;
  margin: 0;
}

.r349-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

#providerCenterView
.provider-services-table-wrap {
  overflow-x: auto;
}

#providerCenterView
.provider-services-table-wrap
table {
  min-width: 1120px;
}

/* ==========================================================
   MRXPANEL_R351_CHILD_PANEL_VISUAL_HOTFIX_V1
   Scoped visual rules for Child Panel admin.
   ========================================================== */
#childPanelCenterView { min-width: 0; }

#childPanelCenterView .provider-center-toolbar {
  align-items: flex-start;
  flex-wrap: wrap;
}
#childPanelCenterView .provider-center-toolbar > div:first-child {
  min-width: 0;
  flex: 1 1 420px;
}
#childPanelCenterView .provider-summary-grid { align-items: stretch; }

#childPanelCenterView .provider-panel {
  display: grid;
  gap: 16px;
  min-width: 0;
}
#childPanelCenterView .provider-panel-heading {
  align-items: flex-start;
  flex-wrap: wrap;
}

#childPanelCenterView .management-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  margin-top: 2px;
}
#childPanelCenterView .management-form > label {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
#childPanelCenterView .management-form input:not([type="checkbox"]),
#childPanelCenterView .management-form select,
#childPanelCenterView .management-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 43px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text);
  background: #fff;
  font: inherit;
  outline: none;
}
#childPanelCenterView .management-form input:not([type="checkbox"]):focus,
#childPanelCenterView .management-form select:focus,
#childPanelCenterView .management-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(214,169,31,.12);
}
#childPanelCenterView .management-form input[readonly] {
  color: var(--muted);
  background: #f7f7f7;
}
#childPanelCenterView .management-form > label:has(input[type="checkbox"]) {
  grid-template-columns: 20px minmax(0,1fr);
  align-items: center;
  align-content: center;
  gap: 10px;
  min-height: 43px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text);
  background: #fff;
}
#childPanelCenterView .management-form input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--gold);
}
#childPanelCenterView .form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
#childPanelCenterView .management-form > .button,
#childPanelCenterView .form-actions .button {
  width: auto;
  min-width: 150px;
}
#childPanelCenterView .table-wrap {
  width: 100%;
  min-width: 0;
  margin-top: 2px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
#childPanelCenterView .table-wrap table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}
#childPanelCenterView .table-wrap th,
#childPanelCenterView .table-wrap td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}
#childPanelCenterView .table-wrap th {
  color: var(--muted);
  background: #f8f8f8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}
#childPanelCenterView .table-wrap td { font-size: 12px; }
#childPanelCenterView .table-wrap tbody tr:last-child td { border-bottom: 0; }
#childPanelCenterView .table-wrap .button { white-space: nowrap; }

#childPanelEditorPanel,
#childPanelPermissionPanel,
#childPanelProviderPanel { scroll-margin-top: 90px; }

#childPanelProviderPanel .table-wrap { margin-top: 0; }
#childPanelCenterView .provider-readonly-note { line-height: 1.55; }

@media (max-width: 980px) {
  #childPanelCenterView .provider-summary-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  #childPanelCenterView .management-form { grid-template-columns: 1fr; }
  #childPanelCenterView .form-actions { grid-column: 1; }
  #childPanelCenterView .provider-detail-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
@media (max-width: 620px) {
  #childPanelCenterView .provider-summary-grid,
  #childPanelCenterView .provider-detail-grid {
    grid-template-columns: 1fr;
  }
  #childPanelCenterView .provider-center-toolbar .button,
  #childPanelCenterView .management-form > .button,
  #childPanelCenterView .form-actions .button {
    width: 100%;
  }
  #childPanelCenterView .provider-panel { padding: 14px; }
}
/* ==========================================================
   MRXPANEL CORE DASHBOARD V1 - STRUCTURE CANDIDATE
   Functional regrouping only. Existing views/handlers preserved.
   ========================================================== */
.core-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  padding-right: 2px;
}
.core-nav-section {
  display: grid;
  gap: 5px;
}
.core-nav-heading {
  padding: 0 12px 4px;
  color: rgba(255,255,255,.42);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .13em;
}
.core-nav .main-nav-button {
  min-height: 42px;
}
.core-nav .main-nav-button strong {
  min-width: 0;
}

/* ==========================================================
   MRXPANEL CORE DASHBOARD V1 - BUSINESS OVERVIEW CANDIDATE
   ========================================================== */
.core-business-overview {
  padding: 16px;
}
.core-overview-content {
  display: grid;
  gap: 16px;
}
.core-overview-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 4px 2px;
}
.core-overview-intro h2 {
  margin: 2px 0 4px;
  font-size: 24px;
}
.core-overview-subtitle {
  margin: 0;
  color: #70747c;
  font-size: 12px;
}
.core-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.core-kpi-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(17,17,17,.045);
}
.core-kpi-card.primary {
  border-color: rgba(212,175,55,.5);
  background: linear-gradient(145deg,#fffdf6,#fff);
}
.core-kpi-card span,
.core-health-card span {
  display: block;
  color: #74777d;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.core-kpi-card strong {
  display: block;
  margin-top: 8px;
  color: #171717;
  font-size: 24px;
}
.core-kpi-card small,
.core-health-card small {
  display: block;
  margin-top: 5px;
  color: #858990;
  font-size: 10px;
}
.core-health-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
}
.core-health-card {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: #fff;
}
.core-health-card strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
}
.core-health-card.attention {
  border-color: rgba(214,73,73,.25);
  background: #fffafa;
}
.core-overview-two-column {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
}
.core-business-panel {
  min-width: 0;
}
.core-performance-list {
  display: grid;
  gap: 0;
  margin-top: 8px;
}
.core-performance-list > div {
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--border);
}
.core-performance-list > div:last-child {
  border-bottom: 0;
}
.core-performance-list span {
  color: #686d75;
  font-size: 11px;
}
.core-performance-list strong {
  text-align: right;
  font-size: 12px;
}
.core-recent-orders {
  display: grid;
  gap: 0;
}
.core-recent-order {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.core-recent-order:last-child {
  border-bottom: 0;
}
.core-recent-order > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.core-recent-order strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}
.core-recent-order small {
  color: #80858d;
  font-size: 9.5px;
}
.core-recent-order-amount {
  flex: 0 0 auto;
  text-align: right;
}
@media (max-width: 1180px) {
  .core-kpi-grid,
  .core-health-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media (max-width: 850px) {
  .core-business-overview {
    padding: 12px;
  }
  .core-kpi-grid,
  .core-health-grid,
  .core-overview-two-column {
    grid-template-columns: 1fr;
  }
  .core-overview-intro {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* ==========================================================
   MRXPANEL CORE DASHBOARD V1 - COLLAPSIBLE INFORMATION ARCHITECTURE
   ========================================================== */
.core-nav[data-core-nav-v1="1"] {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.core-nav[data-core-nav-v1="1"] .core-nav-section {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.025);
}

.core-nav[data-core-nav-v1="1"] .core-nav-heading.core-nav-toggle {
  width: 100%;
  min-height: 30px;
  border: 0;
  padding: 4px 6px 6px;
  background: transparent;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  text-align: left;
}

.core-nav[data-core-nav-v1="1"] .core-nav-heading.core-nav-toggle > span:first-child {
  flex: 1;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  opacity: 0.72;
}

.core-nav[data-core-nav-v1="1"] .core-nav-heading.core-nav-toggle small {
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.core-nav[data-core-nav-v1="1"] .core-nav-heading.core-nav-toggle em {
  width: 20px;
  height: 20px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 13px;
  opacity: 0.7;
  background: rgba(148, 163, 184, 0.1);
}

.core-nav[data-core-nav-v1="1"] .core-nav-section.is-collapsed > .main-nav-button {
  display: none !important;
}

.core-nav[data-core-nav-v1="1"] .core-nav-section.core-nav-empty {
  display: none !important;
}

.core-nav[data-core-nav-v1="1"] .core-nav-section-hold {
  border-style: dashed;
}

.core-nav[data-core-nav-v1="1"] .main-nav-button {
  margin-top: 3px;
}

@media (max-width: 900px) {
  .core-nav[data-core-nav-v1="1"] {
    gap: 6px;
  }

  .core-nav[data-core-nav-v1="1"] .core-nav-section {
    border-radius: 12px;
    padding: 6px;
  }
}

/* MRXPANEL CORE V1 - MEMBER FILTER RESTORE */
.member-center-controls {
  align-items: stretch;
  flex-wrap: wrap;
}

.member-center-controls > select {
  min-width: 190px;
  max-width: 260px;
}

#memberCenterLoginFilter,
#memberCenterBalanceSort {
  flex: 0 1 235px;
}

@media (max-width: 820px) {
  .member-center-controls > select,
  #memberCenterLoginFilter,
  #memberCenterBalanceSort {
    width: 100%;
    max-width: none;
    flex-basis: 100%;
  }
}

/* ================================================================
   MRXPANEL_CORE_VISUAL_POLISH_V1
   Sidebar-only visual refinement. No functional wiring changes.
   ================================================================ */
.core-nav {
  gap: 4px;
  padding-right: 2px;
}
.core-nav-section {
  margin-bottom: 4px;
}
.core-nav-heading {
  min-height: 32px;
  padding: 6px 9px;
  border-radius: 9px;
  letter-spacing: .075em;
}
.core-nav-heading > em {
  position: relative;
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  font-size: 0 !important;
  line-height: 0;
  opacity: .72;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .18s ease, opacity .18s ease;
}
.core-nav-heading[aria-expanded="false"] > em {
  transform: rotate(-45deg);
}
.core-nav-heading:hover > em {
  opacity: 1;
}
.main-nav-button {
  min-height: 39px;
  padding: 6px 9px;
  gap: 9px;
  border-radius: 10px;
}
.main-nav-button > .core-nav-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #c8c9cf;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.055);
  transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}
.main-nav-button > .core-nav-icon svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.main-nav-button:hover > .core-nav-icon {
  color: #f0f0f2;
  background: rgba(255,255,255,.075);
  border-color: rgba(255,255,255,.09);
}
.main-nav-button.active > .core-nav-icon {
  color: #f4d46a;
  background: rgba(219,177,53,.12);
  border-color: rgba(219,177,53,.22);
}
.core-nav-section[data-core-nav-section="business"] > .core-nav-heading {
  color: #f0d576;
}
.core-nav-section-hold > .core-nav-heading small {
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 7px;
  letter-spacing: .08em;
}
.sidebar {
  scrollbar-width: thin;
  scrollbar-color: rgba(191,168,102,.52) transparent;
}
.sidebar::-webkit-scrollbar {
  width: 6px;
}
.sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(191,168,102,.48);
  background-clip: padding-box;
}
.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(216,192,119,.68);
  background-clip: padding-box;
}
@media (max-width: 760px) {
  .main-nav-button {
    min-height: 41px;
  }
  .main-nav-button > .core-nav-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }
}
/* MRXPANEL_PROVIDER_COST_BASIS_UI_V1 */
.provider-cost-basis-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.88);
}

.provider-cost-basis-heading,
.provider-funding-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.provider-cost-basis-heading h3 {
  margin: 2px 0 4px;
}

.provider-cost-basis-heading p {
  margin: 0;
}

.provider-cost-basis-summary,
.provider-funding-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.provider-cost-basis-summary article,
.provider-funding-preview > div {
  padding: 12px;
  border: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: 12px;
  background: #fff;
}

.provider-cost-basis-summary span,
.provider-funding-preview span {
  display: block;
  font-size: 12px;
  color: #667085;
  margin-bottom: 5px;
}

.provider-cost-basis-summary strong,
.provider-funding-preview strong {
  display: block;
  word-break: break-word;
}

.provider-funding-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(16, 24, 40, 0.1);
}

.provider-funding-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.provider-funding-grid label {
  display: grid;
  gap: 6px;
}

.provider-funding-grid label > span {
  font-size: 12px;
  font-weight: 700;
  color: #344054;
}

.provider-funding-grid input,
.provider-funding-grid select {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid rgba(16, 24, 40, 0.16);
  border-radius: 10px;
  background: #fff;
}

.provider-funding-note-field {
  grid-column: span 2;
}

.provider-funding-hint {
  margin: 12px 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
}

.provider-funding-preview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.provider-funding-preview > p {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(16, 24, 40, 0.04);
  color: #475467;
}

@media (max-width: 900px) {
  .provider-cost-basis-summary,
  .provider-funding-grid,
  .provider-funding-preview {
    grid-template-columns: 1fr 1fr;
  }

  .provider-funding-note-field {
    grid-column: span 2;
  }
}

@media (max-width: 620px) {
  .provider-cost-basis-heading,
  .provider-funding-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .provider-cost-basis-summary,
  .provider-funding-grid,
  .provider-funding-preview {
    grid-template-columns: 1fr;
  }

  .provider-funding-note-field,
  .provider-funding-preview > p {
    grid-column: auto;
  }
}
/* MRXPANEL_ORDER_FX_DETAIL_UI_V1 */
.order-profit-detail-card.fx-aware {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.order-profit-detail-card.fx-aware .order-profit-detail-main {
  grid-column: 1 / -1;
}

.order-fx-metadata-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.order-fx-metadata-grid > div {
  padding: 12px;
  border: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.78);
}

.order-fx-metadata-grid span {
  display: block;
  margin-bottom: 5px;
  color: #667085;
  font-size: 12px;
}

.order-fx-metadata-grid strong {
  display: block;
  word-break: break-word;
}

@media (max-width: 900px) {
  .order-profit-detail-card.fx-aware,
  .order-fx-metadata-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-profit-detail-card.fx-aware .order-profit-detail-main {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .order-profit-detail-card.fx-aware,
  .order-fx-metadata-grid {
    grid-template-columns: 1fr;
  }

  .order-profit-detail-card.fx-aware .order-profit-detail-main {
    grid-column: auto;
  }
}
/* MRXPANEL_PROVIDER_BULK_PRICING_PREVIEW_V1 */
.provider-bulk-pricing-panel {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  border-radius: 16px;
  background: rgba(255, 250, 235, 0.56);
}

.provider-bulk-pricing-heading,
.provider-bulk-pricing-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.provider-bulk-pricing-heading h3 {
  margin: 2px 0 4px;
}

.provider-bulk-pricing-heading p {
  margin: 0;
  color: #667085;
}

.provider-bulk-preview-badge {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.provider-bulk-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.provider-bulk-pricing-grid label,
.provider-bulk-known-rate {
  display: grid;
  gap: 6px;
}

.provider-bulk-pricing-grid label > span,
.provider-bulk-known-rate > span {
  font-size: 12px;
  font-weight: 700;
  color: #344054;
}

.provider-bulk-pricing-grid input,
.provider-bulk-pricing-grid select {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid rgba(16, 24, 40, 0.16);
  border-radius: 10px;
  background: #fff;
}

.provider-bulk-known-rate {
  padding: 10px;
  border: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: 10px;
  background: #fff;
}

.provider-bulk-pricing-actions {
  margin-top: 14px;
}

.provider-bulk-pricing-actions > span {
  color: #667085;
  font-size: 12px;
}

.provider-bulk-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.provider-bulk-summary article {
  padding: 12px;
  border: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: 12px;
  background: #fff;
}

.provider-bulk-summary span {
  display: block;
  margin-bottom: 4px;
  color: #667085;
  font-size: 12px;
}

.provider-bulk-summary strong {
  font-size: 18px;
}

.provider-bulk-sample {
  margin-top: 14px;
}

.provider-bulk-sample h4 {
  margin: 0 0 10px;
}

.provider-bulk-sample table {
  min-width: 1050px;
}

@media (max-width: 900px) {
  .provider-bulk-pricing-grid {
    grid-template-columns: 1fr 1fr;
  }

  .provider-bulk-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .provider-bulk-pricing-heading,
  .provider-bulk-pricing-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .provider-bulk-pricing-grid,
  .provider-bulk-summary {
    grid-template-columns: 1fr;
  }
}
.member-recovery-review {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.member-recovery-review-table-wrap {
  overflow-x: auto;
  margin-top: 14px;
}

.member-recovery-review-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 850px;
}

.member-recovery-review-table th,
.member-recovery-review-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

.member-recovery-review-table th {
  color: #64748b;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.member-recovery-review-table td strong,
.member-recovery-review-table td small {
  display: block;
}

.member-recovery-review-table td small {
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
}

.member-recovery-risk {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.member-recovery-risk.warning {
  background: rgba(245, 158, 11, 0.14);
  color: #92400e;
}

.member-recovery-risk.neutral {
  background: rgba(100, 116, 139, 0.14);
  color: #475569;
}

/* MRXPANEL_BULK_SERVICE_COMPACT_UX_V1 */
#r349BulkServicePanel .r349-bulk-filter-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#r349BulkServicePanel .r349-bulk-price-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#r349BulkServicePanel .r349-bulk-service-helper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: #667085;
  font-size: 12px;
}

#r349BulkServicePanel .r349-bulk-service-actions {
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

#r349BulkServicePanel .r349-bulk-service-action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

#r349BulkServicePanel .r349-bulk-service-actions > span {
  flex: 1 1 320px;
  margin-left: 4px;
}

@media (max-width: 900px) {
  #r349BulkServicePanel .r349-bulk-filter-grid,
  #r349BulkServicePanel .r349-bulk-price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  #r349BulkServicePanel .r349-bulk-filter-grid,
  #r349BulkServicePanel .r349-bulk-price-grid {
    grid-template-columns: 1fr;
  }

  #r349BulkServicePanel .r349-bulk-service-actions {
    align-items: stretch;
  }

  #r349BulkServicePanel .r349-bulk-service-action-buttons {
    width: 100%;
  }

  #r349BulkServicePanel .r349-bulk-service-action-buttons > button {
    flex: 1 1 0;
  }
}
/* MRXPANEL_PROVIDER_ORDER_ACTIONS_V1 */
.order-provider-action-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border-soft, #e4e7ec);
  border-radius: 14px;
  background: var(--surface-soft, #fafafa);
}

.order-provider-action-copy {
  min-width: 0;
}

.order-provider-action-copy strong {
  display: block;
  margin-bottom: 4px;
}

.order-provider-action-copy p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.order-provider-action-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

#orderCancelProviderButton:not(:disabled) {
  border-color: #d92d20;
}

@media (max-width: 760px) {
  .order-provider-action-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .order-provider-action-buttons {
    width: 100%;
  }

  .order-provider-action-buttons .button {
    flex: 1 1 auto;
  }
}
/* MRXPANEL_PROVIDER_VAULT_SECRET_UI_V1 */
#r349ProviderApiKey {
  font-family: inherit;
}

.r349-secret-hint {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.4;
  opacity: .72;
}
/* MRXPANEL_BULK_ACTIVATE_CATEGORY_V1 */
#r349BulkServiceActivateCategoryWrap > span:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}

#r349BulkServiceActivateCategories {
  width: auto;
  min-width: 18px;
  height: 18px;
  margin: 0;
}
/* MRXPANEL_BULK_SELECTIVE_ADD_V1 */
.r349-bulk-selection-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0 4px;
  padding: 10px 12px;
  border: 1px solid var(--border, #d9d9d9);
  border-radius: 12px;
}

.r349-bulk-selection-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.r349-bulk-select-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.r349-bulk-select-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
}
/* MEMBER_CENTER_MODAL_ACCESS_V1 */
.member-center-workspace {
  display: block !important;
}
.member-list-panel {
  width: 100%;
  min-width: 0;
}
.member-center-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 12px;
  max-height: none !important;
  overflow: visible !important;
}
.member-detail-panel {
  display: none;
}
.member-detail-panel.member-modal-open {
  display: block !important;
  position: fixed;
  z-index: 2400;
  top: 5vh;
  left: 50%;
  transform: translateX(-50%);
  width: min(980px, calc(100vw - 48px));
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 26px;
  border-radius: 24px;
  background: #fff;
  box-shadow:
    0 0 0 100vmax rgba(10, 12, 16, 0.48),
    0 28px 80px rgba(0, 0, 0, 0.24);
}
body.member-modal-lock {
  overflow: hidden;
}
.member-detail-modal-close {
  position: sticky;
  top: 0;
  z-index: 4;
  float: right;
  width: 42px;
  height: 42px;
  margin: -8px -8px 8px 12px;
  border: 1px solid #e4e4e4;
  border-radius: 50%;
  background: #fff;
  color: #171717;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}
.member-access-control {
  margin: 16px 0;
  padding: 18px;
  border: 1px solid #ead99b;
  border-radius: 18px;
  background: #fffdf6;
}
.member-access-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.member-access-heading h3 {
  margin: 2px 0 4px;
}
.member-access-heading small,
.member-access-info {
  color: #686868;
}
.member-access-status {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.member-access-status.active {
  color: #176a3d;
  background: #e8f8ee;
}
.member-access-status.suspended {
  color: #8c5c00;
  background: #fff2c8;
}
.member-access-status.banned_permanent {
  color: #a02323;
  background: #fde7e7;
}
.member-access-status.loading {
  color: #666;
  background: #efefef;
}
.member-access-info {
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(255,255,255,.75);
  font-size: 13px;
}
.member-access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.member-access-actions .button.danger {
  color: #fff;
  background: #b52b2b;
  border-color: #b52b2b;
}
.member-access-actions .button.danger:hover {
  background: #982020;
}
@media (max-width: 720px) {
  .member-center-list {
    grid-template-columns: 1fr;
  }
  .member-detail-panel.member-modal-open {
    top: 0;
    left: 0;
    transform: none;
    width: 100vw;
    max-height: 100vh;
    height: 100vh;
    padding: 18px;
    border-radius: 0;
  }
  .member-access-heading {
    flex-direction: column;
  }
  .member-access-actions .button {
    width: 100%;
  }
}
/* ORDER_STATUS_INCIDENT_V1 */
.order-status.submitting {
  background: #fff2c8;
  color: #805400;
}
.order-status.review {
  background: #fff0d9;
  color: #8a4b00;
  border: 1px solid #e7b45e;
}
.order-status.refunded {
  background: #e8f8ee;
  color: #176a3d;
}
/* CATALOG_FILTER_GRID_V1 */
.core-catalog-toolbar.catalog-filter-grid {
  display: grid;
  grid-template-columns:
    minmax(280px, 2fr)
    minmax(150px, 0.9fr)
    minmax(170px, 1fr)
    minmax(190px, 1.15fr)
    minmax(190px, 1.15fr)
    auto;
  gap: 10px;
  align-items: center;
}

.core-catalog-toolbar.catalog-filter-grid > input,
.core-catalog-toolbar.catalog-filter-grid > select,
.core-catalog-toolbar.catalog-filter-grid > button {
  min-width: 0;
  width: 100%;
}

.core-catalog-toolbar.catalog-filter-grid > button {
  width: auto;
  min-width: 84px;
}

@media (max-width: 1320px) {
  .core-catalog-toolbar.catalog-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .core-catalog-toolbar.catalog-filter-grid .catalog-filter-search {
    grid-column: 1 / -1;
  }

  .core-catalog-toolbar.catalog-filter-grid > button {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .core-catalog-toolbar.catalog-filter-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .core-catalog-toolbar.catalog-filter-grid .catalog-filter-search {
    grid-column: auto;
  }
}
/* =======================================================
   MRXPANEL_ORDER_DETAIL_MODAL_V1
   Detail order is modal-only; list keeps full workspace width.
   ======================================================= */
.order-center-workspace {
  grid-template-columns: minmax(0, 1fr);
}

.order-list-panel {
  min-height: 600px;
}

.order-detail-panel {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: none;
  min-height: 0 !important;
  margin: 0;
  padding: 28px;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: rgba(9, 10, 12, 0.62);
  box-shadow: none;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  overflow: auto;
}

.order-detail-panel.order-modal-open {
  display: grid;
}

.order-detail-panel .order-detail-empty {
  display: none !important;
}

.order-detail-panel .order-detail-content {
  position: relative;
  width: min(980px, calc(100vw - 56px));
  max-height: calc(100vh - 56px);
  padding: 24px;
  border: 1px solid rgba(226, 174, 29, 0.25);
  border-radius: 26px;
  background: #fff;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.28),
    0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: auto;
  overscroll-behavior: contain;
}

.order-detail-modal-close {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  width: 38px;
  height: 38px;
  margin: -4px 0 -34px auto;
  place-items: center;
  border: 1px solid rgba(25, 27, 32, 0.12);
  border-radius: 999px;
  color: #1b1d22;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.10);
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.order-detail-modal-close:hover {
  border-color: rgba(226, 174, 29, 0.65);
  background: #fff9e9;
}

.order-detail-modal-close:focus-visible {
  outline: 3px solid rgba(226, 174, 29, 0.30);
  outline-offset: 2px;
}

body.order-detail-modal-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .order-detail-panel {
    padding: 12px;
    place-items: end center;
  }

  .order-detail-panel .order-detail-content {
    width: 100%;
    max-height: calc(100vh - 24px);
    padding: 18px;
    border-radius: 22px 22px 16px 16px;
  }

  .order-charge-card {
    align-items: stretch;
    flex-direction: column;
  }

  .order-charge-actions {
    flex-wrap: wrap;
  }

  .order-charge-actions .button {
    flex: 1 1 140px;
  }
}
/* MRXPANEL_ORDER_DETAIL_MODAL_CLOSE_V2 */
.order-detail-panel .order-detail-content {
  padding-top: 16px;
}

.order-detail-modal-close {
  position: sticky !important;
  top: 8px !important;
  right: 8px !important;
  z-index: 80 !important;
  display: grid !important;
  width: 42px !important;
  height: 42px !important;
  margin: 0 0 8px auto !important;
  place-items: center !important;
  border: 2px solid rgba(255, 255, 255, 0.85) !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: #111 !important;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(0, 0, 0, 0.08) !important;
  font-size: 27px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

.order-detail-modal-close:hover {
  color: #111 !important;
  background: #ffd24a !important;
  border-color: #ffd24a !important;
}

.order-detail-modal-close:focus-visible {
  outline: 3px solid rgba(255, 210, 74, 0.55) !important;
  outline-offset: 3px !important;
}
/* MRXPANEL_ORDER_DETAIL_MODAL_CLOSE_ICON_V3 */
.order-detail-close-icon {
  display: block;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.order-detail-close-icon path {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.order-detail-modal-close:hover .order-detail-close-icon path {
  stroke: #111111;
}
/* deposit-one-column-ui-v1 */
.deposit-settings-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.deposit-list-card,
.deposit-form-card {
  width: 100%;
  min-width: 0;
}
.deposit-list-heading {
  align-items: flex-start;
}
.deposit-list-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.deposit-form-card {
  scroll-margin-top: 84px;
}
.deposit-form-card .deposit-plan-form {
  max-width: 980px;
}
@media (max-width: 620px) {
  .deposit-list-heading-actions {
    width: 100%;
    justify-content: space-between;
  }
  .deposit-list-heading-actions .button {
    flex: 1 1 180px;
  }
}

/* payment-gateway-admin-v1 */
.payment-gateway-view{display:block}.payment-gateway-view.hidden{display:none}.pg-stack{display:grid;gap:20px}.pg-gateway-list,.pg-method-list{display:grid;gap:12px}.pg-card,.pg-method-card{border:1px solid var(--border-color,#e5e7eb);border-radius:18px;padding:18px;background:#fff}.pg-card-top,.pg-method-card{display:flex;align-items:center;justify-content:space-between;gap:16px}.pg-card-top>div,.pg-method-card>div:first-child{display:grid;gap:4px}.pg-card-top span,.pg-method-card span{font-size:12px;color:#667085}.pg-card-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}.pg-card-metrics>div{padding:10px 12px;border-radius:12px;background:#f7f8fa;display:grid;gap:4px}.pg-card-metrics span{font-size:11px;color:#667085}.pg-card-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.pg-detail-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,.8fr);gap:18px}.pg-detail-column{display:grid;gap:12px;align-content:start}.pg-detail-column h3{margin:0}.pg-credential-card{border:1px solid #e5e7eb;border-radius:16px;padding:16px;background:#fafafa}.pg-credential-card label{display:grid;gap:7px;font-weight:700;font-size:13px}.pg-credential-card input{width:100%}.pg-method-meta{display:flex!important;align-items:center;gap:8px!important;flex-wrap:wrap;justify-content:flex-end}.pg-secret-status{display:grid;gap:8px}.pg-secret-row{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:12px;background:#fff;border:1px solid #eceff3}.pg-form-note{border:1px solid #eceff3;border-radius:14px;padding:12px 14px;background:#fafafa;display:grid;gap:4px;align-content:center}.pg-form-note span{font-size:12px;color:#667085}.pg-switch{align-self:end;min-height:50px}.pg-toast-box{position:fixed;right:20px;bottom:20px;z-index:99999;display:grid;gap:8px;max-width:min(420px,calc(100vw - 40px))}.pg-toast{background:#111827;color:#fff;padding:12px 15px;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.18);font-size:13px}.pg-toast.success{background:#065f46}.pg-toast.error{background:#991b1b}.pg-toast.warning{background:#92400e}
@media(max-width:900px){.pg-detail-grid{grid-template-columns:1fr}.pg-card-metrics{grid-template-columns:1fr}.pg-card-top,.pg-method-card{align-items:flex-start;flex-direction:column}.pg-method-meta{justify-content:flex-start!important}}

/* MRXPANEL_ADMIN_GOLD_PLUS_MINUS_TOGGLE_V1 */
.core-nav[data-core-nav-v1="1"] .core-nav-heading.core-nav-toggle > em {
  position: static;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  transform: none !important;
  color: var(--gold, #f5c84c);
  background: rgba(245, 200, 76, 0.08);
  font-style: normal;
  font-size: 17px !important;
  font-weight: 900;
  line-height: 1;
  opacity: 1;
}
.core-nav[data-core-nav-v1="1"] .core-nav-heading.core-nav-toggle[aria-expanded="false"] > em,
.core-nav[data-core-nav-v1="1"] .core-nav-heading.core-nav-toggle[aria-expanded="true"] > em {
  transform: none !important;
}