/*
 * BERPS shared design system
 *
 * This file is the visual baseline for every screen that loads fonts.css.
 * Keep reusable tokens and components here. Page views should only contain
 * layout rules that are genuinely unique to that page.
 */

:root {
  --berps-primary: #1f5bc6;
  --berps-primary-hover: #174aa6;
  --berps-primary-soft: #edf4ff;
  --berps-primary-border: #c9d9f3;

  --berps-bg: #ffffff;
  --berps-surface: #ffffff;
  --berps-surface-soft: #f8fafc;
  --berps-surface-muted: #eef2f6;

  --berps-text: #142033;
  --berps-text-muted: #607086;
  --berps-text-subtle: #8491a3;
  --berps-border: #dfe5ec;
  --berps-border-strong: #cbd5e1;

  --berps-success: #147a54;
  --berps-success-soft: #eaf7f1;
  --berps-warning: #a86112;
  --berps-warning-soft: #fff5e7;
  --berps-danger: #c73545;
  --berps-danger-soft: #fff0f2;
  --berps-info: #176b87;
  --berps-info-soft: #eaf7fb;

  --berps-radius-xs: 4px;
  --berps-radius-sm: 6px;
  --berps-radius-md: 8px;
  --berps-radius-lg: 12px;
  --berps-radius-pill: 999px;

  --berps-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --berps-shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --berps-shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.14);

  --berps-space-1: 4px;
  --berps-space-2: 8px;
  --berps-space-3: 12px;
  --berps-space-4: 16px;
  --berps-space-5: 20px;
  --berps-space-6: 24px;
  --berps-space-8: 32px;
  --berps-space-10: 40px;

  --berps-control-height: 40px;
  --berps-content-top-gap: 24px;
  --berps-content-bottom-gap: 40px;
  --berps-sidebar-width: 240px;
  --berps-topbar-height: 70px;

  /* Sidebar chrome (pageant-style dark navy blue) */
  --berps-sidebar-bg-start: #171f33;
  --berps-sidebar-bg-end: #1f2b47;
  --berps-sidebar-gradient: linear-gradient(160deg, var(--berps-sidebar-bg-start) 0%, var(--berps-sidebar-bg-end) 100%);
  --berps-sidebar-text: rgba(255, 255, 255, 0.65);
  --berps-sidebar-text-strong: #ffffff;
  --berps-sidebar-hairline: rgba(255, 255, 255, 0.12);
  --berps-sidebar-active-bg: rgba(110, 168, 255, 0.12);
  --berps-sidebar-accent: #6ea8ff;
  --berps-sidebar-submenu-bg: rgba(0, 0, 0, 0.22);

  /* Compatibility aliases for existing page-level themes. */
  --primary: var(--berps-primary);
  --primary-2: var(--berps-primary-hover);
  --primary-dark: var(--berps-primary-hover);
  --primary-soft: var(--berps-primary-soft);
  --surface: var(--berps-surface);
  --surface-strong: var(--berps-surface);
  --surface-soft: var(--berps-surface-soft);
  --line: var(--berps-border);
  --line-strong: var(--berps-border-strong);
  --text: var(--berps-text);
  --text-soft: var(--berps-text-muted);
  --text-faint: var(--berps-text-subtle);
  --success: var(--berps-success);
  --success-soft: var(--berps-success-soft);
  --warning: var(--berps-warning);
  --warning-soft: var(--berps-warning-soft);
  --danger: var(--berps-danger);
  --danger-soft: var(--berps-danger-soft);
  --info: var(--berps-info);
  --info-soft: var(--berps-info-soft);
}

