/* ==========================================================================
   Anganwadi Web Portal — Unified Fuji Silvertech Official Brand Theme
   Loaded AFTER bootstrap.min.css (4.4.1).
   Clean, Professional, High-Contrast & Accessible Corporate Design System
   ========================================================================== */

/* 1. Official Google Fonts & Bootstrap Icons
   Body/UI font matches fujisilvertech.com exactly (Lato). Their display
   headings use "Quatro Slab" (an Adobe/paid font, not freely embeddable);
   Roboto Slab is used here as the closest free stand-in — same bold
   geometric-slab character for page titles and section headings. */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,400&family=Roboto+Slab:wght@700;800;900&display=swap');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css');

/* ==========================================================================
   Fuji Silvertech Official Brand Palette & Design Tokens
   ========================================================================== */
:root {
  /* Fuji Silvertech Official Brand Palette — verified 2026-09 directly
     against the live computed styles of fujisilvertech.com (not just the
     earlier designer reference file). */
  --fuji-primary-blue: #0073BC;
  --fuji-primary-hover: #005E99;
  --fuji-accent-cyan: #00AEEF;
  --fuji-accent-blue: var(--fuji-accent-cyan);
  --fuji-logo-dark: #231917;

  /* Neutrals & Surfaces */
  --fuji-bg-canvas: #F4F7FA;
  --fuji-bg-sidebar: #E8ECEF;
  --fuji-bg-sidebar-hover: #1A1A1A;
  --fuji-bg-white: #FFFFFF;
  --fuji-bg-subtle: #EDF2F7;

  /* Chrome (sidebar / topbar / mobile nav) text & borders — the site's own
     header/footer are solid black with white nav text, so our app chrome
     is inverted to match; the main content canvas stays light. */
  --fuji-chrome-text: rgba(255, 255, 255, 0.78);
  --fuji-chrome-text-strong: #FFFFFF;
  --fuji-chrome-border: rgba(255, 255, 255, 0.12);
  --fuji-chrome-hover: rgba(255, 255, 255, 0.08);

  /* Text & Typography (matches the live site's Lato body copy in #383838,
     warm neutral grays rather than the earlier cool "slate" scale) */
  --fuji-text-heading: #231917;
  --fuji-text-body: #383838;
  --fuji-text-secondary: #6D6E70;
  --fuji-text-muted: #929497;

  /* Borders & Dividers */
  --fuji-border-gray: #E0E0E0;
  --fuji-border-soft: #EDEDED;
  --fuji-border-dark: #C7C7C7;

  /* Status Indicators */
  --success: #15803D;
  --success-bg: #DCFCE7;
  --warning: #B45309;
  --warning-bg: #FEF3C7;
  --error: #B91C1C;
  --error-bg: #FEE2E2;
  --info: #0073BC;
  --info-bg: #EBF5FC;
  --sap-fg: #0D9488;
  --sap-bg: #CCFBF1;

  /* App Theme Variables Mapping */
  --font-family: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Roboto Slab', Georgia, 'Times New Roman', serif;
  --brand-sidebar: var(--fuji-bg-sidebar);
  --brand-sidebar-hover: var(--fuji-bg-sidebar-hover);
  --brand-primary: var(--fuji-primary-blue);
  --brand-primary-hover: var(--fuji-primary-hover);
  --brand-primary-tint: #EBF5FC;
  --brand-primary-light: var(--fuji-accent-blue);

  --surface-bg: var(--fuji-bg-canvas);
  --surface-card: var(--fuji-bg-white);
  --surface-subtle: var(--fuji-bg-subtle);
  --border: var(--fuji-border-gray);
  --border-soft: var(--fuji-border-soft);

  --text-dark: var(--fuji-text-heading);
  --text-body: var(--fuji-text-body);
  --text-secondary: var(--fuji-text-secondary);
  --text-muted: var(--fuji-text-muted);

  /* Legacy Compatibility Aliases */
  --lime: var(--brand-primary);
  --lime-dark: var(--brand-primary-hover);
  --lime-tint: var(--brand-primary-tint);
  --lime-tint-2: var(--brand-primary-tint);
  --cream: var(--surface-bg);
  --white: #FFFFFF;
  --brand-dark: var(--brand-primary);
  --brand-500: var(--brand-primary);
  --brand-600: var(--brand-primary-hover);
  --brand-700: var(--brand-primary-hover);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 9px;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.03);
  --shadow-popover: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.06);
}

/* ---------- Global Resets & Typography ---------- */
html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 20px;
}

body {
  font-family: var(--font-family);
  background-color: var(--surface-bg);
  color: var(--text-body) !important;
  font-size: 13.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-dark);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Page titles and panel/modal headings get the brand's bold slab-serif
   display treatment (fujisilvertech.com's own "Quatro Slab" headings),
   same as their site reserves it for section-level statements rather
   than small in-card labels — h3–h6 stay in Lato for table/card density. */
h1,
h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
}

a {
  color: var(--brand-primary);
  transition: color 0.15s ease;
}

a:hover {
  color: var(--brand-primary-hover);
  text-decoration: none;
}

svg {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
  stroke-width: 1.75px !important;
}

:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

/* ---------- App Shell & Layout ---------- */
.app-shell {
  min-height: 100vh;
  padding-left: 47px;
}

.main-col {
  /* min-height: 100vh; */
  display: flex;
  flex-direction: column;
  min-width: 0;
  
}

.content-pad {
  padding: 20px 22px 40px;
  flex: 1;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}



@media (min-width: 992px) {
  .content-pad {
    padding: 26px 32px 48px 17px;
  }

  .fuji-content {
    padding: 26px 30px 48px 74px !important;
  }
}

/* ---------- Desktop Sidebar (Fuji Silvertech black chrome, matching
   the site's own header/footer) ---------- */
.pmc-sidebar {
  background: var(--brand-sidebar);
  width: 250px;
  flex: 0 0 250px;
  height: 100vh;
  position: fixed;
  top: 0;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  border-right: 1px solid var(--fuji-chrome-border);
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.25);
}

.pmc-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 4px;
  border-bottom: 1px solid var(--fuji-chrome-border);
  margin-bottom: 12px;
}

.pmc-brand .mark {
  width: 65px;
  height: 40px;
  border-radius: 8px;
  background: #FFFFFF !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--brand-primary);
  font-size: 13px;
  flex-shrink: 0;
  padding: 4px 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-soft);
}

.pmc-brand .mark img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.pmc-brand .name {
  color: #383838;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.pmc-nav-group-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #383838;
  font-weight: 700;
  margin: 14px 10px 6px;
}

.pmc-nav-group-label:first-of-type {
  margin-top: 4px;
}

/* Navigation links (Main & Sidebar Foot) */
.pmc-nav .nav-link,
.pmc-sidebar-foot .nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #383838;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 3px;
  transition: all 0.15s ease;
  text-decoration: none;
}

.pmc-nav .nav-link .text-truncate,
.pmc-sidebar-foot .nav-link .text-truncate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.pmc-nav .nav-link svg,
.pmc-sidebar-foot .nav-link svg {
  width: 16px;
  height: 16px;
  opacity: 0.85;
  stroke: #383838;
  flex-shrink: 0;
}

.pmc-nav .nav-link:hover,
.pmc-sidebar-foot .nav-link:hover {
  background: var(--fuji-chrome-hover);
  color: var(--fuji-accent-cyan);
}

.pmc-nav .nav-link:hover svg,
.pmc-sidebar-foot .nav-link:hover svg {
  stroke: var(--fuji-accent-cyan);
  opacity: 1;
}

.pmc-nav .nav-link.active,
.pmc-sidebar-foot .nav-link.active {
  background: var(--brand-primary);
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 115, 188, 0.28);
}

.pmc-nav .nav-link.active svg,
.pmc-sidebar-foot .nav-link.active svg {
  stroke: #ffffff !important;
  opacity: 1;
}

.pmc-nav .nav-link .layout-logo,
.pmc-sidebar-foot .nav-link .layout-logo {
  width: 16px;
  height: 16px;
  object-fit: contain;
  margin-right: 8px;
  vertical-align: -2px;
  display: inline-block;
  flex-shrink: 0;
  transition: filter 0.15s ease;
}

.pmc-nav .nav-link.active .layout-logo,
.pmc-sidebar-foot .nav-link.active .layout-logo {
  filter: brightness(0) invert(1);
}

