/* Current screen presentation; the exact supplied poster remains unmodified.
   Ink crop: x170..1520, y245..701 within1694x928. Print/archive styles stay original. */
@media screen {
  .creaso-cuisine-hub-groups {
    grid-column:1 / -1;
    min-width:0;
  }
  .creaso-cuisine-hub-groups > .subsection-header:first-child {
    margin-top:0;
    padding-top:0;
  }
  .creaso-cuisine-hub-groups > .creaso-cuisine-dash-mid + .subsection-header {
    margin-top:var(--space-lg);
  }
  :root {
    --pat-anths-logo-dark:url('/brand/patanths-copilote-fb-a86881c831bf.png');
    --pat-current-logo-image:url('/brand/patanths-copilote-fb-a86881c831bf.png');
    --pat-current-logo-aspect:1350 / 456;
    --pat-current-logo-size:125.481481% 203.508772%;
    --pat-current-logo-position:49.418605% 51.906780%;
  }
  .layout > #creaso-app-sidebar .pat-anths-logo--sidebar,
  .layout > .main #app .pat-anths-logo--home,
  .layout > .main #app .pat-anths-logo--doc,
  .layout > .main #app .pat-anths-logo--loader {
    background-image:var(--pat-current-logo-image)!important;
    background-repeat:no-repeat!important;
    background-size:var(--pat-current-logo-size)!important;
    background-position:var(--pat-current-logo-position)!important;
    background-color:transparent!important;
    aspect-ratio:var(--pat-current-logo-aspect)!important;
    height:auto!important;
    min-height:0!important;
  }
  .layout > #creaso-app-sidebar .pat-anths-logo--sidebar {width:100%;max-width:220px;}
  .layout > .main #app .pat-anths-logo--home {width:min(100%,420px);max-width:100%;}
  .layout > .main #app .pat-anths-logo--doc {width:132px;max-width:100%;min-width:0;}
  .layout > .main #app .pat-anths-logo--loader {width:min(100%,220px);max-width:100%;}
  .layout > #creaso-app-sidebar > .side-note::after {
    content:'Pat’Anths • Copilote et Gestion F&B\AMulti‑établissements • Suisse (CHF)';
  }
  .top .brand > .current-brand-logo {
    display:block;
    width:min(220px,48vw);
    height:74px;
    max-width:100%;
    object-fit:cover;
    object-position:50% 52%;
  }
}
@media screen and (max-width:880px),screen and (max-height:659px) {
  .layout > #creaso-app-sidebar .pat-anths-logo--sidebar {max-width:170px;}
}

/* The former document loader's floating logo, adapted to the shared status.
   The current brand image is reused and the notice follows the active read. */
@media screen {
  body > p[data-business-session-loading],
  .layout > .main #app > p[data-business-session-loading] {
    position:static;
    justify-content:center;
    margin:clamp(2rem,12vh,7rem) auto 0;
  }
  #app .business-startup-issue {
    max-width:38rem;
    margin:clamp(1rem,8vh,5rem) auto 0;
    padding:clamp(1rem,4vw,1.5rem);
  }
  .business-startup-issue .back-link {margin-inline-end:.75rem;}
  #staff-pin[data-masked-code] {-webkit-text-security:disc;}
  p:is([data-business-loading], [data-module-loading])::before {
    content:none;
    animation:none;
  }
  :is(
    p[data-business-session-loading],
    p[data-business-loading]:has(+ [data-business-content][aria-busy="true"]),
    [data-module-content][aria-busy="true"] + p[data-module-loading],
    #session-check:has(> #session-check-retry[hidden]) > #session-check-message,
    [data-pat-anths-document-loading]:not([hidden])
  )::before {
    content:"";
    flex:0 0 auto;
    width:4.25rem;
    height:auto;
    aspect-ratio:var(--pat-current-logo-aspect);
    border:0;
    border-radius:2px;
    background:var(--pat-current-logo-image) var(--pat-current-logo-position) / var(--pat-current-logo-size) no-repeat;
  }
  :is(#session-check:has(> #session-check-retry[hidden]) > #session-check-message, [data-pat-anths-document-loading]:not([hidden])) {
    display:flex;
    align-items:center;
    gap:.65rem;
  }
  .layout > .main #app .creaso-doc-loader .pat-anths-logo--loader {
    animation:none;
  }
}
@media screen and (prefers-reduced-motion:no-preference) {
  :is(
    p[data-business-session-loading],
    p[data-business-loading]:has(+ [data-business-content][aria-busy="true"]),
    [data-module-content][aria-busy="true"] + p[data-module-loading],
    #session-check:has(> #session-check-retry[hidden]) > #session-check-message,
    [data-pat-anths-document-loading]:not([hidden])
  )::before,
  .layout > .main #app .creaso-doc-loader:not(.creaso-doc-loader--reduced)[aria-busy="true"] .pat-anths-logo--loader {
    animation:pat-anths-logo-float 1.8s ease-in-out infinite;
  }
}
@keyframes pat-anths-logo-float {
  0%, 100% {transform:perspective(240px) translateY(0) rotateX(5deg) rotateY(-8deg);}
  50% {transform:perspective(240px) translateY(-3px) rotateX(-5deg) rotateY(8deg);}
}