html {
  color: var(--berps-text);
  background: var(--berps-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  color: var(--berps-text);
  background: var(--berps-bg);
}

::selection {
  color: #fff;
  background: var(--berps-primary);
}

a {
  color: var(--berps-primary);
}

a:hover {
  color: var(--berps-primary-hover);
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid rgba(31, 91, 198, 0.24) !important;
  outline-offset: 2px;
}

@media screen {
  /* Application shell --------------------------------------------------- */
  #wrapper {
    min-height: 100vh;
    background: var(--berps-bg);
  }

  /* Topbar (pageant-style: white, hairline bottom, title left, actions right) */
  .navbar-custom {
    left: var(--berps-sidebar-width);
    right: 0;
    height: var(--berps-topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--berps-border);
    background: #ffffff;
    box-shadow: none;
  }

  .berps-topbar-left {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
  }

  .berps-topbar-title {
    color: var(--berps-text);
    font-size: 1.05rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .navbar-custom .topnav-menu {
    display: flex;
    align-items: center;
    float: none !important;
    gap: 2px;
  }

  .navbar-custom .topnav-menu .nav-link {
    height: 40px;
    min-width: 40px;
    max-height: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    line-height: normal;
    border-radius: var(--berps-radius-md);
    color: var(--berps-text-muted);
  }

  .navbar-custom .topnav-menu .nav-link:hover,
  .navbar-custom .topnav-menu .nav-link:focus,
  .navbar-custom .dropdown.show .nav-link {
    color: var(--berps-primary);
    background: var(--berps-primary-soft);
  }

  .navbar-custom .dropdown-menu {
    border: 1px solid var(--berps-border);
    border-radius: var(--berps-radius-lg);
    box-shadow: var(--berps-shadow-md);
    overflow: hidden;
  }

  /* Unified apps dropdown (mail / knowledge base / support / quick links) */
  .navbar-custom .berps-apps-menu {
    min-width: 250px;
    max-height: min(70vh, 560px);
    overflow-y: auto;
  }

  .berps-menu-toggle {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--berps-primary-border);
    border-radius: var(--berps-radius-md);
    background: var(--berps-primary-soft);
    color: var(--berps-primary);
    font-size: 1.15rem;
    cursor: pointer;
  }

  /* Sidebar (pageant-style: fixed full-height flex column, dark navy gradient) */
  .left-side-menu {
    top: 0;
    bottom: 0;
    height: 100dvh;
    width: var(--berps-sidebar-width);
    padding: 0;
    display: flex;
    flex-direction: column;
    background: var(--berps-sidebar-gradient);
    z-index: 1000;
    transition: transform 0.25s ease;
  }

  .logo-box {
    display: none !important;
  }

  .berps-sidebar-brand {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.35rem 1.5rem;
    border-bottom: 1px solid var(--berps-sidebar-hairline);
  }

  .berps-sidebar-brand img {
    height: 44px;
    max-width: 100%;
  }

  .berps-sidebar-brand__text {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.15;
  }

  .berps-sidebar-brand__text small {
    display: block;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
  }

  .berps-sidebar-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.75rem 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
  }

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

  .berps-sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
  }

  /* Sidebar menu items */
  #sidebar-menu .menu-title {
    padding: 0.9rem 1.5rem 0.35rem;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
  }

  #sidebar-menu > ul > li > a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.72rem 1.5rem;
    color: var(--berps-sidebar-text);
    font-size: 0.875rem;
    border-left: 3px solid transparent;
    transition: background-color 0.18s ease, color 0.18s ease;
  }

  #sidebar-menu > ul > li > a i {
    width: auto;
    margin: 0;
    font-size: 1.05rem;
    opacity: 0.75;
  }

  #sidebar-menu > ul > li > a:hover,
  #sidebar-menu > ul > li > a:focus,
  #sidebar-menu > ul > li > a.active,
  #sidebar-menu li.mm-active > a {
    color: var(--berps-sidebar-text-strong);
    border-left-color: var(--berps-sidebar-accent);
    background: var(--berps-sidebar-active-bg);
  }

  #sidebar-menu .menu-arrow {
    color: rgba(255, 255, 255, 0.5);
  }

  /* Submenus */
  #sidebar-menu .nav-second-level {
    padding: 0.25rem 0;
    background: var(--berps-sidebar-submenu-bg);
  }

  #sidebar-menu > ul > li > ul {
    padding-left: 0;
  }

  .nav-second-level li a,
  .nav-thrid-level li a {
    display: block;
    padding: 0.5rem 1.5rem 0.5rem 3.35rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
    border-left: 3px solid transparent;
    transition: background-color 0.18s ease, color 0.18s ease;
  }

  .nav-second-level li a:hover,
  .nav-second-level li a:focus,
  .nav-second-level li a.active,
  .nav-second-level li.mm-active > a,
  .nav-thrid-level li a:hover,
  .nav-thrid-level li a:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
  }

  /* Metismenu collapse enforcement (moved from sidebar.php inline styles) */
  .left-side-menu .metismenu li > ul {
    display: none !important;
  }

  .left-side-menu .metismenu li.mm-open > ul,
  .left-side-menu .metismenu li > ul.mm-show {
    display: block !important;
  }

  .left-side-menu .metismenu a:active {
    transform: translateY(0);
  }

  .left-side-menu .metismenu .waves-ripple {
    display: none !important;
  }

  /* Pinned logout + sidebar footer */
  .berps-sidebar-logout {
    flex: 0 0 auto;
    border-top: 1px solid var(--berps-sidebar-hairline);
  }

  .berps-sidebar-logout a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    color: rgba(255, 214, 214, 0.85);
    font-size: 0.875rem;
    transition: background-color 0.18s ease, color 0.18s ease;
  }

  .berps-sidebar-logout a:hover,
  .berps-sidebar-logout a:focus {
    color: #fff;
    background: rgba(220, 38, 38, 0.18);
  }

  .berps-sidebar-logout a i {
    font-size: 1.05rem;
    opacity: 0.85;
  }

  .berps-sidebar-footer {
    flex: 0 0 auto;
    padding: 0.85rem 1.5rem;
    border-top: 1px solid var(--berps-sidebar-hairline);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.72rem;
  }

  /* Drawer overlay (mobile) */
  .berps-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  body.berps-sidebar-open .berps-sidebar-overlay {
    opacity: 1;
    visibility: visible;
  }

  /* Desktop sidebar collapse (burger toggle) */
  body.berps-sidebar-collapsed .left-side-menu {
    transform: translateX(-100%);
  }

  body.berps-sidebar-collapsed .content-page {
    margin-left: 0 !important;
  }

  body.berps-sidebar-collapsed .navbar-custom {
    left: 0;
  }

  /* Neutralize Velonic condensed ("enlarged") mode — chrome no longer uses it */
  body.enlarged .left-side-menu {
    width: var(--berps-sidebar-width) !important;
    position: fixed;
    padding-top: 0;
  }

  body.enlarged .content-page {
    margin-left: var(--berps-sidebar-width) !important;
  }

  body.enlarged .navbar-custom {
    left: var(--berps-sidebar-width);
  }

  body.enlarged #sidebar-menu > ul > li > a span,
  body.enlarged #sidebar-menu .menu-title,
  body.enlarged #sidebar-menu .menu-arrow {
    display: inline-block !important;
  }

  /* Right-bar (theme customizer) reskin */
  .right-bar .rightbar-title {
    background: var(--berps-sidebar-gradient);
    color: #fff;
  }

  .content-page {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--berps-topbar-height));
    padding-bottom: 0;
    background: var(--berps-bg);
  }

  .content-page > .content {
    flex: 1 0 auto;
    width: 100%;
    padding-top: var(--berps-content-top-gap);
    padding-bottom: var(--berps-content-bottom-gap);
  }

  .content-page > .footer,
  .content-page .berps-app-footer {
    flex: 0 0 auto;
    margin-top: auto !important;
  }

  .content-page .container-fluid > :first-child {
    margin-top: 0;
  }

  /* Type hierarchy ------------------------------------------------------ */
  .page-title,
  .berps-page-title {
    margin: 0;
    color: var(--berps-text);
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
  }

  .page-subtitle,
  .berps-page-subtitle {
    margin: var(--berps-space-2) 0 0;
    color: var(--berps-text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .text-muted {
    color: var(--berps-text-muted) !important;
  }

  /* Surfaces ------------------------------------------------------------ */
  .card,
  .theme-card,
  .panel-card {
    border: 1px solid var(--berps-border);
    border-radius: var(--berps-radius-lg);
    background: var(--berps-surface);
    box-shadow: var(--berps-shadow-sm);
  }

  .card-header,
  .theme-card-head,
  .panel-header {
    border-bottom: 1px solid var(--berps-border);
    background: var(--berps-surface);
  }

  .card-footer,
  .theme-card-footer,
  .panel-footer {
    border-top: 1px solid var(--berps-border);
    background: var(--berps-surface-soft);
  }

  /* Reusable page composition ----------------------------------------- */
  .berps-page {
    width: 100%;
  }

  .berps-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--berps-space-5);
    margin-bottom: var(--berps-space-6);
    padding: var(--berps-space-6);
    border: 1px solid var(--berps-border);
    border-radius: var(--berps-radius-lg);
    background: var(--berps-surface);
    box-shadow: var(--berps-shadow-sm);
  }

  .berps-page-header__content {
    min-width: 0;
  }

  .berps-page-header__eyebrow {
    display: block;
    margin-bottom: var(--berps-space-2);
    color: var(--berps-primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .berps-page-header__actions,
  .berps-toolbar__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--berps-space-2);
  }

  .berps-page-header__actions {
    justify-content: flex-end;
  }

  .berps-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--berps-space-4);
    margin-bottom: var(--berps-space-4);
  }

  .berps-section-title {
    margin: 0;
    color: var(--berps-text);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
  }

  .berps-section-copy {
    margin: var(--berps-space-1) 0 0;
    color: var(--berps-text-muted);
    font-size: 0.84rem;
    line-height: 1.55;
  }

  /* Dashboard metrics -------------------------------------------------- */
  .berps-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: var(--berps-space-4);
    margin-bottom: var(--berps-space-6);
  }

  .berps-stat-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--berps-space-4);
    min-width: 0;
    padding: var(--berps-space-5);
    border: 1px solid var(--berps-border);
    border-radius: var(--berps-radius-lg);
    background: var(--berps-surface);
    box-shadow: var(--berps-shadow-sm);
    color: var(--berps-text);
  }

  .berps-stat-card.is-interactive {
    cursor: pointer;
    transition: border-color 0.16s ease, background-color 0.16s ease,
      box-shadow 0.16s ease;
  }

  .berps-stat-card.is-interactive:hover,
  .berps-stat-card.is-interactive:focus-visible {
    border-color: var(--berps-primary-border);
    background: #fbfdff;
    box-shadow: var(--berps-shadow-md);
  }

  .berps-stat-card__value {
    margin: 0 0 var(--berps-space-1);
    color: var(--berps-text);
    font-size: clamp(1.55rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
  }

  .berps-stat-card__label {
    margin: 0;
    color: var(--berps-text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.45;
  }

  .berps-stat-card__meta {
    margin: var(--berps-space-2) 0 0;
    color: var(--berps-text-subtle);
    font-size: 0.76rem;
    line-height: 1.45;
  }

  .berps-stat-card__icon,
  .berps-quick-action__icon,
  .berps-summary-item__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: var(--berps-radius-md);
    background: var(--berps-primary-soft);
    color: var(--berps-primary);
    font-size: 1.25rem;
  }

  .berps-tone-info .berps-stat-card__icon,
  .berps-tone-info.berps-stat-card__icon,
  .berps-tone-info.berps-summary-item__icon {
    background: var(--berps-info-soft);
    color: var(--berps-info);
  }

  .berps-tone-success .berps-stat-card__icon,
  .berps-tone-success.berps-stat-card__icon,
  .berps-tone-success.berps-summary-item__icon {
    background: var(--berps-success-soft);
    color: var(--berps-success);
  }

  .berps-tone-warning .berps-stat-card__icon,
  .berps-tone-warning.berps-stat-card__icon,
  .berps-tone-warning.berps-summary-item__icon {
    background: var(--berps-warning-soft);
    color: var(--berps-warning);
  }

  .berps-tone-danger .berps-stat-card__icon,
  .berps-tone-danger.berps-stat-card__icon,
  .berps-tone-danger.berps-summary-item__icon {
    background: var(--berps-danger-soft);
    color: var(--berps-danger);
  }

  /* Panels, actions, and summary strips -------------------------------- */
  .berps-layout-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--berps-space-4);
    margin-bottom: var(--berps-space-6);
  }

  .berps-section-card,
  .berps-table-card {
    min-width: 0;
    border: 1px solid var(--berps-border);
    border-radius: var(--berps-radius-lg);
    background: var(--berps-surface);
    box-shadow: var(--berps-shadow-sm);
  }

  .berps-section-card__header,
  .berps-table-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--berps-space-4);
    padding: var(--berps-space-4) var(--berps-space-5);
    border-bottom: 1px solid var(--berps-border);
  }

  .berps-section-card__body,
  .berps-table-card__body {
    padding: var(--berps-space-5);
  }

  .berps-quick-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--berps-space-3);
  }

  .berps-quick-action {
    display: flex;
    align-items: flex-start;
    gap: var(--berps-space-3);
    min-width: 0;
    padding: var(--berps-space-4);
    border: 1px solid var(--berps-border);
    border-radius: var(--berps-radius-md);
    background: var(--berps-surface);
    color: var(--berps-text);
    text-decoration: none;
    transition: border-color 0.16s ease, background-color 0.16s ease;
  }

  .berps-quick-action:hover,
  .berps-quick-action:focus {
    border-color: var(--berps-primary-border);
    background: var(--berps-primary-soft);
    color: var(--berps-primary-hover);
    text-decoration: none;
  }

  .berps-quick-action__icon {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  .berps-quick-action__label {
    display: block;
    margin: 0 0 var(--berps-space-1);
    color: var(--berps-text);
    font-size: 0.86rem;
    font-weight: 700;
  }

  .berps-quick-action__meta {
    display: block;
    color: var(--berps-text-muted);
    font-size: 0.76rem;
    line-height: 1.5;
  }

  .berps-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--berps-space-3);
  }

  .berps-summary-item {
    display: flex;
    align-items: center;
    gap: var(--berps-space-3);
    min-width: 0;
    padding: var(--berps-space-3);
    border: 1px solid var(--berps-border);
    border-radius: var(--berps-radius-md);
    background: var(--berps-surface-soft);
  }

  .berps-summary-item__icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .berps-summary-item__label {
    display: block;
    color: var(--berps-text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.35;
  }

  .berps-summary-item__value {
    display: block;
    margin-top: 2px;
    color: var(--berps-text);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
  }

  .berps-section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--berps-space-2);
  }

  .berps-section-nav .btn {
    min-height: 36px;
  }

  .berps-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--berps-space-4);
    margin-bottom: var(--berps-space-4);
  }

  .berps-toolbar__group {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: var(--berps-space-3);
  }

  .berps-toolbar__field {
    min-width: 170px;
  }

  /* Data tables and row actions --------------------------------------- */
  .berps-table-card {
    overflow: hidden;
  }

  .berps-table-card .table-responsive {
    border-radius: 0;
  }

  .berps-table-card .table {
    margin-bottom: 0;
  }

  .berps-table-card .dataTables_wrapper {
    padding-bottom: var(--berps-space-2);
  }

  .berps-table-card .dataTables_wrapper > .row:first-child,
  .berps-table-card .dataTables_wrapper > .row:last-child {
    padding-right: var(--berps-space-4);
    padding-left: var(--berps-space-4);
  }

  .berps-table-card .dataTables_wrapper > .row:first-child {
    padding-top: var(--berps-space-4);
  }

  .berps-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--berps-space-1);
  }

  .berps-icon-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--berps-border);
    border-radius: var(--berps-radius-sm);
    background: var(--berps-surface);
    color: var(--berps-text-muted);
    text-decoration: none;
  }

  .berps-icon-action:hover,
  .berps-icon-action:focus {
    border-color: var(--berps-primary-border);
    background: var(--berps-primary-soft);
    color: var(--berps-primary-hover);
    text-decoration: none;
  }

  .berps-icon-action--danger:hover,
  .berps-icon-action--danger:focus {
    border-color: #efc2c8;
    background: var(--berps-danger-soft);
    color: var(--berps-danger);
  }

  .berps-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: var(--berps-radius-pill);
    background: var(--berps-surface-muted);
    color: var(--berps-text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
  }

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

  .berps-status--warning {
    background: var(--berps-warning-soft);
    color: var(--berps-warning);
  }

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

  .berps-status--info {
    background: var(--berps-info-soft);
    color: var(--berps-info);
  }

  .berps-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: var(--berps-space-2);
    min-height: 150px;
    padding: var(--berps-space-6);
    color: var(--berps-text-muted);
    text-align: center;
  }

  .berps-empty-state__icon {
    color: var(--berps-text-subtle);
    font-size: 1.6rem;
  }

  /* Legacy management views, normalized through shared components ----- */
  :is(.client-list-page, .project-list-page, .users-management-page) {
    width: 100%;
  }

  /* Project list hero banner */
  .project-list-page .proj-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--berps-space-5);
    padding: var(--berps-space-8) var(--berps-space-6);
    margin-bottom: var(--berps-space-6);
    border-radius: var(--berps-radius-lg);
    background: #1d3557;
    box-shadow: 0 8px 32px rgba(29, 53, 87, 0.25);
    position: relative;
    overflow: hidden;
  }

  .project-list-page .proj-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
  }

  .project-list-page .proj-hero::after {
    content: '';
    position: absolute;
    bottom: -60%;
    right: 15%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
  }

  .project-list-page .proj-hero__content {
    position: relative;
    z-index: 1;
  }

  .project-list-page .proj-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: var(--berps-space-2);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
  }

  .project-list-page .proj-hero__eyebrow i {
    font-size: 1rem;
  }

  .project-list-page .proj-hero__title {
    margin: 0 0 var(--berps-space-1) 0;
    color: #fff;
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
  }

  .project-list-page .proj-hero__subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.88rem;
    max-width: 480px;
  }

  .project-list-page .proj-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--berps-space-2);
    position: relative;
    z-index: 1;
  }

  .project-list-page .proj-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--berps-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.18s ease;
  }

  .project-list-page .proj-hero-btn:hover,
  .project-list-page .proj-hero-btn:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
  }

  .project-list-page .proj-hero-btn--solid {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.95);
    color: #1d3557;
    font-weight: 700;
  }

  .project-list-page .proj-hero-btn--solid:hover,
  .project-list-page .proj-hero-btn--solid:focus {
    background: #fff;
    color: #152a45;
  }

  /* Folder bounce animation */
  .project-list-page .proj-bounce {
    display: inline-block;
    animation: proj-bounce 2s ease-in-out infinite;
    transform-origin: center bottom;
  }

  @keyframes proj-bounce {
    0%, 70%, 100% { transform: translateY(0) rotate(0deg); }
    15% { transform: translateY(-10px) rotate(-6deg); }
    30% { transform: translateY(0) rotate(0deg); }
    45% { transform: translateY(-5px) rotate(4deg); }
    60% { transform: translateY(0) rotate(0deg); }
  }

  /* Deep blue accent on cards */
  .project-list-page .theme-card {
    border-top: 3px solid #1d3557;
  }

  .project-list-page .theme-card-head {
    border-bottom: 2px solid #1d3557;
  }

  .project-list-page .theme-card-title {
    color: #1d3557;
  }

  /* Responsive hero */
  @media screen and (max-width: 767.98px) {
    .project-list-page .proj-hero,
    .project-list-page .proj-hero__actions {
      flex-direction: column;
      align-items: stretch;
    }

    .project-list-page .proj-hero {
      padding: var(--berps-space-5);
    }

    .project-list-page .proj-hero-btn {
      flex: 1 1 auto;
      justify-content: center;
    }
  }

  :is(.client-list-page, .project-list-page, .users-management-page) .page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--berps-space-5);
    margin-bottom: var(--berps-space-6);
    padding: var(--berps-space-6);
    border: 1px solid var(--berps-border);
    border-radius: var(--berps-radius-lg);
    background: var(--berps-surface);
    box-shadow: var(--berps-shadow-sm);
  }

  :is(.client-list-page, .project-list-page, .users-management-page) .page-eyebrow {
    margin-bottom: var(--berps-space-2);
    color: var(--berps-primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  :is(.client-list-page, .project-list-page, .users-management-page) .page-subtitle {
    max-width: 760px;
  }

  :is(.client-list-page, .project-list-page, .users-management-page) .page-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--berps-space-2);
  }

  :is(.client-list-page, .project-list-page, .users-management-page) .page-actions .btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--berps-space-2);
    width: auto;
    min-height: var(--berps-control-height);
    padding: 9px 16px;
    border: 1px solid var(--berps-primary);
  }

  :is(.client-list-page, .users-management-page) .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--berps-space-4);
    margin-bottom: var(--berps-space-6);
  }

  :is(.client-list-page, .users-management-page) .stat-card {
    position: relative;
    min-width: 0;
    padding: var(--berps-space-5);
    border: 1px solid var(--berps-border);
    border-radius: var(--berps-radius-lg);
    background: var(--berps-surface);
    box-shadow: var(--berps-shadow-sm);
  }

  :is(.client-list-page, .users-management-page) .stat-card::before {
    display: none;
  }

  :is(.client-list-page, .users-management-page) .stat-label {
    margin-bottom: var(--berps-space-2);
    color: var(--berps-text-muted);
    font-size: 0.78rem;
    font-weight: 600;
  }

  :is(.client-list-page, .users-management-page) .stat-value {
    margin-bottom: var(--berps-space-2);
    color: var(--berps-text);
    font-size: clamp(1.55rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.1;
  }

  :is(.client-list-page, .users-management-page) .stat-meta {
    color: var(--berps-text-subtle);
    font-size: 0.76rem;
    line-height: 1.5;
  }

  :is(.client-list-page, .project-list-page) .card-stack + .card-stack {
    margin-top: var(--berps-space-6);
  }

  :is(.client-list-page, .project-list-page, .users-management-page, .expenses-list-page) .theme-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--berps-border);
    border-radius: var(--berps-radius-lg);
    background: var(--berps-surface);
    box-shadow: var(--berps-shadow-sm);
  }

  :is(.client-list-page, .project-list-page, .users-management-page, .expenses-list-page) .theme-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--berps-space-4);
    padding: var(--berps-space-4) var(--berps-space-5);
    border-bottom: 1px solid var(--berps-border);
    background: var(--berps-surface);
  }

  :is(.client-list-page, .project-list-page, .users-management-page, .expenses-list-page) .theme-card-title {
    margin: 0;
    color: var(--berps-text);
    font-size: 1rem;
    font-weight: 700;
  }

  :is(.client-list-page, .project-list-page, .users-management-page, .expenses-list-page) .theme-card-subtitle {
    margin-top: var(--berps-space-1);
    color: var(--berps-text-muted);
    font-size: 0.8rem;
    line-height: 1.5;
  }

  :is(.client-list-page, .project-list-page, .users-management-page, .expenses-list-page) .theme-card-body {
    padding: var(--berps-space-5);
  }

  :is(.client-list-page, .project-list-page, .users-management-page, .expenses-list-page) .theme-card-body > .table-responsive,
  :is(.client-list-page, .project-list-page, .users-management-page, .expenses-list-page) .theme-card-body > .data-table-container {
    margin: calc(var(--berps-space-5) * -1);
  }

  :is(.client-list-page, .project-list-page, .users-management-page, .expenses-list-page) .dataTables_wrapper > .row:first-child,
  :is(.client-list-page, .project-list-page, .users-management-page, .expenses-list-page) .dataTables_wrapper > .row:last-child {
    padding-right: var(--berps-space-5);
    padding-left: var(--berps-space-5);
  }

  :is(.client-list-page, .project-list-page, .users-management-page, .expenses-list-page) .dataTables_wrapper > .row:first-child {
    padding-top: var(--berps-space-4);
  }

  :is(.client-list-page, .project-list-page, .users-management-page, .expenses-list-page) .dataTables_wrapper > .row:last-child {
    padding-bottom: var(--berps-space-4);
  }

  :is(.client-list-page, .project-list-page, .users-management-page, .expenses-list-page) .theme-card .table {
    margin-bottom: 0;
  }

  :is(.client-list-page, .project-list-page, .expenses-list-page) .data-table-container {
    position: relative;
    min-height: 100px;
    overflow-x: auto;
  }

  :is(.client-list-page, .project-list-page, .expenses-list-page) .table-init-hidden {
    visibility: hidden;
  }

  :is(.client-list-page, .project-list-page, .expenses-list-page) .table-init-ready {
    visibility: visible;
  }

  :is(.client-list-page, .project-list-page, .expenses-list-page) .data-table-container.loading::after {
    position: absolute;
    top: 28px;
    left: 50%;
    width: 28px;
    height: 28px;
    margin-left: -14px;
    border: 3px solid var(--berps-primary-border);
    border-top-color: var(--berps-primary);
    border-radius: 50%;
    content: "";
    animation: berps-spin 0.8s linear infinite;
  }

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

  /* Client filters and statuses */
  .client-list-page .filter-grid,
  .project-list-page .year-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--berps-space-3);
  }

  .client-list-page .filter-status-card,
  .project-list-page .year-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--berps-space-3);
    min-width: 0;
    padding: var(--berps-space-4);
    border: 1px solid var(--berps-border);
    border-radius: var(--berps-radius-md);
    background: var(--berps-surface);
    color: var(--berps-text);
    text-align: left;
    box-shadow: none;
    cursor: pointer;
  }

  .client-list-page .filter-status-card:hover,
  .client-list-page .filter-status-card:focus,
  .client-list-page .filter-status-card.is-active,
  .project-list-page .year-card:hover,
  .project-list-page .year-card:focus,
  .project-list-page .year-card.is-active {
    border-color: var(--berps-primary-border);
    background: var(--berps-primary-soft);
    color: var(--berps-primary-hover);
  }

  .client-list-page .filter-status-card::before {
    display: none;
  }

  .client-list-page .filter-card-label,
  .project-list-page .year-card-label {
    color: inherit;
    font-size: 0.82rem;
    font-weight: 700;
  }

  .client-list-page .filter-card-count,
  .project-list-page .year-card-count {
    color: var(--berps-text);
    font-size: 1.15rem;
    font-weight: 700;
  }

  .client-list-page .filter-card-meta {
    grid-column: 1 / -1;
    color: var(--berps-text-muted);
    font-size: 0.72rem;
    line-height: 1.4;
  }

  .client-list-page .summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--berps-space-3);
    margin-top: var(--berps-space-4);
  }

  :is(.client-list-page, .users-management-page) .summary-chip,
  .project-list-page .filter-status-bar,
  .project-list-page .count-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--berps-space-2);
    padding: 6px 10px;
    border-radius: var(--berps-radius-pill);
    background: var(--berps-primary-soft);
    color: var(--berps-primary-hover);
    font-size: 0.74rem;
    font-weight: 700;
  }

  .client-list-page .summary-note {
    color: var(--berps-text-muted);
    font-size: 0.78rem;
  }

  .client-list-page .status-badge,
  .users-management-page .role-badge,
  .project-list-page .category-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: var(--berps-radius-pill);
    background: var(--berps-surface-muted);
    color: var(--berps-text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
  }

  .client-list-page :is(.status-active),
  .users-management-page :is(.role-admin) {
    background: var(--berps-success-soft);
    color: var(--berps-success);
  }

  .client-list-page :is(.status-prospect, .status-donation),
  .users-management-page :is(.role-staff, .role-pos) {
    background: var(--berps-info-soft);
    color: var(--berps-info);
  }

  .client-list-page .status-inactive {
    background: var(--berps-danger-soft);
    color: var(--berps-danger);
  }

  .client-list-page .client-status-text {
    text-transform: capitalize;
  }

  .client-list-page .client-name-link {
    color: var(--berps-primary);
    font-weight: 700;
    text-decoration: none;
  }

  .client-list-page .client-name-link:hover,
  .client-list-page .client-name-link:focus {
    text-decoration: underline;
  }

  .client-list-page .portal-text {
    font-size: 0.8rem;
    font-weight: 600;
  }

  .client-list-page .portal-enabled {
    color: var(--berps-success);
  }

  .client-list-page .portal-disabled {
    color: var(--berps-text-muted);
  }

  .client-list-page .notes-preview {
    max-width: 240px;
    overflow: hidden;
    color: var(--berps-text-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .client-list-page :is(.client-actions, .project-actions),
  .project-list-page .project-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--berps-space-1);
  }

  .client-list-page .inline-delete-form {
    display: inline-flex;
    margin: 0;
  }

  .client-list-page .action-btn,
  .project-list-page .action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--berps-border);
    border-radius: var(--berps-radius-sm);
    background: var(--berps-surface);
    color: var(--berps-text-muted);
  }

  :is(.client-list-page, .project-list-page) :is(.action-btn, .action-icon):hover,
  :is(.client-list-page, .project-list-page) :is(.action-btn, .action-icon):focus {
    border-color: var(--berps-primary-border);
    background: var(--berps-primary-soft);
    color: var(--berps-primary-hover);
  }

  :is(.client-list-page, .project-list-page) :is(.delete, .action-delete):hover,
  :is(.client-list-page, .project-list-page) :is(.delete, .action-delete):focus {
    border-color: #efc2c8;
    background: var(--berps-danger-soft);
    color: var(--berps-danger);
  }

  .project-list-page .project-name,
  .users-management-page .user-name {
    color: var(--berps-text);
    font-weight: 700;
  }

  .project-list-page :is(.cell-muted),
  .users-management-page .user-sub {
    color: var(--berps-text-muted);
    font-size: 0.78rem;
  }

  .project-list-page .cost-value {
    color: var(--berps-text);
    font-weight: 700;
  }

  .project-list-page .category-text {
    color: var(--berps-primary);
    font-size: 0.8rem;
    font-weight: 600;
  }

  .project-list-page .filter-status-bar {
    margin-bottom: var(--berps-space-4);
  }

  .project-list-page .year-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--berps-radius-sm);
    background: var(--berps-primary-soft);
    color: var(--berps-primary);
  }

  /* User account layout and policy panels */
  .users-management-page .content-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: var(--berps-space-4);
  }

  .users-management-page .side-stack {
    display: grid;
    align-content: start;
    gap: var(--berps-space-4);
  }

  .users-management-page .action-stack {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--berps-space-1);
  }

  .users-management-page .action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 34px;
    padding: 6px 9px;
    border: 1px solid var(--berps-border);
    border-radius: var(--berps-radius-sm);
    background: var(--berps-surface);
    color: var(--berps-text-muted);
    font-size: 0.72rem;
    font-weight: 600;
  }

  .users-management-page .action-btn:hover,
  .users-management-page .action-btn:focus {
    border-color: var(--berps-primary-border);
    background: var(--berps-primary-soft);
    color: var(--berps-primary-hover);
  }

  .users-management-page .action-delete:hover,
  .users-management-page .action-delete:focus {
    border-color: #efc2c8;
    background: var(--berps-danger-soft);
    color: var(--berps-danger);
  }

  .users-management-page .policy-list {
    display: grid;
    gap: var(--berps-space-3);
  }

  .users-management-page .policy-item {
    display: flex;
    align-items: flex-start;
    gap: var(--berps-space-3);
    color: var(--berps-text-muted);
    font-size: 0.78rem;
    line-height: 1.5;
  }

  .users-management-page .policy-item i {
    margin-top: 3px;
    color: var(--berps-primary);
  }

  .users-management-page .berps-credential-notice {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: var(--berps-space-3);
    padding-right: 44px;
  }

  .berps-credential-notice__icon {
    color: var(--berps-warning);
    font-size: 1.4rem;
  }

  .berps-credential-notice__body {
    flex: 1;
    min-width: 0;
  }

  .berps-credential-notice__title {
    color: var(--berps-warning);
    font-weight: 700;
  }

  .berps-credential-notice__details,
  .berps-credential-notice__password {
    margin-top: var(--berps-space-2);
    padding: var(--berps-space-3);
    border: 1px solid #efd2a9;
    border-radius: var(--berps-radius-md);
    background: var(--berps-surface);
  }

  .berps-credential-notice__password label {
    display: block;
    margin-bottom: var(--berps-space-2);
    font-weight: 600;
  }

  .berps-credential-notice__row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--berps-space-2);
  }

  .berps-credential-notice__row .form-control {
    flex: 1 1 220px;
    max-width: 320px;
    color: var(--berps-warning);
    font-size: 0.92rem;
    letter-spacing: 0.04em;
  }

  .berps-credential-notice__status,
  .berps-credential-notice__email {
    color: var(--berps-warning);
    font-size: 0.74rem;
  }

  .berps-credential-notice__email {
    margin-top: var(--berps-space-2);
  }

  /* Staff dashboard ---------------------------------------------------- */
  .staff-dashboard-admin .dashboard-wrap {
    width: 100%;
  }

  /* Hero greeting banner */
  .staff-dashboard-admin .dash-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--berps-space-5);
    padding: var(--berps-space-8) var(--berps-space-6);
    margin-bottom: var(--berps-space-6);
    border-radius: var(--berps-radius-lg);
    background: #2a9d8f;
    box-shadow: 0 8px 32px rgba(42, 157, 143, 0.25);
    position: relative;
    overflow: hidden;
  }

  .staff-dashboard-admin .dash-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
  }

  .staff-dashboard-admin .dash-hero::after {
    content: '';
    position: absolute;
    bottom: -60%;
    right: 15%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
  }

  .staff-dashboard-admin .dash-hero__content {
    position: relative;
    z-index: 1;
  }

  .staff-dashboard-admin .dash-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: var(--berps-space-2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
  }

  .staff-dashboard-admin .dash-hero__eyebrow i {
    font-size: 1rem;
  }

  .staff-dashboard-admin .dash-hero__title {
    margin: 0 0 var(--berps-space-1) 0;
    color: #fff;
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
  }

  .staff-dashboard-admin .wave-emoji {
    display: inline-block;
    animation: wave 2.5s ease-in-out infinite;
    transform-origin: 70% 70%;
  }

  @keyframes wave {
    0%, 60%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
  }

  .staff-dashboard-admin .dash-hero__subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.88rem;
    max-width: 480px;
  }

  .staff-dashboard-admin .dash-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--berps-space-2);
    position: relative;
    z-index: 1;
  }

  .staff-dashboard-admin .dash-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--berps-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: all 0.18s ease;
  }

  .staff-dashboard-admin .dash-hero-btn:hover,
  .staff-dashboard-admin .dash-hero-btn:focus {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
  }

  .staff-dashboard-admin .dash-hero-btn--solid {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.95);
    color: #2a9d8f;
    font-weight: 700;
  }

  .staff-dashboard-admin .dash-hero-btn--solid:hover,
  .staff-dashboard-admin .dash-hero-btn--solid:focus {
    background: #fff;
    color: #21867a;
  }

  .staff-dashboard-admin .dash-hero-btn__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: var(--berps-radius-pill);
    background: #f63654;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
  }

  /* KPI cards */
  .staff-dashboard-admin .kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--berps-space-4);
    margin-bottom: var(--berps-space-6);
  }

  .staff-dashboard-admin .kpi-card {
    display: flex;
    align-items: center;
    gap: var(--berps-space-4);
    padding: var(--berps-space-5);
    border: 1px solid var(--berps-border);
    border-radius: var(--berps-radius-lg);
    background: var(--berps-surface);
    box-shadow: var(--berps-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
  }

  .staff-dashboard-admin .kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--berps-shadow-md);
  }

  .staff-dashboard-admin .kpi-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: var(--berps-radius-md);
    font-size: 1.4rem;
  }

  .staff-dashboard-admin .kpi-card__body {
    flex: 1;
    min-width: 0;
  }

  .staff-dashboard-admin .kpi-card__label {
    color: var(--berps-text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 2px;
  }

  .staff-dashboard-admin .kpi-card__num {
    color: var(--berps-text);
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    font-weight: 800;
    line-height: 1.1;
  }

  .staff-dashboard-admin .kpi-card__bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
  }

  .staff-dashboard-admin .kpi-card--info .kpi-card__icon {
    background: #e3f0ff;
    color: #2563eb;
  }
  .staff-dashboard-admin .kpi-card--info .kpi-card__bar {
    background: #2563eb;
  }

  .staff-dashboard-admin .kpi-card--warning .kpi-card__icon {
    background: #fff3e0;
    color: #f57c00;
  }
  .staff-dashboard-admin .kpi-card--warning .kpi-card__bar {
    background: #f57c00;
  }

  .staff-dashboard-admin .kpi-card--danger .kpi-card__icon {
    background: #ffebee;
    color: #e53935;
  }
  .staff-dashboard-admin .kpi-card--danger .kpi-card__bar {
    background: #e53935;
  }

  .staff-dashboard-admin .kpi-card--success .kpi-card__icon {
    background: #e8f5e9;
    color: #2e7d32;
  }
  .staff-dashboard-admin .kpi-card--success .kpi-card__bar {
    background: #2e7d32;
  }

  /* Two-column layout */
  .staff-dashboard-admin .dash-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--berps-space-5);
    align-items: start;
  }

  .staff-dashboard-admin .dash-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--berps-space-4);
  }

  .staff-dashboard-admin .dash-main {
    min-width: 0;
  }

  /* Side cards (task queue + snapshot) */
  .staff-dashboard-admin .side-card {
    overflow: hidden;
    border: 1px solid var(--berps-border);
    border-radius: var(--berps-radius-lg);
    background: var(--berps-surface);
    box-shadow: var(--berps-shadow-sm);
  }

  .staff-dashboard-admin .side-card__head {
    display: flex;
    align-items: center;
    gap: var(--berps-space-3);
    padding: var(--berps-space-4) var(--berps-space-4) var(--berps-space-3);
  }

  .staff-dashboard-admin .side-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--berps-radius-sm);
    font-size: 1.1rem;
  }

  .staff-dashboard-admin .side-card--orange .side-card__icon {
    background: #fff3e0;
    color: #e65100;
  }

  .staff-dashboard-admin .side-card--blue .side-card__icon {
    background: #e3f0ff;
    color: #1565c0;
  }

  .staff-dashboard-admin .side-card__title {
    margin: 0;
    color: var(--berps-text);
    font-size: 0.92rem;
    font-weight: 700;
  }

  .staff-dashboard-admin .side-card__body {
    padding: 0 var(--berps-space-4) var(--berps-space-4);
    display: flex;
    flex-direction: column;
    gap: var(--berps-space-2);
  }

  /* Queue items */
  .staff-dashboard-admin .queue-item {
    display: block;
    padding: var(--berps-space-3);
    border-radius: var(--berps-radius-md);
    border-left: 3px solid var(--berps-border);
    background: var(--berps-surface-soft);
    text-decoration: none;
    transition: all 0.15s ease;
  }

  .staff-dashboard-admin .queue-item:hover,
  .staff-dashboard-admin .queue-item:focus {
    background: var(--berps-surface-muted);
    text-decoration: none;
    transform: translateX(2px);
  }

  .staff-dashboard-admin .queue-item.is-overdue {
    border-left-color: #ef5350;
  }

  .staff-dashboard-admin .queue-item.is-today {
    border-left-color: #ff9800;
  }

  .staff-dashboard-admin .queue-item.is-soon {
    border-left-color: #66bb6a;
  }

  .staff-dashboard-admin .queue-item__task {
    color: var(--berps-text);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
  }

  .staff-dashboard-admin .queue-item__meta {
    display: flex;
    align-items: center;
    gap: var(--berps-space-2);
  }

  .staff-dashboard-admin .queue-item__prio {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    border-radius: var(--berps-radius-pill);
    font-size: 0.68rem;
    font-weight: 700;
  }

  .staff-dashboard-admin .queue-item__prio.is-high {
    background: #ffebee;
    color: #c62828;
  }

  .staff-dashboard-admin .queue-item__prio.is-medium {
    background: #fff3e0;
    color: #e65100;
  }

  .staff-dashboard-admin .queue-item__prio.is-low {
    background: #e8f5e9;
    color: #2e7d32;
  }

  .staff-dashboard-admin .queue-item__due {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--berps-text-subtle);
    font-size: 0.72rem;
  }

  /* Snapshot rows */
  .staff-dashboard-admin .snap-row {
    display: flex;
    align-items: center;
    gap: var(--berps-space-2);
    padding: 6px 0;
  }

  .staff-dashboard-admin .snap-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .staff-dashboard-admin .snap-dot--warning { background: #ff9800; }
  .staff-dashboard-admin .snap-dot--danger { background: #ef5350; }
  .staff-dashboard-admin .snap-dot--muted { background: var(--berps-border-strong); }

  .staff-dashboard-admin .snap-label {
    flex: 1;
    color: var(--berps-text-muted);
    font-size: 0.82rem;
    font-weight: 500;
  }

  .staff-dashboard-admin .snap-num {
    color: var(--berps-text);
    font-size: 0.88rem;
    font-weight: 700;
  }

  /* Panel (main content) */
  .staff-dashboard-admin .panel {
    overflow: hidden;
    margin-bottom: 0;
    border: 1px solid var(--berps-border);
    border-radius: var(--berps-radius-lg);
    background: var(--berps-surface);
    box-shadow: var(--berps-shadow-sm);
  }

  .staff-dashboard-admin .panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--berps-space-4);
    padding: var(--berps-space-4) var(--berps-space-5);
    border-bottom: 1px solid var(--berps-border);
    color: var(--berps-text);
  }

  .staff-dashboard-admin .panel-title {
    margin: 0;
    color: var(--berps-text);
    font-size: 1rem;
    font-weight: 700;
  }

  .staff-dashboard-admin .panel-subtitle {
    margin-top: var(--berps-space-1);
    color: var(--berps-text-muted);
    font-size: 0.8rem;
  }

  .staff-dashboard-admin .panel-body {
    padding: var(--berps-space-5);
  }

  /* Leaderboard table */
  .staff-dashboard-admin .leaderboard-table {
    width: 100%;
    color: var(--berps-text);
  }

  .staff-dashboard-admin .leaderboard-table th {
    padding: 12px 16px;
    border-bottom: 1px solid var(--berps-border-strong);
    background: var(--berps-surface-soft);
    color: var(--berps-text-subtle);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .staff-dashboard-admin .leaderboard-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--berps-border);
  }

  .staff-dashboard-admin .leaderboard-table tr:last-child td {
    border-bottom: 0;
  }

  .staff-dashboard-admin .rank-badge {
    display: inline-flex;
    min-width: 34px;
    justify-content: center;
    padding: 3px 8px;
    border-radius: var(--berps-radius-sm);
    background: var(--berps-surface-muted);
    color: var(--berps-text-muted);
    font-size: 0.78rem;
    font-weight: 700;
  }

  .staff-dashboard-admin .rank-1 {
    background: #ffd700;
    color: #5d4037;
  }

  .staff-dashboard-admin .rank-2 {
    background: #e0e0e0;
    color: #424242;
  }

  .staff-dashboard-admin .rank-3 {
    background: #ffcc80;
    color: #5d4037;
  }

  .staff-dashboard-admin .leaderboard-table tbody tr:first-child {
    background: #fffdf5;
  }

  .staff-dashboard-admin .leader-name {
    color: var(--berps-text);
    font-weight: 600;
  }

  .staff-dashboard-admin .leader-points {
    color: var(--berps-text);
    font-weight: 700;
    text-align: right;
  }

  .staff-dashboard-admin .empty-state {
    min-height: 140px;
    padding: var(--berps-space-6);
    color: var(--berps-text-muted);
    text-align: center;
  }

  /* Calendar */
  .staff-dashboard-admin #staffCalendar {
    min-height: 560px;
  }

  .staff-dashboard-admin .fc .fc-toolbar-title {
    color: var(--berps-text);
    font-size: 1.05rem;
    font-weight: 700;
  }

  .staff-dashboard-admin .fc .fc-button-primary {
    border-color: var(--berps-primary);
    background: var(--berps-primary);
    box-shadow: none;
  }

  .staff-dashboard-task-detail {
    margin-top: var(--berps-space-3);
    padding: var(--berps-space-3);
    border-left: 3px solid var(--berps-primary);
    border-radius: var(--berps-radius-md);
    background: var(--berps-surface-soft);
    color: var(--berps-text-muted);
    font-size: 0.8rem;
    text-align: left;
  }

  .staff-dashboard-task-detail__title {
    margin-bottom: var(--berps-space-1);
    color: var(--berps-text);
    font-size: 0.88rem;
    font-weight: 700;
  }

  .staff-dashboard-admin .evt-title {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 4px;
    font-weight: 600;
  }

  .staff-dashboard-admin .evt-desc {
    overflow: hidden;
    font-size: 0.72rem;
    opacity: 0.84;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .staff-dashboard-admin .evt-toggle-complete {
    margin-left: 4px;
    cursor: pointer;
    opacity: 0.75;
  }

  /* Quick notes remains a dashboard utility, but follows shared tokens. */
  .sticky-notes-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1035;
    font-family: var(--font-primary, Karla, Montserrat, Segoe UI, Arial, sans-serif);
  }

  .sticky-notes-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid var(--berps-primary);
    border-radius: 50%;
    background: var(--berps-primary);
    color: #fff;
    box-shadow: var(--berps-shadow-md);
  }

  .sticky-notes-toggle:hover,
  .sticky-notes-toggle:focus {
    border-color: var(--berps-primary-hover);
    background: var(--berps-primary-hover);
  }

  .sticky-notes-toggle i {
    color: #fff;
    font-size: 1.35rem;
  }

  .sticky-notes-panel {
    position: absolute;
    right: 0;
    bottom: 68px;
    display: none;
    width: min(320px, calc(100vw - 32px));
    overflow: hidden;
    border: 1px solid var(--berps-border);
    border-radius: var(--berps-radius-lg);
    background: var(--berps-surface);
    box-shadow: var(--berps-shadow-lg);
  }

  .sticky-notes-panel.is-visible {
    display: block;
  }

  .sticky-notes-header,
  .sticky-notes-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--berps-space-3);
    padding: var(--berps-space-3) var(--berps-space-4);
  }

  .sticky-notes-header {
    border-bottom: 1px solid var(--berps-border);
    background: var(--berps-surface-soft);
  }

  .sticky-notes-header h6 {
    margin: 0;
    color: var(--berps-text);
    font-size: 0.9rem;
    font-weight: 700;
  }

  .sticky-notes-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid var(--berps-border);
    border-radius: var(--berps-radius-sm);
    background: var(--berps-surface);
    color: var(--berps-text-muted);
  }

  .sticky-notes-body {
    padding: var(--berps-space-4);
  }

  .sticky-notes-textarea {
    width: 100%;
    min-height: 150px;
    padding: var(--berps-space-3);
    resize: vertical;
  }

  .sticky-notes-footer {
    border-top: 1px solid var(--berps-border);
  }

  .sticky-notes-save,
  .sticky-notes-clear {
    min-height: 34px;
    padding: 7px 12px;
    border-radius: var(--berps-radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
  }

  .sticky-notes-save {
    border: 1px solid var(--berps-primary);
    background: var(--berps-primary);
    color: #fff;
  }

  .sticky-notes-clear {
    border: 1px solid var(--berps-border);
    background: var(--berps-surface);
    color: var(--berps-text-muted);
  }

  .sticky-notes-saved {
    display: none;
    margin-right: var(--berps-space-2);
    color: var(--berps-success);
    font-size: 0.72rem;
    font-weight: 600;
  }

  /* Buttons ------------------------------------------------------------- */
  .btn,
  .btn-action,
  .btn-submit,
  .btn-solid,
  .btn-soft {
    min-height: var(--berps-control-height);
    border-radius: var(--berps-radius-md);
    font-weight: 600;
    box-shadow: none;
    transition: color 0.16s ease, background-color 0.16s ease,
      border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
  }

  .btn:hover,
  .btn-action:hover,
  .btn-submit:hover,
  .btn-solid:hover,
  .btn-soft:hover {
    transform: translateY(-1px);
  }

  .btn:active,
  .btn-action:active,
  .btn-submit:active,
  .btn-solid:active,
  .btn-soft:active {
    transform: translateY(0);
  }

  .btn-primary,
  .btn-submit,
  .btn-solid {
    border-color: var(--berps-primary);
    background-color: var(--berps-primary);
    background-image: none;
    color: #fff;
  }

  .btn-primary:hover,
  .btn-primary:focus,
  .btn-submit:hover,
  .btn-submit:focus,
  .btn-solid:hover,
  .btn-solid:focus {
    border-color: var(--berps-primary-hover);
    background-color: var(--berps-primary-hover);
    color: #fff;
  }

  .btn-secondary,
  .btn-light,
  .btn-soft,
  .btn-action {
    border-color: var(--berps-border-strong);
    background: var(--berps-surface);
    color: var(--berps-text);
  }

  .btn-secondary:hover,
  .btn-light:hover,
  .btn-soft:hover,
  .btn-action:hover {
    border-color: var(--berps-primary-border);
    background: var(--berps-primary-soft);
    color: var(--berps-primary-hover);
  }

  .btn-outline-primary,
  .btn-outline-info {
    border-color: var(--berps-primary);
    background: var(--berps-surface);
    color: var(--berps-primary);
  }

  .btn-outline-primary:hover,
  .btn-outline-primary:focus,
  .btn-outline-info:hover,
  .btn-outline-info:focus {
    border-color: var(--berps-primary-hover);
    background: var(--berps-primary-soft);
    color: var(--berps-primary-hover);
  }

  .btn-outline-secondary {
    border-color: var(--berps-border-strong);
    background: var(--berps-surface);
    color: var(--berps-text-muted);
  }

  .btn-outline-secondary:hover,
  .btn-outline-secondary:focus {
    border-color: var(--berps-primary-border);
    background: var(--berps-primary-soft);
    color: var(--berps-primary-hover);
  }

  .btn-danger {
    border-color: var(--berps-danger);
    background: var(--berps-danger);
  }

  .btn-sm {
    min-height: 34px;
    border-radius: var(--berps-radius-sm);
  }

  /* Forms --------------------------------------------------------------- */
  .form-control,
  .custom-select,
  .select2-container .select2-selection--single,
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="date"],
  input[type="time"],
  select,
  textarea {
    border-color: var(--berps-border-strong);
    border-radius: var(--berps-radius-md);
    background-color: var(--berps-surface);
    color: var(--berps-text);
    box-shadow: none;
  }

  .form-control:focus,
  .custom-select:focus,
  input:focus,
  select:focus,
  textarea:focus {
    border-color: var(--berps-primary);
    box-shadow: 0 0 0 3px rgba(31, 91, 198, 0.12);
  }

  .form-group label,
  .control-label {
    color: var(--berps-text);
    font-size: 0.84rem;
    font-weight: 600;
  }

  .form-text,
  .help-block {
    color: var(--berps-text-muted);
    font-size: 0.8rem;
  }

  /* Tables -------------------------------------------------------------- */
  .table {
    color: var(--berps-text);
    background: var(--berps-surface);
  }

  .table thead th {
    border-top: 0;
    border-bottom: 1px solid var(--berps-border-strong);
    background: var(--berps-surface-soft);
    color: var(--berps-text-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-transform: uppercase;
  }

  .table td,
  .table th {
    border-color: var(--berps-border);
    vertical-align: middle;
  }

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

  .table-responsive {
    border-radius: var(--berps-radius-md);
    -webkit-overflow-scrolling: touch;
  }

  .dataTables_wrapper .dataTables_filter input,
  .dataTables_wrapper .dataTables_length select {
    min-height: 36px;
    border: 1px solid var(--berps-border-strong);
    border-radius: var(--berps-radius-sm);
    background: var(--berps-surface);
  }

  .page-item .page-link {
    border-color: var(--berps-border);
    color: var(--berps-text-muted);
  }

  .page-item.active .page-link {
    border-color: var(--berps-primary);
    background: var(--berps-primary);
  }

  /* Feedback and overlays --------------------------------------------- */
  .alert {
    border: 1px solid var(--berps-border);
    border-radius: var(--berps-radius-md);
    box-shadow: none;
  }

  .alert-success {
    border-color: #b9dfce;
    background: var(--berps-success-soft);
    color: var(--berps-success);
  }

  .alert-warning {
    border-color: #efd2a9;
    background: var(--berps-warning-soft);
    color: var(--berps-warning);
  }

  .alert-danger {
    border-color: #efc2c8;
    background: var(--berps-danger-soft);
    color: var(--berps-danger);
  }

  .badge {
    border-radius: var(--berps-radius-pill);
    font-weight: 600;
  }

  .dropdown-menu {
    border: 1px solid var(--berps-border);
    border-radius: var(--berps-radius-lg);
    box-shadow: var(--berps-shadow-md);
  }

  .dropdown-item:hover,
  .dropdown-item:focus {
    background: var(--berps-primary-soft);
    color: var(--berps-primary-hover);
  }

  .modal-content {
    border: 1px solid var(--berps-border);
    border-radius: var(--berps-radius-lg);
    box-shadow: var(--berps-shadow-lg);
  }

  .modal-header,
  .modal-footer {
    border-color: var(--berps-border);
  }

  /* Shared forms and modal workflows ---------------------------------- */
  .berps-form-page {
    width: 100%;
  }

  .berps-form-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--berps-border);
    border-radius: var(--berps-radius-lg);
    background: var(--berps-surface);
    box-shadow: var(--berps-shadow-sm);
  }

  .berps-form-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--berps-space-4);
    padding: var(--berps-space-4) var(--berps-space-5);
    border-bottom: 1px solid var(--berps-border);
    background: var(--berps-surface);
  }

  .berps-form-card__body {
    padding: var(--berps-space-6);
  }

  .berps-form-card__title,
  .berps-form-section__title,
  .berps-modal-section__title {
    margin: 0;
    color: var(--berps-text);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
  }

  .berps-form-card__copy,
  .berps-form-section__copy,
  .berps-modal-subtitle {
    margin: var(--berps-space-1) 0 0;
    color: var(--berps-text-muted);
    font-size: 0.82rem;
    line-height: 1.55;
  }

  .berps-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    align-items: start;
    gap: var(--berps-space-5);
  }

  .berps-form-page .form-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--berps-space-5);
  }

  .berps-form-page .form-grid > .col-4 {
    grid-column: span 4;
    max-width: none;
  }

  .berps-form-page .form-grid > .col-6 {
    grid-column: span 6;
    max-width: none;
  }

  .berps-form-page .form-grid > .col-8 {
    grid-column: span 8;
    max-width: none;
  }

  .berps-form-page .form-grid > .col-12 {
    grid-column: span 12;
    max-width: none;
  }

  .berps-form-section + .berps-form-section {
    margin-top: var(--berps-space-6);
    padding-top: var(--berps-space-6);
    border-top: 1px solid var(--berps-border);
  }

  .berps-form-section__header {
    margin-bottom: var(--berps-space-4);
  }

  .berps-form-page .form-section-title {
    margin: var(--berps-space-6) 0 var(--berps-space-4);
    padding-top: var(--berps-space-6);
    border-top: 1px solid var(--berps-border);
    color: var(--berps-text);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
  }

  .berps-form-page form > .form-section-title:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .berps-form-page .form-row,
  .berps-form-modal .form-row {
    margin-right: calc(var(--berps-space-2) * -1);
    margin-left: calc(var(--berps-space-2) * -1);
  }

  .berps-form-page .form-row > [class*="col-"],
  .berps-form-modal .form-row > [class*="col-"] {
    padding-right: var(--berps-space-2);
    padding-left: var(--berps-space-2);
  }

  .berps-form-page .form-group,
  .berps-form-modal .form-group,
  .berps-public-form-page .form-group {
    margin-bottom: var(--berps-space-5);
  }

  .berps-form-page label,
  .berps-form-modal label,
  .berps-public-form-page label {
    display: block;
    margin-bottom: var(--berps-space-2);
    color: var(--berps-text);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.4;
  }

  .berps-form-page :is(.form-control, .custom-select),
  .berps-form-modal :is(.form-control, .custom-select),
  .berps-public-form-page :is(.form-control, .form-select) {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--berps-border-strong);
    border-radius: var(--berps-radius-md);
    background-color: var(--berps-surface);
    color: var(--berps-text);
  }

  .berps-form-page textarea.form-control,
  .berps-form-modal textarea.form-control,
  .berps-public-form-page textarea.form-control {
    min-height: 110px;
    resize: vertical;
  }

  .berps-form-page .form-control[readonly],
  .berps-form-modal .form-control[readonly] {
    background: var(--berps-surface-soft);
    color: var(--berps-text-muted);
  }

  .berps-form-page .input-group-text,
  .berps-form-modal .input-group-text {
    border-color: var(--berps-border-strong);
    border-radius: var(--berps-radius-md) 0 0 var(--berps-radius-md);
    background: var(--berps-surface-soft);
    color: var(--berps-text-muted);
    font-weight: 600;
  }

  .berps-form-page .form-control-file,
  .berps-public-form-page .form-control-file {
    width: 100%;
    min-height: 48px;
    padding: var(--berps-space-3);
    border: 1px dashed var(--berps-border-strong);
    border-radius: var(--berps-radius-md);
    background: var(--berps-surface-soft);
    color: var(--berps-text-muted);
  }

  .berps-required::after,
  .berps-form-page .req::after,
  .berps-form-modal .req::after {
    content: " *";
    color: var(--berps-danger);
  }

  .berps-field-hint,
  .berps-form-page .form-hint,
  .berps-public-form-page .help-text {
    margin-top: var(--berps-space-2);
    color: var(--berps-text-muted);
    font-size: 0.78rem;
    line-height: 1.5;
  }

  .was-validated :is(.form-control, .custom-select):invalid,
  :is(.form-control, .custom-select).is-invalid {
    border-color: var(--berps-danger);
  }

  .was-validated :is(.form-control, .custom-select):valid,
  :is(.form-control, .custom-select).is-valid {
    border-color: var(--berps-success);
  }

  .invalid-feedback {
    margin-top: var(--berps-space-1);
    color: var(--berps-danger);
    font-size: 0.76rem;
  }

  .berps-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: var(--berps-space-2);
    margin-top: var(--berps-space-6);
    padding-top: var(--berps-space-5);
    border-top: 1px solid var(--berps-border);
  }

  .berps-form-note {
    display: flex;
    align-items: flex-start;
    gap: var(--berps-space-3);
    margin-top: var(--berps-space-4);
    padding: var(--berps-space-4);
    border: 1px solid var(--berps-primary-border);
    border-radius: var(--berps-radius-md);
    background: var(--berps-primary-soft);
    color: var(--berps-text-muted);
    font-size: 0.8rem;
    line-height: 1.55;
  }

  .berps-form-note__icon {
    flex: 0 0 auto;
    color: var(--berps-primary);
    font-size: 1.1rem;
  }

  .berps-conditional-note {
    display: none;
    margin-top: var(--berps-space-2);
    padding: var(--berps-space-3) var(--berps-space-4);
    border: 1px solid #efd2a9;
    border-radius: var(--berps-radius-md);
    background: var(--berps-warning-soft);
    color: var(--berps-warning);
    font-size: 0.78rem;
    font-weight: 600;
  }

  .berps-conditional-note.is-visible {
    display: block;
  }

  .berps-detail-list {
    display: grid;
    gap: var(--berps-space-4);
    margin: 0;
  }

  .berps-detail-list__item {
    min-width: 0;
    padding-bottom: var(--berps-space-3);
    border-bottom: 1px solid var(--berps-border);
  }

  .berps-detail-list__item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .berps-detail-list dt {
    margin-bottom: var(--berps-space-1);
    color: var(--berps-text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .berps-detail-list dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--berps-text);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.5;
  }

  .select2-container--default .select2-selection--single {
    min-height: 42px;
    padding: 6px 36px 6px 12px;
    border: 1px solid var(--berps-border-strong);
    border-radius: var(--berps-radius-md);
    background: var(--berps-surface);
  }

  .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0;
    color: var(--berps-text);
    line-height: 28px;
  }

  .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 3px;
    right: 6px;
    height: 34px;
  }

  .berps-form-modal .modal-dialog {
    max-width: 920px;
  }

  .berps-form-modal .modal-content {
    overflow: hidden;
  }

  .berps-form-modal .modal-header {
    align-items: flex-start;
    padding: var(--berps-space-5) var(--berps-space-6);
    background: var(--berps-surface);
  }

  .berps-form-modal .modal-title {
    color: var(--berps-text);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
  }

  .berps-form-modal .modal-body {
    max-height: min(70vh, 720px);
    overflow-y: auto;
    padding: var(--berps-space-6);
  }

  .berps-form-modal .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--berps-space-2);
    padding: var(--berps-space-4) var(--berps-space-6);
    background: var(--berps-surface-soft);
  }

  .berps-form-modal .modal-footer > * {
    margin: 0;
  }

  .berps-modal-section + .berps-modal-section {
    margin-top: var(--berps-space-5);
    padding-top: var(--berps-space-5);
    border-top: 1px solid var(--berps-border);
  }

  .berps-modal-section__title {
    margin-bottom: var(--berps-space-4);
  }

  /* Public support form and selectable controls ----------------------- */
  body.berps-public-form-page {
    min-height: 100vh;
    padding: var(--berps-space-8) var(--berps-space-4);
    background: var(--berps-bg);
  }

  .berps-public-form-shell {
    width: min(880px, 100%);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--berps-border);
    border-radius: var(--berps-radius-lg);
    background: var(--berps-surface);
    box-shadow: var(--berps-shadow-md);
  }

  .berps-public-form-header {
    padding: var(--berps-space-8);
    border-bottom: 1px solid var(--berps-border);
    background: var(--berps-surface);
    text-align: left;
  }

  .berps-public-form-header__eyebrow {
    display: block;
    margin-bottom: var(--berps-space-2);
    color: var(--berps-primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .berps-public-form-header h1 {
    margin: 0;
    color: var(--berps-text);
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.025em;
  }

  .berps-public-form-header p {
    max-width: 680px;
    margin: var(--berps-space-2) 0 0;
    color: var(--berps-text-muted);
    line-height: 1.6;
  }

  .berps-public-form-body {
    padding: var(--berps-space-8);
  }

  .berps-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--berps-space-3);
    margin-top: var(--berps-space-3);
  }

  .berps-choice-card {
    width: 100%;
    padding: var(--berps-space-4);
    border: 1px solid var(--berps-border);
    border-radius: var(--berps-radius-md);
    background: var(--berps-surface);
    color: var(--berps-text);
    text-align: left;
    transition: border-color 0.16s ease, background-color 0.16s ease;
  }

  .berps-choice-card:hover,
  .berps-choice-card:focus,
  .berps-choice-card.selected,
  .berps-choice-card[aria-pressed="true"] {
    border-color: var(--berps-primary);
    background: var(--berps-primary-soft);
    color: var(--berps-primary-hover);
  }

  .berps-choice-card strong,
  .berps-choice-card span {
    display: block;
  }

  .berps-choice-card strong {
    font-size: 0.88rem;
  }

  .berps-choice-card span {
    margin-top: var(--berps-space-1);
    color: var(--berps-text-muted);
    font-size: 0.76rem;
    line-height: 1.5;
  }

  .berps-choice-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--berps-space-2);
    margin-top: var(--berps-space-3);
  }

  .berps-choice-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 7px 12px;
    border: 1px solid var(--berps-border);
    border-radius: var(--berps-radius-pill);
    background: var(--berps-surface);
    color: var(--berps-text-muted);
    font-size: 0.78rem;
    font-weight: 600;
  }

  .berps-choice-pill:hover,
  .berps-choice-pill:focus,
  .berps-choice-pill.selected,
  .berps-choice-pill.is-active,
  .berps-choice-pill.active,
  .berps-choice-pill[aria-pressed="true"] {
    border-color: var(--berps-primary);
    background: var(--berps-primary-soft);
    color: var(--berps-primary-hover);
    text-decoration: none;
  }

  .berps-choice-pill--urgent.selected,
  .berps-choice-pill--urgent[aria-pressed="true"] {
    border-color: var(--berps-danger);
    background: var(--berps-danger-soft);
    color: var(--berps-danger);
  }

  .berps-loading-state,
  .berps-success-state {
    padding: var(--berps-space-6);
    color: var(--berps-text-muted);
    text-align: center;
  }

  .berps-success-state__icon {
    display: block;
    margin-bottom: var(--berps-space-3);
    color: var(--berps-success);
    font-size: 2.5rem;
  }

  .is-hidden {
    display: none !important;
  }

  /* Accessible destructive-action confirmation ----------------------- */
  .berps-confirm-dialog {
    position: fixed;
    z-index: 10050;
    inset: 0;
    display: grid;
    place-items: center;
    padding: var(--berps-space-4);
  }

  .berps-confirm-dialog[hidden] {
    display: none;
  }

  .berps-confirm-dialog__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
  }

  .berps-confirm-dialog__panel {
    position: relative;
    width: min(440px, 100%);
    overflow: hidden;
    border: 1px solid var(--berps-border);
    border-radius: var(--berps-radius-lg);
    background: var(--berps-surface);
    box-shadow: var(--berps-shadow-lg);
  }

  .berps-confirm-dialog__body {
    padding: var(--berps-space-6);
  }

  .berps-confirm-dialog__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: var(--berps-space-4);
    border-radius: var(--berps-radius-md);
    background: var(--berps-danger-soft);
    color: var(--berps-danger);
    font-size: 1.2rem;
  }

  .berps-confirm-dialog[data-tone="primary"] .berps-confirm-dialog__icon {
    background: var(--berps-primary-soft);
    color: var(--berps-primary);
  }

  .berps-confirm-dialog__title {
    margin: 0;
    color: var(--berps-text);
    font-size: 1.05rem;
    font-weight: 700;
  }

  .berps-confirm-dialog__message {
    margin: var(--berps-space-2) 0 0;
    color: var(--berps-text-muted);
    font-size: 0.84rem;
    line-height: 1.6;
  }

  .berps-confirm-dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--berps-space-2);
    padding: var(--berps-space-4) var(--berps-space-6);
    border-top: 1px solid var(--berps-border);
    background: var(--berps-surface-soft);
  }

  body.berps-dialog-open {
    overflow: hidden;
  }

  /* Attendance and daily time records -------------------------------- */
  :is(.attendance-page, .my-dtr-page) {
    width: 100%;
  }

  :is(.attendance-page, .my-dtr-page) .berps-page-header {
    border-left: 4px solid var(--berps-primary);
    background: #f9fbff;
  }

  /* Attendance hero banner */
  .attendance-page .att-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--berps-space-4);
    padding: var(--berps-space-8) var(--berps-space-6);
    margin-bottom: var(--berps-space-6);
    border-radius: var(--berps-radius-lg);
    background: #3d348b;
    box-shadow: 0 8px 32px rgba(61, 52, 139, 0.25);
    position: relative;
    overflow: hidden;
  }

  .attendance-page .att-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
  }

  .attendance-page .att-hero::after {
    content: '';
    position: absolute;
    bottom: -60%;
    right: 15%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
  }

  .attendance-page .att-hero__content {
    position: relative;
    z-index: 1;
  }

  .attendance-page .att-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: var(--berps-space-2);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
  }

  .attendance-page .att-hero__eyebrow i {
    font-size: 1rem;
  }

  .attendance-page .att-hero__title {
    margin: 0 0 var(--berps-space-1) 0;
    color: #fff;
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
  }

  .attendance-page .att-hero__subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.88rem;
    max-width: 480px;
  }

  .attendance-page .att-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--berps-space-2);
    position: relative;
    z-index: 1;
  }

  .attendance-page .att-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--berps-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.18s ease;
  }

  .attendance-page .att-hero-btn:hover,
  .attendance-page .att-hero-btn:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
  }

  .attendance-page .att-hero-btn--solid {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.95);
    color: #3d348b;
    font-weight: 700;
  }

  .attendance-page .att-hero-btn--solid:hover,
  .attendance-page .att-hero-btn--solid:focus {
    background: #fff;
    color: #2d2870;
  }

  /* Clock tick animation */
  .attendance-page .clock-tick {
    display: inline-block;
    animation: clock-tick 2s ease-in-out infinite;
    transform-origin: 50% 50%;
  }

  @keyframes clock-tick {
    0%, 70%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(-15deg); }
    20% { transform: rotate(0deg); }
    30% { transform: rotate(12deg); }
    40% { transform: rotate(0deg); }
    50% { transform: rotate(-8deg); }
    60% { transform: rotate(0deg); }
  }

  /* Responsive hero */
  @media screen and (max-width: 767.98px) {
    .attendance-page .att-hero,
    .attendance-page .att-hero__actions {
      flex-direction: column;
      align-items: stretch;
    }

    .attendance-page .att-hero {
      padding: var(--berps-space-5);
    }

    .attendance-page .att-hero-btn {
      flex: 1 1 auto;
      justify-content: center;
    }
  }

  :is(.attendance-page, .my-dtr-page) :is(.btn-action, .btn-submit, .btn-ghost) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--berps-space-2);
    min-height: var(--berps-control-height);
    padding: 9px 14px;
    border-radius: var(--berps-radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
  }

  :is(.attendance-page, .my-dtr-page) .btn-ghost {
    border: 1px solid transparent;
    background: transparent;
    color: var(--berps-text-muted);
  }

  :is(.attendance-page, .my-dtr-page) .btn-ghost:hover,
  :is(.attendance-page, .my-dtr-page) .btn-ghost:focus {
    border-color: var(--berps-border);
    background: var(--berps-surface-soft);
    color: var(--berps-primary);
  }

  .attendance-page .punch-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--berps-space-4);
    margin-bottom: var(--berps-space-6);
  }

  .attendance-page .punch-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--berps-space-4);
    min-width: 0;
    padding: var(--berps-space-5);
    border: 1px solid var(--berps-border);
    border-left: 4px solid var(--berps-primary);
    border-radius: var(--berps-radius-lg);
    background: #f4f8ff;
    box-shadow: var(--berps-shadow-sm);
  }

  .attendance-page .punch-card.punch-out {
    border-left-color: #d9861a;
    background: #fff9ef;
  }

  .attendance-page .punch-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--berps-radius-md);
    background: var(--berps-primary-soft);
    color: var(--berps-primary);
    font-size: 1.25rem;
  }

  .attendance-page .punch-out .punch-icon {
    background: var(--berps-warning-soft);
    color: var(--berps-warning);
  }

  .attendance-page .punch-label {
    color: var(--berps-text);
    font-size: 0.95rem;
    font-weight: 700;
  }

  .attendance-page .punch-sublabel {
    margin-top: var(--berps-space-1);
    color: var(--berps-text-muted);
    font-size: 0.76rem;
  }

  .attendance-page .punch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--berps-control-height);
    padding: 8px 14px;
    border: 1px solid var(--berps-primary);
    border-radius: var(--berps-radius-md);
    background: var(--berps-primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
  }

  .attendance-page .punch-out .punch-btn {
    border-color: #c77310;
    background: #c77310;
  }

  :is(.attendance-page, .my-dtr-page) .attendance-card,
  :is(.attendance-page, .my-dtr-page) .dtr-card {
    overflow: hidden;
    border-top: 3px solid #3d348b;
  }

  :is(.attendance-page, .my-dtr-page) .theme-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--berps-space-4);
    padding: var(--berps-space-4) var(--berps-space-5);
    border-bottom: 1px solid var(--berps-border);
    background: #f9fbff;
  }

  :is(.attendance-page, .my-dtr-page) .theme-card-title {
    margin: 0;
    color: #3d348b;
    font-size: 1rem;
    font-weight: 700;
  }

  :is(.attendance-page, .my-dtr-page) .theme-card-subtitle {
    margin-top: var(--berps-space-1);
    color: var(--berps-text-muted);
    font-size: 0.8rem;
    line-height: 1.5;
  }

  :is(.attendance-page, .my-dtr-page) .theme-card-body {
    padding: var(--berps-space-5);
  }

  .attendance-page .card-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--berps-space-2);
    padding: var(--berps-space-4) var(--berps-space-5);
    border-bottom: 1px solid var(--berps-border);
    background: var(--berps-surface);
  }

  :is(.attendance-page, .my-dtr-page) :is(.att-table, .dtr-table) {
    width: 100%;
    margin: 0;
  }

  :is(.attendance-page, .my-dtr-page) :is(.att-table, .dtr-table) thead th {
    white-space: nowrap;
    padding: 12px 14px;
    border-top: 0;
    border-bottom: 1px solid var(--berps-border-strong);
    background: var(--berps-surface-soft);
    color: var(--berps-text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-transform: uppercase;
  }

  :is(.attendance-page, .my-dtr-page) :is(.att-table, .dtr-table) td {
    padding: 12px 14px;
    border-top: 0;
    border-bottom: 1px solid var(--berps-border);
    color: var(--berps-text);
    font-size: 0.8rem;
    vertical-align: middle;
  }

  :is(.attendance-page, .my-dtr-page) :is(.att-table, .dtr-table) tbody tr:hover td {
    background: #f8fbff;
  }

  .attendance-page .cell-muted,
  :is(.attendance-page, .my-dtr-page) .muted-copy,
  :is(.attendance-page, .my-dtr-page) .empty-time {
    color: var(--berps-text-muted);
  }

  :is(.attendance-page, .my-dtr-page) .hours-badge,
  .my-dtr-page .total-label {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: var(--berps-radius-pill);
    background: var(--berps-primary-soft);
    color: var(--berps-primary-hover);
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
  }

  :is(.attendance-page, .my-dtr-page) .status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: var(--berps-radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
  }

  :is(.attendance-page, .my-dtr-page) :is(.pill-success, .status-present) {
    background: var(--berps-success-soft);
    color: var(--berps-success);
  }

  :is(.attendance-page, .my-dtr-page) :is(.status-pending) {
    background: var(--berps-warning-soft);
    color: var(--berps-warning);
  }

  :is(.attendance-page, .my-dtr-page) :is(.pill-muted) {
    background: var(--berps-surface-muted);
    color: var(--berps-text-muted);
  }

  :is(.attendance-page, .my-dtr-page) :is(.status-absent) {
    background: var(--berps-danger-soft);
    color: var(--berps-danger);
  }

  :is(.attendance-page, .my-dtr-page) .breakdown-line {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--berps-text-muted);
    font-size: 0.76rem;
    line-height: 1.55;
  }

  :is(.attendance-page, .my-dtr-page) .breakdown-line + .breakdown-line {
    margin-top: 3px;
  }

  .attendance-page .see-more {
    display: inline-block;
    margin-top: var(--berps-space-1);
    color: var(--berps-primary);
    font-size: 0.72rem;
    font-weight: 600;
  }

  .attendance-page .attendance-actions,
  .my-dtr-page .task-stack {
    display: inline-flex;
    align-items: center;
    gap: var(--berps-space-1);
  }

  .attendance-page .action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--berps-border);
    border-radius: var(--berps-radius-md);
    background: var(--berps-surface);
    color: var(--berps-primary);
    text-decoration: none;
  }

  .attendance-page .action-icon:hover,
  .attendance-page .action-icon:focus {
    border-color: var(--berps-primary-border);
    background: var(--berps-primary-soft);
    color: var(--berps-primary-hover);
  }

  .attendance-page .act-sky {
    color: var(--berps-info);
  }

  .attendance-page .total-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: var(--berps-space-3) var(--berps-space-6);
    min-height: 52px;
    padding: var(--berps-space-3) var(--berps-space-5);
    border-top: 1px solid var(--berps-primary-border);
    background: var(--berps-primary-soft);
    color: var(--berps-primary-hover);
    font-size: 0.8rem;
  }

  .attendance-page #employee-total-summary {
    padding: 0 var(--berps-space-5) var(--berps-space-4);
    background: var(--berps-surface);
  }

  .attendance-page .dataTables_wrapper {
    padding: var(--berps-space-4) var(--berps-space-5) 0;
  }

  .attendance-page .table-responsive .dataTables_wrapper {
    padding-right: 0;
    padding-left: 0;
  }

  .attendance-page .attendance-empty {
    padding: var(--berps-space-8) !important;
    color: var(--berps-text-muted) !important;
    text-align: center;
  }

  .my-dtr-page .stat-hours {
    border-top: 3px solid #3d348b;
  }

  /* My DTR hero banner */
  .my-dtr-page .my-dtr-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--berps-space-4);
    padding: var(--berps-space-8) var(--berps-space-6);
    margin-bottom: var(--berps-space-6);
    border-radius: var(--berps-radius-lg);
    background: #3d348b;
    box-shadow: 0 8px 32px rgba(61, 52, 139, 0.25);
    position: relative;
    overflow: hidden;
  }

  .my-dtr-page .my-dtr-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
  }

  .my-dtr-page .my-dtr-hero::after {
    content: '';
    position: absolute;
    bottom: -60%;
    right: 15%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
  }

  .my-dtr-page .my-dtr-hero__content {
    position: relative;
    z-index: 1;
  }

  .my-dtr-page .my-dtr-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: var(--berps-space-2);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
  }

  .my-dtr-page .my-dtr-hero__eyebrow i {
    font-size: 1rem;
  }

  .my-dtr-page .my-dtr-hero__title {
    margin: 0 0 var(--berps-space-1) 0;
    color: #fff;
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
  }

  .my-dtr-page .my-dtr-hero__subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.88rem;
    max-width: 480px;
  }

  .my-dtr-page .my-dtr-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--berps-space-2);
    position: relative;
    z-index: 1;
  }

  .my-dtr-page .my-dtr-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--berps-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.18s ease;
  }

  .my-dtr-page .my-dtr-hero-btn:hover,
  .my-dtr-page .my-dtr-hero-btn:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
  }

  .my-dtr-page .my-dtr-hero-btn--solid {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.95);
    color: #3d348b;
    font-weight: 700;
  }

  .my-dtr-page .my-dtr-hero-btn--solid:hover,
  .my-dtr-page .my-dtr-hero-btn--solid:focus {
    background: #fff;
    color: #2d2870;
  }

  /* Clock tick animation (shared with attendance page) */
  .my-dtr-page .clock-tick {
    display: inline-block;
    animation: my-dtr-clock-tick 2s ease-in-out infinite;
    transform-origin: 50% 50%;
  }

  @keyframes my-dtr-clock-tick {
    0%, 70%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(-15deg); }
    20% { transform: rotate(0deg); }
    30% { transform: rotate(12deg); }
    40% { transform: rotate(0deg); }
    50% { transform: rotate(-8deg); }
    60% { transform: rotate(0deg); }
  }

  /* Responsive hero */
  @media screen and (max-width: 767.98px) {
    .my-dtr-page .my-dtr-hero,
    .my-dtr-page .my-dtr-hero__actions {
      flex-direction: column;
      align-items: stretch;
    }

    .my-dtr-page .my-dtr-hero {
      padding: var(--berps-space-5);
    }

    .my-dtr-page .my-dtr-hero-btn {
      flex: 1 1 auto;
      justify-content: center;
    }
  }

  /* My DTR summary and ledger ----------------------------------------- */
  .my-dtr-page .stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--berps-space-4);
    margin-bottom: var(--berps-space-6);
  }

  .my-dtr-page .stat-card {
    min-width: 0;
    padding: var(--berps-space-5);
    border: 1px solid var(--berps-border);
    border-top: 3px solid var(--berps-primary);
    border-radius: var(--berps-radius-lg);
    background: var(--berps-surface);
    box-shadow: var(--berps-shadow-sm);
  }

  .my-dtr-page .stat-present {
    border-top-color: var(--berps-success);
  }

  .my-dtr-page .stat-absent {
    border-top-color: var(--berps-danger);
  }

  .my-dtr-page .stat-pending {
    border-top-color: var(--berps-warning);
  }

  .my-dtr-page .stat-tasks {
    border-top-color: #6f4cc3;
  }

  .my-dtr-page .stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: var(--berps-space-3);
    border-radius: var(--berps-radius-md);
    background: var(--berps-primary-soft);
    color: var(--berps-primary);
    font-size: 1.05rem;
  }

  .my-dtr-page .stat-present .stat-icon {
    background: var(--berps-success-soft);
    color: var(--berps-success);
  }

  .my-dtr-page .stat-absent .stat-icon {
    background: var(--berps-danger-soft);
    color: var(--berps-danger);
  }

  .my-dtr-page .stat-pending .stat-icon {
    background: var(--berps-warning-soft);
    color: var(--berps-warning);
  }

  .my-dtr-page .stat-tasks .stat-icon {
    background: #f2edff;
    color: #6f4cc3;
  }

  .my-dtr-page .stat-label {
    color: var(--berps-text-muted);
    font-size: 0.76rem;
    font-weight: 600;
  }

  .my-dtr-page .stat-value {
    margin-top: var(--berps-space-2);
    color: var(--berps-text);
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    font-weight: 700;
    line-height: 1.2;
  }

  .my-dtr-page .stat-meta {
    margin-top: var(--berps-space-2);
    color: var(--berps-text-muted);
    font-size: 0.72rem;
    line-height: 1.5;
  }

  .my-dtr-page .theme-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--berps-space-5);
    margin-bottom: var(--berps-space-6);
    padding: var(--berps-space-5);
    border: 1px solid var(--berps-primary-border);
    border-left: 4px solid var(--berps-primary);
    border-radius: var(--berps-radius-lg);
    background: var(--berps-primary-soft);
  }

  .my-dtr-page .banner-title {
    color: var(--berps-text);
    font-size: 1rem;
    font-weight: 700;
  }

  .my-dtr-page .banner-copy {
    margin-top: var(--berps-space-1);
    color: var(--berps-text-muted);
    font-size: 0.8rem;
  }

  .my-dtr-page .banner-id {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: var(--berps-radius-pill);
    background: var(--berps-surface);
    color: var(--berps-primary-hover);
    font-size: 0.74rem;
    font-weight: 700;
  }

  .my-dtr-page .mini-stats {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: var(--berps-space-2);
  }

  .my-dtr-page .mini-stat-pill,
  .my-dtr-page .task-count-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: var(--berps-radius-pill);
    background: var(--berps-primary-soft);
    color: var(--berps-primary-hover);
    font-size: 0.72rem;
  }

  .my-dtr-page .date-day {
    display: block;
    color: var(--berps-primary);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .my-dtr-page .date-label {
    margin-top: 2px;
    color: var(--berps-text);
    font-weight: 600;
    white-space: nowrap;
  }

  .my-dtr-page .row-absent td {
    background: #fffafb;
  }

  .my-dtr-page .task-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    padding: 5px 9px;
    border: 1px solid var(--berps-primary-border);
    border-radius: var(--berps-radius-md);
    background: var(--berps-surface);
    color: var(--berps-primary);
    font-size: 0.74rem;
    font-weight: 600;
    text-decoration: none;
  }

  .my-dtr-page .task-link:hover,
  .my-dtr-page .task-link:focus {
    background: var(--berps-primary-soft);
    color: var(--berps-primary-hover);
  }

  .my-dtr-page .empty-state {
    padding: var(--berps-space-8) !important;
    color: var(--berps-text-muted);
    text-align: center;
  }

  /* Shared application footer ----------------------------------------- */
  .berps-app-footer {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: auto;
    min-height: auto;
    padding: 0;
    border-top: 1px solid var(--berps-border);
    background: var(--berps-surface);
    color: var(--berps-text-muted);
    font-size: 0.8rem;
  }

  .berps-app-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--berps-space-4) var(--berps-space-6);
    min-height: 68px;
    padding: var(--berps-space-4) 0;
  }

  .berps-app-footer__brand,
  .berps-app-footer__links,
  .berps-app-footer__social {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--berps-space-2) var(--berps-space-4);
  }

  .berps-app-footer__brand strong {
    color: var(--berps-text);
    font-size: 0.88rem;
  }

  .berps-app-footer a {
    color: var(--berps-text-muted);
    text-decoration: none;
  }

  .berps-app-footer a:hover,
  .berps-app-footer a:focus {
    color: var(--berps-primary);
    text-decoration: none;
  }

  .berps-app-footer__links a,
  .berps-app-footer__links span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .berps-app-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--berps-border);
    border-radius: var(--berps-radius-md);
    background: var(--berps-surface-soft);
    color: var(--berps-text-muted);
  }

  .staff-dashboard-admin .leader-points.champion {
    color: var(--berps-primary);
  }
}