.pmc-nav .nav-link .lexicon-icon,
.pmc-sidebar-foot .nav-link .lexicon-icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Sidebar Footer (Settings & Logout) */
.pmc-sidebar-foot {
  margin-top: auto;
  flex-shrink: 0;
  padding-top: 14px;
  border-top: 1px solid var(--fuji-chrome-border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pmc-sidebar-foot .nav-link[href*="login.html"]:hover {
  background: var(--error-bg);
  color: var(--error);
}

.pmc-sidebar-foot .nav-link[href*="login.html"]:hover svg {
  stroke: var(--error);
}

.pmc-promo {
  margin-top: 16px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.pmc-promo .icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand-primary-tint);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.pmc-promo .icon-wrap svg {
  color: var(--brand-primary);
  stroke: var(--brand-primary);
}

.pmc-promo h6 {
  color: var(--text-dark);
  font-size: 13px;
  margin-bottom: 4px;
  font-weight: 700;
}

.pmc-promo p {
  color: var(--text-secondary);
  font-size: 11.5px;
  line-height: 1.45;
  margin-bottom: 10px;
}

.pmc-promo .btn {
  width: 100%;
  font-size: 12px;
}

/* ---------- Mobile Navbar & Offcanvas ---------- */
.pmc-mobile-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--brand-sidebar);
  border-bottom: 1px solid var(--fuji-chrome-border);
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.pmc-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  position: relative;
  transition: background 0.12s ease;
}

.pmc-icon-btn:hover {
  background: var(--surface-subtle);
  color: var(--brand-primary);
}

.pmc-icon-btn .dot {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--error);
  border: 1.5px solid #FFFFFF;
}

#mobileSidebar {
  position: fixed;
  inset: 0 20% 0 0;
  z-index: 1045;
  background: var(--brand-sidebar);
  padding: 20px 16px;
  overflow-y: auto;
  box-shadow: 12px 0 32px rgba(0, 0, 0, 0.35);
  border-right: 1px solid var(--fuji-chrome-border);
}

#mobileSidebar.collapsing,
#mobileSidebar.show {
  display: block;
}

.pmc-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
}

@media (min-width: 992px) {

  .pmc-mobile-nav,
  #mobileSidebar,
  .pmc-backdrop {
    display: none !important;
  }
}

/* ---------- Topbar ---------- */
.pmc-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.pmc-topbar .titles h1 {
  font-size: 22px;
  margin: 0;
  color: var(--text-dark);
}

.pmc-topbar .titles p {
  font-size: 12.5px;
  color: var(--text-body);
  margin: 2px 0 0;
}

.pmc-topbar .actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pmc-search {
  position: relative;
  width: 420px !important;
  flex: 1 1 260px;
}


.pmc-search input {
  border-radius: var(--radius-pill);
  border: 1px solid #D6DCE3;
  background: var(--surface-card);
  padding: 8px 14px 8px 36px;
  font-size: 13px;
      width: 420px !important;
  color: var(--text-dark);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pmc-search input:focus {
  box-shadow: 0 0 0 3px rgba(0, 115, 188, 0.15);
  border-color: var(--brand-primary);
  outline: none;
}

.pmc-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.pmc-avatar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--surface-card);
  border-radius: var(--radius-pill);
  padding: 4px 12px 4px 4px;
  transition: background 0.12s ease;
}

.pmc-avatar-btn:hover {
  background: var(--surface-subtle);
  text-decoration: none;
}

.pmc-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

.pmc-avatar-btn .who {
  text-align: left;
  line-height: 1.2;
}

.pmc-avatar-btn .who .name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dark);
}

.pmc-avatar-btn .who .sub {
  font-size: 10.5px;
  color: var(--text-body);
}

.pmc-avatar-btn.dropdown-toggle::after {
  margin-left: 6px;
  vertical-align: 1px;
  color: var(--text-secondary);
}

/* ---------- Cards & Containers ---------- */
.card {
  /* border: 1px solid var(--border);
  border-radius: var(--radius-lg); */
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
}

.card-pad {
  padding: 20px;
}

.card-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-head-row h3 {
  font-size: 14.5px;
  font-weight: 700;
  margin: 0;
  color: var(--text-dark);
}

.card-head-row .sub {
  font-size: 11.5px;
  color: var(--text-secondary);
}

/* ---------- Stat Cards ---------- */
.stat-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  padding: 18px;
  height: 100%;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.stat-card.dark {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}

.stat-card .stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--brand-primary-tint);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.stat-card.dark .stat-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

.stat-card .stat-label {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}

.stat-card.dark .stat-label {
  color: var(--surface-card);
}

.stat-card .stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.stat-card.dark .stat-value {
  color: #FFFFFF;
}

.stat-delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--success-bg);
  color: var(--success);
  width: fit-content;
}

.stat-delta.down {
  background: var(--error-bg);
  color: var(--error);
}

.stat-card.dark .stat-delta {
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

.stat-delta svg {
  width: 11px;
  height: 11px;
}

/* ---------- Buttons & Interactive Elements ----------
   Small rectangular radius (not a full pill), matching the button/badge
   corner treatment on fujisilvertech.com (their own buttons run 3-4px). */
.btn {
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-sm {
  padding: 6px 13px;
  font-size: 12px;
}

.btn svg {
  width: 14px;
  height: 14px;
}

/* Primary Fuji Blue Button */
.btn-lime,
.btn-lime:focus,
.btn-primary,
.btn-brand {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #FFFFFF !important;
}

.btn-lime:hover,
.btn-primary:hover,
.btn-brand:hover {
  background-color: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(0, 115, 188, 0.25);
}

.btn-dark-brand {
  background-color: var(--fuji-text-heading);
  border-color: var(--fuji-text-heading);
  color: #FFFFFF !important;
}

.btn-dark-brand:hover {
  background-color: #000000;
  border-color: #000000;
  color: #FFFFFF !important;
}

.btn-outline-brand {
  background-color: var(--surface-card);
  border: 1px solid var(--border);
  color: var(--text-dark);
}

.btn-outline-brand:hover {
  background-color: var(--surface-subtle);
  color: var(--brand-primary);
  border-color: var(--border);
}

.btn-ghost-brand {
  background: transparent;
  border: none;
  color: var(--brand-primary);
  padding: 6px 8px;
}

.btn-ghost-brand:hover {
  background: var(--brand-primary-tint);
  color: var(--brand-primary-hover);
}

.btn-danger-soft {
  background: var(--error-bg);
  border-color: var(--error-bg);
  color: var(--error);
}

.btn-danger-soft:hover {
  background: #fcd0cc;
  color: var(--error);
}

.icon-btn-sq {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
}

.icon-btn-sq:hover {
  background: var(--surface-subtle);
  color: var(--brand-primary);
}

.icon-circle-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  margin-left: 4px;
}

.icon-circle-btn:hover {
  background: var(--surface-subtle);
}

.icon-circle-btn.danger {
  color: var(--error);
}

.icon-circle-btn.danger:hover {
  background: var(--error-bg);
}

/* ---------- Tables ---------- */
.table-card {
  padding: 0;
  overflow: hidden;
}

.table-card .table-toolbar {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--surface-card);
}

 .table-footer {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--border-soft);
  background: var(--surface-card);
}

.table-footer-info {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.table-page-size {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.table-page-size select {
  font-size: 12px;
  padding: 2px 8px;
  height: 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background-color: var(--surface-card);
  color: var(--text-body);
  cursor: pointer;
}

.table-page-size select:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 2px rgba(0, 115, 188, 0.15);
}

.table-footer .pagination,
.pagination {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 4px;
  align-items: center;
}

.table-footer .page-item .page-link,
.pagination .page-item .page-link {
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  font-size: 12px;
  color: #475569;
  text-decoration: none;
  background: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.table-footer .page-item .page-link:hover,
.pagination .page-item .page-link:hover {
  border-color: #0073BC;
  color: #0073BC;
  background: #F8FAFC;
}

.table-footer .page-item.active .page-link,
.pagination .page-item.active .page-link {
  background: #0073BC !important;
  border-color: #0073BC !important;
  color: #FFFFFF !important;
  font-weight: 600;
}

.table-footer .page-item.disabled .page-link,
.pagination .page-item.disabled .page-link {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.package-filter-card {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  user-select: none;
}

.package-filter-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card), 0 4px 12px rgba(0, 115, 188, 0.08);
  border-color: var(--brand-primary-light);
}

.package-filter-card.active {
  border-color: var(--brand-primary);
  background: var(--brand-primary-tint);
  box-shadow: 0 0 0 1px var(--brand-primary);
}

.table {
  margin-bottom: 0;
  font-size: 13px;
}

.table thead th {
  background: var(--surface-subtle);
  color: var(--text-body);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.04em;
  font-weight: 700;
  border: none;
  padding: 12px 18px;
  white-space: nowrap;
}

.table tbody td {
  padding: 13px 18px;
  vertical-align: middle;
  border-top: 1px solid var(--border-soft);
  color: var(--text-body);
}

.table tbody tr:hover {
  background: var(--brand-primary-tint);
}

.table .cell-primary {
  font-weight: 600;
  color: var(--text-dark);
}

.table-responsive-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 767px) {
  .table-responsive-wrap table {
    min-width: 640px;
  }
}

