/* WordPress shell for the shared PSC Planner interface. */
body.pwp-web-page {
  padding-top: 0 !important;
  overflow: hidden !important;
  background: var(--pwp-bg, #f2f6f9) !important;
}
body.pwp-web-page :is(
  header.site-header,.site-header,.wp-site-blocks>header,
  footer.site-footer,.site-footer,.wp-site-blocks>footer,
  #masthead,#colophon,.wp-block-template-part
) { display: none !important; }
body.pwp-web-page .wp-site-blocks,
body.pwp-web-page :is(main,.site-main,.site-content,.content-area,.entry-content,.wp-block-post-content) {
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.pwp-web-page #pwp-root.pwp-app {
  position: fixed !important;
  z-index: 99990 !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: none !important;
  margin: 0 !important;
  overflow: hidden !important;
}
body.admin-bar.pwp-web-page #pwp-root.pwp-app {
  top: 32px !important;
  height: calc(100vh - 32px) !important;
  height: calc(100dvh - 32px) !important;
}
body.pwp-web-page #pwp-root.pwp-app > .pwp-layout {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}
body.pwp-web-page .pwp-layout,
body.pwp-web-page .pwp-sidebar { height: 100%; min-height: 0; }
body.pwp-web-page .pwp-nav {
  align-content: start !important;
  grid-auto-rows: max-content !important;
  row-gap: clamp(6px, 1vh, 12px) !important;
}
body.pwp-web-page .pwp-content { overflow: auto; }
body.pwp-web-page .psc-window-caption { display: none !important; }

/* Centre the public sign-in surface in the usable browser viewport. The
   WordPress theme may wrap the shortcode in several full-width containers,
   so centring is anchored to the main page and repeated at the content edge. */
body.pwp-web-page:has(.pwp-login-shell) {
  min-height: 100vh !important;
  min-height: 100dvh !important;
  overflow: auto !important;
}
body.pwp-web-page:has(.pwp-login-shell) main:has(.pwp-login-shell) {
  display: grid !important;
  width: 100% !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  place-items: center !important;
}
/* The site theme wraps shortcode content in a shrink-to-fit .section/.container.
   A full-width login shell must not inherit that narrow grid-item width. */
body.pwp-web-page main:has(.pwp-login-shell) > .section,
body.pwp-web-page .container.content:has(.pwp-login-shell) {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.admin-bar.pwp-web-page:has(.pwp-login-shell) main:has(.pwp-login-shell) {
  min-height: calc(100vh - 32px) !important;
  min-height: calc(100dvh - 32px) !important;
}
body.pwp-web-page :is(.entry-content,.wp-block-post-content):has(.pwp-login-shell) {
  display: grid !important;
  width: 100% !important;
  min-height: inherit !important;
  place-items: center !important;
}
body.pwp-web-page .pwp-login-shell {
  width: min(1320px, calc(100vw - 48px)) !important;
  height: min(720px, calc(100dvh - 48px)) !important;
  min-height: 560px !important;
  max-height: 720px !important;
  margin: 24px auto !important;
}
@media (max-height: 680px) and (min-width: 901px) {
  body.pwp-web-page .pwp-login-shell { min-height: 0 !important; }
  body.pwp-web-page .pwp-login-panel { padding-top: 28px !important; padding-bottom: 24px !important; }
  body.pwp-web-page .pwp-login-copy { padding-top: 24px !important; padding-bottom: 28px !important; }
  body.pwp-web-page .pwp-login-copy h1 { font-size: 38px !important; }
  body.pwp-web-page .pwp-login-features { margin-top: 20px !important; }
}
@media (max-width: 900px) {
  body.pwp-web-page .pwp-login-shell {
    width: min(520px, calc(100vw - 28px)) !important;
    height: auto !important;
    min-height: min(650px, calc(100dvh - 28px)) !important;
    max-height: none !important;
    margin: 14px auto !important;
  }
}

/* Shield the application from common WordPress theme image and form rules. */
body.pwp-web-page .pwp-app img { max-width: 100%; height: auto; }
body.pwp-web-page .pwp-brand__company-logo { width: 100%; height: 84px; object-fit: contain; }
body.pwp-web-page .pwp-directory-tools label { min-height:46px; padding:0 14px !important; box-sizing:border-box; }
body.pwp-web-page .pwp-directory-tools input[type="search"] { min-height:28px !important; padding:0 !important; line-height:28px !important; box-sizing:border-box !important; }
body.pwp-web-page .pwp-service-active-toggle:focus-within { outline:0 !important; box-shadow:none !important; }
body.pwp-web-page .pwp-service-active-toggle input[type="checkbox"] { outline:0 !important; box-shadow:none !important; }

/* Directory toolbar must remain one clean surface even when the WordPress
   theme applies its own input backgrounds and compact select paddings. */
body.pwp-web-page #pwp-root .pwp-directory-tools {
  gap:14px !important;
  padding:9px 16px !important;
}
body.pwp-web-page #pwp-root .pwp-directory-tools > label {
  height:46px !important;
  min-height:46px !important;
  max-height:46px !important;
  padding:0 14px !important;
  border:1px solid var(--pwp-line) !important;
  border-radius:13px !important;
  background:var(--pwp-field,var(--pwp-panel)) !important;
  box-shadow:none !important;
  overflow:hidden;
}
body.pwp-web-page #pwp-root .pwp-directory-tools > label > svg {
  display:block !important;
  flex:0 0 18px !important;
  width:18px !important;
  height:18px !important;
}
body.pwp-web-page #pwp-root .pwp-directory-tools > label > input[type="search"] {
  width:100% !important;
  height:28px !important;
  min-height:28px !important;
  max-height:28px !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  outline:0 !important;
  color:var(--pwp-text) !important;
  background:transparent !important;
  background-color:transparent !important;
  background-image:none !important;
  box-shadow:none !important;
  appearance:none !important;
}
body.pwp-web-page #pwp-root .pwp-directory-tools > select {
  min-width:270px !important;
  height:46px !important;
  min-height:46px !important;
  max-height:46px !important;
  margin:0 !important;
  padding:0 44px 0 16px !important;
  border:1px solid var(--pwp-line) !important;
  border-radius:13px !important;
  color:var(--pwp-text) !important;
  background-color:var(--pwp-field,var(--pwp-panel)) !important;
  box-sizing:border-box !important;
}
body.pwp-web-page #pwp-root .pwp-directory-tools > label:focus-within,
body.pwp-web-page #pwp-root .pwp-directory-tools > select:focus {
  border-color:var(--pwp-accent,#3896cc) !important;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--pwp-accent,#3896cc) 16%,transparent) !important;
}
@media(max-width:760px){
  body.pwp-web-page #pwp-root .pwp-directory-tools { flex-direction:column; }
  body.pwp-web-page #pwp-root .pwp-directory-tools > select { width:100% !important; min-width:0 !important; }
}
body.pwp-web-page .pwp-team-view .pwp-team-avatar {
  width: 48px !important;
  height: 48px !important;
  flex: 0 0 48px !important;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 50% !important;
}
body.pwp-web-page .pwp-availability__list .pwp-team-avatar {
  width: 34px !important;
  height: 34px !important;
  flex: 0 0 34px !important;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 11px !important;
}
body.pwp-web-page .pwp-team-avatar img {
  background: #eef2f5 !important;
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  max-width: none !important;
  aspect-ratio: 1 / 1;
  object-fit: cover !important;
  object-position: center;
  border-radius: inherit;
}
body.pwp-web-page .pwp-balance__avatar,
body.pwp-web-page .pwp-balance__avatar img { width: 34px !important; height: 34px !important; }
body.pwp-web-page .pwp-balance__avatar img { display: block; object-fit: cover; border-radius: 50%; }
body.pwp-web-page .pwp-app :is(button,input,select,textarea) {
  margin: 0;
  font-family: inherit;
  line-height: normal;
  text-transform: none;
}