@media screen and (max-width: 991.98px) {
  .users-management-page .content-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .berps-form-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .berps-form-page .form-grid > :is(.col-4, .col-6, .col-8) {
    grid-column: span 12;
  }

  .my-dtr-page .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Chrome: mobile sidebar drawer (pageant-style) */
@media screen and (max-width: 991.98px) {
  .left-side-menu {
    display: flex !important;
    z-index: 1000 !important;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

  body.berps-sidebar-open .left-side-menu {
    transform: translateX(0);
  }

  body.berps-sidebar-open {
    overflow: hidden;
  }

  .navbar-custom {
    left: 0;
  }

  .content-page {
    margin-left: 0 !important;
  }

}

@media screen and (max-width: 767.98px) {
  :root {
    --berps-content-top-gap: 18px;
    --berps-content-bottom-gap: 32px;
  }

  .content-page {
    min-height: calc(100vh - var(--berps-topbar-height));
  }

  .berps-page-header,
  .berps-section-heading,
  .berps-section-card__header,
  .berps-table-card__header {
    align-items: stretch;
    flex-direction: column;
  }

  :is(.client-list-page, .project-list-page, .users-management-page) .page-header,
  :is(.client-list-page, .project-list-page, .users-management-page) .theme-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  :is(.client-list-page, .project-list-page, .users-management-page) .page-header {
    padding: var(--berps-space-5);
  }

  :is(.client-list-page, .project-list-page, .users-management-page) .page-actions .btn-submit {
    width: 100%;
  }

  :is(.client-list-page, .users-management-page) .stats-grid,
  .client-list-page .filter-grid,
  .project-list-page .year-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  :is(.client-list-page, .project-list-page, .users-management-page, .expenses-list-page) .theme-card-body {
    padding: var(--berps-space-4);
  }

  :is(.client-list-page, .project-list-page, .users-management-page, .expenses-list-page) .theme-card-body > .table-responsive,
  :is(.client-list-page, .project-list-page, .users-management-page, .expenses-list-page) .theme-card-body > .data-table-container {
    margin: calc(var(--berps-space-4) * -1);
  }

  .staff-dashboard-admin .dash-hero,
  .staff-dashboard-admin .panel-header {
    align-items: stretch;
    flex-direction: column;
  }

  .staff-dashboard-admin .dash-hero {
    padding: var(--berps-space-5);
  }

  .staff-dashboard-admin .dash-hero__actions {
    justify-content: flex-start;
  }

  .staff-dashboard-admin .dash-hero-btn {
    flex: 1 1 auto;
  }

  .staff-dashboard-admin .dash-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .staff-dashboard-admin .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--berps-space-3);
  }

  .staff-dashboard-admin .kpi-card {
    padding: var(--berps-space-4);
  }

  .staff-dashboard-admin .panel-body {
    padding: var(--berps-space-4);
  }

  .staff-dashboard-admin #staffCalendar {
    min-height: 460px;
  }

  .sticky-notes-widget {
    right: 16px;
    bottom: 16px;
  }

  .berps-page-header {
    padding: var(--berps-space-5);
  }

  .berps-page-header__actions,
  .berps-toolbar__actions {
    justify-content: flex-start;
  }

  .berps-page-header__actions .btn {
    flex: 1 1 auto;
  }

  .berps-form-card__header,
  .berps-form-modal .modal-header {
    align-items: stretch;
    flex-direction: column;
  }

  .berps-form-card__body,
  .berps-form-modal .modal-body,
  .berps-form-modal .modal-header,
  .berps-form-modal .modal-footer,
  .berps-public-form-header,
  .berps-public-form-body {
    padding-right: var(--berps-space-4);
    padding-left: var(--berps-space-4);
  }

  .berps-form-actions,
  .berps-form-modal .modal-footer {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .berps-form-actions .btn,
  .berps-form-modal .modal-footer .btn,
  .berps-form-modal .modal-footer .btn-submit,
  .berps-form-modal .modal-footer .btn-action {
    width: 100%;
  }

  body.berps-public-form-page {
    padding: var(--berps-space-4);
  }

  .berps-choice-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .attendance-page .punch-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .attendance-page .punch-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .attendance-page .punch-btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .attendance-page .card-toolbar,
  .attendance-page .card-toolbar :is(.btn-action, .btn-submit, .btn-ghost) {
    width: 100%;
  }

  :is(.attendance-page, .my-dtr-page) .theme-card-head,
  .my-dtr-page .theme-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .my-dtr-page .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--berps-space-3);
  }

  .my-dtr-page .mini-stats {
    justify-content: flex-start;
  }

  .my-dtr-page .banner-id {
    align-self: flex-start;
  }

  .berps-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--berps-space-3);
  }

  .berps-stat-card {
    padding: var(--berps-space-4);
  }

  .berps-stat-card__icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .berps-layout-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .berps-section-card__body,
  .berps-table-card__body {
    padding: var(--berps-space-4);
  }

  .berps-toolbar,
  .berps-toolbar__group,
  .berps-toolbar__field {
    width: 100%;
  }

  .berps-toolbar__field .form-control,
  .berps-toolbar__field select {
    width: 100%;
  }

  .berps-app-footer__inner {
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
    padding: var(--berps-space-5) 0;
  }

  .berps-app-footer__links {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media screen and (max-width: 479.98px) {
  .berps-stat-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .staff-dashboard-admin .kpi-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .my-dtr-page .stat-hours {
    grid-column: 1 / -1;
  }
}

@media print {
  #noPrint,
  .left-side-menu,
  .navbar-custom,
  .footer,
  .theme-customizer,
  .berps-menu-toggle,
  .berps-sidebar-overlay,
  .modal,
  .modal-backdrop {
    display: none !important;
  }

  body,
  html {
    background: #fff !important;
  }

  .content-page {
    margin: 0 !important;
    padding: 0 !important;
  }

  .content,
  .container-fluid {
    margin: 0 !important;
    padding: 0 !important;
  }

  .my-dtr-page {
    background: #fff !important;
    padding: 0 !important;
  }

  .my-dtr-page .stat-card,
  .my-dtr-page .theme-banner,
  .my-dtr-page .dtr-card {
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
  }

  .my-dtr-page .table-responsive {
    overflow: visible !important;
  }

  .my-dtr-page .stats-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .my-dtr-page .dtr-table :is(th, td) {
    padding: 10px 8px !important;
    font-size: 12px !important;
  }

  .my-dtr-page .task-link {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Invoice list & customer deliveries (list pages) ----------------------- */
:is(.invoice-list-page, .customer-delivery-page, .job-order-page) .filter-form {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto;
  gap: var(--berps-space-3);
  align-items: end;
}

:is(.invoice-list-page, .customer-delivery-page, .job-order-page) .filter-field label {
  display: block;
  margin-bottom: var(--berps-space-2);
  color: var(--berps-text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

:is(.invoice-list-page, .customer-delivery-page, .job-order-page) .filter-actions {
  display: flex;
  gap: var(--berps-space-2);
  flex-wrap: wrap;
}

:is(.invoice-list-page, .customer-delivery-page, .job-order-page) .filter-active-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--berps-space-2);
  padding: 7px 12px;
  border-radius: var(--berps-radius-pill);
  background: var(--berps-primary-soft);
  color: var(--berps-primary-hover);
  font-size: 0.78rem;
  font-weight: 700;
}

:is(.invoice-list-page, .customer-delivery-page, .job-order-page) .inv-no-link {
  display: inline-flex;
  align-items: center;
  gap: var(--berps-space-2);
  color: var(--berps-primary);
  font-size: 0.87rem;
  font-weight: 700;
  text-decoration: none;
}

:is(.invoice-list-page, .customer-delivery-page, .job-order-page) .inv-no-link::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--berps-primary);
  box-shadow: 0 0 0 4px var(--berps-primary-soft);
}

:is(.invoice-list-page, .customer-delivery-page, .job-order-page) .inv-no-link:hover,
:is(.invoice-list-page, .customer-delivery-page, .job-order-page) .inv-no-link:focus {
  color: var(--berps-primary-hover);
  text-decoration: none;
}

:is(.invoice-list-page, .customer-delivery-page, .job-order-page) .num-cell {
  color: var(--berps-text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

:is(.invoice-list-page, .customer-delivery-page, .job-order-page) .action-link {
  color: var(--berps-primary);
  font-weight: 700;
  text-decoration: none;
}

:is(.invoice-list-page, .customer-delivery-page, .job-order-page) .action-link:hover,
:is(.invoice-list-page, .customer-delivery-page, .job-order-page) .action-link:focus {
  color: var(--berps-primary-hover);
  text-decoration: none;
}

:is(.invoice-list-page, .customer-delivery-page, .job-order-page) :is(.item-breakdown, .item-preview, .item-breakdown-inline, .item-extra-summary) {
  display: block;
  margin-top: 6px;
  color: var(--berps-text-muted);
  font-size: 0.8rem;
}

:is(.invoice-list-page, .customer-delivery-page, .job-order-page) .item-total-warning {
  display: block;
  margin-top: 6px;
  color: var(--berps-danger);
  font-size: 0.8rem;
}

/* Customer filter select2 (list filter bar) */
:is(.invoice-list-page, .customer-delivery-page, .job-order-page) .customer-filter-select + .select2-container {
  width: 100% !important;
}

:is(.invoice-list-page, .customer-delivery-page, .job-order-page) .customer-filter-select + .select2-container .select2-selection--single {
  height: 44px;
  border: 1px solid var(--berps-border-strong);
  border-radius: var(--berps-radius-md);
  background: var(--berps-surface);
  box-shadow: none;
}

:is(.invoice-list-page, .customer-delivery-page, .job-order-page) .customer-filter-select + .select2-container .select2-selection__rendered {
  padding-left: 14px;
  padding-right: 42px;
  color: var(--berps-text);
  font-size: 0.92rem;
  line-height: 42px;
}

:is(.invoice-list-page, .customer-delivery-page, .job-order-page) .customer-filter-select + .select2-container .select2-selection__placeholder {
  color: var(--berps-text-subtle);
}

:is(.invoice-list-page, .customer-delivery-page, .job-order-page) .customer-filter-select + .select2-container .select2-selection__arrow {
  height: 42px;
  right: 10px;
}

:is(.invoice-list-page, .customer-delivery-page, .job-order-page) .customer-filter-select + .select2-container.select2-container--focus .select2-selection--single,
:is(.invoice-list-page, .customer-delivery-page, .job-order-page) .customer-filter-select + .select2-container.select2-container--open .select2-selection--single {
  border-color: var(--berps-primary-border);
  box-shadow: 0 0 0 3px rgba(31, 91, 198, 0.12);
}

:is(.invoice-list-page, .customer-delivery-page, .job-order-page) .filter-field .select2-dropdown {
  border: 1px solid var(--berps-border-strong);
  border-radius: var(--berps-radius-lg);
  overflow: hidden;
  box-shadow: var(--berps-shadow-md);
}

:is(.invoice-list-page, .customer-delivery-page, .job-order-page) .filter-field .select2-search--dropdown {
  padding: 10px;
  background: var(--berps-surface-soft);
}

:is(.invoice-list-page, .customer-delivery-page, .job-order-page) .filter-field .select2-search__field {
  border: 1px solid var(--berps-border-strong);
  border-radius: var(--berps-radius-md);
  padding: 8px 10px;
}

:is(.invoice-list-page, .customer-delivery-page, .job-order-page) .filter-field .select2-results__option {
  padding: 10px 14px;
}

:is(.invoice-list-page, .customer-delivery-page, .job-order-page) .filter-field .select2-results__option--highlighted[aria-selected] {
  background: var(--berps-primary);
}

/* Card + DataTables controls padding for invoice/customer-delivery/job-order pages */
:is(.invoice-list-page, .customer-delivery-page, .job-order-page) .theme-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--berps-border);
  border-radius: var(--berps-radius-lg);
  background: var(--berps-surface);
  box-shadow: var(--berps-shadow-sm);
}

:is(.invoice-list-page, .customer-delivery-page, .job-order-page) .theme-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--berps-space-4);
  padding: var(--berps-space-4) var(--berps-space-5);
  border-bottom: 1px solid var(--berps-border);
  background: var(--berps-surface);
}

