/**
 * MUTU Master UI/UX — Theme (layout shell)
 * ----------------------------------------------------------------
 * Sidebar, header, footer, login page, and a handful of page-specific
 * example blocks (manual-book-content, unlock-detail-table, ps-*,
 * breadcrumb-doc — safe to delete per-project, they're patterns to
 * copy from, not core chrome). Load AFTER mutu-tokens.css.
 *
 * Load order: Bootstrap 5 CSS -> mutu-tokens.css -> mutu-theme.css ->
 * mutu-components.css -> your own page CSS (if any).
 */
body {
  background-color: var(--mutu-surface, #FCFCFC);
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  grid-template-columns: auto 1fr;
  display: block;
}


.sidebar {
  background-color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 1001;
  text-wrap: nowrap;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: width 0.3s ease, padding 0.3s ease, transform 0.3s ease;
}

.sidebar svg,
.sidebar i.bi {
  color: var(--mutu-brand-red-dark, #E42028);
  font-size: 12px;
  width: 12px;
  height: 12px;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

/* logo stays fixed at top; menu list below it scrolls independently */
.logo-sidebar {
  flex-shrink: 0;
  padding-right: 12px;
}

/* close (X) button — only shown on mobile/tablet drawer sidebar */
.sidebar-close-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 4px;
  border: 1px solid #DFDFDF;
  border-radius: 8px;
  background: transparent;
  color: var(--mutu-ink, #0A2D48);
  font-size: 16px;
  flex-shrink: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.sidebar-close-btn:hover {
  background-color: #F3F4F6;
  border-color: var(--mutu-ink, #0A2D48);
}

.sidebar-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  padding-top: 24px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #E5E7EB transparent;
}

.sidebar-scroll::-webkit-scrollbar {
  width: 5px;
}

.sidebar-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
  background: #E5E7EB;
  border-radius: 10px;
}

.sidebar-main {
  margin-top: 8px;
  margin-right: 10px;
  max-height: none;
  overflow-y: visible;
}


.menu-title {
  color: var(--mutu-text-label, #A0A0A0);
  padding-left: 4px;
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.list-sidebar {
  list-style: none;
  margin: 0;
  padding: 0;
  margin-top: 12px;
}

.list-sidebar a {
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--mutu-ink, #0A2D48);
  display: flex;
  align-items: center;
  position: relative;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  transition: background-color 0.2s ease, background-image 0.2s ease, color 0.2s ease;
  margin: 2px;
}

.list-sidebar a::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  border-radius: 3px;
  background-color: var(--mutu-brand-red, #FF383C);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.list-sidebar a:hover {
  background: linear-gradient(to right, #FFEBEC, #E7EDF5);
}

.list-sidebar .menu.active,
.list-sidebar .dropdown-toggle.active,
.list-sidebar .submenu-sidebar.active {
  background: linear-gradient(to right, #FFEBEC, #E7EDF5);
  font-weight: 600;
}

.list-sidebar .menu.active::before,
.list-sidebar a:hover::before,
.list-sidebar .dropdown-toggle.active::before,
.list-sidebar .submenu-sidebar.active::before {
  opacity: 1;
}

#sidebar a:active,
#sidebar .dropdown-btn:active {
  background-color: #FFEBEC;
}

.title-menu {
  margin-left: 12px;
}

.submenu {
  list-style: none;
  padding-left: 18px;
}

.submenu a {
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--mutu-ink, #0A2D48);
  display: flex;
  align-items: center;
  position: relative;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  transition: background-color 0.2s ease, color 0.2s ease;
  margin: 2px;
}

.submenu a:hover {
  background-color: #FFEBEC;
}

.dropdown-toggle::after {
  margin-left: auto;
  transition: transform 0.3s ease;
}

/* "ADMIN" pill next to admin-only nav items (config/nav.php's `admin_only`
   flag - see temp/sidebar.php). margin-left:auto pushes it to the far right
   of the flex row for a plain leaf item, or right before the dropdown
   chevron for a parent item (since the chevron is the next flex item after
   it and keeps its own margin-left:auto). */
.badge-admin {
  margin-left: auto;
  margin-right: 6px;
  padding: 2px 7px;
  border-radius: 10px;
  background-color: var(--mutu-brand-red, #FF383C);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
  flex-shrink: 0;
}

.dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

/* flyout submenu — shown when hovering/tapping a menu with a submenu while the sidebar is collapsed (mini) */
.sidebar-flyout {
  position: fixed;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0px 8px 24px 0px rgba(8, 15, 54, 0.14);
  border: 0.5px solid #F2F2F2;
  padding: 8px;
  min-width: 200px;
  max-width: 280px;
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transform: translateX(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  pointer-events: none;
}

.sidebar-flyout.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

.sidebar-flyout .flyout-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--mutu-text-label, #A0A0A0);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 12px 8px;
}

.sidebar-flyout .submenu {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

/* flyout clones sidebar submenu markup outside .sidebar, so it needs its own
   icon-size rule matching the sidebar's own icon scale (exempt from the
   app-wide 16px icon default, same as the sidebar itself) */
.sidebar-flyout svg,
.sidebar-flyout i.bi {
  width: 12px;
  height: 12px;
  font-size: 12px;
}

/* tooltip — shown next to an icon when hovering the mini (collapsed) sidebar */
.sidebar-tooltip {
  position: fixed;
  background-color: var(--mutu-ink, #0A2D48);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  box-shadow: 0px 4px 12px 0px rgba(8, 15, 54, 0.18);
  white-space: nowrap;
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transform: translate(4px, -50%);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  pointer-events: none;
}

.sidebar-tooltip.show {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
}

.card-title {
  margin-bottom: 8px;

}

.icon-card {
  height: 54px;
  width: 54px;
  background-color: #D7EFE2;
  border-radius: 100px;
  margin-right: 30px;
}

.list {
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 .35rem .5rem rgba(0, 0, 0, 0.1);
  border: none;
  padding: 8px;
  margin: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sidebar-logo .list,
.button-close {
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 .35rem .5rem rgba(0, 0, 0, 0.1);
  border: none;
  padding: 10px;
  margin-right: 25px;
}

.container-mobile {
  padding: 25px;
  background-color: #fff;
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-profile-user {
  width: 40px;
  height: 40px;
  object-fit: cover;
  margin-right: 4px;
}

/* Fallback avatar when the logged-in user has no photo on file (see
   temp/sidebar.php) - built from their real name/email initials instead of
   a static placeholder image. */
.header-profile-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mutu-brand-blue, #0C4D9F);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

/* Manual Book / AR System Blueprint (application/views/manualbook/index.php) */
.manual-book-content {
  font-size: 14px;
  line-height: 1.7;
  max-height: 700px;
  overflow-y: auto;
}
.manual-book-content h1 { font-size: 22px; border-bottom: 2px solid var(--mutu-brand-blue, #0C4D9F); padding-bottom: 8px; margin-top: 4px; color: var(--mutu-brand-blue, #0C4D9F); }
.manual-book-content h2 { font-size: 18px; border-bottom: 1px solid #e7eaec; padding-bottom: 6px; margin-top: 18px; color: #333; }
.manual-book-content h3 { font-size: 15px; margin-top: 14px; color: #555; }
.manual-book-content h4 { font-size: 14px; margin-top: 10px; color: #777; }
.manual-book-content table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13px; }
.manual-book-content table th { background: var(--mutu-brand-blue, #0C4D9F); color: #fff; padding: 8px 10px; text-align: left; }
.manual-book-content table td { padding: 7px 10px; border-bottom: 1px solid #e7eaec; }
.manual-book-content table tr:hover td { background: #f9f9f9; }
.manual-book-content code { background: #f4f4f4; padding: 2px 5px; border-radius: 3px; font-size: 12px; color: #c7254e; }
.manual-book-content pre { background: #f4f4f4; padding: 12px; border-radius: 4px; overflow-x: auto; }
.manual-book-content pre code { color: #333; background: none; padding: 0; }
.manual-book-content blockquote { border-left: 4px solid var(--mutu-brand-blue, #0C4D9F); padding: 8px 16px; color: #666; background: #f9f9f9; margin: 10px 0; }
.manual-book-content ul, .manual-book-content ol { padding-left: 20px; }
.manual-book-content li { margin-bottom: 4px; }
.manual-book-content img { max-width: 100%; border-radius: 4px; border: 1px solid #e7eaec; }
.manual-book-content hr { border-top: 1px solid #e7eaec; }
.manual-book-content .highlight { background: yellow; border-radius: 2px; }

.manual-toc { font-size: 12px; max-height: 600px; overflow-y: auto; }
.manual-toc a { display: block; padding: 3px 6px; color: #555; text-decoration: none; border-radius: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.manual-toc a:hover { background: #f0f0f0; color: var(--mutu-brand-blue, #0C4D9F); }
.manual-toc .toc-h1 { font-weight: bold; color: var(--mutu-brand-blue, #0C4D9F); }
.manual-toc .toc-h2 { padding-left: 14px; font-size: 11px; }
.manual-toc .toc-h3 { padding-left: 24px; font-size: 11px; color: #888; }

.header-user-info {
  display: grid;
}

.header-user {
  display: flex;
}

.header-username {
  font-weight: 600;
  color: #222;
}

.header-role {
  font-size: 12px;
  color: #6c757d;
}



/*header*/
.header {
  height: 64px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 16px 8px;
  z-index: 1000;
  border-bottom: 3.6px solid;
  border-image: linear-gradient(to left, var(--mutu-brand-red, #FF383C), var(--mutu-brand-blue, #0C4D9F)) 1;
}

/* header — matches design mockups: plain toggle icon, page title, global search, avatar */
.header-toggle {
  background: none;
  border: none;
  box-shadow: none;
  padding: 8px;
  color: var(--mutu-ink, #0A2D48);
}

.header-title {
  margin: 0;
  font-weight: 600;
  font-size: 16px;
  color: var(--mutu-ink, #0A2D48);
}

/* header search reuses the shared .input-group/.form-search component — only width is custom here */
.header-search-group {
  width: 260px;
}

@media (max-width: 768px) {
  .header-search-group {
    display: none;
  }
}

.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  margin-left: 250px;
  background: #fff;
  text-align: center;
  font-size: 12px;
  color: #333;
  z-index: 999;
  transition: 0.3s;
}


/* garis gradasi atas footer */
.footer-line {
  height: 3.6px;
  background: linear-gradient(to right,
      var(--mutu-brand-red, #FF383C),
      var(--mutu-brand-blue, #0C4D9F));
}

.footer p {
  margin: 0;
  padding: 12px 16px;
  text-align: left;
}

.fw-bold {
  margin-top: 12px;
}

.user-PIC h6 {
  margin-bottom: 8px;
}



/*hp kecil*/
@media (max-width: 480px) {
  .header h4 {
    font-size: 16px;
    font-weight: 700;
    padding: 8px
  }
}

/* mobile & tablet: off-canvas drawer sidebar (up to and including small laptops boundary) */
@media (max-width: 1024px) {

  .sidebar {
    width: 280px;
    padding: 16px 0 16px 14px;
    z-index: 1060;
    transform: translateX(-100%);
  }

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

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(10, 45, 72, 0.35);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
  }

  /* touch-friendly sizing: bigger tap targets, a bit more breathing room */
  .list-sidebar a,
  .submenu a {
    min-height: 44px;
    padding: 12px 16px;
    font-size: 14px;
  }

  .sidebar i.bi {
    font-size: 14px;
    width: 14px;
    height: 14px;
  }

  .sidebar-main {
    margin-top: 12px;
  }

  .list-sidebar {
    margin-top: 8px;
  }

  .logo-sidebar {
    padding-bottom: 4px;
    padding-right: 14px;
    justify-content: space-between;
  }

  .sidebar-close-btn {
    display: flex;
  }

  .button-close {
    display: block !important;
  }



  .card-body .form .container-center {
    width: 100%;
  }

  .card {
    margin-bottom: 16px;
  }

  .navigation {
    display: none;
  }



  .indicator,
  .indicator-view,
  .indicator-payment {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .card-select {
    overflow-x: auto;
  }

  .card-content {
    height: 215px;
    align-items: center;
  }

  .card-content img {
    width: 200px;
    height: 100px;
  }

  .card-content h5 {
    font-size: 12px;
    font-weight: 600;
  }

  .header {
    margin-left: 0;
    width: 100%;
  }

  .footer {
    margin-left: 0;
    width: 100%;
  }

  .main {
    padding-bottom: 56px;
  }
}

/* desktop & laptop: push sidebar with mini-rail collapse */
@media (min-width: 1025px) {
  .sidebar {
    width: 250px;
    padding: 16px 0 16px 14px;
    transform: none;
  }

  .sidebar.show {
    width: 64px;
    padding: 16px 0 16px 8px;
  }

  .sidebar-overlay {
    display: none;
  }

  .content {
    margin-left: 250px;
    transition: all 0.3s ease;
  }

  .sidebar.show~.content {
    margin-left: 64px;
  }

  .sidebar.show~.content .header {
    margin-left: 64px;
    width: calc(100% - 64px);
  }

  .sidebar.show~.footer {
    margin-left: 64px;
    width: calc(100% - 64px);
  }


  .sidebar.show a .title-menu {
    display: none;
  }

  .sidebar.show .logo-sidebar {
    justify-content: center;
  }

  .sidebar.show .logo-text {
    display: none;
  }

  .sidebar.show .menu-title {
    display: none;
  }

  .sidebar.show .sidebar-main {
    margin-top: 16px;
  }

  .sidebar.show .dropdown-toggle::after {
    display: none;
  }

  .sidebar.show .list-sidebar a,
  .sidebar.show .submenu a {
    justify-content: center;
    padding: 10px;
    margin: 4px auto;
    width: 40px;
    min-width: 40px;
    height: 40px;
  }

  .list-sidebar {
    margin-top: 0;
  }


  .logo-sidebar {
    gap: 12px;
  }

  .fw-bold.title {
    margin: 0px;
  }

  .main {
    width: 100%;
    padding-bottom: 56px;
  }

  .header {
    margin-left: 250px;
    width: calc(100% - 250px);
  }


  .sidebar.show .footer {
    width: 100%;
  }

  .indicator,
  .indicator-view,
  .indicator-payment {
    justify-content: center;
  }


}

/*tablet*/
@media (max-width: 1024px) {

  .indicator,
  .indicator-view,
  .indicator-payment {
    overflow-x: auto;
    justify-content: flex-start;
  }

}

/* Pagination — page-number buttons + first/last controls rendered by
   assets/js/list-page.js inside the existing <li id="{prefix}PageNum">
   slot (see FinanceListPage's renderPageNumbers()). Reuses Bootstrap's own
   .page-item/.page-link chrome; only the active-page highlight and ellipsis
   need custom rules since the "active" state now lives on individual
   buttons rather than a whole <li>. */
.page-item-numbers {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0;
  background: none;
  border: none;
}

.page-num-btn {
  min-width: 32px;
}

.page-num-btn.active-page {
  /* !important: this button also carries the plain .page-link class for
     Bootstrap's chrome, whose own `.pagination .page-link { color: ... }`
     rule in mutu-components.css ties on specificity and loads later in
     the cascade - without !important here the active page number's text
     silently takes the unhighlighted blue color instead of white,
     rendering as blue-on-blue (invisible) against this button's own blue
     background. */
  background-color: var(--mutu-brand-blue, #0C4D9F) !important;
  border-color: var(--mutu-brand-blue, #0C4D9F) !important;
  color: #fff !important;
}

.page-ellipsis {
  border: none;
  background: none;
  color: var(--mutu-text-label, #A0A0A0);
  pointer-events: none;
}

/* Icon-only row action buttons (View/Edit/Delete/Download in table Action
   columns) - replaces the earlier text-label buttons ("View", "Edit",
   "Details") app-wide per user request: same click target, far less visual
   weight per row. Always paired with a Bootstrap tooltip (data-bs-toggle=
   "tooltip") for the label that used to be inline text - see
   list-page.js's render() for where these get initialized after each
   table redraw. */
.btn-icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #DFDFDF;
  border-radius: 6px;
  background: #fff;
  color: var(--mutu-brand-blue-alt, #0B4EA1);
  font-size: 14px;
  line-height: 1;
  vertical-align: middle;
  transition: .15s;
}

.btn-icon-action:hover {
  background: #E7EDF5;
  border-color: #DFDFDF;
  color: var(--mutu-brand-blue-alt, #0B4EA1);
}

.btn-icon-action.text-danger {
  color: var(--mutu-brand-red, #FF383C) !important;
}

.btn-icon-action.text-danger:hover {
  background: #FFD7DC;
  border-color: #DFDFDF;
  color: var(--mutu-brand-red, #FF383C) !important;
}

/* View / Preview — orange, same as template-mutuapps' .btn-action-warning */
.btn-icon-action.btn-icon-view {
  color: #FF8D28;
}

.btn-icon-action.btn-icon-view:hover {
  background: #FEE6C9;
  border-color: #DFDFDF;
  color: #FF8D28;
}

.action-icon-group {
  display: flex;
  gap: 6px;
}

/* Login Page */
.login-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.login-decor {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
  pointer-events: none;
}

.login-decor.decor-1 {
  top: -120px;
  right: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #FFD7DC 0%, rgba(255, 216, 220, 0) 70%);
}

.login-decor.decor-2 {
  top: 20%;
  left: -160px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #E7EDF6 0%, rgba(231, 237, 246, 0) 70%);
}

.login-container {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 24px 64px;
}

.login-logo-icon {
  width: 64px;
  margin-bottom: 24px;
}

.login-title {
  font-weight: 700;
  font-size: 48px;
  line-height: 1.15;
  color: var(--mutu-ink, #0A2D48);
  margin-bottom: 16px;
}

.login-title .text-brand {
  color: var(--mutu-brand-blue, #0C4D9F);
}

.login-subtitle {
  color: var(--mutu-text-muted, #667085);
  font-size: 14px;
  max-width: 420px;
}

.login-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0px 4px 16px 0px rgba(8, 15, 54, 0.06);
  border: 0.5px solid #F2F2F2;
  padding: 40px;
  /* Comfortable form width: without a cap the card (and its inputs) stretch to
     ~730px on a 1920px screen. Pushed to the right edge of its column; centred
     again at the 991px breakpoint below. */
  width: 100%;
  max-width: 440px;
  margin-left: auto;
}

.login-card h4 {
  color: var(--mutu-ink, #0A2D48);
}

.login-card .form-control {
  background-color: #F9FAFB;
  padding: 10px 12px;
}

.login-forgot {
  color: var(--mutu-brand-red, #FF383C);
  font-size: 12px;
  text-decoration: underline;
}

.login-forgot:hover {
  color: var(--mutu-brand-red, #FF383C);
}

/* Full logo lockup (icon + wordmark) on the login page: 280px wide (about a third of the
   login card's height - at its natural ~540-620px the logo dominated the page), never wider
   than its column, centred under the 991px breakpoint (same in MUTU Sales / Finance / People / Tenant). */
.login-logo {
  display: block;
  width: 280px;
  max-width: 100%;
  height: auto;
  margin-bottom: 16px;
}

@media (max-width: 991.98px) {
  .login-intro .login-logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

.login-submit {
  padding: 10px;
  font-size: 14px;
}

@media (max-width: 991px) {
  .login-container {
    padding: 24px;
  }

  .login-intro {
    text-align: center;
    margin-bottom: 32px;
  }

  .login-intro .login-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .login-logo-icon {
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  .login-title {
    font-size: 36px;
  }

  .login-card {
    padding: 32px 24px;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .login-title {
    font-size: 28px;
  }

  .login-decor.decor-1,
  .login-decor.decor-2 {
    width: 240px;
    height: 240px;
  }
}

        /* customer unlock */
        .unlock-detail-table td {
            padding: 8px 10px;
            font-size: 12px;
            vertical-align: top;
            border-bottom: 1px solid #F0F0F0;
        }

        .unlock-detail-table td:first-child {
            width: 180px;
            color: var(--mutu-text-muted, #667085);
            font-weight: 500;
        }

        .unlock-history-scroll {
            max-height: 220px;
            overflow-y: auto;
            border: 1px solid #F0F0F0;
            border-radius: 8px;
            padding: 10px;
        }

        .unlock-history-item {
            border-bottom: 1px solid #F0F0F0;
            padding: 8px 4px;
            font-size: 12px;
        }

        .unlock-history-item:last-child {
            border-bottom: none;
        }

        .unlock-history-item .period {
            font-weight: 600;
            color: var(--mutu-ink, #0A2D48);
        }

        .unlock-history-item .made-by {
            color: var(--mutu-text-faint, #98A2B3);
            font-size: 11px;
        }

/* Payment Summary page header (title/subtitle/breadcrumb/currency chip) —
   was previously an inline <style> block in that page. */
.ps-title-row {
    margin-top: 4px;
    padding-bottom: 12px;
}

.ps-title {
    font-weight: 700;
    letter-spacing: .5px;
    color: var(--mutu-ink, #0A2D48);
    font-size: 15px;
    margin: 0;
}

.ps-subtitle {
    color: var(--mutu-text-muted, #667085);
    font-size: 12px;
    margin: 0;
}

.ps-breadcrumb {
    font-size: 12px;
    color: var(--mutu-text-muted, #667085);
    margin: 0;
    white-space: nowrap;
}

.ps-breadcrumb a {
    color: var(--mutu-text-muted, #667085);
    text-decoration: none;
}

.ps-breadcrumb .current {
    color: var(--mutu-ink, #0A2D48);
    font-weight: 500;
}

.currency-chip {
    background-color: var(--mutu-brand-blue-alt, #0B4EA1);
    color: #fff;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: .5px;
    border-radius: 4px;
    padding: 4px 10px;
}

.ps-amount {
    color: #495057;
    font-weight: 700;
    font-size: 26px;
    margin: 12px 0 4px 0;
}

/* Access Log page breadcrumb + view-log button + doc links — was
   previously an inline <style> block in that page. */
.breadcrumb-doc {
    font-size: 12px;
    color: var(--mutu-text-muted, #667085);
    margin: 0;
}

.breadcrumb-doc a {
    color: var(--mutu-text-muted, #667085);
    text-decoration: none;
}

.breadcrumb-doc .current {
    color: var(--mutu-ink, #0A2D48);
    font-weight: 500;
}

.btn-view-log {
    font-size: 12px;
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 8px;
}

.doc-link {
    color: var(--mutu-brand-blue-alt, #0B4EA1);
    text-decoration: none;
}

.doc-link:hover {
    text-decoration: underline;
}