/* Staff workspace geometry. Does not enter native frames or controlled print documents. */
@media screen {
  html[data-share-backoffice-ui] body.share-backend-layout {
    --staff-space: 16px;
  }
  html[data-share-backoffice-ui] .share-backend-layout :is(main,section,article,form,fieldset,label) {
    min-width: 0;
    box-sizing: border-box;
  }
  html[data-share-backoffice-ui] .share-backend-layout .wr-header-inner {
    grid-template-columns: minmax(0,1fr) auto;
    gap: 20px;
  }
  html[data-share-backoffice-ui] .share-backend-layout .wr-primary-nav { display: none; }
  html[data-share-backoffice-ui] .share-backend-layout .wr-header-actions {
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
  }
  html[data-share-backoffice-ui] .share-backend-layout .wr-header-actions > * {
    min-width: 0;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
  }
  html[data-share-backoffice-ui] .share-backend-layout main :is(
    input:not(:where([type=hidden],[type=checkbox],[type=radio],[type=range],[type=color],[type=button],[type=submit],[type=reset])),select,textarea
  ),
  html[data-share-backoffice-ui] .share-backend-layout dialog :is(input:not(:where([type=hidden],[type=checkbox],[type=radio],[type=range],[type=color],[type=button],[type=submit],[type=reset])),select,textarea) {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #8da4ba;
    border-radius: 6px;
    background: #fff;
    color: #102236;
    font: 400 16px/1.4 Arial,Helvetica,sans-serif;
  }
  html[data-share-backoffice-ui] .share-backend-layout main label > :is(input:not(:where([type=checkbox],[type=radio],[type=hidden])),select,textarea) { margin-top: 6px; }
  html[data-share-backoffice-ui] .share-backend-layout :is(main,dialog) textarea { min-height: 110px; resize: vertical; }
  html[data-share-backoffice-ui] .share-backend-layout :is(main,dialog) button { min-height: 44px; max-width: 100%; }
  html[data-share-backoffice-ui] .share-backend-layout dialog {
    box-sizing: border-box;
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 32px);
    overflow: auto;
    padding: 24px;
  }
  html[data-share-backoffice-ui] .share-backend-layout dialog :is(img,video) { max-width: 100%; }
  html[data-share-backoffice-ui] .share-backend-layout :is(.cf-dialog,.crm-resource-dialog,.user-directory-dialog) > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
  }
  html[data-share-backoffice-ui] .share-backend-layout :is(.cf-dialog,.crm-resource-dialog,.user-directory-dialog) > header h2 { margin: 0; }
  html[data-share-backoffice-ui] .share-backend-layout :is(.cf-dialog,.crm-resource-dialog,.user-directory-dialog) > header button { flex: none; }
  html[data-share-backoffice-ui] .share-backend-layout .share-topbar:has(.fr-brand) .share-product-header-logo { display: none; }
  html[data-share-backoffice-ui] .share-backend-layout .cf-brand { background: white; padding: 8px 12px; border-radius: 6px; height: auto; box-sizing: content-box; }
  html[data-share-backoffice-ui] .share-backend-layout .share-admin-deck-tabs { min-width: 0; max-width: 100%; }
  html[data-share-backoffice-ui] .share-backend-layout .share-admin-deck-tab { min-width: 0; white-space: normal; }
  html[data-share-backoffice-ui] .share-backend-layout .training-schedule-overview-scroll { position: relative; min-width: 0; max-width: 100%; }
  html[data-share-backoffice-ui] .share-backend-layout .share-ai-usage-controls { align-items: end; }
  html[data-share-backoffice-ui] .share-backend-layout .share-ai-usage-controls > label { min-width: 0; }
  html[data-share-backoffice-ui] .share-backend-layout [data-iosh-admin] form {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr));
    align-items: end;
    gap: 16px;
    margin: 20px 0;
  }
  html[data-share-backoffice-ui] .share-backend-layout [data-iosh-admin] form > label { display: block; margin: 0; }
  html[data-share-backoffice-ui] .share-backend-layout .share-case-shortcut {
    margin: 16px 0;
    padding: 18px 20px;
    border: 1px solid #cdd9e4;
    border-radius: 8px;
    background: white;
  }
  html[data-share-backoffice-ui] .share-backend-layout .share-case-shortcut h2 { margin: 0 0 8px; font-size: 20px; }
  html[data-share-backoffice-ui] .share-backend-layout .share-case-shortcut p { margin: 0 0 12px; font-size: 14px; line-height: 1.5; max-width: 85ch; }
  html[data-share-backoffice-ui] .share-backend-layout .share-case-shortcut button {
    padding: 10px 16px;
    border: 1px solid #123e68;
    border-radius: 6px;
    color: white;
    background: #123e68;
    font: 700 14px/1.4 Arial,sans-serif;
  }
  html[data-share-backoffice-ui] .share-backend-layout .share-case-shortcut > a { display: inline-block; margin: 10px 0 0 16px; font-size: 14px; }
  html[data-share-backoffice-ui] .share-backend-layout .share-support-panel {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 14px 18px;
    padding: 20px;
  }
  html[data-share-backoffice-ui] .share-backend-layout .share-support-panel > :is(h2,p,details) { grid-column: 1/-1; margin: 0; }
  html[data-share-backoffice-ui] .share-backend-layout .share-support-panel > label { margin: 0; }
  html[data-share-backoffice-ui] .share-backend-layout .share-support-panel > button { justify-self: start; }
  @media(min-width:801px) and (max-width:1100px) {
    html[data-share-backoffice-ui] .share-backend-layout .wr-header-inner { grid-template-columns: minmax(0,1fr); }
    html[data-share-backoffice-ui] .share-backend-layout .wr-header-actions { justify-self: stretch; justify-content: flex-start; }
  }
  @media(max-width:800px) {
    html[data-share-backoffice-ui] .share-backend-layout .wr-header-inner { grid-template-columns: repeat(var(--share-header-utility-columns,4),minmax(0,1fr)); }
  }
  @media(max-width:760px) {
    html[data-share-backoffice-ui] .share-backend-layout .wr-header-actions { gap: 6px; }
    html[data-share-backoffice-ui] .share-backend-layout .wr-header-actions :is(.wr-header-ai,.wr-signin,.wr-navigation-join,.share-header-basket) { padding-inline: 8px; font-size: 12px; white-space: nowrap; overflow-wrap: normal; }
    html[data-share-backoffice-ui] .share-backend-layout .share-admin-deck-tabs { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; }
    html[data-share-backoffice-ui] .share-backend-layout .share-admin-deck-tab { width: 100%; text-align: left; }
    html[data-share-backoffice-ui] .share-backend-layout .share-support-panel { grid-template-columns: minmax(0,1fr); }
    html[data-share-backoffice-ui] .share-backend-layout .share-case-shortcut > a { display: block; margin-left: 0; }
    html[data-share-backoffice-ui] .share-backend-layout dialog { padding: 18px; }
  }
}