:is(.invoice-list-page, .customer-delivery-page, .job-order-page) .theme-card-title {
  margin: 0;
  color: var(--berps-text);
  font-size: 1rem;
  font-weight: 700;
}

:is(.invoice-list-page, .customer-delivery-page, .job-order-page) .theme-card-subtitle {
  margin-top: var(--berps-space-1);
  color: var(--berps-text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

:is(.invoice-list-page, .customer-delivery-page, .job-order-page) .theme-card-body {
  padding: var(--berps-space-5);
}

:is(.invoice-list-page, .customer-delivery-page, .job-order-page) .theme-card-body > .table-responsive,
:is(.invoice-list-page, .customer-delivery-page, .job-order-page) .theme-card-body > .data-table-container {
  margin: calc(var(--berps-space-5) * -1);
}

:is(.invoice-list-page, .customer-delivery-page, .job-order-page) .dataTables_wrapper > .row:first-child,
:is(.invoice-list-page, .customer-delivery-page, .job-order-page) .dataTables_wrapper > .row:last-child {
  padding-right: var(--berps-space-5);
  padding-left: var(--berps-space-5);
}

:is(.invoice-list-page, .customer-delivery-page, .job-order-page) .dataTables_wrapper > .row:first-child {
  padding-top: var(--berps-space-4);
}

:is(.invoice-list-page, .customer-delivery-page, .job-order-page) .dataTables_wrapper > .row:last-child {
  padding-bottom: var(--berps-space-4);
}

:is(.invoice-list-page, .customer-delivery-page, .job-order-page) .theme-card .table {
  margin-bottom: 0;
}

/* Invoice modals: item builder + shared modal sections (modals live outside
   the page wrapper, so these are intentionally unscoped) */
.inv-section-card {
  margin-bottom: var(--berps-space-4);
  padding: var(--berps-space-4);
  border: 1px solid var(--berps-border);
  border-radius: var(--berps-radius-lg);
  background: var(--berps-surface);
}

.inv-section-title {
  display: flex;
  align-items: center;
  gap: var(--berps-space-2);
  margin-bottom: var(--berps-space-3);
  color: var(--berps-text);
  font-size: 0.95rem;
  font-weight: 700;
}

.inv-section-title .badge-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--berps-primary);
}