/* ---------- Badges ---------- */
.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.badge-dot::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 5px;
}

.badge-success-soft {
  background: var(--success-bg);
  color: var(--success);
}

.badge-warning-soft {
  background: var(--warning-bg);
  color: var(--warning);
}

.badge-error-soft {
  background: var(--error-bg);
  color: var(--error);
}

.badge-info-soft {
  background: var(--info-bg);
  color: var(--info);
}

.badge-sap-soft {
  background: var(--sap-bg);
  color: var(--sap-fg);
}

.badge-neutral-soft {
  background: var(--surface-subtle);
  color: var(--text-body);
}

/* ---------- Forms & Inputs ---------- */
label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-control,
.custom-select {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 13px;
  padding: 9px 12px;
  height: auto;
  background-color: var(--surface-card);
  color: var(--text-dark);
}

.custom-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 14px;
  cursor: pointer;
}

.form-control:focus,
.custom-select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(0, 115, 188, 0.15);
  outline: none;
}

.form-control[readonly] {
  background: var(--surface-subtle);
  color: var(--text-body);
}

.form-text-hint {
  font-size: 11.5px;
  color: var(--text-secondary);
}

.info-box {
  background: var(--info-bg);
  color: #005E99;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 12.5px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.info-box svg {
  color: var(--info);
  margin-top: 1px;
}

/* ---------- Pagination ---------- */
.pagination {
  margin-bottom: 0;
  display: flex;
  padding-left: 0;
  list-style: none;
  border-radius: var(--radius-sm);
}

.page-link {
  border: 1px solid var(--border);
  background: var(--surface-card);
  color: var(--text-secondary);
  border-radius: var(--radius-sm) !important;
  margin: 0 2px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  line-height: 1.2;
  transition: all 0.15s ease;
  text-decoration: none !important;
}

.page-link:hover {
  background: var(--surface-subtle);
  color: var(--brand-primary);
  border-color: var(--brand-primary-light);
}

.page-link:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 115, 188, 0.2);
}

.page-item.active .page-link {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #FFFFFF !important;
  box-shadow: 0 1px 3px rgba(0, 115, 188, 0.3);
}

.page-item.disabled .page-link {
  background: transparent;
  border-color: var(--border-soft);
  color: var(--text-muted);
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.6;
}

/* ---------- Mobile Responsive Table Footer & Pagination ---------- */
@media (max-width: 768px) {

   .table-footer,
  .table-footer {
    justify-content: center !important;
    text-align: center;
    padding: 10px 14px;
    gap: 8px;
  }

  /* On mobile hide the rows per page and total result, only show pagination */
  .table-footer-info,
  .table-page-size,
  .table-footer-meta,
  .table-footer>.d-flex:not(nav):not(.pagination),
  [id*="PaginationInfo"],
  [id*="paginationInfo"] {
    display: none !important;
  }

  .table-footer nav,
  .table-card .table-footer nav {
    margin: 0 auto;
    width: auto;
    display: flex;
    justify-content: center;
  }

  .pagination {
    justify-content: center;
    flex-wrap: wrap;
  }

  .page-link {
    padding: 5px 9px;
    font-size: 11.5px;
    margin: 0 1px;
    min-width: 30px;
    height: 30px;
  }
}

/* ---------- Charts & Widgets ---------- */
.progress {
  height: 7px;
  border-radius: var(--radius-pill);
  background: var(--border-soft);
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, var(--fuji-primary-blue), var(--fuji-accent-cyan));
  border-radius: var(--radius-pill);
  box-shadow: 0 0 6px rgba(0, 174, 239, 0.35);
}

.progress-bar.lime {
  background: linear-gradient(90deg, var(--fuji-primary-blue), var(--fuji-accent-cyan));
}

.hbar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  text-decoration: none;
}

.hbar-row .hbar-label {
  width: 90px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dark);
  flex-shrink: 0;
}

.hbar-track {
  flex: 1;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--border-soft);
  overflow: hidden;
}

.hbar-fill {
  height: 100%;
  background: var(--brand-primary);
  border-radius: var(--radius-pill);
}

.hbar-value {
  width: 38px;
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
}

.pie-block {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.pie-chart-lg {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pie-chart-lg span {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: var(--surface-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.pie-total {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
}

.pie-total-label {
  font-size: 9.5px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pie-legend {
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
  min-width: 150px;
}

.pie-legend-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--text-body);
  text-decoration: none;
}

.pie-legend-item .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pie-legend-item .lbl {
  flex: 1;
}

.pie-legend-item .val {
  font-weight: 700;
  color: var(--text-dark);
}

.trend-wrap {
  padding: 6px 4px 0;
}

.trend-svg {
  width: 100%;
  height: 64px;
  display: block;
}

.trend-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--text-dark);
  padding: 4px 4px 0;
}

.cal-strip {
  display: flex;
  gap: 8px;
}

.cal-day {
  flex: 1;
  text-align: center;
  padding: 9px 0;
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
}

.cal-day .dow {
  font-size: 10px;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.cal-day .dom {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}

.cal-day.active {
  background: var(--brand-primary);
}

.cal-day.active .dow {
  color: var(--fuji-bg-white);
}

.cal-day.active .dom {
  color: #FFFFFF;
}

.donut {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.donut span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-dark);
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  height: 150px;
  padding-top: 10px;
}

.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.bar-col .bar {
  width: 100%;
  max-width: 34px;
  background: var(--border-soft);
  border-radius: 6px 6px 0 0;
}

.bar-col .bar.hi {
  background: var(--brand-primary);
}

.bar-col .bar-label {
  font-size: 11px;
  color: var(--text-secondary);
}

.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--border-soft);
}

.list-row:first-child {
  border-top: none;
}

.row-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.row-title {
  flex: 1;
  font-size: 12.5px;
  color: var(--text-dark);
}

.row-meta {
  font-size: 11px;
  color: var(--text-body);
  white-space: nowrap;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border-soft);
}

.toggle-row:first-of-type {
  border-top: none;
}

.toggle-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.toggle-sub {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 1px;
}

.switch {
  width: 40px;
  height: 22px;
  border-radius: var(--radius-pill);
  background: var(--border);
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
}

.switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FFFFFF;
  transition: 0.15s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.switch.on {
  background: var(--brand-primary);
}

.switch.on::after {
  left: 20px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.profile-avatar-lg {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  flex-shrink: 0;
}

.settings-nav {
  position: sticky;
  top: 20px;
}

.settings-nav a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  border-left: 2px solid transparent;
}

.settings-nav a:hover {
  background: var(--surface-subtle);
  color: var(--text-dark);
}

.settings-nav a.active {
  background: var(--brand-primary-tint);
  color: var(--brand-primary);
  border-left-color: var(--brand-primary);
}

.divider {
  border-top: 1px solid var(--border-soft);
  margin: 14px 0;
}

.pill-tabs {
  display: inline-flex;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px;
}

.pill-tabs button {
  border: none;
  background: transparent;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.12s ease;
}

.pill-tabs button:hover:not(.active) {
  background: var(--surface-subtle);
  color: var(--text-dark);
}

.pill-tabs button.active {
  background: var(--brand-primary);
  color: #FFFFFF;
}

.date-range,
.filter-chip {
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--surface-card);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-size: 10px;
  color: var(--text-dark);
  font-weight: 600;
}

/* ---------- Authentication Screens ---------- */
.login-shell {
  min-height: 100vh;
  display: flex;
  background: var(--surface-bg);
}

.login-art {
  flex: 1;
  background: #4d4d4f;
  border-right: 1px solid var(--fuji-chrome-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  color: var(--fuji-chrome-text-strong) !important;
}

.login-form-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--surface-card);
}

.login-art img {
  background: #FFFFFF;
  padding: 10px 16px;
  border-radius: 10px;
  max-width: 200px;
  height: auto;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-soft);
}

@media (max-width: 900px) {
  .login-art { 
    display: none;
  }
}

.map-pin-thumb {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 1px dashed var(--border);
}

