/* Hierarki navigasi Billing ASM dibuat tegas tanpa meniru identitas visual sistem lama. */
.app-shell { grid-template-columns: 278px 1fr; }
.sidebar {
  background: linear-gradient(180deg, #173f4b 0%, #102d35 100%);
  box-shadow: 5px 0 18px #0b27311f;
}
.brand {
  min-height: 62px;
  background: linear-gradient(135deg, #245d6d, #1c4b59);
  border-bottom: 1px solid #3b6c78;
}
.account { padding: 14px 17px; background: #153742; }
#main-nav {
  padding: 0 0 10px;
  scrollbar-width: thin;
  scrollbar-color: #47717b #102d35;
}
.nav-console {
  position: sticky;
  top: 0;
  z-index: 4;
  padding: 11px 12px 9px;
  background: #102f39;
  border-bottom: 1px solid #315761;
  box-shadow: 0 5px 12px #071c2340;
}
.nav-console label {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 35px;
  padding: 0 10px;
  background: #fff;
  border: 1px solid #5f8189;
  border-radius: 5px;
  color: #244a55;
}
.nav-console input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #233d45;
  font-size: 12px;
}
.nav-console > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 7px;
}
.nav-console button {
  border: 1px solid #416772;
  background: #173f4b;
  color: #cde1e5;
  border-radius: 4px;
  padding: 6px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.nav-console button:hover { background: #246173; color: #fff; }
.nav-console small {
  display: block;
  margin-top: 7px;
  color: #7fa5ae;
  font-size: 10px;
  text-align: center;
}
.nav-section-caption {
  padding: 12px 16px 8px;
  color: #7da2ab;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .16em;
}
.nav-group { border-top: 1px solid #254b55; border-bottom: 1px solid #0c2831; }
.nav-group-title {
  min-height: 43px;
  padding: 8px 12px;
  color: #c9dce0;
  background: #173944;
  font-size: 10px;
  letter-spacing: .055em;
}
.nav-group-title:hover,
.nav-group.has-active > .nav-group-title { background: #1d4a57; color: #fff; }
.group-name { display: flex; align-items: center; gap: 9px; min-width: 0; }
.group-name > i {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 5px;
  background: #315d68;
  color: #80e6d5;
  font-style: normal;
  font-size: 13px;
  box-shadow: inset 0 0 0 1px #ffffff12;
}
.group-name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-meta { display: flex; align-items: center; gap: 8px; }
.group-meta em {
  min-width: 20px;
  padding: 3px 5px;
  border-radius: 9px;
  background: #0f2b34;
  color: #7faab3;
  font-style: normal;
  font-size: 9px;
  text-align: center;
}
.group-meta b {
  display: inline-block;
  font-size: 15px;
  color: #8eb1b8;
  line-height: 1;
  transform: rotate(0deg);
  transform-origin: center;
  transition: transform .18s ease, color .18s ease;
}

.nav-group.open > .nav-group-title .group-meta b {
  color: #d8f4f0;
  transform: rotate(90deg);
}
.nav-children { position: relative; background: #102f38; padding: 4px 0 6px; }
.nav-children::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 4px;
  bottom: 7px;
  width: 1px;
  background: #315762;
}
.nav-button {
  position: relative;
  min-height: 39px;
  padding: 6px 10px 6px 16px;
  border-left-width: 3px;
  gap: 9px;
  font-size: 12px;
}
.nav-button .menu-icon {
  z-index: 1;
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #193b45;
  border: 1px solid #3c626b;
  color: #8eb7bf;
  font-size: 10px;
}
.nav-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-ready { margin-left: auto; color: #4f7c84 !important; font-size: 7px !important; }
.nav-button:hover { background: #183f4b; border-left-color: #69cbbc; }
.nav-button.active {
  background: linear-gradient(90deg, #0c2932, #17444f);
  border-left-color: #43d6bf;
  color: #fff;
  box-shadow: inset 0 0 0 1px #3ed8c01c;
}
.nav-button.active .menu-icon { background: #27a995; border-color: #51d8c4; color: #fff; }
.nav-button.active .nav-ready,
.nav-button.added .nav-ready { color: #4be0c8 !important; }
.nav-button.added { color: #88e9da; }
.module-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -3px 0 14px;
  padding: 9px 11px;
  border: 1px solid #cce5dc;
  background: #f0fbf7;
  border-radius: 5px;
}
.module-status > span { color: #08794b; font-size: 10px; font-weight: 900; letter-spacing: .06em; }
.module-status small { color: #5e7a70; }
.row-action {
  border: 1px solid #79aebc;
  background: #eef8fb;
  color: #176e87;
  border-radius: 4px;
  padding: 6px 10px;
  font-weight: 800;
  cursor: pointer;
}
.row-action:hover { background: #168ab4; border-color: #168ab4; color: #fff; }
.template-swatches .swatch { border: 2px solid transparent; opacity: .78; }
.template-swatches .swatch:hover,
.template-swatches .swatch.active { border-color: #173943; opacity: 1; transform: translateY(-1px); }
.voucher-preview.orange { background: linear-gradient(145deg, #f08d2d, #b75d13); }
.voucher-preview.blue { background: linear-gradient(145deg, #2799d1, #176a9b); }
.voucher-preview.green { background: linear-gradient(145deg, #2caa66, #197744); }
.voucher-preview.purple { background: linear-gradient(145deg, #805bb8, #4f2b83); }

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

/* Consistent breathing room across every submenu and page heading. */
.nav-children {
  padding: 7px 0 9px;
}

.nav-children::before {
  display: none;
}

.nav-button {
  width: calc(100% - 18px);
  min-height: 42px;
  margin: 3px 9px;
  padding: 7px 11px;
  border-radius: 6px;
  color: #c8dadd;
}

.nav-label {
  color: inherit !important;
  font-size: 12px !important;
  line-height: 1.25;
}

.nav-ready {
  display: none !important;
}

.nav-group.open + .nav-group {
  margin-top: 3px;
}

.page {
  padding: 20px 22px 38px;
}

.safety-banner {
  margin-bottom: 0;
}

.safety-banner.backend-ready {
  border-color: #8ad9bd;
  background: #edfff8;
  color: #17694d;
}

.page-head {
  align-items: center;
  margin-bottom: 22px;
  padding: 2px 2px 0;
}

.page-head .breadcrumb {
  margin-bottom: 8px;
  line-height: 1.3;
}

.page-head h1 {
  margin-bottom: 8px;
}

.page-head p {
  line-height: 1.45;
}

.head-actions {
  align-self: flex-start;
  padding-top: 1px;
}

.page > .card:first-of-type,
.page > .grid:first-of-type,
.page > .gateway-status-grid:first-of-type,
.page > .h2h-status-grid:first-of-type,
.page > .migration-steps:first-of-type {
  margin-top: 0;
}

.login-modal {
  width: min(460px, calc(100vw - 32px));
}

.login-modal .modal-body {
  display: grid;
  gap: 15px;
}

.login-error {
  padding: 10px 12px;
  border: 1px solid #efb5b5;
  border-radius: 6px;
  background: #fff1f1;
  color: #9c2f2f;
  font-size: 13px;
}

.empty-api {
  padding: 25px 12px;
  color: #698187;
  text-align: center;
}

/* Secure entry screen shared by local preview and the production API login. */
.login-screen {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 42px 20px 64px;
  overflow: auto;
  background:
    linear-gradient(180deg, #00102b12 0%, #00071e24 60%, #00061366 100%),
    url("assets/login-fiber-background-hd.png") center center / cover no-repeat,
    #020824;
}

.login-screen[hidden],
.app-shell[hidden] {
  display: none !important;
}

.login-atmosphere,
.login-atmosphere::before,
.login-atmosphere::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.login-atmosphere {
  display: none;
}

.fiber-network {
  position: absolute;
  inset: -2%;
  width: 104%;
  height: 104%;
  opacity: .78;
}

.fiber-lines {
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  opacity: .85;
}

.fiber-lines-left { stroke: url(#fiber-blue); }
.fiber-lines-right { stroke: url(#fiber-violet); }

.fiber-nodes circle {
  fill: url(#node-glow);
  filter: url(#fiber-glow);
}

.login-atmosphere::before,
.login-atmosphere::after {
  content: "";
  border: 1px solid #28cfff24;
  border-radius: 50%;
  transform: translate(-28%, 42%) scale(1.18);
}

.login-atmosphere::after {
  transform: translate(48%, -50%) scale(.8);
}

.login-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(410px, 100%);
  min-height: min(650px, calc(100vh - 88px));
  padding: 32px 34px 27px;
  border: 1px solid #ffffff7a;
  border-radius: 15px;
  background: #fafdffff;
  box-shadow: 0 34px 95px #000000d9, 0 0 0 1px #3edcff20, 0 0 45px #00b9ee1c;
}

.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 35px;
  right: 35px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, #102d61, #164f91, #102d61);
}

.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 113px;
  padding: 4px 0 20px;
  border-bottom: 1px solid #d9e6ea;
  color: #146e86;
}

.login-brand img {
  display: block;
  width: 315px;
  max-width: 94%;
  height: 126px;
  object-fit: contain;
}

.login-brand svg {
  width: 66px;
  height: 52px;
  fill: #20a4b4;
  stroke: #195e9b;
  stroke-width: 3;
  stroke-linecap: round;
}

.login-brand b,
.login-brand small {
  display: block;
}

.login-brand b {
  font-size: 19px;
  letter-spacing: .055em;
}

.login-brand small {
  margin-top: 3px;
  color: #6e858d;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .13em;
}

.login-heading {
  padding: 21px 0 19px;
  text-align: center;
}

.captcha-field {
  display: grid;
  gap: 7px;
}

.captcha-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.captcha-label span {
  color: #17365f;
  font-size: 12px;
  font-weight: 800;
}

.captcha-label button {
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: #174f8f;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.captcha-row {
  display: grid;
  grid-template-columns: 1.22fr 1fr;
  gap: 10px;
}

.captcha-image {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 58px;
  overflow: hidden;
  border: 1px solid #b9d1d8;
  border-radius: 7px;
  background: #eaf6f8;
}

.captcha-image img {
  display: block;
  width: 100%;
  height: 58px;
  object-fit: cover;
}

.captcha-image span {
  position: absolute;
  color: #728b92;
  font-size: 10px;
}

.captcha-row .login-input {
  min-height: 58px;
}

.captcha-row input {
  letter-spacing: .14em;
  text-transform: uppercase;
}

.login-heading > span {
  color: #17477f;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
}

.login-heading h1 {
  margin: 7px 0 8px;
  color: #102d61;
  font-size: 25px;
}

.login-heading p {
  margin: 0;
  color: #70858c;
  font-size: 13px;
}

.access-login-form {
  display: grid;
  gap: 16px;
}

.access-login-form > label > span {
  display: block;
  margin-bottom: 7px;
  color: #17365f;
  font-size: 12px;
  font-weight: 800;
}

.login-input {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  min-height: 48px;
  border: 1px solid #c7d8de;
  border-radius: 7px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.login-input:focus-within {
  border-color: #1c4f8f;
  box-shadow: 0 0 0 3px #173f7a18;
}

.login-input > b {
  color: #6f919a;
  text-align: center;
}

.login-field-icon {
  display: grid;
  place-items: center;
  height: 100%;
  border-right: 1px solid #e0e9ec;
}

.login-field-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #173f73;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-input input {
  min-width: 0;
  padding: 12px 4px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #243c45;
  font: inherit;
}

.login-input button {
  margin-right: 8px;
  padding: 7px;
  border: 0;
  background: transparent;
  color: #173f73;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.login-input .password-eye {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-right: 4px;
  padding: 0;
  border-radius: 6px;
}

.password-eye:hover {
  background: #edf3fa;
}

.password-eye svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #173f73;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-eye .eye-closed,
.password-eye[data-visible="true"] .eye-open {
  display: none;
}

.password-eye[data-visible="true"] .eye-closed {
  display: block;
}

.access-login-form .login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: -5px;
}

.access-login-form .login-remember > span {
  margin: 0;
  font-weight: 600;
}

.login-submit,
.login-preview {
  min-height: 48px;
  border: 0;
  border-radius: 7px;
  font-weight: 900;
  cursor: pointer;
}

.login-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: #102f63;
  color: #fff;
  box-shadow: 0 8px 18px #102f6338;
}

.login-submit:disabled {
  cursor: wait;
  opacity: .68;
}

.login-preview {
  border: 1px solid #aabed7;
  background: #f2f6fb;
  color: #173f73;
}

.login-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 19px;
  color: #70858c;
  font-size: 11px;
}

.login-state span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e0ad42;
}

.login-state p {
  margin: 0;
}

.login-screen > footer {
  position: absolute;
  bottom: 20px;
  color: #fff;
  font-size: 11px;
  letter-spacing: .035em;
  text-align: center;
}

.login-screen > footer strong {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid #5cd8ff78;
  border-radius: 999px;
  background: #061b48d9;
  color: #f4fcff;
  box-shadow: 0 5px 18px #000a, inset 0 0 15px #188fd629;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-shadow: 0 0 8px #52d7ff8f;
}

@media (prefers-reduced-motion: reduce) {
  .fiber-lines,
  .fiber-nodes circle { animation: none; }
}

@media (max-width: 520px) {
  .login-screen { padding: 20px 13px 55px; }
  .login-card { min-height: auto; padding: 25px 21px 22px; }
  .login-heading h1 { font-size: 22px; }
  .captcha-row { grid-template-columns: 1fr; }
}

@media (max-height: 820px) and (min-width: 521px) {
  .login-screen { padding: 15px 20px 38px; }
  .login-card { padding: 20px 30px 17px; }
  .login-brand { min-height: 93px; padding: 0 0 9px; }
  .login-brand img { width: 278px; height: 91px; }
  .login-heading { padding: 13px 0 12px; }
  .login-heading h1 { margin: 4px 0 5px; font-size: 23px; }
  .access-login-form { gap: 11px; }
  .login-input { min-height: 43px; }
  .login-input input { padding: 9px 4px; }
  .captcha-image, .captcha-row .login-input { min-height: 52px; }
  .captcha-image img { height: 52px; }
  .login-submit, .login-preview { min-height: 43px; }
  .login-state { margin-top: 11px; }
  .login-screen > footer { bottom: 9px; }
}

/* Pengguna, role, dan akses deposit. */
.account-security-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 13px 16px;
  border: 1px solid #a9c6e5;
  border-left: 4px solid #173f73;
  border-radius: 7px;
  background: #eef5fc;
  color: #27445f;
}

.account-security-note b { color: #102f63; white-space: nowrap; }
.user-list-card .section-head { margin: 0 0 16px; }
.user-list-card .section-head h2 { margin-bottom: 5px; color: #16385f; }
.user-list-card .section-head p { margin: 0; color: #6b7d89; }
.user-editor-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }

.user-account-card {
  overflow: hidden;
  border: 1px solid #c8d5e3;
  border-top: 4px solid #173f73;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px #173f7312;
}

.user-account-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  border-bottom: 1px solid #dbe3eb;
}

.user-account-title h2 { margin: 0; color: #17365f; font-size: 18px; }
.user-account-title span { color: #687e90; font-size: 12px; }
.user-account-tabs { display: flex; gap: 3px; padding: 12px 18px 0; border-bottom: 1px solid #dce4eb; }
.user-account-tabs button { padding: 10px 16px; border: 0; border-radius: 5px 5px 0 0; background: #edf3f8; color: #42617b; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.user-account-tabs button:hover { background: #dce8f4; color: #173f73; }
.user-account-tabs button.active { background: #173f73; color: #fff; }
.user-account-card [data-user-panel][hidden] { display: none !important; }

.user-account-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 20px 22px;
  background: linear-gradient(90deg, #fbfdff, #f3f7fb);
  border-bottom: 1px solid #dce4eb;
}

.user-summary-profile,
.user-summary-deposit { display: flex; align-items: center; gap: 13px; }
.user-summary-profile > div,
.user-summary-deposit > div { display: grid; gap: 4px; }
.user-summary-profile small,
.user-summary-deposit small { color: #718596; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.user-summary-profile strong,
.user-summary-deposit strong { color: #17365f; font-size: 15px; }
.user-avatar,
.user-summary-deposit > span { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; }
.user-avatar { background: #dbe9f7; color: #173f73; border: 3px solid #fff; box-shadow: 0 0 0 1px #b9cde0; font-size: 22px; font-weight: 900; }
.user-avatar img,
.avatar-upload-preview img,
.avatar img,
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.user-avatar b,
.avatar-upload-preview b { font: inherit; }

.avatar-upload-panel {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 17px;
  margin: 20px 22px 0;
  padding: 15px;
  border: 1px solid #cad8e3;
  border-radius: 7px;
  background: #f4f8fc;
}
.avatar-upload-preview { display: grid; place-items: center; width: 82px; height: 82px; overflow: hidden; border: 4px solid #fff; border-radius: 50%; background: #dbe9f7; box-shadow: 0 0 0 1px #aec4d8, 0 7px 16px #173f7322; color: #173f73; font-size: 28px; font-weight: 900; }
.avatar-upload-panel > div { display: grid; justify-items: start; gap: 5px; }
.avatar-upload-panel b { color: #17365f; font-size: 13px; }
.avatar-upload-panel p { margin: 0; color: #718493; font-size: 10px; }
.avatar-upload-panel small { color: #506b80; font-size: 10px; font-weight: 700; }
.avatar-file-button { display: inline-flex; align-items: center; min-height: 31px; margin-top: 3px; padding: 0 12px; border-radius: 4px; background: #173f73; color: #fff; font-size: 10px; font-weight: 800; cursor: pointer; }
.avatar-file-button:hover { background: #245c98; }
.avatar-file-button input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.user-summary-deposit > span { background: #173f73; color: #fff; font-size: 30px; font-weight: 900; box-shadow: 0 7px 17px #173f7330; }

.user-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 16px; padding: 22px; }
.user-form-grid .user-wide { grid-column: 1 / -1; }
.user-form-grid textarea { width: 100%; resize: vertical; border: 1px solid #cdd9de; border-radius: 5px; padding: 10px; font: inherit; }
.user-form-grid small { display: block; margin-top: 6px; color: #6d8190; }

.role-permission-panel {
  display: grid;
  grid-template-columns: minmax(230px, .65fr) 1fr;
  gap: 18px;
  margin: 0 22px 16px;
  padding: 15px;
  border: 1px solid #b9cce0;
  border-radius: 6px;
  background: #f4f8fc;
}

.role-permission-panel b { color: #17365f; }
.role-permission-panel p { margin: 5px 0 0; color: #718392; font-size: 11px; }
.role-permission-panel [data-role-permissions] { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.role-permission-panel [data-role-permissions] span { padding: 6px 9px; border-radius: 12px; background: #dfeafb; color: #173f73; font-size: 10px; font-weight: 800; }

.advanced-permissions {
  margin: 0 22px 16px;
  overflow: hidden;
  border: 1px solid #c8d5e3;
  border-radius: 7px;
  background: #fff;
}

.advanced-permissions-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border-bottom: 1px solid #dce5ed;
  background: #173f73;
  color: #fff;
}

.advanced-permissions-head b { font-size: 13px; }
.advanced-permissions-head p { margin: 4px 0 0; color: #cfe0f3; font-size: 11px; }
.advanced-permissions-head > span { flex: 0 0 auto; padding: 6px 9px; border: 1px solid #ffffff42; border-radius: 12px; background: #0e2f5c; font-size: 9px; font-weight: 900; letter-spacing: .04em; }

.permission-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  background: #f4f7fa;
}

.permission-matrix fieldset { min-width: 0; margin: 0; padding: 9px; border: 1px solid #d4dee7; border-radius: 6px; background: #fff; }
.permission-matrix legend { padding: 0 7px; color: #173f73; font-size: 11px; font-weight: 900; }
.permission-matrix label { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 9px; min-height: 43px; padding: 7px 8px; border-radius: 5px; cursor: pointer; }
.permission-matrix label + label { border-top: 1px solid #edf1f5; }
.permission-matrix label:hover { background: #eef5fc; }
.permission-matrix input { width: 17px; height: 17px; margin: 0; accent-color: #173f73; }
.permission-matrix label > span { display: grid; gap: 2px; min-width: 0; }
.permission-matrix label b { color: #294a68; font-size: 11px; }
.permission-matrix label small { overflow: hidden; color: #8796a3; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.permission-matrix label:has(input:checked) { background: #edf5ff; }
.permission-matrix label:has(input:checked) b { color: #102f63; }

.permission-superadmin { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px; background: #eff6ff; color: #173f73; }
.permission-superadmin b { font-size: 13px; }
.permission-superadmin span { color: #657d91; font-size: 11px; }

.deposit-access-control {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 0 22px 16px;
  padding: 15px;
  border: 1px solid #d2b66e;
  border-radius: 6px;
  background: #fff9e9;
}

.deposit-access-control input { width: 20px; height: 20px; accent-color: #173f73; }
.deposit-access-control span { display: grid; gap: 4px; }
.deposit-access-control b { color: #17365f; }
.deposit-access-control small { color: #756a4e; }
.deposit-access-control em { padding: 6px 10px; border-radius: 12px; background: #173f73; color: #fff; font-size: 10px; font-style: normal; font-weight: 900; }
.user-form-error { margin: 0 22px 16px; padding: 11px 13px; border-radius: 5px; background: #ffe6e4; color: #9b2c27; font-weight: 700; }
.user-form-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 15px 22px; border-top: 1px solid #dce4eb; background: #f8fafc; }
.user-form-actions button:disabled { cursor: not-allowed; opacity: .52; }

@media (max-width: 760px) {
  .account-security-note { align-items: flex-start; flex-direction: column; }
  .user-account-title { align-items: flex-start; flex-direction: column; }
  .user-account-summary,
  .user-form-grid,
  .role-permission-panel { grid-template-columns: 1fr; }
  .permission-matrix { grid-template-columns: 1fr; }
  .advanced-permissions-head,
  .permission-superadmin { align-items: flex-start; flex-direction: column; }
  .user-form-grid .user-wide { grid-column: auto; }
  .deposit-access-control { grid-template-columns: auto 1fr; }
  .deposit-access-control em { grid-column: 2; justify-self: start; }
}

/* Tema transisi MixRadius: familiar bagi operator lama tanpa mengubah struktur Billing ASM. */
:root {
  --mix-blue: #3c94bd;
  --mix-sidebar: #202d33;
  --mix-sidebar-deep: #172126;
  --mix-sidebar-row: #223137;
  --mix-sidebar-active: #293b43;
  --mix-sidebar-text: #c4d1d6;
  --mix-sidebar-muted: #78909a;
  --mix-green: #00b968;
}

body,
button,
input,
select,
textarea {
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
}

.sidebar {
  background: var(--mix-sidebar);
  color: var(--mix-sidebar-text);
  box-shadow: 4px 0 14px #00000024;
}

.brand {
  min-height: 62px;
  padding: 0 20px;
  background: var(--mix-blue);
  border-bottom: 0;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand span { margin-left: 6px; color: #fff; }

.account {
  min-height: 92px;
  padding: 16px 20px;
  background: var(--mix-sidebar);
  border-bottom: 1px solid #111b1f;
}

.avatar {
  width: 50px;
  height: 50px;
  background: #d7dde0;
  color: #314750;
  font-size: 18px;
}
.avatar { overflow: hidden; }
.avatar img { display: block; border-radius: 50%; }
.profile-photo img { display: block; border-radius: 50%; }
.avatar img[hidden],
.profile-photo img[hidden] { display: none; }

.account strong { color: #c7d2d6; font-size: 15px; font-weight: 700; }
.account small { color: #fff; font-size: 12px; font-weight: 500; }
.account small::first-letter { color: var(--mix-green); }

#main-nav {
  padding: 0;
  background: var(--mix-sidebar);
  scrollbar-color: #51646c var(--mix-sidebar-deep);
}

.nav-console {
  position: relative;
  padding: 13px 14px 11px;
  background: var(--mix-sidebar-deep);
  border-bottom: 1px solid #2d3c42;
  box-shadow: none;
}

.nav-console label { height: 39px; border-color: #718087; border-radius: 3px; }
.nav-console input { font-size: 13px; }
.nav-console button {
  min-height: 32px;
  border-color: #53666e;
  border-radius: 3px;
  background: #26363d;
  color: #c4d1d6;
  font-size: 11px;
  font-weight: 600;
}
.nav-console button:hover { background: var(--mix-blue); color: #fff; }
.nav-console small { color: #82969e; font-size: 10px; }

.nav-section-caption {
  padding: 14px 22px 10px;
  background: var(--mix-sidebar-deep);
  color: #59717b;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: none;
}

.nav-group {
  border-top: 0;
  border-bottom: 1px solid #152126;
  background: var(--mix-sidebar-row);
}

.nav-group-title {
  min-height: 50px;
  padding: 8px 18px;
  border: 0;
  background: var(--mix-sidebar-row);
  color: var(--mix-sidebar-text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.nav-group-title:hover,
.nav-group.has-active > .nav-group-title {
  background: var(--mix-sidebar-active);
  color: #fff;
}

.group-name { gap: 10px; }
.group-name > i {
  width: 28px;
  height: 28px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #bdcbd0;
  font-size: 17px;
  font-weight: 500;
}
.group-meta b { color: #b4c4ca; font-size: 18px; font-weight: 400; }
.nav-group.open > .nav-group-title .group-meta b { color: #fff; }

.nav-children { padding: 3px 0 7px; background: #1b292f; }
.nav-button {
  width: 100%;
  min-height: 43px;
  margin: 0;
  padding: 7px 15px 7px 21px;
  border-radius: 0;
  border-left: 4px solid transparent;
  color: #aebfc5;
  font-size: 13px;
  font-weight: 400;
}
.nav-button .menu-icon {
  width: 22px;
  height: 22px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #9fb2b9;
  font-size: 13px;
}
.nav-button:hover { border-left-color: var(--mix-blue); background: #27373e; color: #fff; }
.nav-button:hover .menu-icon { background: transparent; color: #fff; }
.nav-button.active {
  border-left: 4px solid var(--mix-blue);
  background: var(--mix-sidebar-active);
  box-shadow: none;
  color: #fff;
  font-weight: 500;
}
.nav-button.active .menu-icon {
  width: 22px;
  height: 22px;
  margin: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
}
.nav-button.added { color: #b7c7cc; }

.sidebar-foot {
  padding: 13px 18px;
  border-top: 1px solid #34464e;
  background: var(--mix-sidebar);
  color: #8fa1a8;
  font-size: 11px;
}

.topbar { background: var(--mix-blue); }
.quick-action,
.top-icon { background: #3185aa; }

/* Kepadatan desktop: memberi ruang kerja lebih luas tanpa mengubah pengalaman mobile. */
@media (min-width: 1051px) {
  .app-shell { grid-template-columns: 232px minmax(0, 1fr); }
  .brand { min-height: 54px; padding: 0 16px; font-size: 16px; }
  .account { min-height: 76px; padding: 11px 16px; }
  .avatar { width: 42px; height: 42px; font-size: 16px; }
  .account strong { font-size: 13px; }
  .account small { margin-top: 3px; font-size: 10px; }
  .nav-console { padding: 9px 11px 8px; }
  .nav-console label { height: 34px; }
  .nav-console input { font-size: 11px; }
  .nav-console button { min-height: 29px; font-size: 10px; }
  .nav-console small { font-size: 9px; }
  .nav-section-caption { padding: 10px 17px 8px; font-size: 9px; }
  .nav-group-title { min-height: 42px; padding: 6px 14px; font-size: 12px; }
  .group-name > i { width: 24px; height: 24px; font-size: 14px; }
  .group-meta b { font-size: 15px; }
  .nav-children { padding: 2px 0 5px; }
  .nav-button { min-height: 36px; padding: 5px 12px 5px 17px; font-size: 11px; }
  .nav-button .menu-icon,
  .nav-button.active .menu-icon { width: 19px; height: 19px; font-size: 11px; }
  .sidebar-foot { padding: 9px 14px; font-size: 9px; }
  .topbar { height: 52px; padding-inline: 17px; }
  .safety-banner { margin: 10px 14px 0; padding: 8px 11px; font-size: 11px; }
  .page { padding: 13px 14px 28px; }
  .page-head { margin-bottom: 11px; }
  .breadcrumb { margin-bottom: 4px; font-size: 9px; }
  .page-head h1 { margin-bottom: 3px; font-size: 21px; }
  .page-head p { font-size: 12px; }
}

@media (max-width: 760px) {
  .brand { min-height: 58px; }
  .avatar-upload-panel { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .avatar-upload-panel > div { justify-items: center; }
}