.inv-helper {
  display: block;
  margin-top: 6px;
  color: var(--berps-text-muted);
  font-size: 0.78rem;
}

.inv-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--berps-space-3);
  margin-top: var(--berps-space-5);
  flex-wrap: wrap;
}

.inv-footer-note {
  color: var(--berps-text-muted);
  font-size: 0.82rem;
}

.item-builder {
  margin-bottom: var(--berps-space-4);
  padding: var(--berps-space-4);
  border: 1px solid var(--berps-border);
  border-radius: var(--berps-radius-lg);
  background: var(--berps-surface);
}

.item-builder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--berps-space-3);
  margin-bottom: var(--berps-space-3);
  padding-bottom: var(--berps-space-3);
  border-bottom: 1px solid var(--berps-border);
  flex-wrap: wrap;
}

.item-builder-title {
  color: var(--berps-text);
  font-weight: 700;
}

.item-builder-subtitle {
  color: var(--berps-text-muted);
  font-size: 0.85rem;
}

.btn-add-entry {
  padding: 10px 16px;
  border: none;
  border-radius: var(--berps-radius-md);
  background: var(--berps-primary);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background-color 0.16s ease, transform 0.16s ease;
}

.btn-add-entry:hover,
.btn-add-entry:focus {
  background: var(--berps-primary-hover);
  color: #fff;
  transform: translateY(-1px);
}

.btn-remove-entry {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #efc2c8;
  border-radius: var(--berps-radius-md);
  background: var(--berps-danger-soft);
  color: var(--berps-danger);
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.16s ease;
}

.btn-remove-entry:hover,
.btn-remove-entry:focus {
  border-color: var(--berps-danger);
  background: var(--berps-danger);
  color: #fff;
}

.item-row {
  position: relative;
  padding: var(--berps-space-4);
  border: 1px solid var(--berps-border);
  border-radius: var(--berps-radius-lg);
  background: var(--berps-surface-soft);
}

.item-row + .item-row {
  margin-top: var(--berps-space-3);
}

.item-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--berps-space-2);
  margin-bottom: var(--berps-space-2);
  flex-wrap: wrap;
}

.item-row-title {
  color: var(--berps-text-subtle);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.item-row-total {
  color: var(--berps-text);
  font-size: 0.88rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.modal-body.inv-modal-body .select2-container {
  width: 100% !important;
}

.modal-body.inv-modal-body .form-control,
.modal-body.inv-modal-body .select2-container--default .select2-selection--single {
  min-height: 44px;
  border: 1px solid var(--berps-border-strong) !important;
  border-radius: var(--berps-radius-md) !important;
  background: var(--berps-surface) !important;
  box-shadow: none !important;
}

.modal-body.inv-modal-body .form-control:focus {
  border-color: var(--berps-primary-border) !important;
  box-shadow: 0 0 0 3px rgba(31, 91, 198, 0.12) !important;
}

.modal-body.inv-modal-body .form-control[readonly] {
  background: var(--berps-surface-soft) !important;
  color: var(--berps-text-muted) !important;
}

.modal-body.inv-modal-body .select2-container .select2-selection__rendered {
  padding-left: 12px !important;
  color: var(--berps-text) !important;
  line-height: 42px !important;
}

.modal-body.inv-modal-body .select2-container .select2-selection__arrow {
  height: 42px !important;
  right: 10px !important;
}

.btn-invoice-cancel {
  padding: 10px 18px;
  border: 1px solid var(--berps-border-strong) !important;
  border-radius: var(--berps-radius-md) !important;
  background: var(--berps-surface) !important;
  color: var(--berps-text) !important;
}

@media screen and (max-width: 767.98px) {
  :is(.invoice-list-page, .customer-delivery-page, .job-order-page) .filter-form {
    grid-template-columns: 1fr;
  }
}

/* Payment collections list ---------------------------------------------- */
.payment-list-page :is(.invoice-link, .payor-link) {
  color: var(--berps-primary);
  font-weight: 700;
  text-decoration: none;
}

.payment-list-page :is(.invoice-link, .payor-link):hover,
.payment-list-page :is(.invoice-link, .payor-link):focus {
  color: var(--berps-primary-hover);
  text-decoration: underline;
}

.payment-list-page .payment-date {
  white-space: nowrap;
}

.payment-list-page :is(.payor-sub, .description-sub) {
  margin-top: 3px;
  color: var(--berps-text-muted);
  font-size: 0.82rem;
}

.payment-list-page .payment-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--berps-space-2);
  flex-wrap: wrap;
}

.payment-list-page .payment-actions-desktop {
  display: inline-flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.payment-list-page .payment-actions-mobile {
  display: none;
}

.payment-list-page .action-overflow-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--berps-border-strong);
  border-radius: var(--berps-radius-pill);
  background: var(--berps-surface);
  color: var(--berps-text-muted);
}

.payment-list-page .action-overflow-toggle:hover,
.payment-list-page .action-overflow-toggle:focus {
  border-color: var(--berps-primary-border);
  background: var(--berps-primary-soft);
  color: var(--berps-primary);
  outline: none;
}

.payment-list-page .action-overflow-toggle::after {
  display: none;
}

.payment-list-page .payment-actions-menu {
  min-width: 176px;
  padding: var(--berps-space-2);
  border: 1px solid var(--berps-border);
  border-radius: var(--berps-radius-lg);
  box-shadow: var(--berps-shadow-md);
}

.payment-list-page .payment-actions-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--berps-radius-md);
  color: var(--berps-text);
  font-size: 0.88rem;
  font-weight: 600;
}

.payment-list-page .payment-actions-menu .dropdown-item:hover,
.payment-list-page .payment-actions-menu .dropdown-item:focus {
  background: var(--berps-primary-soft);
  color: var(--berps-primary-hover);
}

.payment-list-page .payment-actions-menu .dropdown-item.text-danger:hover,
.payment-list-page .payment-actions-menu .dropdown-item.text-danger:focus {
  background: var(--berps-danger-soft);
}

.payment-list-page .action-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.payment-list-page .action-icon.edit {
  color: var(--berps-primary);
  background: var(--berps-primary-soft);
}

.payment-list-page .action-icon.void {
  color: var(--berps-warning);
  background: var(--berps-warning-soft);
}

.payment-list-page .action-icon.delete {
  color: var(--berps-danger);
  background: var(--berps-danger-soft);
}

.payment-list-page .action-icon:hover,
.payment-list-page .action-icon:focus {
  filter: brightness(0.95);
}

.payment-list-page .empty-action {
  color: var(--berps-text-subtle);
  font-size: 0.82rem;
  font-weight: 600;
}

/* Card + DataTables controls padding for payment list page */
.payment-list-page .theme-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--berps-border);
  border-radius: var(--berps-radius-lg);
  background: var(--berps-surface);
  box-shadow: var(--berps-shadow-sm);
}

.payment-list-page .theme-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--berps-space-4);
  padding: var(--berps-space-4) var(--berps-space-5);
  border-bottom: 1px solid var(--berps-border);
  background: var(--berps-surface);
}

.payment-list-page .theme-card-title {
  margin: 0;
  color: var(--berps-text);
  font-size: 1rem;
  font-weight: 700;
}

.payment-list-page .theme-card-subtitle {
  margin-top: var(--berps-space-1);
  color: var(--berps-text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.payment-list-page .theme-card-body {
  padding: var(--berps-space-5);
}

.payment-list-page .theme-card-body > .table-responsive,
.payment-list-page .theme-card-body > .data-table-container {
  margin: calc(var(--berps-space-5) * -1);
}

.payment-list-page .dataTables_wrapper > .row:first-child,
.payment-list-page .dataTables_wrapper > .row:last-child {
  padding-right: var(--berps-space-5);
  padding-left: var(--berps-space-5);
}

.payment-list-page .dataTables_wrapper > .row:first-child {
  padding-top: var(--berps-space-4);
}

.payment-list-page .dataTables_wrapper > .row:last-child {
  padding-bottom: var(--berps-space-4);
}

.payment-list-page .theme-card .table {
  margin-bottom: 0;
}

@media screen and (max-width: 991.98px) {
  .payment-list-page .payment-actions-desktop {
    display: none;
  }

  .payment-list-page .payment-actions-mobile {
    display: inline-flex;
  }
}

/* Find-payment modal search results (markup generated by page JS) */
#searchPaymentModal .search-form {
  margin-bottom: var(--berps-space-5);
}

#searchPaymentModal .search-result-item {
  margin-bottom: var(--berps-space-3);
  padding: var(--berps-space-4);
  border: 1px solid var(--berps-border);
  border-radius: var(--berps-radius-md);
  background: var(--berps-surface);
}

#searchPaymentModal .search-result-item:hover {
  border-color: var(--berps-primary-border);
  box-shadow: var(--berps-shadow-sm);
}

#searchPaymentModal .search-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--berps-space-2);
}

#searchPaymentModal .search-result-title {
  margin: 0;
  color: var(--berps-text);
  font-weight: 600;
}

#searchPaymentModal .search-result-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--berps-space-2);
  margin-bottom: var(--berps-space-2);
}

#searchPaymentModal .search-result-detail {
  color: var(--berps-text-muted);
  font-size: 0.9rem;
}

#searchPaymentModal .search-result-actions {
  text-align: right;
}

#searchPaymentModal .btn-edit-payment {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 1px solid var(--berps-primary-border);
  border-radius: var(--berps-radius-sm);
  background: var(--berps-primary-soft);
  color: var(--berps-primary-hover);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

#searchPaymentModal .btn-edit-payment:hover,
#searchPaymentModal .btn-edit-payment:focus {
  background: var(--berps-primary);
  color: #fff;
  text-decoration: none;
}

/* Job order list --------------------------------------------------------- */
.job-order-page .filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--berps-radius-pill);
  background: var(--berps-surface-muted);
  color: var(--berps-text-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.job-order-page .filter-btn.active .filter-badge {
  background: var(--berps-primary);
  color: #fff;
}

.job-order-page .customer-line {
  color: var(--berps-text);
  font-weight: 600;
}

.job-order-page .address-line,
.job-order-page .desc-meta {
  color: var(--berps-text-muted);
  font-size: 0.78rem;
}

.job-order-page .desc-main {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-order-page .text-empty {
  padding: var(--berps-space-6);
  color: var(--berps-text-muted);
  text-align: center;
}

/* Accomplishments (per-employee accordion) ------------------------------- */
.accomplishments-page .accomplishments-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--berps-space-5);
  padding: var(--berps-space-8) var(--berps-space-6);
  margin-bottom: var(--berps-space-6);
  border-radius: var(--berps-radius-lg);
  background: #b8860b;
  box-shadow: 0 8px 32px rgba(184, 134, 11, 0.25);
  position: relative;
  overflow: hidden;
}

.accomplishments-page .accomplishments-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.accomplishments-page .accomplishments-hero::after {
  content: '';
  position: absolute;
  bottom: -60%;
  right: 15%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.accomplishments-page .accomplishments-hero__content {
  position: relative;
  z-index: 1;
}

.accomplishments-page .accomplishments-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--berps-space-2);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.accomplishments-page .accomplishments-hero__eyebrow i {
  font-size: 1rem;
}

.accomplishments-page .accomplishments-hero__title {
  margin: 0 0 var(--berps-space-1) 0;
  color: #fff;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.accomplishments-page .accomplishments-hero__subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
  max-width: 480px;
}

/* Trophy bounce animation */
.accomplishments-page .trophy-bounce {
  display: inline-block;
  animation: trophy-bounce 2s ease-in-out infinite;
  transform-origin: center bottom;
}

@keyframes trophy-bounce {
  0%, 70%, 100% { transform: translateY(0) rotate(0deg); }
  15% { transform: translateY(-12px) rotate(-5deg); }
  30% { transform: translateY(0) rotate(0deg); }
  45% { transform: translateY(-6px) rotate(3deg); }
  60% { transform: translateY(0) rotate(0deg); }
}

/* Gold accent on stat cards and card */
.accomplishments-page .berps-stat-card {
  border-top: 3px solid #b8860b;
}

.accomplishments-page .theme-card {
  border-top: 3px solid #b8860b;
}

.accomplishments-page .filter-bar {
  border-bottom: 2px solid #b8860b;
}

.accomplishments-page .count-badge {
  background: rgba(184, 134, 11, 0.1);
  color: #b8860b;
}

.accomplishments-page .avatar-circle {
  background: rgba(184, 134, 11, 0.1);
  color: #b8860b;
}

/* Responsive hero */
@media screen and (max-width: 767.98px) {
  .accomplishments-page .accomplishments-hero {
    padding: var(--berps-space-5);
  }

  .accomplishments-page .accomplishments-hero__title {
    font-size: 1.3rem;
  }
}

.accomplishments-page .filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--berps-space-3);
  padding: var(--berps-space-4) var(--berps-space-5);
  border-bottom: 1px solid var(--berps-border);
  background: var(--berps-surface);
  flex-wrap: wrap;
}

.accomplishments-page .accordion-card {
  margin-bottom: var(--berps-space-3);
  border: 1px solid var(--berps-border);
  border-radius: var(--berps-radius-lg);
  background: var(--berps-surface);
  box-shadow: var(--berps-shadow-sm);
  overflow: hidden;
}

.accomplishments-page #employeeAccordion {
  padding: var(--berps-space-4) var(--berps-space-5) var(--berps-space-5);
}

.accomplishments-page .accordion-header-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--berps-space-4);
  border: 0;
  background: var(--berps-surface);
  text-align: left;
  cursor: pointer;
  outline: none;
}

.accomplishments-page .employee-meta {
  display: flex;
  align-items: center;
  gap: var(--berps-space-3);
  min-width: 0;
}

.accomplishments-page .avatar-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--berps-primary-soft);
  color: var(--berps-primary-hover);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.accomplishments-page .employee-name {
  margin: 0;
  color: var(--berps-text);
  font-size: 0.95rem;
  font-weight: 700;
}

.accomplishments-page .employee-sub {
  margin-top: 2px;
  color: var(--berps-text-muted);
  font-size: 0.75rem;
}

.accomplishments-page .right-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: var(--berps-space-3);
  flex-wrap: wrap;
}

.accomplishments-page .count-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: var(--berps-radius-pill);
  background: var(--berps-success-soft);
  color: var(--berps-success);
  font-size: 0.75rem;
  font-weight: 700;
}

.accomplishments-page .chevron {
  color: var(--berps-text-muted);
  font-size: 16px;
  transition: transform 0.25s ease;
}

.accomplishments-page .accordion-header-btn[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.accomplishments-page .task-body {
  padding: 0 var(--berps-space-4) var(--berps-space-4);
  border-top: 1px solid var(--berps-border);
  background: var(--berps-surface-soft);
}

.accomplishments-page .task-table {
  margin-top: var(--berps-space-3);
  margin-bottom: 0;
}

.accomplishments-page .task-cell {
  min-width: 240px;
  white-space: normal;
}

.accomplishments-page .empty-state {
  padding: var(--berps-space-8);
  color: var(--berps-text-muted);
  text-align: center;
}

/* Employee ranking (podium + leaderboard) -------------------------------- */
.ranking-page .ranking-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--berps-space-5);
  padding: var(--berps-space-8) var(--berps-space-6);
  margin-bottom: var(--berps-space-6);
  border-radius: var(--berps-radius-lg);
  background: #e76f51;
  box-shadow: 0 8px 32px rgba(231, 111, 81, 0.25);
  position: relative;
  overflow: hidden;
}