.two-col-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 992px) {
  .two-col-grid.md-1-1 {
    grid-template-columns: 1fr 1fr;
  }

  .two-col-grid.md-2-1 {
    grid-template-columns: 1.7fr 1fr;
  }


}

@media (max-width: 500px) {

  .pmc-brand {

    border-bottom: none;
    margin-bottom: 0px;
  }
}

.summary-panel {
  background: var(--surface-subtle);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 16px;
}

.summary-panel .row-line {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  padding: 6px 0;
  color: var(--text-secondary);
}

.summary-panel .row-line b {
  color: var(--text-dark);
}

/* Utilities */
.text-secondary {
  color: var(--text-body) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.fw-700 {
  font-weight: 700;
}

.dropdown-menu {
  min-width: 180px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-popover);
  font-size: 13px;
  padding: 6px;
  background: var(--surface-card);
  margin-top: 6px;
}

.dropdown-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  white-space: nowrap !important;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  transition: all 0.12s ease;
}

.dropdown-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: var(--text-secondary);
  stroke-width: 1.75px;
  transition: stroke 0.12s ease;
}

.dropdown-item:hover {
  background: var(--brand-primary-tint);
  color: var(--brand-primary);
}

.dropdown-item:hover svg {
  stroke: var(--brand-primary);
}

.dropdown-item[href*="login.html"]:hover {
  background: var(--error-bg);
  color: var(--error);
}

.dropdown-item[href*="login.html"]:hover svg {
  stroke: var(--error);
}

.dropdown-divider {
  border-top: 1px solid var(--border-soft);
  margin: 4px 0;
}

/* ==========================================================================
   WCAG 2.1 AA Accessibility & Assistive Technology Standards
   ========================================================================== */

/* 1. Visually Hidden / Screen Reader Only Utility */
.sr-only,
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* 2. Skip to Main Content Link for Keyboard Accessibility */
.skip-link,
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 12px;
  background: var(--brand-primary);
  color: #FFFFFF !important;
  padding: 8px 16px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.skip-link:focus,
.skip-to-content:focus {
  top: 12px;
  outline: 3px solid #FFFFFF;
}

/* 3. High Visibility Focus States */
:focus-visible {
  outline: 2.5px solid var(--brand-primary) !important;
  outline-offset: 2px !important;
}

/* 4. Reduced Motion Support */
@media (prefers-reduced-motion: reduce),
(update: slow) {

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

html[data-reduced-motion="true"] *,
html[data-reduced-motion="true"] *::before,
html[data-reduced-motion="true"] *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

/* 5. High Contrast Accessibility Mode */
html[data-contrast="high"]
@media (prefers-contrast: more) {
  :root {
    --fuji-border-gray: #6D6E70;
    --fuji-border-soft: #929497;
    --fuji-text-heading: #000000;
    --fuji-text-body: #1A1A1A;
    --fuji-text-secondary: #333333;
    --fuji-text-muted: #4D4D4F;
    --border: #6D6E70;
    --border-soft: #929497;
    --text-dark: #000000;
    --text-body: #1A1A1A;
    --text-secondary: #333333;
    --text-muted: #4D4D4F;
  }

  .card,
  .stat-card,
  .table-card,
  .form-control,
  .custom-select,
  .pmc-sidebar,
  .pmc-mobile-nav {
    border-color: #6D6E70 !important;
  }

  /* Sidebar chrome is black, so its high-contrast nav text stays white,
     not the page's black-on-white text override above. */
  .pmc-nav .nav-link,
  .pmc-sidebar-foot .nav-link {
    color: #FFFFFF !important;
    font-weight: 700;
  }

  .pmc-nav .nav-link.active,
  .pmc-sidebar-foot .nav-link.active {
    background: var(--brand-primary) !important;
    color: #FFFFFF !important;
    outline: 2px solid #FFFFFF;
    outline-offset: -2px;
  }

  .table thead th {
    background: #E5E5E5 !important;
    color: #000000 !important;
    font-weight: 800 !important;
  }

  .btn-lime,
  .btn-primary,
  .btn-brand {
    background: #005E99 !important;
    border-color: #005E99 !important;
  }
}

/* 6. Accessible Font Scaling */
html[data-font-size="medium"] body {
  font-size: 14.5px;
}

html[data-font-size="large"] body {
  font-size: 16px;
}

/* ==========================================================================
   Prototype-specific additions (stepper + working site-select dropdown)
   Added on top of the official Fuji Silvertech theme above; uses only
   tokens/aliases already defined in :root.
   ========================================================================== */
/* ---------- Stepper (stage selector) ---------- */
.stepper {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 18px;
  overflow-x: auto;
  padding: 6px 2px 10px;
}

.stepper-step {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex-shrink: 0;
  padding: 4px;
  border: none;
  background: none;
  text-align: left;
  border-radius: var(--radius-md);
  transition: transform .15s ease;
}

.stepper-step:hover {
  transform: translateY(-1px);
}

.stepper-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
  transition: box-shadow .18s ease, transform .18s ease;
}

.stepper-label {
  text-align: left;
}

.stepper-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
}

.stepper-meta {
  font-size: 10.5px;
  color: var(--text-secondary);
  white-space: nowrap;
  margin-top: 1px;
}

.stepper-line {
  flex: 0 0 34px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--fuji-primary-blue), var(--fuji-accent-cyan));
  opacity: .3;
  margin-top: 21px;
  align-self: flex-start;
}

.stepper-step.active .stepper-dot {
  box-shadow: 0 0 0 4px rgba(0, 174, 239, .32), 0 4px 12px -2px rgba(0, 115, 188, .5);
  transform: scale(1.08);
}

.stepper-step.active .stepper-name {
  color: var(--brand-primary);
}

.stepper-step.active+.stepper-line {
  opacity: 1;
}

.stepper-panel[hidden] {
  display: none;
}

/* ---------- Working site-select dropdown ---------- */
.site-select {
  position: relative;
}

.site-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  min-width: 250px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 6px;
  display: none;
  max-height: 300px;
  overflow-y: auto;
}

.site-select-menu.open {
  display: block;
}

.site-select-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.site-select-item:hover {
  background: var(--border-soft);
}

.site-select-item.active {
  background: var(--lime-tint);
}

.site-select-item .name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-dark);
}

.site-select-item .meta {
  font-size: 10.5px;
  color: var(--text-secondary);
  margin-top: 1px;
}

/* ---------- Per-site editable activity window (Project Planning) ---------- */
.awc-window-cell {
  position: relative;
}

.win-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-left: 4px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  vertical-align: middle;
  opacity: 0;
  transition: opacity .12s;
}

tr:hover .win-edit-btn,
.win-edit-btn:focus {
  opacity: 1;
}

.win-edit-btn:hover {
  background: var(--border-soft);
  color: var(--brand-primary);
}

.win-edit-btn.edited {
  opacity: 1;
  color: var(--brand-primary);
}

.win-edit-btn.edited::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-primary);
}

.win-popover {
  position: absolute;
  z-index: 60;
  width: 230px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 12px;
}

.win-popover-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.35;
}

.win-popover-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.win-popover-row label {
  font-size: 11px;
  color: var(--text-secondary);
  width: 38px;
  flex-shrink: 0;
  margin: 0;
}

.win-popover-row input[type="date"] {
  flex: 1;
  font-size: 11.5px;
  padding: 5px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.win-popover-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.win-popover-actions .btn {
  padding: 5px 10px;
  font-size: 11px;
}

/* ---------- Page title badge (site-wide) ---------- */
.page-title-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--fuji-primary-blue), var(--fuji-accent-cyan));
  box-shadow: 0 4px 10px -2px rgba(0, 115, 188, 0.45);
}

.page-title-badge svg {
  width: 18px;
  height: 18px;
}

/* ---------- Project Planning hero card (site summary) ---------- */
.pp-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  color: #fff;
  background: linear-gradient(135deg, var(--fuji-primary-blue) 0%, #005c96 45%, #001729 100%);
  box-shadow: 0 14px 32px -12px rgba(0, 41, 71, 0.55);
}

.pp-hero-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(115deg, transparent 30%, #000 95%);
  mask-image: linear-gradient(115deg, transparent 30%, #000 95%);
}

.pp-hero-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.pp-hero-info {
  min-width: 240px;
}

.pp-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fuji-accent-cyan);
  margin-bottom: 6px;
}

.pp-hero-eyebrow svg {
  width: 14px;
  height: 14px;
}

.pp-hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.01em;
  margin-bottom: 5px;
}

.pp-hero-sub {
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
}

