
/* PR Console · neutral gray design system
   Presentation only: no data, scripts or form behavior changes. */

:root {
  --prg-bg: #f3f5f7;
  --prg-panel: #ffffff;
  --prg-soft: #f7f8fa;
  --prg-border: #e0e4e9;
  --prg-ink: #29313b;
  --prg-muted: #697583;
  --prg-accent: #475260;
  --prg-hover: #e9edf1;
}

/* Shared page backdrop */
html body:has(.viewer-page-wrap) {
  background: #f3f5f7 !important;
  background-image: none !important;
  color: var(--prg-ink);
}
html body:has(.viewer-page-wrap)::before,
html body:has(.viewer-page-wrap)::after {
  background: none !important;
  background-image: none !important;
}

/* Page hero */
html body .viewer-page-wrap .viewer-hero,
html body .viewer-page-wrap .viewer-hero-compact {
  background: linear-gradient(115deg, #303946, #58636f) !important;
  background-image: linear-gradient(115deg, #303946, #58636f) !important;
  border: 1px solid #46515d !important;
  box-shadow: 0 8px 25px rgba(32,40,50,.10) !important;
}
html body .viewer-page-wrap .viewer-hero h1,
html body .viewer-page-wrap .viewer-hero .viewer-kicker,
html body .viewer-page-wrap .viewer-hero p,
html body .viewer-page-wrap .viewer-hero .viewer-user-name {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Shared cards / work panels */
html body .viewer-page-wrap .viewer-home-card,
html body .viewer-page-wrap .viewer-important-action-card,
html body .viewer-page-wrap .viewer-content-card,
html body .viewer-page-wrap .viewer-section-card,
html body .viewer-page-wrap .desktop-content-card,
html body .viewer-page-wrap .viewer-menu-card {
  border-color: var(--prg-border) !important;
  box-shadow: 0 3px 15px rgba(35,45,55,.045) !important;
}
html body .viewer-page-wrap .viewer-section-title,
html body .viewer-page-wrap .viewer-home-card-head h3 {
  color: var(--prg-ink) !important;
}

/* Links and buttons: preserve geometry and click behavior */
html body .viewer-page-wrap .viewer-small-download,
html body .viewer-page-wrap .viewer-user-action-primary,
html body .viewer-page-wrap .viewer-menu-primary,
html body .viewer-page-wrap .floating-home-button,
html body .floating-home-button,
html body .viewer-page-wrap button[type="submit"],
html body .viewer-page-wrap input[type="submit"] {
  background: #46515e !important;
  background-image: none !important;
  border-color: #46515e !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: none !important;
}
html body .viewer-page-wrap .viewer-small-download:hover,
html body .viewer-page-wrap button[type="submit"]:hover {
  background: #303946 !important;
}

/* Inputs: neutral borders, accessible focus outline */
html body .viewer-page-wrap input:not([type="checkbox"]):not([type="radio"]),
html body .viewer-page-wrap select,
html body .viewer-page-wrap textarea {
  border-color: #d6dce3 !important;
}
html body .viewer-page-wrap input:focus,
html body .viewer-page-wrap select:focus,
html body .viewer-page-wrap textarea:focus {
  outline-color: #778594 !important;
  border-color: #778594 !important;
}

/* Shared desktop sidebar */
html body .desktop-side-nav.desktop-side-nav-v2,
html body .desktop-side-nav-v2 .desktop-side-menu-shell {
  background: #fff !important;
  background-image: none !important;
  border-color: #e0e4e9 !important;
  box-shadow: 0 4px 22px rgba(35,45,55,.045) !important;
}
html body .desktop-side-nav-v2 a,
html body .desktop-side-nav-v2 button {
  accent-color: #475260 !important;
}
html body .desktop-side-nav-v2 .desktop-side-group-active,
html body .desktop-side-nav-v2 .desktop-side-group-open,
html body .desktop-side-nav-v2 [aria-current="page"],
html body .desktop-side-nav-v2 .active,
html body .desktop-side-nav-v2 .is-active {
  background: #eef1f4 !important;
  background-image: none !important;
  border-color: #d5dbe1 !important;
  box-shadow: none !important;
  color: #26313d !important;
}
html body .desktop-side-nav-v2 .desktop-side-group-active *,
html body .desktop-side-nav-v2 [aria-current="page"] *,
html body .desktop-side-nav-v2 .active * {
  color: #26313d !important;
}
html body .desktop-side-nav-v2 .desktop-side-sub-panel {
  background: #fff !important;
  background-image: none !important;
  border-color: #dfe4e9 !important;
}
html body .desktop-side-nav-v2 a:hover,
html body .desktop-side-nav-v2 button:hover {
  background-color: #eef1f4 !important;
}

/* Legacy primary accents and borders */
html body .viewer-page-wrap .viewer-user-role-badge,
html body .viewer-page-wrap .viewer-menu-icon {
  background: #46515e !important;
  background-image: none !important;
  color: #fff !important;
}
html body .viewer-page-wrap .viewer-menu-card:hover {
  border-color: #9ea8b4 !important;
}
html body .viewer-page-wrap a:focus-visible,
html body .viewer-page-wrap button:focus-visible,
html body .desktop-side-nav-v2 a:focus-visible {
  outline: 2px solid #596776 !important;
  outline-offset: 2px;
}

/* Home action buttons: correct invisible white-on-white text */
html body.pr-home-gray .home-admin-action-panel a,
html body.pr-home-gray .home-admin-action-panel button,
html body.pr-home-gray .home-admin-action-panel a *,
html body.pr-home-gray .home-admin-action-panel button * {
  color: #29313b !important;
  -webkit-text-fill-color: #29313b !important;
}
html body.pr-home-gray .home-admin-action-panel a:hover,
html body.pr-home-gray .home-admin-action-panel button:hover {
  background: #eef1f4 !important;
  border-color: #acb5bf !important;
}
html body.pr-home-gray .home-admin-action-panel .viewer-menu-icon {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Tables and neutral highlighting */
html body .viewer-page-wrap table thead th {
  background: #f0f2f5 !important;
  color: #303946 !important;
}
html body .viewer-page-wrap table tbody tr:hover {
  background: #f6f8fa !important;
}

/* Keep meaningful status and warnings recognizable:
   no universal grayscale filter is used. */

@media (max-width: 720px) {
  html body .viewer-page-wrap .viewer-hero {
    border-radius: 16px !important;
  }
}



/* ===== PR_GRAY_REFINEMENT_V2 =====
   Existing gray theme refinement. Visual changes only.
   Do not override semantic success/warning/error status lights.
*/

/* Sidebar brand, scrollbar and active navigation */
html body .desktop-side-nav-v2 .desktop-side-link-active,
html body .desktop-side-nav-v2 .desktop-side-group-active > .desktop-side-link,
html body .desktop-side-nav-v2 .desktop-side-sub-active,
html body .desktop-side-nav-v2 .desktop-side-group-active,
html body .desktop-side-nav-v2 [aria-current="page"] {
    background: #eef1f4 !important;
    background-image: none !important;
    border-color: #d5dce3 !important;
    color: #293340 !important;
    box-shadow: none !important;
}

html body .desktop-side-nav-v2 .desktop-side-link-active *,
html body .desktop-side-nav-v2 .desktop-side-sub-active * {
    color: #293340 !important;
    -webkit-text-fill-color: #293340 !important;
}

html body .desktop-side-nav-v2 .desktop-side-group-active::before,
html body .desktop-side-nav-v2 .desktop-side-link-active::before,
html body .desktop-side-nav-v2 .desktop-side-group-active::after {
    background: #657282 !important;
    border-color: #657282 !important;
}

html body .desktop-side-nav-v2 .desktop-side-menu-shell::-webkit-scrollbar-thumb,
html body .desktop-side-nav-v2::-webkit-scrollbar-thumb,
html body .desktop-side-nav-v2 .desktop-side-sub-panel::-webkit-scrollbar-thumb {
    background: #a9b2bd !important;
}

html body .desktop-side-nav-v2 .desktop-side-menu-shell {
    scrollbar-color: #a9b2bd #f1f3f5 !important;
}

html body .desktop-side-nav-v2 [class*="brand"],
html body .desktop-side-nav-v2 [class*="kicker"] {
    color: #475361 !important;
    -webkit-text-fill-color: #475361 !important;
}

/* Old pink selection controls */
html body .viewer-page-wrap .viewer-section-switch-active,
html body .viewer-page-wrap .viewer-calendar-selected,
html body .viewer-page-wrap [class*="period-active"],
html body .viewer-page-wrap [class*="period-selected"],
html body .viewer-page-wrap [class*="tab-active"],
html body .viewer-page-wrap [class*="tab-selected"],
html body .viewer-page-wrap [class*="filter-active"],
html body .viewer-page-wrap [aria-selected="true"]:not([role="option"]) {
    background: #46515e !important;
    background-image: none !important;
    border-color: #46515e !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    box-shadow: none !important;
}

/* Page-specific action buttons */
html body .viewer-page-wrap a[class*="download"],
html body .viewer-page-wrap button[class*="download"],
html body .viewer-page-wrap [class*="save-button"],
html body .viewer-page-wrap [class*="search-button"],
html body .viewer-page-wrap [class*="submit-button"],
html body .viewer-page-wrap [class*="apply-button"] {
    background: #46515e !important;
    background-image: none !important;
    border-color: #46515e !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    box-shadow: none !important;
}

/* Statistics: neutral typography and panels */
html body .viewer-page-wrap [class*="count-card"],
html body .viewer-page-wrap [class*="summary-card"],
html body .viewer-page-wrap [class*="stat-card"] {
    border-color: #e0e5ea !important;
}

html body .viewer-page-wrap [class*="count-card"] [class*="value"],
html body .viewer-page-wrap [class*="count-card"] [class*="number"],
html body .viewer-page-wrap [class*="stat-card"] [class*="value"],
html body .viewer-page-wrap [class*="summary-card"] [class*="value"] {
    color: #303a46 !important;
    -webkit-text-fill-color: #303a46 !important;
}

/* Neutral form and normal information containers */
html body .viewer-page-wrap [class*="filter-box"],
html body .viewer-page-wrap [class*="search-box"],
html body .viewer-page-wrap [class*="query-box"] {
    border-color: #dce2e8 !important;
}

/* Inline legacy pink colors used for non-semantic decoration */
html body .viewer-page-wrap [style*="background:#fff0f7"],
html body .viewer-page-wrap [style*="background: #fff0f7"],
html body .viewer-page-wrap [style*="background:#fff4fa"],
html body .viewer-page-wrap [style*="background: #fff4fa"] {
    background: #f1f3f5 !important;
    border-color: #dfe4e9 !important;
}

html body .viewer-page-wrap [style*="color:#e6007e"],
html body .viewer-page-wrap [style*="color: #e6007e"] {
    color: #475260 !important;
    -webkit-text-fill-color: #475260 !important;
}

/* Neutralize decorative pink outlines, but preserve warnings/errors */
html body .viewer-page-wrap [class*="selection-card"]:not([class*="error"]),
html body .viewer-page-wrap [class*="period-box"]:not([class*="warning"]) {
    border-color: #dce2e8 !important;
}

/* Account and standalone page hero backgrounds */
html body .account-profile-hero,
html body .account-hero,
html body .profile-hero,
html body .account-header,
html body .profile-header {
    background: linear-gradient(115deg, #303946, #58636f) !important;
    background-image: linear-gradient(115deg, #303946, #58636f) !important;
    border-color: #46515d !important;
}

/* Common floating bottom home control */
html body .floating-home-button {
    background: #46515e !important;
    background-image: none !important;
    border-color: #46515e !important;
    color: white !important;
    box-shadow: 0 3px 12px rgba(30,38,49,.12) !important;
}

/* Existing semantic indicators intentionally not recolored. */