.ranking-page .ranking-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.ranking-page .ranking-hero::after {
  content: '';
  position: absolute;
  bottom: -60%;
  right: 15%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.ranking-page .ranking-hero__content {
  position: relative;
  z-index: 1;
}

.ranking-page .ranking-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--berps-space-2);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.ranking-page .ranking-hero__eyebrow i {
  font-size: 1rem;
}

.ranking-page .ranking-hero__title {
  margin: 0 0 var(--berps-space-1) 0;
  color: #fff;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.ranking-page .ranking-hero__subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
  max-width: 480px;
}

.ranking-page .ranking-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--berps-space-2);
  position: relative;
  z-index: 1;
}

.ranking-page .ranking-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--berps-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
}

.ranking-page .ranking-hero-btn:hover,
.ranking-page .ranking-hero-btn:focus {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Medal spin animation */
.ranking-page .medal-spin {
  display: inline-block;
  animation: medal-spin 3s ease-in-out infinite;
  transform-origin: center;
}

@keyframes medal-spin {
  0%, 70%, 100% { transform: rotateY(0deg) scale(1); }
  20% { transform: rotateY(180deg) scale(1.15); }
  40% { transform: rotateY(360deg) scale(1); }
}

/* Orange accent on stat cards and table card */
.ranking-page .berps-stat-card {
  border-top: 3px solid #e76f51;
}

.ranking-page .theme-card {
  border-top: 3px solid #e76f51;
}

.ranking-page .theme-card-head {
  border-bottom: 2px solid #e76f51;
}

.ranking-page .theme-card-title {
  color: #e76f51;
}

/* Responsive hero */
@media screen and (max-width: 767.98px) {
  .ranking-page .ranking-hero,
  .ranking-page .ranking-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ranking-page .ranking-hero {
    padding: var(--berps-space-5);
  }

  .ranking-page .ranking-hero-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

.ranking-page .podium-section {
  margin-bottom: var(--berps-space-6);
}

.ranking-page .podium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--berps-space-4);
  align-items: end;
}

.ranking-page .podium-card {
  position: relative;
  padding: var(--berps-space-5) var(--berps-space-4) var(--berps-space-4);
  border: 1px solid var(--berps-border);
  border-radius: var(--berps-radius-lg);
  background: var(--berps-surface);
  box-shadow: var(--berps-shadow-sm);
  text-align: center;
}

.ranking-page .podium-card.first {
  border-color: #e7c766;
  background: linear-gradient(180deg, #fffdf5, var(--berps-surface));
  box-shadow: var(--berps-shadow-md);
}

.ranking-page .podium-card.second {
  border-color: var(--berps-border-strong);
}

.ranking-page .podium-card.third {
  border-color: #ecc8a0;
}

.ranking-page .podium-rank {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--berps-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}

.ranking-page .podium-card.first .podium-rank {
  background: #b8860b;
}

.ranking-page .podium-card.second .podium-rank {
  background: #64748b;
}

.ranking-page .podium-card.third .podium-rank {
  background: #b45309;
}

.ranking-page .podium-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto var(--berps-space-2);
  border-radius: 50%;
  background: var(--berps-primary-soft);
  color: var(--berps-primary-hover);
  font-size: 1.05rem;
  font-weight: 800;
}

.ranking-page .podium-name {
  color: var(--berps-text);
  font-weight: 700;
}

.ranking-page .podium-points {
  margin-top: 2px;
  color: var(--berps-primary);
  font-size: 1.1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.ranking-page .podium-meta {
  margin-top: 2px;
  color: var(--berps-text-muted);
  font-size: 0.75rem;
}

.ranking-page .ranking-table {
  width: 100%;
  border-collapse: collapse;
}

.ranking-page .ranking-table thead th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--berps-border-strong);
  background: var(--berps-surface-soft);
  color: var(--berps-text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
}

.ranking-page .ranking-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--berps-border);
  vertical-align: middle;
}

.ranking-page .ranking-table tbody tr:hover {
  background: var(--berps-surface-soft);
}

.ranking-page .rank-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--berps-surface-muted);
  color: var(--berps-text-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.ranking-page .rank-cell.top-3 {
  background: var(--berps-primary-soft);
  color: var(--berps-primary-hover);
}

.ranking-page .employee-cell {
  display: flex;
  align-items: center;
  gap: var(--berps-space-3);
  min-width: 0;
}

.ranking-page .employee-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--berps-primary-soft);
  color: var(--berps-primary-hover);
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.ranking-page .employee-name {
  color: var(--berps-text);
  font-weight: 600;
}

.ranking-page .employee-role {
  margin-top: 1px;
  color: var(--berps-text-muted);
  font-size: 0.76rem;
}

.ranking-page .points-cell {
  color: var(--berps-text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ranking-page .date-cell {
  color: var(--berps-text-muted);
  font-size: 0.85rem;
}

.ranking-page .empty-state {
  padding: var(--berps-space-10);
  color: var(--berps-text-muted);
  text-align: center;
}

.ranking-page .empty-state-icon {
  margin-bottom: var(--berps-space-2);
  color: var(--berps-text-subtle);
  font-size: 2rem;
}

.ranking-page .empty-state-title {
  color: var(--berps-text);
  font-weight: 700;
}

.ranking-page .empty-state-text {
  margin-top: 4px;
  font-size: 0.88rem;
}

@media screen and (max-width: 767.98px) {
  .ranking-page .podium-grid {
    grid-template-columns: 1fr;
  }
}

/* Change password -------------------------------------------------------- */
.change-password-page .breadcrumb {
  margin-bottom: var(--berps-space-3);
  padding: 0;
  background: transparent;
}

.change-password-page .toggle-password {
  padding: 0 12px;
  border: 1px solid var(--berps-border);
  border-left: 0;
  background: var(--berps-surface-soft);
  color: var(--berps-text-muted);
}

.change-password-page .helper {
  color: var(--berps-text-muted);
  font-size: 13px;
}

.change-password-page .checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.change-password-page .checklist li {
  display: flex;
  align-items: center;
  gap: var(--berps-space-2);
  padding: var(--berps-space-2) 0;
  color: var(--berps-text-muted);
}

.change-password-page .side-card {
  background: var(--berps-primary-soft);
  border-color: var(--berps-primary-border);
}

.change-password-page .icon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--berps-radius-lg);
  background: var(--berps-primary-soft);
  color: var(--berps-primary);
  font-size: 20px;
}

.change-password-page .action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--berps-space-3);
  margin-top: var(--berps-space-2);
  flex-wrap: wrap;
}

/* Staff profile ----------------------------------------------------------- */
.staff-profile-shell {
  padding-bottom: var(--berps-space-6);
}

.staff-profile-cover {
  position: relative;
  min-height: 180px;
  border-radius: var(--berps-radius-lg);
  background: linear-gradient(135deg, var(--berps-primary-hover) 0%, var(--berps-primary) 100%);
  box-shadow: var(--berps-shadow-md);
  overflow: hidden;
}

.staff-profile-cover .picture-bg-overlay {
  background: radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.16), transparent 50%),
    radial-gradient(circle at 86% 34%, rgba(255, 255, 255, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.55));
}

.staff-profile-meta {
  margin-top: -70px;
}

.staff-profile-meta .profile-user-box {
  padding: var(--berps-space-4);
  border: 1px solid var(--berps-border);
  border-radius: var(--berps-radius-lg);
  background: var(--berps-surface);
  box-shadow: var(--berps-shadow-md);
}

.staff-profile-meta .profile-user-img img {
  border: 4px solid var(--berps-surface);
  box-shadow: var(--berps-shadow-md);
  object-fit: cover;
}

.staff-profile-title {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.staff-profile-subtitle {
  margin-bottom: 0;
  color: var(--berps-text-muted);
}

.staff-profile-badges {
  display: flex;
  gap: var(--berps-space-2);
  margin-top: 10px;
  flex-wrap: wrap;
}

.staff-profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--berps-border);
  border-radius: var(--berps-radius-pill);
  background: var(--berps-surface-soft);
  color: var(--berps-text);
  font-size: 12px;
  font-weight: 600;
}

.staff-profile-card {
  border: 1px solid var(--berps-border);
  border-radius: var(--berps-radius-lg);
  box-shadow: var(--berps-shadow-sm);
  overflow: hidden;
}

.staff-profile-card .nav-tabs {
  background: var(--berps-surface);
}

.staff-profile-card .nav-tabs .nav-link {
  padding: 14px 12px;
  color: var(--berps-text-muted);
  font-weight: 700;
}

.staff-profile-card .nav-tabs .nav-link.active {
  color: var(--berps-primary);
}

.staff-profile-section-title {
  margin-top: var(--berps-space-5);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.staff-profile-table th {
  width: 42%;
  background: var(--berps-surface-soft);
  color: var(--berps-text-muted);
  font-weight: 700;
}

.staff-profile-table td {
  color: var(--berps-text);
  font-weight: 600;
}

/* New customer delivery (entry form) ------------------------------------- */
.delivery-entry-page .entry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(300px, 0.95fr);
  gap: var(--berps-space-5);
  align-items: start;
}

.delivery-entry-page .entry-main,
.delivery-entry-page .entry-side {
  display: grid;
  gap: var(--berps-space-5);
}

.delivery-entry-page .entry-card {
  padding: var(--berps-space-6);
  border: 1px solid var(--berps-border);
  border-radius: var(--berps-radius-lg);
  background: var(--berps-surface);
  box-shadow: var(--berps-shadow-sm);
}

.delivery-entry-page .entry-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--berps-space-5);
  padding-bottom: var(--berps-space-4);
  border-bottom: 1px solid var(--berps-border);
}

.delivery-entry-page .entry-card-title {
  margin: 0;
  color: var(--berps-text);
  font-size: 1.15rem;
  font-weight: 700;
}

.delivery-entry-page .form-label {
  display: block;
  margin-bottom: 6px;
  color: var(--berps-text);
  font-size: 0.85rem;
  font-weight: 600;
}

.delivery-entry-page .form-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--berps-border-strong);
  border-radius: var(--berps-radius-sm);
  background: var(--berps-surface);
  color: var(--berps-text);
  font-size: 0.9rem;
}

.delivery-entry-page .form-select:focus {
  outline: none;
  border-color: var(--berps-primary);
  box-shadow: 0 0 0 3px rgba(31, 91, 198, 0.1);
}

/* Grid item rows (JS clones these; overrides the generic .item-row card) */
.delivery-entry-page .item-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr 1.2fr auto;
  gap: var(--berps-space-3);
  align-items: end;
  margin-bottom: var(--berps-space-3);
  padding: var(--berps-space-4);
  border: 1px solid var(--berps-border);
  border-radius: var(--berps-radius-md);
  background: var(--berps-surface-soft);
}

.delivery-entry-page .details-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--berps-space-3);
  margin-top: 0;
  margin-bottom: var(--berps-space-4);
  padding: 0 var(--berps-space-4);
}

.delivery-entry-page .btn-remove-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #efc2c8;
  border-radius: var(--berps-radius-md);
  background: var(--berps-danger-soft);
  color: var(--berps-danger);
  transition: all 0.16s ease;
}

.delivery-entry-page .btn-remove-row:hover,
.delivery-entry-page .btn-remove-row:focus {
  border-color: var(--berps-danger);
  background: var(--berps-danger);
  color: #fff;
}

.delivery-entry-page .add-item-container {
  margin-top: var(--berps-space-5);
  text-align: center;
}

.delivery-entry-page .btn-add-row {
  display: inline-flex;
  align-items: center;
  gap: var(--berps-space-2);
  padding: 11px 18px;
  border: none;
  border-radius: var(--berps-radius-md);
  background: var(--berps-primary);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  transition: background-color 0.16s ease, transform 0.16s ease;
}

.delivery-entry-page .btn-add-row:hover,
.delivery-entry-page .btn-add-row:focus {
  background: var(--berps-primary-hover);
  color: #fff;
  transform: translateY(-1px);
}

.delivery-entry-page .btn-add-row .item-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border-radius: var(--berps-radius-pill);
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
  font-weight: 700;
}

.delivery-entry-page .add-item-hint small {
  display: block;
  margin-top: 6px;
  color: var(--berps-text-subtle);
  font-size: 0.75rem;
  font-style: italic;
}

@media screen and (max-width: 991.98px) {
  .delivery-entry-page .entry-layout {
    grid-template-columns: 1fr;
  }

  .delivery-entry-page .item-row {
    grid-template-columns: 1fr 1fr;
  }

  .delivery-entry-page .details-row {
    grid-template-columns: 1fr;
  }
}

/* Expenses list ---------------------------------------------------------- */
.expenses-list-page .exp-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--berps-space-5);
  padding: var(--berps-space-8) var(--berps-space-6);
  margin-bottom: var(--berps-space-6);
  border-radius: var(--berps-radius-lg);
  background: #c1121f;
  box-shadow: 0 8px 32px rgba(193, 18, 31, 0.25);
  position: relative;
  overflow: hidden;
}

.expenses-list-page .exp-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.expenses-list-page .exp-hero::after {
  content: '';
  position: absolute;
  bottom: -60%;
  right: 15%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.expenses-list-page .exp-hero__content {
  position: relative;
  z-index: 1;
}

.expenses-list-page .exp-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--berps-space-2);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.expenses-list-page .exp-hero__eyebrow i {
  font-size: 1rem;
}

.expenses-list-page .exp-hero__title {
  margin: 0 0 var(--berps-space-1) 0;
  color: #fff;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.expenses-list-page .exp-hero__subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
  max-width: 480px;
}

.expenses-list-page .exp-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--berps-space-2);
  position: relative;
  z-index: 1;
}

.expenses-list-page .exp-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--berps-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
}

.expenses-list-page .exp-hero-btn:hover,
.expenses-list-page .exp-hero-btn:focus {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.expenses-list-page .exp-hero-btn--solid {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.95);
  color: #c1121f;
  font-weight: 700;
}

.expenses-list-page .exp-hero-btn--solid:hover,
.expenses-list-page .exp-hero-btn--solid:focus {
  background: #fff;
  color: #a00f1a;
}

/* Coin drop animation */
.expenses-list-page .coin-drop {
  display: inline-block;
  animation: coin-drop 2s ease-in-out infinite;
  transform-origin: center;
}

@keyframes coin-drop {
  0%, 70%, 100% { transform: translateY(0) scale(1); }
  15% { transform: translateY(-8px) scale(1.1); }
  30% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-4px) scale(1.05); }
  60% { transform: translateY(0) scale(1); }
}

/* Crimson accent on cards */
.expenses-list-page .theme-card {
  border-top: 3px solid #c1121f;
}

.expenses-list-page .theme-card-head {
  border-bottom: 2px solid #c1121f;
}

.expenses-list-page .theme-card-title {
  color: #c1121f;
}

/* Responsive */
@media screen and (max-width: 767.98px) {
  .expenses-list-page .exp-hero,
  .expenses-list-page .exp-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .expenses-list-page .exp-hero {
    padding: var(--berps-space-5);
  }

  .expenses-list-page .exp-hero-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

.expenses-list-page .dashboard-card {
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.expenses-list-page .dashboard-card:hover {
  border-color: var(--berps-primary-border);
  box-shadow: var(--berps-shadow-md);
  transform: translateY(-2px);
}

.expenses-list-page .dashboard-card:active {
  transform: translateY(0);
}

/* Notes/reminders workspace shared text helpers -------------------------- */
.notes-modern-page .notes-workspace {
  padding: 0 0 var(--berps-space-8);
}

.notes-modern-page .notes-title {
  color: var(--berps-text);
  font-weight: 700;
}

.notes-modern-page .notes-subtle {
  color: var(--berps-text-subtle);
  font-size: 0.78rem;
}

.notes-modern-page .notes-description {
  max-width: 340px;
  color: var(--berps-text-muted);
}

.notes-modern-page .notes-frequency {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: var(--berps-radius-pill);
  background: var(--berps-surface-muted);
  color: var(--berps-text-muted);
  font-size: 0.74rem;
  font-weight: 700;
}

/* Task workspace --------------------------------------------------------- */
.task-workspace-page .task-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--berps-space-5);
  padding: var(--berps-space-8) var(--berps-space-6);
  margin-bottom: var(--berps-space-6);
  border-radius: var(--berps-radius-lg);
  background: #6a4c93;
  box-shadow: 0 8px 32px rgba(106, 76, 147, 0.25);
  position: relative;
  overflow: hidden;
}

.task-workspace-page .task-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.task-workspace-page .task-hero::after {
  content: '';
  position: absolute;
  bottom: -60%;
  right: 15%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.task-workspace-page .task-hero__content {
  position: relative;
  z-index: 1;
}

.task-workspace-page .task-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--berps-space-2);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.task-workspace-page .task-hero__eyebrow i {
  font-size: 1rem;
}

.task-workspace-page .task-hero__title {
  margin: 0 0 var(--berps-space-1) 0;
  color: #fff;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.task-workspace-page .task-hero__subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
  max-width: 480px;
}

.task-workspace-page .task-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--berps-space-2);
  position: relative;
  z-index: 1;
}

.task-workspace-page .task-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--berps-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
}

.task-workspace-page .task-hero-btn:hover,
.task-workspace-page .task-hero-btn:focus {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.task-workspace-page .task-hero-btn--solid {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.95);
  color: #6a4c93;
  font-weight: 700;
}

.task-workspace-page .task-hero-btn--solid:hover,
.task-workspace-page .task-hero-btn--solid:focus {
  background: #fff;
  color: #583e7c;
}

/* Notepad bounce animation */
.task-workspace-page .task-bounce {
  display: inline-block;
  animation: task-bounce 2s ease-in-out infinite;
  transform-origin: center bottom;
}

@keyframes task-bounce {
  0%, 70%, 100% { transform: translateY(0) rotate(0deg); }
  15% { transform: translateY(-10px) rotate(-8deg); }
  30% { transform: translateY(0) rotate(0deg); }
  45% { transform: translateY(-5px) rotate(5deg); }
  60% { transform: translateY(0) rotate(0deg); }
}

/* Purple accent on stat cards and table card */
.task-workspace-page .berps-stat-card {
  border-top: 3px solid #6a4c93;
}

.task-workspace-page .theme-card {
  border-top: 3px solid #6a4c93;
}

.task-workspace-page .theme-card-head {
  border-bottom: 2px solid #6a4c93;
}

.task-workspace-page .theme-card-title {
  color: #6a4c93;
}

/* Responsive hero */
@media screen and (max-width: 767.98px) {
  .task-workspace-page .task-hero,
  .task-workspace-page .task-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .task-workspace-page .task-hero {
    padding: var(--berps-space-5);
  }

  .task-workspace-page .task-hero-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

.task-workspace-page .theme-banner {
  display: flex;
  align-items: center;
  gap: var(--berps-space-2);
  margin-bottom: var(--berps-space-4);
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: var(--berps-radius-md);
  font-size: 0.8rem;
}

.task-workspace-page .banner-warning {
  border-color: #f0dcb5;
  background: var(--berps-warning-soft);
  color: var(--berps-warning);
}

.task-workspace-page .banner-info {
  border-color: #c4e5d4;
  background: var(--berps-success-soft);
  color: var(--berps-success);
}

.task-workspace-page .banner-title {
  color: inherit;
  font-weight: 600;
}

.task-workspace-page .banner-copy {
  color: var(--berps-text-muted);
  font-size: 0.8rem;
}

.task-workspace-page .banner-date {
  margin-left: auto;
  color: var(--berps-text-subtle);
  font-size: 0.74rem;
  white-space: nowrap;
}

.task-workspace-page .task-title-link {
  color: var(--berps-text);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}

.task-workspace-page .task-title-link:hover,
.task-workspace-page .task-title-link:focus {
  color: var(--berps-primary);
}

.task-workspace-page .task-title-link.is-muted {
  color: var(--berps-text-muted);
  font-weight: 400;
}

.task-workspace-page .task-meta-row {
  display: flex;
  align-items: center;
  gap: var(--berps-space-2);
  margin-top: 5px;
  flex-wrap: wrap;
}

.task-workspace-page .attachment-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--berps-primary);
  font-size: 0.74rem;
  font-weight: 500;
  text-decoration: none;
}

.task-workspace-page .cell-muted {
  color: var(--berps-text-subtle);
  font-size: 0.78rem;
}

.task-workspace-page .due-date-value {
  color: var(--berps-text);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.3;
}

.task-workspace-page .due-date-meta {
  margin-top: 2px;
  font-size: 0.74rem;
  line-height: 1.4;
}

.task-workspace-page .due-date-meta.is-overdue {
  color: var(--berps-danger);
}

.task-workspace-page .due-date-meta.is-due-today {
  color: var(--berps-warning);
}

.task-workspace-page .due-date-meta.is-upcoming {
  color: var(--berps-text-subtle);
}

.task-workspace-page .person-cell {
  display: flex;
  align-items: center;
  gap: var(--berps-space-2);
}

.task-workspace-page .person-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--berps-border);
  border-radius: 50%;
  background: var(--berps-surface-muted);
  color: var(--berps-text-muted);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  flex-shrink: 0;
}

.task-workspace-page .project-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border: 1px solid var(--berps-border);
  border-radius: var(--berps-radius-sm);
  background: var(--berps-surface-soft);
  color: var(--berps-text-muted);
  font-size: 0.74rem;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.12s ease;
}

.task-workspace-page .project-tag:hover {
  border-color: var(--berps-border-strong);
  background: var(--berps-surface);
  color: var(--berps-text);
}

/* Custom row-action dropdown (toggled by page JS via .show) */
.task-workspace-page .task-actions {
  position: relative;
  display: inline-block;
}

.task-workspace-page .action-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--berps-border);
  border-radius: var(--berps-radius-sm);
  background: transparent;
  color: var(--berps-text-subtle);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.12s ease;
}

.task-workspace-page .action-menu-btn:hover,
.task-workspace-page .action-menu-btn:focus {
  border-color: var(--berps-primary-border);
  background: var(--berps-primary-soft);
  color: var(--berps-primary);
}

.task-workspace-page .action-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 150px;
  border: 1px solid var(--berps-border);
  border-radius: var(--berps-radius-md);
  background: var(--berps-surface);
  box-shadow: var(--berps-shadow-md);
  z-index: 1050;
  display: none;
  overflow: hidden;
}

.task-workspace-page .action-dropdown.show {
  display: block;
}

.task-workspace-page .action-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 14px;
  border: none;
  background: none;
  color: var(--berps-text);
  font-size: 0.78rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.task-workspace-page .action-dropdown-item:hover,
.task-workspace-page .action-dropdown-item:focus {
  background: var(--berps-surface-soft);
  color: var(--berps-text);
}

.task-workspace-page .action-dropdown-item.action-delete {
  color: var(--berps-danger);
}

.task-workspace-page .action-dropdown-divider {
  height: 1px;
  margin: 4px 0;
  background: var(--berps-border);
}

.task-workspace-page .empty-state {
  padding: var(--berps-space-8);
  color: var(--berps-text-muted);
  text-align: center;
}

.task-workspace-page .bulk-upload-note {
  padding: var(--berps-space-3) var(--berps-space-4);
  border: 1px solid var(--berps-border);
  border-radius: var(--berps-radius-md);
  background: var(--berps-surface-soft);
  color: var(--berps-text-muted);
  font-size: 0.85rem;
}