@media screen {
  .staff-dashboard__head {margin-bottom:16px;}
  .staff-dashboard__head .staff-dashboard__hint,
  #staff-message + .staff-dashboard__hint,
  body.pat-network-shell #app .staff-dashboard__head .page-subtitle {
    display:none;
  }
  .staff-dashboard__layout {
    grid-template-columns:minmax(0,1fr) minmax(278px,32%);
    gap:16px;
  }
  #app .staff-dashboard__profiles {
    grid-template-columns:repeat(auto-fill,minmax(min(100%,132px),1fr));
    gap:10px;
  }
  #app .staff-dashboard .staff-profile {
    min-height:88px;
    max-width:190px;
    padding:9px 10px;
    overflow-wrap:anywhere;
  }
  .staff-profile__avatar {
    width:28px;
    height:28px;
    margin-bottom:5px;
    font-size:.76rem;
  }
  .staff-profile__name {font-size:.85rem;line-height:1.2;margin-bottom:0;}
  .staff-profile__job,.staff-profile__scope {font-size:.74rem;line-height:1.2;margin-top:3px;}

  body.pat-network-shell #app :is(
    .topbar,.staff-dashboard__head,.creaso-cuisine-inline-dochead,.creaso-salle-inline-dochead
  ) .page-title {
    font-size:1.125rem!important;
    line-height:1.25;
  }
  body.pat-network-shell #app :is(
    .topbar,.creaso-cuisine-inline-dochead,.creaso-salle-inline-dochead
  ) .page-subtitle:not(.creaso-rh-plan-context-line):not(:has(button,a,[id])) {
    display:none;
  }
  body.pat-network-shell #app .topbar:has(
    + .section-panel :is(.creaso-salle-ops-wrap,.creaso-cuisine-hub-groups,.creaso-rh-ops-grid,#creaso-rh-planning-archives-root),
    + .creaso-rh-entry-workspace,
    + #fin-dashboard-section
  ),
  body.pat-network-shell #app #pat-rh-new > .topbar:has(+ .section-panel > .section-panel-header) {
    justify-content:flex-end;
    & > div:has(> .page-title + .page-subtitle) {display:none;}
  }

  :is(#app,main) input:is([type="date"],[type="month"],[type="week"],[type="datetime-local"]) {
    color-scheme:dark;
  }
  :is(#app,main) input:is([type="date"],[type="month"],[type="week"],[type="datetime-local"])::-webkit-calendar-picker-indicator {
    opacity:1;
  }
}

/* Field contrast takes precedence over earlier screen rules in the original layouts. */
@layer pat-screen-fields {
  @media screen {
    :is(#app,main) input:is([type="date"],[type="month"],[type="week"],[type="datetime-local"]),
    body.pat-network-shell #app :is(input:not([type]),input:is(
      [type="text"],[type="number"],[type="email"],[type="tel"],[type="url"],[type="search"],[type="password"],[type="time"]
    ),select,textarea):enabled {
      border:1px solid #f4f5f7!important;
      &:focus {
        border-color:#ef4353!important;
        outline:1px solid #ef4353!important;
        outline-offset:0!important;
      }
    }
  }
}
@media screen and (max-width:760px) {
  .staff-dashboard__layout {grid-template-columns:minmax(0,1fr);}
}
@media screen {
  @container (max-width:635px) {
    .staff-dashboard__layout {grid-template-columns:minmax(0,1fr);}
    #app .staff-dashboard__profiles {grid-template-columns:repeat(auto-fill,minmax(min(100%,116px),1fr));}
  }
}
