/* Professional application shell: solid surfaces, desktop rail and mobile drawer. */
#pp-sidebar-tooltip {
  position: fixed; z-index: 1080; max-width: min(240px, calc(100vw - 24px));
  padding: 9px 12px; border-radius: 8px; background: #0f172a; color: #fff;
  font: 500 12px/1.5 Inter, system-ui, sans-serif;
  box-shadow: 0 4px 12px rgb(15 23 42 / 16%); pointer-events: none;
  overflow-wrap: anywhere; animation: pp-sidebar-tooltip-enter .14s ease;
}
#pp-sidebar-tooltip[hidden] { display: none; }
#pp-sidebar-tooltip::before { content: ''; position: absolute; left: -4px; top: calc(50% - 4px); width: 8px; height: 8px; background: #0f172a; transform: rotate(45deg); }
@keyframes pp-sidebar-tooltip-enter { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #pp-sidebar-tooltip { animation: none; } }
@media print { #pp-sidebar-tooltip { display: none !important; } }
@media screen {
  html.pp-menu-pending .portal-sidebar-nav { visibility: hidden; }
  :root { --pp-topbar-height: 64px; --pp-sidebar-width: 256px; }
  html.pp-sidebar-mini { --pp-sidebar-width: 76px; }
  html.pp-app-layout body { padding-top: var(--pp-topbar-height) !important; padding-left: var(--pp-sidebar-width) !important; box-sizing: border-box; }
  body.pp-ui-page { background-image: none !important; }
  html.pp-document-view body { padding: 0 !important; }
  html.pp-document-view .portal-shell { display: none !important; }
  .portal-shell { position: static; z-index: auto; }
  .portal-shell .portal-topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1040; width: 100%; height: var(--pp-topbar-height); min-height: 0; padding: 10px 24px; background: #fff; color: #334155; border-bottom: 1px solid #e2e8f0; box-shadow: none; }
  .portal-topbar-left { display: flex; align-items: center; gap: 16px; min-width: 0; }
  .portal-shell .portal-brand { gap: 10px; color: #0f172a; }
  .portal-shell .portal-brand h3 { color: #0f172a; font-size: 16px; }
  .portal-shell .portal-brand-kicker { color: #64748b; font-size: 9px; }
  .portal-shell .portal-brand-symbol { width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px; background: transparent; border: 0; }
  .portal-shell .portal-brand-symbol img { display: block; width: 100%; height: 100%; }
  .pp-sidebar-toggle, .pp-sidebar-close { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; color: #475569; cursor: pointer; flex-shrink: 0; }
  .pp-sidebar-toggle:hover, .pp-sidebar-close:hover { background: #f1f5f9; color: #0f172a; }
  .portal-shell .notification-icon, .portal-shell .notification-icon:hover, .portal-shell .notification-icon:focus, .portal-shell .notification-icon:active { width: 40px; height: 40px; color: #475569 !important; background: #f8fafc; border-color: #e2e8f0; border-radius: 10px; }
  .portal-shell .notification-dot { border-color: #f8fafc; background: #ef4444; }
  .portal-shell .portal-topbar .notification-icon > i { font-size: 24px !important; line-height: 1; }
  .portal-shell .portal-topbar .notification-icon.pp-bell-unread > i {
    display: inline-block; transform-origin: 50% 15%; animation: pp-bell-ring 2.8s ease-in-out infinite;
  }
  @keyframes pp-bell-ring {
    0%, 32%, 100% { transform: rotate(0deg); }
    4%, 12% { transform: rotate(16deg); }
    8%, 16% { transform: rotate(-16deg); }
    20% { transform: rotate(10deg); }
    24% { transform: rotate(-10deg); }
    28% { transform: rotate(4deg); }
  }
  @media (prefers-reduced-motion: reduce) {
    .portal-shell .portal-topbar .notification-icon.pp-bell-unread > i { animation: none; }
  }
  .portal-shell .portal-profile-toggle, .portal-shell .portal-profile-toggle:hover, .portal-shell .portal-profile-toggle:focus, .portal-shell .portal-profile-toggle:active { color: #334155 !important; background: #f8fafc; border-color: #e2e8f0; border-radius: 10px; padding: 4px 10px 4px 5px; gap: 8px; }
  .portal-shell .portal-profile-toggle img { width: 30px; height: 30px; border: 1px solid #e2e8f0; }
  .portal-shell .portal-profile-text .small { color: #64748b; }
  .portal-shell .announcement-pill { background: #eff6ff; border-color: #dbeafe; color: #2563eb; }
  .portal-shell .announcement-pill:hover { background: #dbeafe; }
  .portal-shell .announcement-pill { position: relative; }
  .portal-shell .announcement-pill .pp-announcement-orbit {
    position: absolute; inset: 0; padding: 2px; border-radius: inherit;
    overflow: hidden; pointer-events: none;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
  }
  .portal-shell .announcement-pill .pp-announcement-orbit > span {
    position: absolute; inset: -400%;
    background: conic-gradient(from 0deg, transparent 0deg 240deg, rgba(59,130,246,.08) 260deg, rgba(59,130,246,.4) 310deg, #3b82f6 345deg, #2563eb 358deg, transparent 360deg);
    animation: pp-announcement-orbit 4s linear infinite;
    will-change: transform;
  }
  @keyframes pp-announcement-orbit { to { transform: rotate(360deg); } }
  @media (prefers-reduced-motion: reduce) {
    .portal-shell .announcement-pill .pp-announcement-orbit > span { animation: none; will-change: auto; }
  }
  .portal-shell .announcement-pill-count { border-color: #eff6ff; }
  .portal-shell .portal-sidebar { position: fixed; top: var(--pp-topbar-height); bottom: 0; left: 0; z-index: 1030; display: flex; flex-direction: column; width: var(--pp-sidebar-width); background: #fff; border-right: 1px solid #e2e8f0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
  .portal-sidebar-heading { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; min-height: 52px; padding: 16px 22px 12px; }
  .portal-sidebar-caption { font-size: 10px; color: #94a3b8; text-transform: uppercase; letter-spacing: .1em; font-weight: 650; }
  .pp-sidebar-close { display: none; width: 36px; height: 36px; }
  .portal-sidebar-nav { padding: 0 12px 16px; flex: 1; }
  .portal-shell .portal-sidebar .navbar-nav { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 4px; width: 100%; }
  .portal-shell .portal-sidebar .nav-item { width: 100%; position: relative; }
  .portal-shell .portal-sidebar .nav-link { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 11px 12px; border-radius: 9px; color: #475569; font-size: 13px; font-weight: 550; line-height: 1.4; white-space: normal; }
  .portal-shell .portal-sidebar .nav-link > i { font-size: 18px; flex: 0 0 20px; text-align: center; margin: 0 !important; }
  .portal-shell .portal-sidebar .nav-link:hover, .portal-shell .portal-sidebar .dropdown-item:hover { background: #f8fafc; color: #0f172a; }
  .portal-shell .portal-sidebar .nav-link.active, .portal-shell .portal-sidebar .nav-item.active > .nav-link { color: #2563eb; background: #eff6ff; box-shadow: none; }
  .portal-shell .portal-sidebar .dropdown-toggle::after { display: none; }
  .pp-nav-chevron { display: inline-flex; margin-left: auto; flex-shrink: 0; color: #94a3b8; }
  .pp-nav-expanded > a > .pp-nav-chevron { transform: rotate(90deg); color: #2563eb; }
  .portal-shell .portal-sidebar .dropdown-menu { position: static !important; inset: auto !important; transform: none !important; float: none; width: auto; min-width: 0 !important; max-height: none; overflow: visible; margin: 4px 0 6px 21px; padding: 2px 0 2px 10px; border: 0; border-left: 1px solid #e2e8f0; border-radius: 0; background: transparent; box-shadow: none !important; display: none !important; }
  .portal-shell .portal-sidebar .pp-nav-expanded > .dropdown-menu { display: block !important; }
  .portal-shell .portal-sidebar .dropdown-item { display: flex; align-items: center; justify-content: flex-start; gap: 8px; min-height: 40px; padding: 9px 10px; margin: 2px 0; border-radius: 8px; color: #64748b; font-size: 12px; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }
  .portal-shell .portal-sidebar .dropdown-item.active { background: #eff6ff; color: #2563eb; }
  .portal-shell .portal-sidebar .portal-sidebar-nav .dropdown-menu .dropdown-item:hover { background: #f8fafc; color: #0f172a; }
  .portal-shell .portal-sidebar .pp-nav-label { flex: 1 1 0; min-width: 0; text-align: left; }
  .portal-shell .portal-sidebar .dropdown-item > .pp-nav-icon { flex: 0 0 20px; width: 20px; margin: 0 !important; text-align: center; font-size: 14px; }
  .portal-shell .portal-sidebar .dropdown-item > .badge { flex-shrink: 0; margin-left: 0 !important; }
  .portal-shell .portal-sidebar .submenu-toggle::after { display: none; }
  .portal-shell .portal-sidebar .dropdown-header { padding: 10px; color: #94a3b8; font-size: 10px; }
  .portal-shell .portal-sidebar .dropdown-divider { display: none; }
  .portal-sidebar-bottom { display: flex; align-items: center; gap: 8px; margin: auto 16px 0; padding: 16px 4px; border-top: 1px solid #edf1f5; color: #94a3b8; font-size: 10px; flex-shrink: 0; }
  .pp-sidebar-workspace-dot { width: 7px; height: 7px; background: #94a3b8; border-radius: 50%; flex-shrink: 0; }
  .pp-sidebar-backdrop { display: none; }
  .pp-sidebar-toggle:focus-visible, .pp-sidebar-close:focus-visible, .portal-shell .portal-sidebar a:focus-visible { outline: 2px solid #60a5fa; outline-offset: 2px; }
  .portal-shell .notification-icon:focus-visible, .portal-shell .portal-profile-toggle:focus-visible, .portal-shell .portal-brand:focus-visible { outline-color: #2563eb !important; }
  .pp-ui-card:not(.has-bg-photo), .pp-ui-card-header, .pp-ui-header { background-image: none !important; }
  .pp-ui-button { background-image: none !important; }
  @media (min-width: 992px) {
    html.pp-sidebar-mini .portal-sidebar-heading { min-height: 26px; padding: 12px; }
    html.pp-sidebar-mini .portal-sidebar-caption, html.pp-sidebar-mini .portal-shell .portal-sidebar .pp-nav-label, html.pp-sidebar-mini .portal-shell .portal-sidebar .pp-nav-chevron, html.pp-sidebar-mini .portal-shell .portal-sidebar .dropdown-menu { display: none !important; }
    html.pp-sidebar-mini .portal-sidebar-nav { padding-inline: 10px; }
    html.pp-sidebar-mini .portal-shell .portal-sidebar .nav-link { justify-content: center; padding: 12px; }
    html.pp-sidebar-mini .portal-sidebar-bottom { justify-content: center; margin-inline: 12px; }
  }
  @media (max-width: 991.98px) {
    html.pp-app-layout body { padding-left: 0 !important; }
    .portal-shell .portal-topbar { padding-inline: 14px; }
    .portal-topbar-left { gap: 10px; }
    .portal-shell .portal-sidebar { width: min(288px, calc(100vw - 48px)); transform: translateX(-100%); transition: transform .2s ease; visibility: hidden; }
    html.pp-mobile-nav-open .portal-shell .portal-sidebar { transform: translateX(0); visibility: visible; }
    html.pp-mobile-nav-open body { overflow: hidden !important; }
    .portal-sidebar-heading { padding: 12px 16px; }
    .pp-sidebar-close { display: inline-flex; }
    .portal-shell .portal-sidebar .nav-link { min-height: 48px; }
    .portal-shell .portal-sidebar .dropdown-item { min-height: 44px; }
    .pp-sidebar-backdrop:not([hidden]) { display: block; position: fixed; inset: var(--pp-topbar-height) 0 0; z-index: 1020; padding: 0; border: 0; background: rgb(15 23 42 / 35%); }
    .portal-shell .portal-topbar-right { gap: 6px; }
    .portal-shell .announcement-pill-text-wrap { display: none; }
    .portal-shell .portal-profile-text { display: none !important; }
    .portal-shell .portal-profile-toggle { padding: 4px; }
    .portal-shell .portal-profile-toggle::after { display: none; }
    .portal-shell .portal-topbar-right > .dropdown { position: static; }
    .portal-shell .portal-notification-menu { width: min(380px, calc(100vw - 24px)); }
  }
  @media (max-width: 991.98px) {
    .portal-shell .portal-brand h3 { font-size: 18px; }
    .portal-shell .portal-sidebar .nav-link { font-size: 14px; }
    .portal-shell .portal-sidebar .dropdown-item { font-size: 13px; }
    .portal-shell .portal-sidebar .nav-link > .pp-nav-icon { font-size: 20px; }
    .portal-shell .portal-sidebar .dropdown-item > .pp-nav-icon { font-size: 16px; }
    .portal-shell .portal-topbar .notification-icon > i,
    .portal-shell .portal-topbar .pp-sidebar-toggle > i { font-size: 19px; }
    .portal-shell .portal-topbar .notification-icon > i { font-size: 26px !important; }
  }
  @media (max-width: 575.98px) {
    .portal-shell .portal-topbar { padding-inline: 12px; gap: 8px; }
    .portal-topbar-left { gap: 8px; }
    .portal-shell .portal-brand-symbol { display: inline-flex; width: 30px; height: 30px; }
    .portal-shell .portal-brand-symbol img { width: 30px; height: 30px; }
    .portal-shell .portal-brand { gap: 7px; min-width: 0; flex-shrink: 1; }
    .portal-shell .portal-brand > div { min-width: 0; }
    .portal-shell .portal-brand h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .portal-shell .portal-brand h3 { font-size: 14px; }
    .portal-shell .portal-brand-kicker { display: none; }
    .pp-sidebar-toggle { width: 44px; height: 44px; }
    .portal-shell .notification-icon, .portal-shell .notification-icon:hover { width: 44px; height: 44px; }
    .portal-shell .portal-profile-toggle { min-width: 44px; min-height: 44px; justify-content: center; }
    .portal-shell .announcement-pill { width: 44px; height: 44px; justify-content: center; }
    .portal-shell .announcement-pill-count { display: none; }
    .portal-shell .portal-topbar-right { gap: 4px; }
    .portal-shell .announcement-pill { padding: 7px; }
  }
  @media (prefers-reduced-motion: reduce) { .portal-shell .portal-sidebar { transition: none; } }
}
@media print { html.pp-app-layout body { padding: 0 !important; } .portal-shell, .portal-sidebar, .pp-sidebar-backdrop { display: none !important; } }