.task-workspace-page .bulk-upload-note ul {
  margin: var(--berps-space-2) 0 0;
  padding-left: 18px;
}

/* Card header + DataTables controls padding inside the task register card */
.task-workspace-page .theme-card-head {
  padding: var(--berps-space-4) var(--berps-space-5);
}

.task-workspace-page .theme-card-title {
  margin: 0;
  color: var(--berps-text);
  font-size: 1rem;
  font-weight: 700;
}

.task-workspace-page .theme-card-subtitle {
  margin-top: var(--berps-space-1);
  color: var(--berps-text-muted);
  font-size: 0.8rem;
}

.task-workspace-page .theme-card-body {
  padding: var(--berps-space-4);
}

.task-workspace-page .theme-card-body > .table-responsive {
  margin: calc(var(--berps-space-4) * -1);
}

.task-workspace-page .dataTables_wrapper {
  padding-bottom: var(--berps-space-2);
}

.task-workspace-page .dataTables_wrapper > .row:first-child,
.task-workspace-page .dataTables_wrapper > .row:last-child {
  padding-right: var(--berps-space-4);
  padding-left: var(--berps-space-4);
}

.task-workspace-page .dataTables_wrapper > .row:first-child {
  padding-top: var(--berps-space-3);
}

.task-workspace-page .dataTables_wrapper > .row:last-child {
  padding-bottom: var(--berps-space-3);
}

.task-workspace-page .dataTables_wrapper .table {
  margin-bottom: 0;
}

/* Notes workspace (note_list; JS-rendered list — classes preserved) ------ */
    .notes-modern-page,
    .notes-modern-page .content-page {
        font-family: var(--font-primary, Montserrat, Segoe UI, Arial, sans-serif);
    }

    .notes-modern-page {
        --notes-bg: var(--berps-bg);
        --notes-surface: var(--berps-surface);
        --notes-surface-strong: var(--berps-surface);
        --notes-border: var(--berps-border);
        --notes-border-strong: var(--berps-border-strong);
        --notes-text: var(--berps-text);
        --notes-text-soft: var(--berps-text-muted);
        --notes-text-muted: var(--berps-text-subtle);
        --notes-primary: var(--berps-primary);
        --notes-primary-deep: var(--berps-primary-hover);
        --notes-accent: var(--berps-info);
        --notes-warning: var(--berps-warning);
        --notes-danger: var(--berps-danger);
        --notes-shadow: var(--berps-shadow-md);
        --notes-shadow-soft: var(--berps-shadow-sm);
    }

    .notes-modern-page .content {
        background: transparent;
    }

    .notes-modern-page .notes-workspace {
        padding: 24px 12px 40px;
    }

    .notes-modern-page .notes-hero {
        position: relative;
        overflow: hidden;
        padding: 28px;
        border-radius: var(--berps-radius-lg);
        border: none;
        background: #2a9d8f;
        color: #fff;
        box-shadow: 0 8px 32px rgba(42, 157, 143, 0.25);
        margin-bottom: 22px;
    }

    .notes-modern-page .notes-hero::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -10%;
        width: 400px;
        height: 400px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.06);
        pointer-events: none;
    }

    .notes-modern-page .notes-hero::after {
        content: '';
        position: absolute;
        bottom: -60%;
        right: 15%;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.04);
        pointer-events: none;
    }

    .notes-modern-page .notes-hero__top {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 18px;
        flex-wrap: wrap;
        margin-bottom: 24px;
    }

    .notes-modern-page .notes-eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 0.78rem;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: none;
        color: rgba(255, 255, 255, 0.85);
        margin-bottom: 10px;
    }

    .notes-modern-page .notes-eyebrow i {
        font-size: 1rem;
    }

    .notes-modern-page .notes-eyebrow::before {
        content: none;
    }

    .notes-modern-page .notes-hero h1 {
        margin: 0;
        font-size: clamp(1.6rem, 2.5vw, 2.2rem);
        line-height: 1.15;
        font-weight: 800;
        letter-spacing: -0.02em;
        color: #fff !important;
    }

    .notes-modern-page .notes-hero p {
        max-width: 620px;
        margin: 12px 0 0;
        color: rgba(255, 255, 255, 0.8) !important;
        font-size: 0.88rem;
        line-height: 1.7;
    }

    .notes-modern-page .notes-hero__actions {
        position: relative;
        z-index: 1;
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    .notes-modern-page .notes-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 46px;
        padding: 0 16px;
        border-radius: 14px;
        border: 1px solid transparent;
        font-size: 0.88rem;
        font-weight: 700;
        text-decoration: none !important;
        transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
        cursor: pointer;
    }

    .notes-modern-page .notes-btn:hover,
    .notes-modern-page .notes-btn:focus {
        transform: translateY(-1px);
        text-decoration: none;
    }

    .notes-modern-page .notes-btn--primary {
        color: #2a9d8f;
        background: rgba(255, 255, 255, 0.95);
        border-color: rgba(255, 255, 255, 0.6);
        font-weight: 700;
    }

    .notes-modern-page .notes-btn--primary:hover,
    .notes-modern-page .notes-btn--primary:focus {
        color: #218377;
        background: #fff;
    }

    .notes-modern-page .notes-btn--solid {
        color: #ffffff;
        background: linear-gradient(135deg, var(--notes-primary) 0%, var(--notes-accent) 100%);
        box-shadow: 0 14px 28px rgba(29, 78, 216, 0.2);
    }

    .notes-modern-page .notes-btn--ghost {
        color: #fff;
        border-color: rgba(255, 255, 255, 0.3);
        background: rgba(255, 255, 255, 0.15);
    }

    .notes-modern-page .notes-btn--ghost:hover,
    .notes-modern-page .notes-btn--ghost:focus {
        color: #fff;
        border-color: rgba(255, 255, 255, 0.5);
        background: rgba(255, 255, 255, 0.25);
    }

    .notes-modern-page .notes-stats {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .notes-modern-page .notes-stat {
        padding: 16px 18px;
        border-radius: var(--berps-radius-lg);
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.15);
    }

    .notes-modern-page .notes-stat span {
        display: block;
        font-size: 0.78rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.7);
    }

    .notes-modern-page .notes-stat strong {
        display: block;
        margin-top: 8px;
        font-size: 1.7rem;
        line-height: 1;
        font-weight: 800;
        letter-spacing: -0.04em;
        color: #fff;
    }

    /* Note write animation */
    .notes-modern-page .note-write {
        display: inline-block;
        animation: note-write 2s ease-in-out infinite;
        transform-origin: center bottom;
    }

    @keyframes note-write {
        0%, 70%, 100% { transform: translateY(0) rotate(0deg); }
        15% { transform: translateY(-8px) rotate(-10deg); }
        30% { transform: translateY(0) rotate(0deg); }
        45% { transform: translateY(-4px) rotate(6deg); }
        60% { transform: translateY(0) rotate(0deg); }
    }

    .notes-modern-page .notes-shell {
        display: block;
        min-height: 680px;
        border-radius: 28px;
        overflow: hidden;
        background: var(--notes-surface);
        border: 1px solid var(--notes-border);
        box-shadow: var(--notes-shadow);
        backdrop-filter: blur(18px);
    }

    .notes-modern-page .notes-rail {
        display: flex;
        flex-direction: column;
        min-width: 0;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(243, 247, 252, 0.98) 100%);
    }

    .notes-modern-page .notes-rail__header {
        padding: 22px 22px 18px;
        border-bottom: 1px solid var(--notes-border);
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(14px);
    }

    .notes-modern-page .notes-rail__header h2 {
        margin: 0;
        font-size: 1.1rem;
        font-weight: 800;
        color: var(--notes-text);
    }

    .notes-modern-page .notes-rail__header p {
        margin: 6px 0 0;
        font-size: 0.84rem;
        color: var(--notes-text-soft);
    }

    .notes-modern-page .notes-filter-panel {
        padding: 18px 22px 16px;
        border-bottom: 1px solid var(--notes-border);
    }

    .notes-modern-page .notes-filter-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .notes-modern-page .notes-field {
        position: relative;
    }

    .notes-modern-page .notes-field i {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--notes-text-muted);
        font-size: 1rem;
    }

    .notes-modern-page .notes-input,
    .notes-modern-page .notes-select {
        width: 100%;
        min-height: 46px;
        border-radius: 14px;
        border: 1px solid var(--notes-border);
        background: #ffffff;
        color: var(--notes-text);
        font-size: 0.89rem;
        padding: 0 14px;
        box-shadow: none;
        transition: border-color 0.18s ease, box-shadow 0.18s ease;
    }

    .notes-modern-page .notes-input {
        padding-left: 42px;
    }

    .notes-modern-page .notes-input:focus,
    .notes-modern-page .notes-select:focus {
        outline: none;
        border-color: rgba(29, 78, 216, 0.4);
        box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.1);
    }

    .notes-modern-page .notes-filter-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-top: 12px;
    }

    .notes-modern-page .notes-pill-button {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        min-height: 40px;
        padding: 0 14px;
        border-radius: 999px;
        border: 1px solid var(--notes-border);
        background: #ffffff;
        color: var(--notes-text-soft);
        font-size: 0.84rem;
        font-weight: 700;
        transition: all 0.18s ease;
    }

    .notes-modern-page .notes-pill-button.is-active {
        background: rgba(29, 78, 216, 0.08);
        border-color: rgba(29, 78, 216, 0.24);
        color: var(--notes-primary);
    }

    .notes-modern-page .notes-visible-count {
        font-size: 0.8rem;
        font-weight: 700;
        color: var(--notes-text-muted);
    }

    .notes-modern-page .notes-list {
        flex: 1 1 auto;
        min-height: 0;
        max-height: 760px;
        overflow-y: auto;
        padding: 14px;
    }

    .notes-modern-page .notes-list-item {
        width: 100%;
        border: 1px solid transparent;
        border-radius: 18px;
        background: transparent;
        padding: 16px 18px;
        margin-bottom: 10px;
        text-align: left;
        cursor: pointer;
        transition: all 0.18s ease;
    }

    .notes-modern-page .notes-list-item:last-child {
        margin-bottom: 0;
    }

    .notes-modern-page .notes-list-item:hover,
    .notes-modern-page .notes-list-item:focus {
        outline: none;
        background: rgba(255, 255, 255, 0.88);
        border-color: rgba(148, 163, 184, 0.22);
        box-shadow: var(--notes-shadow-soft);
        transform: translateY(-1px);
    }

    .notes-modern-page .notes-list-item.is-active {
        color: #ffffff;
        background: linear-gradient(135deg, var(--notes-primary) 0%, var(--notes-accent) 100%);
        border-color: transparent;
        box-shadow: 0 18px 34px rgba(29, 78, 216, 0.28);
    }

    .notes-modern-page .notes-list-item span {
        display: block;
        font-size: 0.95rem;
        font-weight: 700;
        letter-spacing: -0.01em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .notes-modern-page .notes-list-empty,
    .notes-modern-page .notes-detail-empty {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        text-align: center;
        color: var(--notes-text-muted);
    }

    .notes-modern-page .notes-list-empty {
        min-height: 280px;
        padding: 26px 18px;
    }

    .notes-modern-page .notes-list-empty i,
    .notes-modern-page .notes-detail-empty i {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 64px;
        height: 64px;
        border-radius: 20px;
        background: rgba(29, 78, 216, 0.08);
        color: var(--notes-primary);
        font-size: 1.7rem;
    }

    .notes-modern-page .notes-list-empty strong,
    .notes-modern-page .notes-detail-empty strong {
        font-size: 1rem;
        color: var(--notes-text);
    }

    .notes-modern-page .notes-list-empty p,
    .notes-modern-page .notes-detail-empty p {
        max-width: 280px;
        margin: 0;
        font-size: 0.88rem;
        line-height: 1.6;
    }

    .notes-modern-page .notes-detail {
        display: flex;
        flex-direction: column;
        min-width: 0;
        background: rgba(255, 255, 255, 0.94);
    }

    .notes-modern-page .notes-detail__canvas {
        height: 100%;
        min-height: 680px;
        overflow-y: auto;
        padding: 28px;
    }

    .notes-modern-page .notes-detail__header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
        flex-wrap: wrap;
        padding-bottom: 20px;
        border-bottom: 1px solid var(--notes-border);
    }

    .notes-modern-page .notes-detail__eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--notes-text-muted);
        margin-bottom: 10px;
    }

    .notes-modern-page .notes-detail__eyebrow::before {
        content: '';
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--notes-primary);
    }

    .notes-modern-page .notes-detail__title {
        margin: 0;
        font-size: 2rem;
        line-height: 1.08;
        font-weight: 800;
        letter-spacing: -0.04em;
        color: var(--notes-text);
        word-break: break-word;
    }

    .notes-modern-page .notes-detail__meta {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
        margin-top: 16px;
    }

    .notes-modern-page .notes-detail__meta-item {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        min-height: 34px;
        padding: 0 12px;
        border-radius: 999px;
        background: #f8fafc;
        border: 1px solid var(--notes-border);
        color: var(--notes-text-soft);
        font-size: 0.82rem;
        font-weight: 700;
    }

    .notes-modern-page .notes-detail__actions {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    .notes-modern-page .notes-action {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 44px;
        padding: 0 15px;
        border-radius: 14px;
        border: 1px solid var(--notes-border);
        background: #ffffff;
        color: var(--notes-text-soft);
        font-size: 0.86rem;
        font-weight: 700;
        transition: all 0.18s ease;
    }

    .notes-modern-page .notes-action:hover,
    .notes-modern-page .notes-action:focus {
        outline: none;
        transform: translateY(-1px);
        box-shadow: var(--notes-shadow-soft);
    }

    .notes-modern-page .notes-action--favorite.is-active {
        color: var(--notes-warning);
        border-color: rgba(217, 119, 6, 0.22);
        background: rgba(217, 119, 6, 0.08);
    }

    .notes-modern-page .notes-action--danger {
        color: var(--notes-danger);
    }

    .notes-modern-page .notes-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 24px;
    }

    .notes-modern-page .notes-tag {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        min-height: 34px;
        padding: 0 12px;
        border-radius: 999px;
        background: rgba(29, 78, 216, 0.08);
        color: var(--notes-primary);
        border: 1px solid rgba(29, 78, 216, 0.12);
        font-size: 0.79rem;
        font-weight: 700;
    }

    .notes-modern-page .notes-detail__body {
        margin-top: 24px;
        padding: 22px 24px;
        border-radius: 24px;
        background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
        border: 1px solid var(--notes-border);
    }

    .notes-modern-page .notes-detail__section-title {
        margin: 0 0 16px;
        font-size: 0.92rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--notes-text-muted);
    }

    .notes-modern-page .notes-detail__content {
        color: var(--notes-text);
        font-size: 0.96rem;
        line-height: 1.85;
        word-break: break-word;
    }

    .notes-modern-page .notes-detail__content p,
    .notes-modern-page .notes-detail__content ul,
    .notes-modern-page .notes-detail__content ol,
    .notes-modern-page .notes-detail__content blockquote,
    .notes-modern-page .notes-detail__content pre,
    .notes-modern-page .notes-detail__content h1,
    .notes-modern-page .notes-detail__content h2,
    .notes-modern-page .notes-detail__content h3,
    .notes-modern-page .notes-detail__content h4,
    .notes-modern-page .notes-detail__content h5,
    .notes-modern-page .notes-detail__content h6 {
        margin-top: 0;
        margin-bottom: 1rem;
    }

    .notes-modern-page .notes-detail__content a {
        color: var(--notes-primary);
        font-weight: 700;
        text-decoration: none;
    }

    .notes-modern-page .notes-detail__content a:hover,
    .notes-modern-page .notes-detail__content a:focus {
        text-decoration: underline;
    }

    .notes-modern-page .notes-detail__content blockquote {
        padding: 14px 18px;
        border-left: 4px solid rgba(29, 78, 216, 0.28);
        background: rgba(29, 78, 216, 0.06);
        border-radius: 0 16px 16px 0;
        color: var(--notes-text-soft);
    }

    .notes-modern-page .notes-detail__content pre {
        overflow-x: auto;
        padding: 16px;
        border-radius: 16px;
        background: #0f172a;
        color: #e2e8f0;
    }

    .notes-modern-page .notes-detail__content img {
        max-width: 100%;
        height: auto;
        border-radius: 18px;
        box-shadow: var(--notes-shadow-soft);
    }

    .notes-modern-page .notes-detail__content .ql-align-center {
        text-align: center;
    }

    .notes-modern-page .notes-detail__content .ql-align-right {
        text-align: right;
    }

    .notes-modern-page .notes-detail__content .ql-align-justify {
        text-align: justify;
    }

    .notes-modern-page .notes-links {
        margin-top: 24px;
        padding: 22px 24px;
        border-radius: 24px;
        border: 1px solid var(--notes-border);
        background: #ffffff;
    }

    .notes-modern-page .notes-links__grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 12px;
        margin-top: 16px;
    }

    .notes-modern-page .notes-link-card {
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: 0;
        padding: 15px 16px;
        border-radius: 18px;
        border: 1px solid var(--notes-border);
        background: #f8fbff;
        color: var(--notes-text);
        text-decoration: none !important;
        transition: all 0.18s ease;
    }

    .notes-modern-page .notes-link-card:hover,
    .notes-modern-page .notes-link-card:focus {
        transform: translateY(-1px);
        box-shadow: var(--notes-shadow-soft);
        border-color: rgba(29, 78, 216, 0.22);
    }

    .notes-modern-page .notes-link-card i {
        flex: 0 0 auto;
        width: 40px;
        height: 40px;
        border-radius: 14px;
        background: rgba(29, 78, 216, 0.08);
        color: var(--notes-primary);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.05rem;
    }

    .notes-modern-page .notes-link-card span {
        min-width: 0;
        display: block;
        font-size: 0.88rem;
        font-weight: 700;
    }

    .notes-modern-page .notes-modal .modal-content {
        border: 0;
        border-radius: 24px;
        overflow: hidden;
        box-shadow: 0 30px 70px rgba(15, 23, 42, 0.18);
    }

    .notes-modern-page .notes-modal--viewer .modal-dialog {
        max-width: 1080px;
    }

    .notes-modern-page .notes-modal--viewer .modal-body {
        padding: 0;
        background: #f7fbff;
    }

    .notes-modern-page .notes-modal--viewer .notes-detail__canvas {
        min-height: 0;
        max-height: calc(100vh - 160px);
        padding: 28px 24px 30px;
    }

    .notes-modern-page .notes-modal .modal-header {
        padding: 22px 24px;
        border-bottom: 0;
        color: #ffffff;
    }

    .notes-modern-page .notes-modal .modal-header--primary {
        background: linear-gradient(135deg, #0f3ea8 0%, #1d4ed8 100%);
    }

    .notes-modern-page .notes-modal .modal-header--accent {
        background: linear-gradient(135deg, #0f766e 0%, #0f8a7b 100%);
    }

    .notes-modern-page .notes-modal .modal-title {
        font-size: 1.1rem;
        font-weight: 800;
        letter-spacing: -0.02em;
        color: #ffffff !important;
        text-shadow: 0 1px 8px rgba(15, 23, 42, 0.24);
    }

    .notes-modern-page .notes-modal .close {
        color: #ffffff;
        text-shadow: none;
        opacity: 0.88;
    }

    .notes-modern-page .notes-modal .modal-body {
        padding: 24px;
    }

    .notes-modern-page .notes-modal .modal-footer {
        padding: 0 24px 24px;
        border-top: 0;
        gap: 10px;
    }

    .notes-modern-page .notes-modal .notes-btn--neutral {
        color: var(--notes-text-soft);
        background: #ffffff;
        border-color: var(--notes-border);
        box-shadow: none;
    }

    .notes-modern-page .notes-modal .notes-btn--neutral:hover,
    .notes-modern-page .notes-modal .notes-btn--neutral:focus {
        color: var(--notes-text);
        border-color: var(--notes-border-strong);
        background: #ffffff;
    }

    .notes-modern-page .notes-modal .form-group label {
        font-size: 0.84rem;
        font-weight: 700;
        color: var(--notes-text-soft);
        margin-bottom: 8px;
    }

    .notes-modern-page .notes-modal .form-control {
        min-height: 46px;
        border-radius: 14px;
        border: 1px solid var(--notes-border);
        box-shadow: none;
        color: var(--notes-text);
    }

    .notes-modern-page .notes-modal .form-control:focus {
        border-color: rgba(29, 78, 216, 0.4);
        box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.1);
    }

    .notes-modern-page .notes-editor-shell {
        border-radius: 18px;
        border: 1px solid var(--notes-border);
        overflow: hidden;
        background: #ffffff;
    }

    .notes-modern-page .ql-toolbar.ql-snow {
        border: 0;
        border-bottom: 1px solid var(--notes-border);
    }

    .notes-modern-page .ql-container.ql-snow {
        border: 0;
        font-family: var(--font-primary, Montserrat, Segoe UI, Arial, sans-serif);
        min-height: 260px;
    }

    .notes-modern-page .notes-voice-row {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
        margin-bottom: 12px;
    }

    .notes-modern-page .notes-voice-status {
        font-size: 0.8rem;
        color: var(--notes-text-muted);
    }

    @media (max-width: 1199px) {
        .notes-modern-page .notes-detail__title {
            font-size: 1.8rem;
        }
    }

    @media (max-width: 991px) {
        .notes-modern-page .notes-workspace {
            padding-left: 8px;
            padding-right: 8px;
        }

        .notes-modern-page .notes-hero {
            padding: 24px 20px;
        }

        .notes-modern-page .notes-stats {
            grid-template-columns: 1fr;
        }

        .notes-modern-page .notes-detail__canvas {
            min-height: 520px;
            padding: 22px 20px 26px;
        }
    }

    @media (max-width: 575px) {
        .notes-modern-page .notes-hero h1 {
            font-size: 1.9rem;
        }

        .notes-modern-page .notes-detail__title {
            font-size: 1.55rem;
        }

        .notes-modern-page .notes-detail__header,
        .notes-modern-page .notes-detail__actions,
        .notes-modern-page .notes-filter-actions {
            flex-direction: column;
            align-items: stretch;
        }

        .notes-modern-page .notes-action,
        .notes-modern-page .notes-pill-button,
        .notes-modern-page .notes-btn {
            width: 100%;
        }

        .notes-modern-page .notes-detail__body,
        .notes-modern-page .notes-links,
        .notes-modern-page .notes-rail__header,
        .notes-modern-page .notes-filter-panel {
            padding-left: 18px;
            padding-right: 18px;
        }

        .notes-modern-page .notes-list {
            padding: 12px;
        }
    }

/* Reminders page hero & accents ----------------------------------------- */
.reminders-workspace-page .reminders-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--berps-space-5);
  padding: var(--berps-space-8) var(--berps-space-6);
  margin-bottom: var(--berps-space-6);
  border-radius: var(--berps-radius-lg);
  background: #2a9d8f;
  box-shadow: 0 8px 32px rgba(42, 157, 143, 0.25);
  position: relative;
  overflow: hidden;
}

.reminders-workspace-page .reminders-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.reminders-workspace-page .reminders-hero::after {
  content: '';
  position: absolute;
  bottom: -60%;
  right: 15%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.reminders-workspace-page .reminders-hero__content {
  position: relative;
  z-index: 1;
}

.reminders-workspace-page .reminders-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--berps-space-2);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.reminders-workspace-page .reminders-hero__eyebrow i {
  font-size: 1rem;
}