.pp-hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.pp-ring {
  --pct: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: conic-gradient(var(--fuji-accent-cyan) calc(var(--pct) * 3.6deg), rgba(255, 255, 255, 0.18) 0deg);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.pp-ring::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: rgba(0, 20, 36, 0.6);
}

.pp-ring span {
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: 800;
}

.pp-hero-stat-label {
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.3;
  text-align: center;
}

.pp-hero-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(255, 255, 255, 0.18);
  margin: 2px 0;
}

.pp-hero-num {
  font-size: 27px;
  font-weight: 800;
  text-align: center;
  min-width: 32px;
}

.pp-hero-num-accent {
  color: var(--fuji-accent-cyan);
}

@media (max-width: 640px) {
  .pp-hero {
    padding: 20px;
  }

  .pp-hero-row {
    gap: 16px;
  }

  .pp-hero-stats {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ---------- Checkpoint drill-down (Stage → Activity → Checkpoint) ---------- */
.cp-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 5px 10px 5px 12px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  transition: border-color .12s, background .12s;
}

.cp-toggle:hover {
  border-color: var(--brand-primary);
  background: var(--lime-tint);
}

.cp-toggle svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform .15s ease;
}

.cp-toggle.open svg {
  transform: rotate(180deg);
}

.cp-toggle-text {
  line-height: 1;
}

.cp-panel-row td,
.wf-panel-row td {
  padding: 0 !important;
  border-top: none !important;
  background: var(--surface-subtle, #F4F7FA);
}

.cp-panel {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 10px 14px 14px;
}

/* Checkpoint accordion: every checkpoint is a collapsed row by default (icon,
   title, category, evidence, live status badge) that expands in place to
   reveal its Maker/Checker/Approver detail — replaces the earlier one-at-a-
   time paginated stepper so all checkpoints stay scannable at once. */
.cp-accordion {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.cp-row {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .12s;
}

.cp-row-toggle.cp-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: none;
  border-radius: 0;
  background: none;
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 400;
  white-space: normal;
}

.cp-row-toggle.cp-toggle:hover {
  background: var(--surface-subtle);
  border-color: transparent;
}

.cp-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cp-icon svg {
  width: 15px;
  height: 15px;
}

.cp-row-summary-body {
  flex: 1;
  min-width: 0;
}

.cp-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.cp-cat {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .02em;
}

.cp-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
}

.cp-evidence {
  font-size: 10.5px;
  color: var(--text-secondary);
}

.cp-evidence::before {
  content: "Evidence: ";
  color: var(--text-secondary);
  opacity: .7;
}

.cp-iscode {
  font-size: 10px;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--lime-tint);
  border-radius: 5px;
  padding: 1px 7px;
}

.cp-row-status {
  flex-shrink: 0;
}

.cp-row-status .badge {
  white-space: nowrap;
}

.cp-row-chevron {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform .15s ease;
}

.cp-row-toggle.open .cp-row-chevron {
  transform: rotate(180deg);
}

.cp-row-detail {
  padding: 9px 14px 12px 48px;
  margin: 0 12px;
  border-top: 1px dashed var(--border-soft);
}

.cp-row-detail .cp-roles {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.cp-row.cp-approved {
  border-color: var(--success-bg, #DCFCE7);
}

.cp-row.cp-na {
  opacity: .8;
}

.cp-row.cp-ncr {
  border-color: var(--error-bg, #FEE2E2);
  background: #FFFBFB;
}

.cp-row.cp-not_started {
  opacity: .6;
}

/* ---------- Checkpoint: per-role (Maker / Checker / Approver) response block ---------- */
.cp-roles {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cp-role {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.cp-role-name {
  width: 60px;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.cp-role-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  align-items: center;
}

.cp-role-actions .btn {
  padding: 3px 8px;
  font-size: 10px;
  line-height: 1.4;
}

.cp-role-status {
  font-size: 10.5px;
  color: var(--text-muted);
  font-style: italic;
}

.cp-role.cp-role-locked {
  opacity: .55;
}

.cp-role.cp-role-blocked .cp-role-status {
  color: var(--error);
  font-style: normal;
  font-weight: 700;
}

.cp-role-done {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.cp-comment-toggle {
  border: none;
  background: none;
  padding: 2px;
  margin: 0;
  cursor: pointer;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
}

.cp-comment-toggle svg {
  width: 13px;
  height: 13px;
}

.cp-comment-toggle:hover {
  color: var(--brand-primary);
  background: var(--lime-tint);
}

.cp-role-comment {
  flex: 1 1 100%;
  margin-top: 2px;
}

.cp-role-comment input {
  width: 100%;
  max-width: 360px;
  font-size: 11px;
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}

.cp-role-comment-text {
  flex: 1 1 100%;
  font-size: 10.5px;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 1px;
}

.cp-role-file {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface-subtle);
  border-radius: 5px;
  padding: 2px 7px;
}

.cp-role-file svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

.cp-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  font-size: 10.5px;
}

.cp-check svg {
  width: 13px;
  height: 13px;
}

/* ---------- Checkpoint response modal (Check button -> Approve/N/A/Raise NCR) ---------- */
.modal-content {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-popover);
  overflow: hidden;
}

.modal-header {
  border-bottom: 1px solid var(--border-soft);
  padding: 16px 20px;
  align-items: flex-start;
}

.modal-header .close {
  font-size: 22px;
  font-weight: 400;
  color: var(--text-secondary);
  text-shadow: none;
  opacity: 1;
  padding: 0;
  margin: 0;
  line-height: 1;
}

.modal-header .close:hover {
  color: var(--text-dark);
}

.modal-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-dark);
}

.cp-modal-checkpoint {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 10px;
}

.cp-modal-meta {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 3px;
}

.modal-body {
  padding: 18px 20px;
}

.modal-body .form-group:last-child {
  margin-bottom: 0;
}

.modal-body textarea.form-control {
  resize: vertical;
}

.modal-footer {
  border-top: 1px solid var(--border-soft);
  padding: 14px 20px;
  gap: 8px;
}

#cpModalFileHint {
  min-height: 14px;
}

/* ---------- Activity Workflow (Site Engineer -> Cluster Manager -> Package Manager -> Project Manager) ---------- */
.wf-panel {
  padding: 12px 14px;
}

.wf-track {
  display: flex;
  flex-direction: column;
}

.wf-stage {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 9px 12px;
}

.wf-stage+.wf-stage {
  margin-top: 6px;
}

.wf-stage .cp-role-name {
  width: 120px;
}

.wf-stage.wf-outcome-approved {
  border-color: var(--success-bg, #DCFCE7);
}

.wf-stage.wf-outcome-rejected {
  border-color: var(--error-bg, #FEE2E2);
  background: #FFFBFB;
}

.wf-stage.wf-outcome-returned {
  border-color: var(--warning-bg, #FEF3C7);
  background: #FFFDF5;
}

.wf-locked-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface-subtle);
  border-radius: var(--radius-md);
  font-size: 11.5px;
  color: var(--text-secondary);
}

.wf-locked-notice svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--text-muted);
}

.btn-warning-soft {
  background: var(--warning-bg);
  border-color: var(--warning-bg);
  color: var(--warning);
}

.btn-warning-soft:hover {
  background: #fde5b0;
  color: var(--warning);
}


/* ---------- Activity Configuration: Stage / Activity / Checkpoint master ---------- */
.wfc-columns {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  /*padding-left: 47px;*/
}

.wfc-col {
  flex: 1 1 0;
  min-width: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 260px);
  min-height: 420px;
}

.wfc-col-head {
  margin-bottom: 12px;
}

.wfc-col-head .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.wfc-col-head .btn svg {
  width: 14px;
  height: 14px;
  margin-right: 2px;
  vertical-align: -2px;
}

.wfc-list {
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 2px;
}