/* Final calendar seal layer, after the shared desktop layout. */
body.pwp-web-page .pwp-calendar .pwp-job-card { padding-right: 39px !important; }
body.pwp-web-page .pwp-calendar .pwp-job-card .pwp-job-status-mark {
  position: absolute !important;
  top: 6px !important;
  right: 6px !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 9px !important;
}
html:is([data-psc-theme="night"],[data-psc-theme="dark_graphite"])[data-psc-style=""] body.pwp-web-page .pwp-job-status-mark--planned {
  color: #e1e5e7;
  border-color: #686e72;
  background: linear-gradient(145deg,#555b5f,#34383b);
}

@media (max-width: 900px) {
  body.pwp-web-page { overflow: auto !important; }
  body.pwp-web-page #pwp-root.pwp-app { min-height: 100dvh !important; height: auto !important; overflow: visible !important; }
}
@media (max-width: 782px) {
  body.admin-bar.pwp-web-page #pwp-root.pwp-app {
    top: 46px !important;
    height: calc(100vh - 46px) !important;
    height: calc(100dvh - 46px) !important;
  }
}
body.pwp-web-page #pwp-root :is(input,textarea)::placeholder{color:var(--pwp-muted)!important;-webkit-text-fill-color:var(--pwp-muted)!important;opacity:.52!important;font-weight:400!important;font-style:normal!important}
body.pwp-web-page #pwp-root .pwp-jobs-client-filter>label,
body.pwp-web-page #pwp-root .pwp-directory-tools>label{overflow:hidden!important;background:var(--pwp-panel)!important;background-image:none!important}
body.pwp-web-page #pwp-root .pwp-jobs-client-filter__field>input[type="search"],
body.pwp-web-page #pwp-root .pwp-directory-tools>label>input[type="search"]{width:100%!important;height:28px!important;min-height:28px!important;margin:0!important;padding:0!important;text-indent:0!important;border:0!important;border-radius:0!important;background:transparent!important;background-color:transparent!important;background-image:none!important;box-shadow:none!important;line-height:28px!important;-webkit-appearance:none!important;appearance:none!important}
body.pwp-web-page #pwp-root .pwp-jobs-client-filter__field>input[type="search"]:is(:focus,:focus-visible){border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important}
body.pwp-web-page #pwp-root .pwp-jobs-client-filter__field>input[type="search"]::placeholder,
body.pwp-web-page #pwp-root .pwp-directory-tools>label>input[type="search"]::placeholder{padding:0!important;text-indent:0!important}
body.pwp-web-page #pwp-root .pwp-director-table{margin-top:14px!important}