.reminders-workspace-page .reminders-hero__title {
  margin: 0 0 var(--berps-space-1) 0;
  color: #fff;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.reminders-workspace-page .bell-ring {
  display: inline-block;
  animation: bell-ring 2s ease-in-out infinite;
  transform-origin: top center;
}

@keyframes bell-ring {
  0%, 70%, 100% { transform: rotate(0deg); }
  5% { transform: rotate(15deg); }
  10% { transform: rotate(-12deg); }
  15% { transform: rotate(10deg); }
  20% { transform: rotate(-8deg); }
  25% { transform: rotate(6deg); }
  30% { transform: rotate(0deg); }
}

.reminders-workspace-page .reminders-hero__subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
  max-width: 480px;
}

.reminders-workspace-page .reminders-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--berps-space-2);
  position: relative;
  z-index: 1;
}

.reminders-workspace-page .reminders-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--berps-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
}

.reminders-workspace-page .reminders-hero-btn:hover,
.reminders-workspace-page .reminders-hero-btn:focus {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.reminders-workspace-page .reminders-hero-btn--solid {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.95);
  color: #2a9d8f;
  font-weight: 700;
}

.reminders-workspace-page .reminders-hero-btn--solid:hover,
.reminders-workspace-page .reminders-hero-btn--solid:focus {
  background: #fff;
  color: #21867a;
}

/* Colorful stat cards for reminders page */
.reminders-workspace-page .berps-stat-card.berps-tone-success {
  border-top: 3px solid #2e7d32;
}

.reminders-workspace-page .berps-stat-card.berps-tone-warning {
  border-top: 3px solid #f57c00;
}

.reminders-workspace-page .berps-stat-card.berps-tone-info {
  border-top: 3px solid #1565c0;
}

/* Colorful table card header for reminders page */
.reminders-workspace-page .berps-table-card__header {
  border-bottom: 2px solid #2a9d8f;
}

.reminders-workspace-page .berps-section-title {
  color: #2a9d8f;
}

/* Frequency badge colors */
.reminders-workspace-page .notes-frequency {
  background: #e0f2f1;
  color: #00695c;
}

/* Responsive */
@media screen and (max-width: 767.98px) {
  .reminders-workspace-page .reminders-hero,
  .reminders-workspace-page .reminders-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .reminders-workspace-page .reminders-hero {
    padding: var(--berps-space-5);
  }

  .reminders-workspace-page .reminders-hero-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* Invoice list page hero & accents -------------------------------------- */
.invoice-list-page .inv-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--berps-space-5);
  padding: var(--berps-space-8) var(--berps-space-6);
  margin-bottom: var(--berps-space-6);
  border-radius: var(--berps-radius-lg);
  background: #e76f51;
  box-shadow: 0 8px 32px rgba(231, 111, 81, 0.25);
  position: relative;
  overflow: hidden;
}

.invoice-list-page .inv-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.invoice-list-page .inv-hero::after {
  content: '';
  position: absolute;
  bottom: -60%;
  right: 15%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.invoice-list-page .inv-hero__content {
  position: relative;
  z-index: 1;
}

.invoice-list-page .inv-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--berps-space-2);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.invoice-list-page .inv-hero__eyebrow i {
  font-size: 1rem;
}

.invoice-list-page .inv-hero__title {
  margin: 0 0 var(--berps-space-1) 0;
  color: #fff;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.invoice-list-page .inv-hero__subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
  max-width: 480px;
}

.invoice-list-page .inv-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--berps-space-2);
  position: relative;
  z-index: 1;
}

.invoice-list-page .inv-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--berps-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
}

.invoice-list-page .inv-hero-btn:hover,
.invoice-list-page .inv-hero-btn:focus {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.invoice-list-page .inv-hero-btn--solid {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.95);
  color: #e76f51;
  font-weight: 700;
}

.invoice-list-page .inv-hero-btn--solid:hover,
.invoice-list-page .inv-hero-btn--solid:focus {
  background: #fff;
  color: #d55a3c;
}

/* Bill flip animation */
.invoice-list-page .bill-flip {
  display: inline-block;
  animation: bill-flip 3s ease-in-out infinite;
  transform-origin: bottom center;
}

@keyframes bill-flip {
  0%, 80%, 100% { transform: rotateY(0deg); }
  10% { transform: rotateY(180deg); }
  20% { transform: rotateY(360deg); }
  30% { transform: rotateY(0deg); }
}

/* Colorful card header for invoice page */
.invoice-list-page .theme-card {
  border-top: 3px solid #e76f51;
}

.invoice-list-page .theme-card-head {
  border-bottom: 2px solid #e76f51;
}

.invoice-list-page .theme-card-title {
  color: #e76f51;
}

/* Responsive */
@media screen and (max-width: 767.98px) {
  .invoice-list-page .inv-hero,
  .invoice-list-page .inv-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .invoice-list-page .inv-hero {
    padding: var(--berps-space-5);
  }

  .invoice-list-page .inv-hero-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* Payment list page hero & accents -------------------------------------- */
.payment-list-page .pay-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--berps-space-5);
  padding: var(--berps-space-8) var(--berps-space-6);
  margin-bottom: var(--berps-space-6);
  border-radius: var(--berps-radius-lg);
  background: #264653;
  box-shadow: 0 8px 32px rgba(38, 70, 83, 0.25);
  position: relative;
  overflow: hidden;
}

.payment-list-page .pay-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.payment-list-page .pay-hero::after {
  content: '';
  position: absolute;
  bottom: -60%;
  right: 15%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.payment-list-page .pay-hero__content {
  position: relative;
  z-index: 1;
}

.payment-list-page .pay-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--berps-space-2);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.payment-list-page .pay-hero__eyebrow i {
  font-size: 1rem;
}

.payment-list-page .pay-hero__title {
  margin: 0 0 var(--berps-space-1) 0;
  color: #fff;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.payment-list-page .pay-hero__subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
  max-width: 480px;
}

.payment-list-page .pay-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--berps-space-2);
  position: relative;
  z-index: 1;
}

.payment-list-page .pay-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--berps-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
}

.payment-list-page .pay-hero-btn:hover,
.payment-list-page .pay-hero-btn:focus {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.payment-list-page .pay-hero-btn--solid {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.95);
  color: #264653;
  font-weight: 700;
}

.payment-list-page .pay-hero-btn--solid:hover,
.payment-list-page .pay-hero-btn--solid:focus {
  background: #fff;
  color: #1a3540;
}

/* Coin spin animation */
.payment-list-page .coin-spin {
  display: inline-block;
  animation: coin-spin 2.5s ease-in-out infinite;
  transform-origin: center;
}

@keyframes coin-spin {
  0%, 75%, 100% { transform: rotateY(0deg) scale(1); }
  10% { transform: rotateY(180deg) scale(1.15); }
  20% { transform: rotateY(360deg) scale(1); }
  30% { transform: rotateY(0deg) scale(1); }
}

/* Colorful stat cards for payment page */
.payment-list-page .berps-stat-card.berps-tone-success {
  border-top: 3px solid #2e7d32;
}

.payment-list-page .berps-stat-card.berps-tone-info {
  border-top: 3px solid #1565c0;
}

.payment-list-page .berps-stat-card.berps-tone-warning {
  border-top: 3px solid #f57c00;
}

.payment-list-page .berps-stat-card:not(.berps-tone-success):not(.berps-tone-info):not(.berps-tone-warning) {
  border-top: 3px solid #264653;
}

/* Colorful card header for payment page */
.payment-list-page .theme-card {
  border-top: 3px solid #264653;
}

.payment-list-page .theme-card-head {
  border-bottom: 2px solid #264653;
}

.payment-list-page .theme-card-title {
  color: #264653;
}

/* Responsive */
@media screen and (max-width: 767.98px) {
  .payment-list-page .pay-hero,
  .payment-list-page .pay-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .payment-list-page .pay-hero {
    padding: var(--berps-space-5);
  }

  .payment-list-page .pay-hero-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* Job order list page hero & accents ------------------------------------ */
.job-order-page .jo-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--berps-space-5);
  padding: var(--berps-space-8) var(--berps-space-6);
  margin-bottom: var(--berps-space-6);
  border-radius: var(--berps-radius-lg);
  background: #5f0f40;
  box-shadow: 0 8px 32px rgba(95, 15, 64, 0.25);
  position: relative;
  overflow: hidden;
}

.job-order-page .jo-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.job-order-page .jo-hero::after {
  content: '';
  position: absolute;
  bottom: -60%;
  right: 15%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.job-order-page .jo-hero__content {
  position: relative;
  z-index: 1;
}

.job-order-page .jo-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--berps-space-2);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.job-order-page .jo-hero__eyebrow i {
  font-size: 1rem;
}

.job-order-page .jo-hero__title {
  margin: 0 0 var(--berps-space-1) 0;
  color: #fff;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.job-order-page .jo-hero__subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
  max-width: 480px;
}

.job-order-page .jo-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--berps-space-2);
  position: relative;
  z-index: 1;
}

.job-order-page .jo-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--berps-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
}

.job-order-page .jo-hero-btn:hover,
.job-order-page .jo-hero-btn:focus {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.job-order-page .jo-hero-btn--solid {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.95);
  color: #5f0f40;
  font-weight: 700;
}

.job-order-page .jo-hero-btn--solid:hover,
.job-order-page .jo-hero-btn--solid:focus {
  background: #fff;
  color: #4a0a30;
}

/* Clipboard bounce animation */
.job-order-page .jo-bounce {
  display: inline-block;
  animation: jo-bounce 2s ease-in-out infinite;
}

@keyframes jo-bounce {
  0%, 70%, 100% { transform: translateY(0) rotate(0deg); }
  10% { transform: translateY(-10px) rotate(-8deg); }
  20% { transform: translateY(0) rotate(0deg); }
  30% { transform: translateY(-6px) rotate(6deg); }
  40% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(-3deg); }
  60% { transform: translateY(0) rotate(0deg); }
}

/* Colorful stat cards for job order page */
.job-order-page .berps-stat-card:not(.berps-tone-info):not(.berps-tone-success):not(.berps-tone-danger) {
  border-top: 3px solid #5f0f40;
}

.job-order-page .berps-stat-card.berps-tone-info {
  border-top: 3px solid #1565c0;
}

.job-order-page .berps-stat-card.berps-tone-success {
  border-top: 3px solid #2e7d32;
}

.job-order-page .berps-stat-card.berps-tone-danger {
  border-top: 3px solid #c62828;
}

/* Colorful table card header for job order page */
.job-order-page .berps-table-card__header {
  border-bottom: 2px solid #5f0f40;
}

.job-order-page .berps-section-title {
  color: #5f0f40;
}

/* Responsive */
@media screen and (max-width: 767.98px) {
  .job-order-page .jo-hero,
  .job-order-page .jo-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .job-order-page .jo-hero {
    padding: var(--berps-space-5);
  }

  .job-order-page .jo-hero-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* Customer delivery list page hero & accents ---------------------------- */
.customer-delivery-page .cd-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--berps-space-5);
  padding: var(--berps-space-8) var(--berps-space-6);
  margin-bottom: var(--berps-space-6);
  border-radius: var(--berps-radius-lg);
  background: #e9a23b;
  box-shadow: 0 8px 32px rgba(233, 162, 59, 0.25);
  position: relative;
  overflow: hidden;
}

.customer-delivery-page .cd-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.customer-delivery-page .cd-hero::after {
  content: '';
  position: absolute;
  bottom: -60%;
  right: 15%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.customer-delivery-page .cd-hero__content {
  position: relative;
  z-index: 1;
}

.customer-delivery-page .cd-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--berps-space-2);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.customer-delivery-page .cd-hero__eyebrow i {
  font-size: 1rem;
}

.customer-delivery-page .cd-hero__title {
  margin: 0 0 var(--berps-space-1) 0;
  color: #fff;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.customer-delivery-page .cd-hero__subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
  max-width: 480px;
}

.customer-delivery-page .cd-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--berps-space-2);
  position: relative;
  z-index: 1;
}

.customer-delivery-page .cd-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--berps-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
}

.customer-delivery-page .cd-hero-btn:hover,
.customer-delivery-page .cd-hero-btn:focus {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.customer-delivery-page .cd-hero-btn--solid {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.95);
  color: #b87d1a;
  font-weight: 700;
}

.customer-delivery-page .cd-hero-btn--solid:hover,
.customer-delivery-page .cd-hero-btn--solid:focus {
  background: #fff;
  color: #a06d15;
}

/* Colorful stat cards for delivery page */
.customer-delivery-page .berps-stat-card:not(.berps-tone-success):not(.berps-tone-warning):not(.berps-tone-info) {
  border-top: 3px solid #e9a23b;
}

.customer-delivery-page .berps-stat-card.berps-tone-success {
  border-top: 3px solid #2e7d32;
}

.customer-delivery-page .berps-stat-card.berps-tone-warning {
  border-top: 3px solid #f57c00;
}

.customer-delivery-page .berps-stat-card.berps-tone-info {
  border-top: 3px solid #1565c0;
}

/* Colorful card header for delivery page */
.customer-delivery-page .theme-card {
  border-top: 3px solid #e9a23b;
}

.customer-delivery-page .theme-card-head {
  border-bottom: 2px solid #e9a23b;
}

.customer-delivery-page .theme-card-title {
  color: #b87d1a;
}

/* Truck move animation (shared) */
.truck-move {
  display: inline-block;
  animation: truck-move 2.5s ease-in-out infinite;
}

@keyframes truck-move {
  0%, 70%, 100% { transform: translateX(0) rotate(0deg); }
  10% { transform: translateX(6px) rotate(-3deg); }
  20% { transform: translateX(12px) rotate(0deg); }
  30% { transform: translateX(6px) rotate(3deg); }
  40% { transform: translateX(0) rotate(0deg); }
  50% { transform: translateX(-3px) rotate(-2deg); }
  60% { transform: translateX(0) rotate(0deg); }
}

/* Responsive for delivery list */
@media screen and (max-width: 767.98px) {
  .customer-delivery-page .cd-hero,
  .customer-delivery-page .cd-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .customer-delivery-page .cd-hero {
    padding: var(--berps-space-5);
  }

  .customer-delivery-page .cd-hero-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* New customer delivery entry hero -------------------------------------- */
.delivery-entry-page .cd-entry-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding: 28px 24px;
  margin: 24px 0 22px;
  border-radius: var(--berps-radius-lg);
  background: #e9a23b;
  box-shadow: 0 8px 32px rgba(233, 162, 59, 0.25);
  position: relative;
  overflow: hidden;
}

.delivery-entry-page .cd-entry-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.delivery-entry-page .cd-entry-hero::after {
  content: '';
  position: absolute;
  bottom: -60%;
  right: 15%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.delivery-entry-page .cd-entry-hero__content {
  position: relative;
  z-index: 1;
}

.delivery-entry-page .cd-entry-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.delivery-entry-page .cd-entry-hero__eyebrow i {
  font-size: 1rem;
}

.delivery-entry-page .cd-entry-hero__title {
  margin: 0 0 4px 0;
  color: #fff;
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.delivery-entry-page .cd-entry-hero__subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
  max-width: 480px;
}

.delivery-entry-page .cd-entry-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.delivery-entry-page .cd-entry-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--berps-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
}

.delivery-entry-page .cd-entry-hero-btn:hover,
.delivery-entry-page .cd-entry-hero-btn:focus {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Amber accent on entry card header */
.delivery-entry-page .entry-card-header {
  border-top: 3px solid #e9a23b;
}

.delivery-entry-page .entry-card-title {
  color: #b87d1a;
}

/* Responsive for delivery entry */
@media screen and (max-width: 767.98px) {
  .delivery-entry-page .cd-entry-hero,
  .delivery-entry-page .cd-entry-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .delivery-entry-page .cd-entry-hero {
    padding: 20px;
  }

  .delivery-entry-page .cd-entry-hero-btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .delivery-entry-page .cd-entry-hero__title {
    font-size: 1.75rem;
  }
}

/* Client list page hero & accents --------------------------------------- */
.client-list-page .client-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--berps-space-5);
  padding: var(--berps-space-8) var(--berps-space-6);
  margin-bottom: var(--berps-space-6);
  border-radius: var(--berps-radius-lg);
  background: #1a936f;
  box-shadow: 0 8px 32px rgba(26, 147, 111, 0.25);
  position: relative;
  overflow: hidden;
}

.client-list-page .client-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.client-list-page .client-hero::after {
  content: '';
  position: absolute;
  bottom: -60%;
  right: 15%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.client-list-page .client-hero__content {
  position: relative;
  z-index: 1;
}

.client-list-page .client-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--berps-space-2);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.client-list-page .client-hero__eyebrow i {
  font-size: 1rem;
}

.client-list-page .client-hero__title {
  margin: 0 0 var(--berps-space-1) 0;
  color: #fff;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.client-list-page .client-hero__subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
  max-width: 480px;
}

.client-list-page .client-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--berps-space-2);
  position: relative;
  z-index: 1;
}

.client-list-page .client-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--berps-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
}

.client-list-page .client-hero-btn:hover,
.client-list-page .client-hero-btn:focus {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.client-list-page .client-hero-btn--solid {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.95);
  color: #1a936f;
  font-weight: 700;
}

.client-list-page .client-hero-btn--solid:hover,
.client-list-page .client-hero-btn--solid:focus {
  background: #fff;
  color: #147a59;
}

/* Wave animation for client page */
.client-list-page .client-wave {
  display: inline-block;
  animation: client-wave 2.5s ease-in-out infinite;
  transform-origin: 70% 70%;
}

@keyframes client-wave {
  0%, 70%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(20deg); }
  20% { transform: rotate(-12deg); }
  30% { transform: rotate(18deg); }
  40% { transform: rotate(-8deg); }
  50% { transform: rotate(10deg); }
  60% { transform: rotate(0deg); }
}

/* Colorful stat cards for client page */
.client-list-page .stat-card.stat-total {
  border-top: 3px solid #1a936f;
}

.client-list-page .stat-card.stat-active {
  border-top: 3px solid #2e7d32;
}

.client-list-page .stat-card.stat-prospect {
  border-top: 3px solid #f57c00;
}

.client-list-page .stat-card.stat-portal {
  border-top: 3px solid #1565c0;
}

/* Colorful card header for client page */
.client-list-page .theme-card {
  border-top: 3px solid #1a936f;
}

.client-list-page .theme-card-head {
  border-bottom: 2px solid #1a936f;
}

.client-list-page .theme-card-title {
  color: #1a936f;
}

/* Responsive */
@media screen and (max-width: 767.98px) {
  .client-list-page .client-hero,
  .client-list-page .client-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .client-list-page .client-hero {
    padding: var(--berps-space-5);
  }

  .client-list-page .client-hero-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* Client entry page hero & accents -------------------------------------- */
.client-entry-page .client-entry-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding: 28px 24px;
  margin: 24px 0 22px;
  border-radius: var(--berps-radius-lg);
  background: #1a936f;
  box-shadow: 0 8px 32px rgba(26, 147, 111, 0.25);
  position: relative;
  overflow: hidden;
}

.client-entry-page .client-entry-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.client-entry-page .client-entry-hero::after {
  content: '';
  position: absolute;
  bottom: -60%;
  right: 15%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.client-entry-page .client-entry-hero__content {
  position: relative;
  z-index: 1;
}

.client-entry-page .client-entry-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.client-entry-page .client-entry-hero__eyebrow i {
  font-size: 1rem;
}

.client-entry-page .client-entry-hero__title {
  margin: 0 0 4px 0;
  color: #fff;
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.client-entry-page .client-entry-hero__subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
  max-width: 480px;
}

.client-entry-page .client-entry-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.client-entry-page .client-entry-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--berps-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
}

.client-entry-page .client-entry-hero-btn:hover,
.client-entry-page .client-entry-hero-btn:focus {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Handshake animation */
.client-entry-page .client-wave {
  display: inline-block;
  animation: handshake 2.5s ease-in-out infinite;
  transform-origin: center;
}

@keyframes handshake {
  0%, 60%, 100% { transform: rotate(0deg) scale(1); }
  10% { transform: rotate(-12deg) scale(1.1); }
  20% { transform: rotate(10deg) scale(1.1); }
  30% { transform: rotate(-8deg) scale(1.05); }
  40% { transform: rotate(6deg) scale(1.05); }
  50% { transform: rotate(0deg) scale(1); }
}

/* Emerald accent on form card header */
.client-entry-page .berps-form-card {
  border-top: 3px solid #1a936f;
}

.client-entry-page .berps-form-card__title {
  color: #1a936f;
}

.client-entry-page .berps-form-section__title {
  color: #1a936f;
}

/* Responsive */
@media screen and (max-width: 767.98px) {
  .client-entry-page .client-entry-hero,
  .client-entry-page .client-entry-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .client-entry-page .client-entry-hero {
    padding: 20px;
  }

  .client-entry-page .client-entry-hero-btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .client-entry-page .client-entry-hero__title {
    font-size: 1.75rem;
  }
}

/* Reminders list --------------------------------------------------------- */
.reminders-list-page .reminders-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--berps-space-5);
  padding: var(--berps-space-8) var(--berps-space-6);
  margin-bottom: var(--berps-space-6);
  border-radius: var(--berps-radius-lg);
  background: #e63946;
  box-shadow: 0 8px 32px rgba(230, 57, 70, 0.25);
  position: relative;
  overflow: hidden;
}

.reminders-list-page .reminders-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.reminders-list-page .reminders-hero::after {
  content: '';
  position: absolute;
  bottom: -60%;
  right: 15%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.reminders-list-page .reminders-hero__content {
  position: relative;
  z-index: 1;
}

.reminders-list-page .reminders-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--berps-space-2);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.reminders-list-page .reminders-hero__eyebrow i {
  font-size: 1rem;
}

.reminders-list-page .reminders-hero__title {
  margin: 0 0 var(--berps-space-1) 0;
  color: #fff;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.reminders-list-page .reminders-hero__subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
  max-width: 480px;
}

.reminders-list-page .reminders-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--berps-space-2);
  position: relative;
  z-index: 1;
}

.reminders-list-page .reminders-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--berps-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
}

.reminders-list-page .reminders-hero-btn:hover,
.reminders-list-page .reminders-hero-btn:focus {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.reminders-list-page .reminders-hero-btn--solid {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.95);
  color: #e63946;
  font-weight: 700;
}

.reminders-list-page .reminders-hero-btn--solid:hover,
.reminders-list-page .reminders-hero-btn--solid:focus {
  background: #fff;
  color: #c52e3a;
}

/* Bell ring animation */
.reminders-list-page .bell-ring {
  display: inline-block;
  animation: bell-ring 2s ease-in-out infinite;
  transform-origin: 50% 10%;
}

@keyframes bell-ring {
  0%, 70%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(15deg); }
  20% { transform: rotate(-12deg); }
  30% { transform: rotate(8deg); }
  40% { transform: rotate(-5deg); }
  50% { transform: rotate(0deg); }
}

/* Coral accent on table card */
.reminders-list-page .berps-table-card {
  border-top: 3px solid #e63946;
}

.reminders-list-page .berps-table-card__header {
  border-bottom: 2px solid #e63946;
}

.reminders-list-page .berps-section-title {
  color: #e63946;
}

/* Responsive hero */
@media screen and (max-width: 767.98px) {
  .reminders-list-page .reminders-hero,
  .reminders-list-page .reminders-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .reminders-list-page .reminders-hero {
    padding: var(--berps-space-5);
  }

  .reminders-list-page .reminders-hero-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}