.wfc-empty {
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--surface-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.wfc-item {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 10px 12px;
  transition: border-color .12s ease, background .12s ease;
}

.wfc-item.selected {
  border-color: var(--brand-primary, var(--brand-dark));
  background: var(--surface-subtle);
}

.wfc-item-main {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.wfc-item-main-cp {
  cursor: default;
}

.wfc-item-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
}

.wfc-item-meta {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 3px;
}

.wfc-cp-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.wfc-cp-meta .badge {
  font-size: 10px;
}

.wfc-cp-evidence {
  color: var(--text-secondary);
}

.wfc-cp-evidence::before {
  content: '\2022';
  margin-right: 6px;
  color: var(--text-muted);
}

.wfc-cp-iscode {
  color: var(--text-muted);
  font-family: monospace;
  font-size: 10.5px;
}

.wfc-cp-iscode::before {
  content: '\2022';
  margin-right: 6px;
  color: var(--text-muted);
  font-family: inherit;
}

.wfc-item-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.wfc-icon-btn {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: var(--surface-card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.wfc-icon-btn svg {
  width: 13px;
  height: 13px;
}

.wfc-icon-btn:hover {
  background: var(--surface-subtle);
  color: var(--text-dark);
}

.wfc-icon-btn:disabled {
  opacity: .35;
  pointer-events: none;
}

.wfc-icon-btn.wfc-icon-danger:hover {
  background: var(--error-bg, #FEE2E2);
  color: var(--error, #DC2626);
  border-color: var(--error-bg, #FEE2E2);
}

.wfc-confirm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  font-size: 12px;
  color: var(--text-dark);
}

.wfc-confirm-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.wfc-confirm-actions .btn {
  padding: 4px 10px;
  font-size: 11.5px;
}

@media (max-width: 1100px) {
  .wfc-columns {
    flex-direction: column;

  }

  .wfc-col {
    max-height: none;
    min-height: 0;
  }
}

/* ---------- New Site: Applicable Activities & Checkpoints picker (Stage > Activity > Checkpoint) ---------- */
.activity-scope-tree {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.activity-scope-stage {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  background: var(--surface-subtle);
}

.activity-scope-stage-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-dark);
  cursor: pointer;
  margin-bottom: 8px;
}

.activity-scope-stage-header input {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.activity-scope-stage-header .text-secondary {
  font-weight: 400;
}

.activity-scope-activities {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 23px;
}

.activity-scope-activity {
  border-top: 1px dashed var(--border-soft);
  padding: 6px 0;
}

.activity-scope-activity:first-child {
  border-top: none;
  padding-top: 0;
}

.activity-scope-activity-header {
  display: flex;
  align-items: center;
  gap: 4px;
}

.activity-scope-expand {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: none;
  background: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
}

.activity-scope-chevron {
  width: 13px;
  height: 13px;
  transition: transform .12s ease;
}

.activity-scope-expand.open .activity-scope-chevron {
  transform: rotate(90deg);
}

.activity-scope-item {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1.4;
  flex: 1;
}

.activity-scope-item input {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

.activity-scope-checkpoints {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 5px 16px;
  padding: 6px 0 4px 22px;
}

.activity-scope-cp-item {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 11.5px;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1.35;
}

.activity-scope-cp-item input {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- Project switcher (topbar dropdown, site-wide) ---------- */
.proj-select {
  position: relative;
  flex-shrink: 0;
}

.proj-select-btn {
  cursor: pointer;
  max-width: 200px;
}

.proj-select-btn svg {
  flex-shrink: 0;
}

.proj-select-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 130px;
}

.proj-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: auto;
  z-index: 1040;
  min-width: 260px;
}

@media (max-width:640px) {
  .proj-select-btn {
    max-width: 120px;
    padding: 7px 10px;
  }

  .proj-select-label {
    max-width: 70px;
  }
}

/* ---------- Project Master: clickable rows that set the project switcher ---------- */
.pm-row {
  cursor: pointer;
}

.pm-row:hover {
  background: var(--surface-subtle);
}

.pm-row-active {
  background: var(--lime-tint);
}

/* ---------- Dashboard: period dropdown + date-range calendar popover ---------- */
.dash-cal-menu {
  padding: 12px;
  min-width: 264px;
}

.dash-cal-nav-btn {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  cursor: pointer;
  transition: background .12s ease;
}

.dash-cal-nav-btn:hover {
  background: var(--surface-subtle);
  color: var(--brand-primary);
}

.dash-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.dash-cal-dow {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
  padding: 4px 0 6px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.dash-cal-day {
  font-size: 12px;
  text-align: center;
  padding: 6px 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-dark);
}

.dash-cal-day:hover {
  background: var(--surface-subtle);
}

.dash-cal-day.muted {
  color: var(--text-secondary);
  opacity: .45;
}

.dash-cal-day.today {
  font-weight: 700;
  color: var(--brand-primary);
}

.dash-cal-day.selected {
  background: var(--brand-primary);
  color: #fff;
  font-weight: 700;
}

.dash-cal-day.selected:hover {
  background: var(--brand-primary);
}

.dash-cal-today-btn {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-primary);
  background: none;
  border: none;
  border-top: 1px solid var(--border-soft);
  margin-top: 10px;
  padding-top: 10px;
  cursor: pointer;
}

.dash-cal-today-btn:hover {
  text-decoration: underline;
}

/* ---------- Header / Topbar Navigation ---------- */
.pmc-header,
.pmc-topbar {
  align-items: center;
  background: transparent;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 23px 30px 10px 66px;
  width: 100%;
}

.pmc-page-heading,
.pmc-topbar .titles {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-right: auto;
  min-width: 0;
}

.pmc-page-header-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pmc-page-badge,
.page-title-badge {
  align-items: center;

  border-radius: 8px;
  color: #ffffff;
  display: flex;
  height: 36px;
  justify-content: center;
  width: 36px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--fuji-primary-blue), var(--fuji-accent-cyan));
  box-shadow: 0 4px 10px -2px rgba(0, 115, 188, 0.45);
}

.pmc-page-badge svg,
.page-title-badge svg,
.pmc-page-badge .lexicon-icon,
.page-title-badge .lexicon-icon {
  width: 19px;
  height: 19px;
  fill: #ffffff !important;
  color: #ffffff !important;
  stroke: #ffffff !important;
}

.pmc-page-badge .layout-logo,
.page-title-badge .layout-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.pmc-page-header-top h1,
.pmc-topbar .titles h1 {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.pmc-page-subtitle,
.pmc-topbar .titles p {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 500;
  margin-top: 4px;
  margin-bottom: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pmc-topbar .actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.pmc-page-subtitle {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 500;
  margin-top: 4px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pmc-search {
  max-width: 420px;
  position: relative !important;
  width: 100%;
  flex-shrink: 0;
  display: flex !important;
  align-items: center !important;
}

.pmc-search svg {
  color: #94a3b8;
  height: 15px;
  left: 13px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  pointer-events: none;
}

.pmc-search input {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  color: #1e293b;
  font-size: 12.5px;
  height: 36px;
  outline: none;
  padding-left: 34px;
  padding-right: 34px !important;
  width: 100%;
  transition: all 0.15s ease;
}

.pmc-search input:focus {
  border-color: #0073BC;
  box-shadow: 0 0 0 3px rgba(0, 115, 188, 0.12);
}

.pmc-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  padding: 0;
  margin: 0;
  display: none;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
  z-index: 5;
  transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
  line-height: 1;
}

.pmc-search-clear:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.pmc-search-clear:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 115, 188, 0.25);
}

.pmc-search-clear svg,
.pmc-search .pmc-search-clear svg {
  position: static !important;
  transform: none !important;
  left: auto !important;
  top: auto !important;
  width: 11px !important;
  height: 11px !important;
  color: inherit !important;
  stroke: currentColor !important;
  stroke-width: 2.5 !important;
  pointer-events: none !important;
}

.pmc-search.has-value .pmc-search-clear,
.pmc-search.has-text .pmc-search-clear,
.pmc-search input:not(:placeholder-shown) ~ .pmc-search-clear {
  display: inline-flex !important;
}

.pmc-header-action {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #475569;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  position: relative;
  width: 36px;
  flex-shrink: 0;
  transition: all 0.15s ease;
  text-decoration: none;
}

.pmc-header-action:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.pmc-header-action svg {
  height: 17px;
  width: 17px;
}

.pmc-notification-dot {
  background: #ef4444;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  height: 6px;
  position: absolute;
  right: 7px;
  top: 7px;
  width: 6px;
}

.pmc-user-dropdown {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.pmc-user-pill,
.pmc-avatar-btn {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  padding: 3px 11px 3px 4px;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.pmc-user-pill:hover,
.pmc-user-pill:focus,
.pmc-avatar-btn:hover,
.pmc-avatar-btn:focus {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.pmc-avatar {
  align-items: center;
  background: #0073BC;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  font-size: 11px;
  font-weight: 700;
  height: 28px;
  justify-content: center;
  width: 28px;
  flex-shrink: 0;
  text-decoration: none !important;
}

.pmc-user-meta,
.pmc-avatar-btn .who {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.15;
}

.pmc-user-name,
.pmc-avatar-btn .who .name {
  color: #1e293b;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.pmc-user-role,
.pmc-avatar-btn .who .sub {
  color: #64748b;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}

.pmc-user-pill .caret-icon,
.pmc-avatar-btn .caret-icon {
  color: #64748b;
  margin-left: 2px;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .pmc-header {
    padding: 10px 14px;
    gap: 10px;
  }

  .pmc-search {
    display: none;
  }

  .pmc-user-meta {
    display: none;
  }

  .pmc-user-pill {
    padding: 3px;
  }

  .pmc-page-subtitle {
    font-size: 10.5px;
  }

  .pmc-header-action {
    display: none;
  }

  .app-shell {

    padding-left: 0px;
  }

  .wfc-columns {

    padding-left: 0px;
  }
}

/* ---------- Mobile Navigation & Off-Canvas Sidebar ---------- */
.pmc-mobile-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--surface-card, #ffffff);
  border-bottom: 1px solid var(--border-soft, #e2e8f0);
  width: 100%;
}

.pmc-mobile-nav .pmc-brand {
  margin-bottom: 0;
  border-bottom: none;
}

.pmc-icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border, #E0E0E0);
  border-radius: var(--radius-sm, 6px);
  color: var(--text-dark, #231917);
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
  padding: 0;
}

.pmc-icon-btn:hover {
  background: var(--surface-subtle, #f1f5f9);
  color: var(--brand-primary, #0073BC);
}

.pmc-icon-btn svg {
  width: 18px;
  height: 18px;
}

.pmc-icon-btn .dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  background: var(--error, #ef4444);
  border-radius: 50%;
  border: 1.5px solid #fff;
}

#mobileSidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 270px;
  max-width: 85vw;
  background: var(--brand-sidebar, #E8ECEF);
  z-index: 1050;
  overflow-y: auto;
  padding: 20px 14px;
  box-shadow: 4px 0 16px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}

#mobileSidebar:not(.show) {
  display: none;
}

.pmc-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
}



.clusterImportDialog {
  width: min(440px, calc(100% - 32px));
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
}

.clusterImportDialog::backdrop {
  background: rgb(15 23 42 / 45%);
}

.clusterImportForm {
  display: grid;
  gap: 14px;
}

.clusterImportTitle {
  margin: 0;
  font-size: 18px;
}

.clusterImportStatus {
  min-height: 20px;
  margin: 0;
}

 .form-control.is-invalid {
  background-image: none;


}
 .form-control.is-invalid:focus,
 .custom-select.is-invalid:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(0, 115, 188, 0.15);
  outline: 0;
}
/*.custom-select.is-invalid, .was-validated .custom-select:invalid{*/
/*  background: none;*/
/*}*/

/* ==========================================================================
   Anganwadi Plant Master — Directory Cards & Right Sidebar Drawer
   ========================================================================== */

/* Cards layout */
.cards2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  padding: 16px 0px;
  
}

.card2 {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  border: 1px solid #D6DCE3;
  border-radius: 14px;
  padding: 14px 14px 12px;
  background: #FFFFFF;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  min-width: 0;
  cursor: pointer;
  position: relative;
}

.card2:hover {
  border-color: #B9D5F0;
  box-shadow: 0 1px 2px rgba(18, 32, 58, .06), 0 6px 20px rgba(18, 32, 58, .05);
  transform: translateY(-2px);
}

.c2-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.c2-id {
  color: #6F7C92;
  font-size: 12px;
  font-weight: 500;
}

.mono {
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

.c2-t {
  font-size: 17px;
  font-weight: 600;
  color: #16233B;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.c2-s {
  color: #6F7C92;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero {
  margin: 8px 0 4px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #F4F6F8;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}

.hero b {
  font-size: 24px;
  font-weight: 700;
  color: #16233B;
  line-height: 1;
}

.hero small {
  color: #6F7C92;
  font-size: 12px;
}

.hero .bar {
  flex-basis: 100%;
  margin-top: 6px;
}

.bar {
  height: 6px;
  border-radius: 99px;
  background: #E6EAEF;
  overflow: hidden;
  width: 100%;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: #0A63B8;
  transition: width .3s ease;
}

.c2-dl {
  justify-content: space-between;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  border-top: 1px solid #E6EAEF;
  padding-top: 9px;
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 500;
}

.c2-dl span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.c2-dl small {
  color: #6F7C92;
  font-weight: 400;
  font-size: 11px;
}

.c2-dl b {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.vtile {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
  background: #DCE9F8;
  color: #0B4F94;
}

.vtile svg {
  width: 18px;
  height: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 11.5px;
  padding: 3px 7px;
  border-radius: 99px;
  white-space: nowrap;
  background: #F4F6F8;
  color: #47556E;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chip.ok {
  background: #E0F2E8;
  color: #1C7448;
}

.chip.warn {
  background: #FEF3C7;
  color: #B45309;
}

.chip.info {
  background: #EBF5FC;
  color: #0073BC;
}

.chip.danger {
  background: #FEE2E2;
  color: #B91C1C;
}

.card-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: #6F7C92;
}

.card-action-btn:hover {
  background: #F4F6F8;
  color: #16233B;
}

.empty-state-wrap {
  grid-column: 1 / -1;
  width: 100%;
  padding: 48px 16px;
  text-align: center;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Right Drawer Sidebar */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 34, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 10040;
}

.scrim.on {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100vw);
  background: #FFFFFF;
  box-shadow: -12px 0 40px rgba(18, 32, 58, 0.18);
  transform: translateX(102%);
  transition: transform .22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10041;
  display: flex;
  flex-direction: column;
}

.drawer.on {
  transform: none;
}

.dh {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #E6EAEF;
}

.dh h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #16233B;
  line-height: 1.2;
}

.dh p {
  margin: 3px 0 0;
  color: #6F7C92;
  font-size: 13px;
}

.iconbtn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: none;
  color: #6F7C92;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
}

.iconbtn:hover {
  background: #F4F6F8;
  color: #16233B;
}

.dh .iconbtn {
  margin-left: auto;
}

.db {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
}

.df {
  display: flex;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid #E6EAEF;
  background: #F4F6F8;
  align-items: center;
}

.df .grow {
  flex: 1;
}

.facts {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0;
  margin: 0;
}

.facts dt,
.facts dd {
  padding: 10px 0;
  border-bottom: 1px solid #E6EAEF;
  margin: 0;
  font-size: 13px;
}

.facts dt {
  color: #6F7C92;
}

.facts dd {
  font-weight: 600;
  color: #16233B;
  overflow-wrap: anywhere;
}

/* Drawer Form Styles */
.drawer .form,
.plant-drawer-form,
#plantDrawerForm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 12px;
}

.fld {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fld.full {
  grid-column: 1 / -1;
}

.fld label {
  font-weight: 600;
  font-size: 12.5px;
  color: #16233B;
  margin: 0;
}

.fld label i {
  color: #A92E27;
  font-style: normal;
  margin-left: 2px;
}

.fld input,
.fld select,
.fld textarea {
  height: 38px;
  border: 1px solid #D6DCE3;
  border-radius: 8px;
  background: #FFFFFF;
  padding: 0 12px;
  width: 100%;
  font-size: 13px;
  color: #16233B;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.fld textarea {
  height: auto;
  min-height: 72px;
  padding: 8px 12px;
  resize: vertical;
}

.fld input:focus,
.fld select:focus {
  border-color: #0A63B8;
  outline: none;
  box-shadow: 0 0 0 3px rgba(10, 99, 184, 0.12);
}

.fld .hint {
  color: #6F7C92;
  font-size: 11.5px;
  line-height: 1.2;
}

.fld.err input,
.fld.err select {
  border-color: #A92E27;
}

.fld .msg {
  color: #A92E27;
  font-size: 11.5px;
  line-height: 1.2;
  min-height: 14px;
}

/* Master Modules & Drawer Buttons */
.anganwadi-plant-master-container .btn,
.anganwadi-project-management-container .btn,
.anganwadi-package-master-container .btn,
.anganwadi-cluster-management-container .btn,
.anganwadi-site-management-container .btn,
.drawer .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid #D6DCE3;
  background: #FFFFFF;
  font-weight: 500;
  font-size: 13px;
  color: #16233B;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.anganwadi-plant-master-container .btn:hover,
.anganwadi-project-management-container .btn:hover,
.anganwadi-package-master-container .btn:hover,
.anganwadi-cluster-management-container .btn:hover,
.anganwadi-site-management-container .btn:hover,
.drawer .btn:hover {
  background: #F4F6F8;
  color: #16233B;
}

.btn.primary {
  background: #0A63B8;
  border-color: #0A63B8;
  color: #FFFFFF !important;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(10, 99, 184, 0.25);
}

.btn.primary:hover {
  background: #085299;
  border-color: #085299;
  color: #FFFFFF !important;
  box-shadow: 0 2px 6px rgba(10, 99, 184, 0.35);
}

.btn.danger {
  color: #A92E27;
  border-color: #F08A82;
  background: #FFFFFF;
}

.btn.danger:hover {
  background: #FADFDC;
  color: #A92E27;
}

.btn.sm {
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

/* Feedback Popup Modal */
.feedback-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}
.feedback-modal-backdrop.active {
  opacity: 1;
}
.feedback-modal-dialog {
  width: 90%;
  max-width: 420px;
  transform: scale(0.92) translateY(8px);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  margin: auto;
}
.feedback-modal-backdrop.active .feedback-modal-dialog {
  transform: scale(1) translateY(0);
}
.feedback-modal-content {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.05);
  padding: 32px 28px 24px;
  position: relative;
  text-align: center;
  overflow: hidden;
}
.feedback-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.feedback-modal-close:hover {
  background: #f1f5f9;
  color: #334155;
}
.feedback-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feedback-icon-success {
  background-color: #ecfdf5;
  box-shadow: 0 0 0 8px #f0fdf4;
}
.feedback-icon-error {
  background-color: #fef2f2;
  box-shadow: 0 0 0 8px #fff1f2;
}
.feedback-modal-title {
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
  line-height: 1.3;
}
.feedback-modal-message {
  font-size: 13.5px;
  color: #64748b;
  margin: 0 0 24px;
  line-height: 1.55;
}
.feedback-modal-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.feedback-confirm-btn {
  min-width: 130px;
  height: 38px;
  padding: 0 24px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

body.no-scroll 
{
  overflow: hidden;
}

/* ---------- Shared Three-Dot Fuji Card Actions Menu ---------- */
.fuji-card-actions-menu {
  display: none;
  position: fixed;
  min-width: 148px;
  padding: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
  z-index: 9999;
}

.fuji-card-actions-menu.open {
  display: block;
}

.fuji-card-actions-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #334155;
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  line-height: 1;
  transition: background 0.12s ease, color 0.12s ease;
}

.fuji-card-actions-item:hover,
.fuji-card-actions-item:focus-visible {
  background: #f8fafc;
  color: #0073BC;
  outline: none;
}

.fuji-card-actions-item.danger {
  color: #dc2626;
}

.fuji-card-actions-item.danger:hover,
.fuji-card-actions-item.danger:focus-visible {
  background: #fef2f2;
  color: #b91c1c;
}

.fuji-card-actions-item svg,
.fuji-card-actions-item span {
  pointer-events: none;
}

.fuji-card-actions-item svg {
  flex-shrink: 0;
}
.empty-state-wrap svg
{
 display: none;
 
}

/* ==========================================================================
   Change Password Page (/c/portal/update_password) Layout & Button Spacing
   ========================================================================== */

form[action*="update_password"],
form[id*="UpdatePasswordPortlet"],
form:has(input[name*="password1"]),
.sheet form {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  max-width: 520px;
  width: 100%;
}

form[action*="update_password"] fieldset,
form[action*="update_password"] .fieldset,
form[id*="UpdatePasswordPortlet"] fieldset,
form[id*="UpdatePasswordPortlet"] .fieldset,
form:has(input[name*="password1"]) fieldset,
form:has(input[name*="password1"]) .fieldset {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  border: none !important;
  margin: 0 0 20px 0 !important;
  padding: 0 !important;
  gap: 16px !important;
}

form[action*="update_password"] .form-group,
form[id*="UpdatePasswordPortlet"] .form-group,
form:has(input[name*="password1"]) .form-group {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  margin-bottom: 16px !important;
}

form[action*="update_password"] .form-group label,
form[id*="UpdatePasswordPortlet"] .form-group label,
form:has(input[name*="password1"]) .form-group label {
  display: block !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  color: #16233B !important;
  margin-bottom: 6px !important;
}

form[action*="update_password"] input[type="password"],
form[id*="UpdatePasswordPortlet"] input[type="password"],
form:has(input[name*="password1"]) input[type="password"] {
  width: 100% !important;
  max-width: 100% !important;
  height: 42px !important;
  border: 1px solid #D6DCE3 !important;
  border-radius: 8px !important;
  padding: 0 14px !important;
  font-size: 14px !important;
  color: #16233B !important;
  transition: border-color .15s ease, box-shadow .15s ease !important;
}

form[action*="update_password"] input[type="password"]:focus,
form[id*="UpdatePasswordPortlet"] input[type="password"]:focus,
form:has(input[name*="password1"]) input[type="password"]:focus {
  border-color: #0073BC !important;
  box-shadow: 0 0 0 3px rgba(0, 115, 188, 0.15) !important;
  outline: none !important;
}

/* Save & Cancel Buttons Row: Displayed below password fields with proper alignment and spacing */
form[action*="update_password"] .button-holder,
form[action*="update_password"] .button-row,
form[action*="update_password"] .btn-group,
form[id*="UpdatePasswordPortlet"] .button-holder,
form[id*="UpdatePasswordPortlet"] .button-row,
form[id*="UpdatePasswordPortlet"] .btn-group,
form:has(input[name*="password1"]) .button-holder,
form:has(input[name*="password1"]) .button-row,
form:has(input[name*="password1"]) .btn-group {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  margin-top: 10px !important;
  width: 100% !important;
  clear: both !important;
}

form[action*="update_password"] .button-holder .btn,
form[action*="update_password"] .button-row .btn,
form[action*="update_password"] .btn-group .btn,
form[id*="UpdatePasswordPortlet"] .button-holder .btn,
form[id*="UpdatePasswordPortlet"] .button-row .btn,
form[id*="UpdatePasswordPortlet"] .btn-group .btn,
form:has(input[name*="password1"]) .button-holder .btn,
form:has(input[name*="password1"]) .button-row .btn,
form:has(input[name*="password1"]) .btn-group .btn {
  min-width: 104px !important;
  height: 40px !important;
  padding: 0 20px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  text-decoration: none !important;
  margin: 0 !important;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease !important;
}

form[action*="update_password"] .btn-primary,
form[action*="update_password"] button[type="submit"],
form[id*="UpdatePasswordPortlet"] .btn-primary,
form[id*="UpdatePasswordPortlet"] button[type="submit"],
form:has(input[name*="password1"]) .btn-primary,
form:has(input[name*="password1"]) button[type="submit"] {
  background-color: #0073BC !important;
  border: 1px solid #0073BC !important;
  color: #FFFFFF !important;
}

form[action*="update_password"] .btn-primary:hover,
form[action*="update_password"] button[type="submit"]:hover,
form[id*="UpdatePasswordPortlet"] .btn-primary:hover,
form[id*="UpdatePasswordPortlet"] button[type="submit"]:hover,
form:has(input[name*="password1"]) .btn-primary:hover,
form:has(input[name*="password1"]) button[type="submit"]:hover {
  background-color: #005A94 !important;
  border-color: #005A94 !important;
  box-shadow: 0 2px 6px rgba(0, 115, 188, 0.25) !important;
}

form[action*="update_password"] .btn-secondary,
form[action*="update_password"] .btn-cancel,
form[action*="update_password"] a.btn,
form[id*="UpdatePasswordPortlet"] .btn-secondary,
form[id*="UpdatePasswordPortlet"] .btn-cancel,
form[id*="UpdatePasswordPortlet"] a.btn,
form:has(input[name*="password1"]) .btn-secondary,
form:has(input[name*="password1"]) .btn-cancel,
form:has(input[name*="password1"]) a.btn {
  background-color: #64748B !important;
  border: 1px solid #64748B !important;
  color: #FFFFFF !important;
}

form[action*="update_password"] .btn-secondary:hover,
form[action*="update_password"] .btn-cancel:hover,
form[action*="update_password"] a.btn:hover,
form[id*="UpdatePasswordPortlet"] .btn-secondary:hover,
form[id*="UpdatePasswordPortlet"] .btn-cancel:hover,
form[id*="UpdatePasswordPortlet"] a.btn:hover,
form:has(input[name*="password1"]) .btn-secondary:hover,
form:has(input[name*="password1"]) .btn-cancel:hover,
form:has(input[name*="password1"]) a.btn:hover {
  background-color: #475569 !important;
  border-color: #475569 !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 6px rgba(100, 116, 139, 0.25) !important;
}

.sheet:has(form[action*="update_password"]),
.sheet:has(form[id*="UpdatePasswordPortlet"]),
.sheet:has(input[name*="password1"]) {
  border-radius: 14px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
  border: 1px solid #E2E8F0 !important;
}
