.pos-authenticated {
  min-height: 100vh;
  color-scheme: light;
  color: #25192b;
  background: #f7f3ef;
  --pos-ink: #25192b;
  --pos-muted: #5b4a60;
  --pos-line: #e3d8e2;
  --pos-paper: #fffdfa;
  --pos-accent: #67326e;
}

.pos-authenticated .masthead {
  padding-block: .8rem;
  color: #fff6fa;
  background: #2e1a37;
  border-bottom-color: #673d6e;
}

.pos-authenticated .masthead strong { font-size: 1.22rem; }
.pos-authenticated .masthead > div span { font-size: .85rem; }
.pos-authenticated .masthead .mode { background: #4e335b; border: 1px solid #80628b; font-size: .8rem; }
.pos-authenticated .masthead #logout { background: #3d2648; border-color: #87668e; font-size: .84rem; }
.pos-authenticated #operation-status { color: var(--pos-muted); }
.pos-authenticated main { max-width: 76rem; padding: 1.1rem clamp(.85rem, 2.4vw, 1.75rem) 2.5rem; }

#workspace.pos-organized > [data-admin-panel]:not([data-admin-active]) { display: none; }
.pos-authenticated #workspace :focus-visible { outline-color: #754483; }
.pos-authenticated #workspace :is(h1, h2)[tabindex="-1"]:focus { outline: 0; }

.pos-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: .65rem 1rem;
  margin: .55rem 0 1.8rem;
  padding-bottom: 1.06rem;
  border-bottom: 1px solid var(--pos-line);
}

.pos-hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.35rem, 5.3vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 700;
}

.pos-role { margin: 0; padding: .33rem .7rem; border: 1px solid #dac7da; border-radius: 999px; color: #563662; background: #f1e8f2; font-size: .81rem; font-weight: 730; }
.pos-group + .pos-group { margin-top: 1.7rem; }
.pos-group h2 { margin-bottom: .63rem; font-size: 1.12rem; letter-spacing: -.02em; }
.pos-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .72rem; }

.pos-grid .pos-tile {
  --tile-fill: #e7d4ef;
  --tile-edge: #c9a8d6;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 9.45rem;
  min-width: 0;
  padding: 4.75rem 2.85rem 1rem 1rem;
  border: 1px solid var(--tile-edge);
  border-radius: 1rem;
  background: linear-gradient(145deg, #ffffff38, transparent 72%), var(--tile-fill);
  color: #24172b;
  text-decoration: none;
  box-shadow: 0 2px 0 #3c20371a;
  isolation: isolate;
  touch-action: manipulation;
  transition: translate .14s ease, box-shadow .14s ease, filter .14s ease;
}

.pos-grid-service .pos-tile { min-height: 10.55rem; padding-bottom: 1.13rem; }
.pos-grid .pos-tile strong { position: relative; margin-bottom: .15rem; font-size: clamp(1.03rem, 1.9vw, 1.38rem); line-height: 1.12; letter-spacing: -.025em; }
.pos-grid-service .pos-tile strong { font-size: clamp(1.05rem, 2.3vw, 1.65rem); }
.pos-grid .pos-tile small { position: relative; color: #38273b; font-size: .85rem; line-height: 1.26; font-weight: 570; }
.pos-tile-arrow {
  position: absolute;
  inset-inline-end: .82rem;
  inset-block-end: .92rem;
  display: grid;
  place-content: center;
  width: 1.76rem;
  aspect-ratio: 1;
  border: 1px solid #2b18363a;
  border-radius: 50%;
  background: #ffffff47;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

@media (hover: hover) {
  .pos-grid .pos-tile:hover { translate: 0 -3px; box-shadow: 0 6px 0 #3c203728, 0 8px 20px #3c20371a; filter: saturate(1.08); }
}
.pos-grid .pos-tile:active { translate: 0 1px; box-shadow: none; }

.pos-tile[data-tone="tomate"] { --tile-fill: #f58c79; --tile-edge: #dc6f5f; }
.pos-tile[data-tone="menthe"] { --tile-fill: #a0dac0; --tile-edge: #70b799; }
.pos-tile[data-tone="pervenche"] { --tile-fill: #aebdf3; --tile-edge: #889cdb; }
.pos-tile[data-tone="miel"] { --tile-fill: #ffcf77; --tile-edge: #dfa958; }
.pos-tile[data-tone="rose"] { --tile-fill: #f1bacd; --tile-edge: #d498b1; }
.pos-tile[data-tone="lagon"] { --tile-fill: #9edbdc; --tile-edge: #71b8bd; }
.pos-tile[data-tone="bleu"] { --tile-fill: #b9d9fa; --tile-edge: #8eb3d9; }
.pos-tile[data-tone="lilas"] { --tile-fill: #d7c3f2; --tile-edge: #b79fd6; }
.pos-tile[data-tone="sable"] { --tile-fill: #f2d3a7; --tile-edge: #d3ae7d; }
.pos-tile[data-tone="peche"] { --tile-fill: #fcc2a2; --tile-edge: #e3a180; }
.pos-tile[data-tone="pistache"] { --tile-fill: #c9db9e; --tile-edge: #a9bf79; }

.pos-art {
  position: absolute;
  inset-block-start: .24rem;
  inset-inline-end: .42rem;
  z-index: -1;
  width: clamp(4.45rem, 9vw, 6.15rem);
  aspect-ratio: 1;
  background: url('/admin/assets/tuiles-pizza-baladzo.webp') var(--art-x, 0%) var(--art-y, 0%) / 400% 300% no-repeat;
  pointer-events: none;
}

.pos-grid-service .pos-art { width: clamp(5.2rem, 10vw, 7.1rem); }
.pos-art-service { --art-x: 33.33333%; }
.pos-art-preparation { --art-x: 66.66667%; }
.pos-art-requests { --art-x: 100%; }
.pos-art-notices, .pos-art-accounting, .pos-art-users, .pos-art-bank { --art-y: 50%; }
.pos-art-accounting { --art-x: 33.33333%; }
.pos-art-users { --art-x: 66.66667%; }
.pos-art-bank { --art-x: 100%; }
.pos-art-connections, .pos-art-tutorials, .pos-art-demo { --art-y: 100%; }
.pos-art-tutorials { --art-x: 33.33333%; }
.pos-art-demo { --art-x: 66.66667%; }

#workspace .pos-nav {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-wrap: nowrap;
  gap: .4rem;
  overflow: auto;
  margin: 0 0 1rem;
  padding: .42rem;
  border: 1px solid var(--pos-line);
  border-radius: .8rem;
  background: #fffaf8;
  scrollbar-width: thin;
}

#workspace .pos-nav a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 44px;
  padding: .42rem .65rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  color: #422749;
  background: #f4ebf3;
  text-decoration: none;
  font-size: .85rem;
  font-weight: 680;
  white-space: nowrap;
}

#workspace .pos-nav a:hover, #workspace .pos-nav a[aria-current="page"] { border-color: #b397ba; background: #eaddf0; }
#workspace .pos-nav .pos-nav-home { color: #fff; background: #603568; }
#workspace .pos-nav .pos-nav-home:hover { background: #754382; }
.pos-shortcut-heading { margin: .3rem 0 1rem; }
.pos-guide-status { margin: 0 0 .85rem; padding: .55rem .75rem; border: 1px solid #94bca4; border-radius: .55rem; color: #23452e; background: #e6f5e9; }
.pos-guide-status:empty { display: none; }

.pos-authenticated #workspace > .panel, .pos-authenticated #connexions {
  border: 1px solid var(--pos-line);
  border-radius: .95rem;
  color: var(--pos-ink);
  background: var(--pos-paper);
}

.pos-authenticated #workspace > .panel:not(#modes-tutoriels) { color-scheme: light; }
.pos-authenticated #workspace > .panel:not(#modes-tutoriels) :is(input, select, .record, #order-detail) { border-color: #d6c8d7; }
.pos-authenticated #workspace > .panel:not(#modes-tutoriels) :is(input, select) { background: #fcfaf8; }
.pos-authenticated #workspace > .panel:not(#modes-tutoriels) button { background: #603568; border-color: #603568; color: white; }
.pos-authenticated #workspace > .panel:not(#modes-tutoriels) a { color: #683570; }
.pos-authenticated #workspace > .panel:not(#modes-tutoriels) .record { background: #f8f3f7; }
.pos-authenticated #workspace > #modes-tutoriels, .pos-authenticated #connexions {
  border-color: #674b72;
  color: #fff4fa;
  background: #291b30;
  color-scheme: dark;
}

.pos-authenticated #connexions { padding: clamp(.9rem, 3vw, 1.65rem); }
.pos-authenticated #workspace > #modes-tutoriels :focus-visible, .pos-authenticated #connexions :focus-visible { outline-color: #ffcf88; }

#workspace:is([data-admin-page="comptabilite"], [data-admin-page="demonstration"]) #modes-tutoriels > :is(.section-heading, #mode-directory, .mode-tutorial-section) { display: none; }
#workspace:is([data-admin-page="comptabilite"], [data-admin-page="demonstration"]) #mode-result > .mode-view { margin-top: 0; }

@media (max-width: 44rem) {
  .pos-hero { margin-bottom: 1.3rem; }
  .pos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .pos-grid .pos-tile { min-height: 8.5rem; padding: 3.75rem 1.67rem .72rem .74rem; border-radius: .77rem; }
  .pos-grid .pos-tile-primary { grid-column: 1 / -1; min-height: 7.65rem; padding-top: 2rem; padding-right: 6.4rem; }
  .pos-grid .pos-tile strong { font-size: 1rem; }
  .pos-grid .pos-tile-primary strong { font-size: 1.35rem; }
  .pos-grid .pos-tile small { font-size: .75rem; }
  .pos-grid .pos-art { width: 4.6rem; inset-block-start: .05rem; inset-inline-end: .26rem; }
  .pos-grid .pos-tile-primary .pos-art { width: 6.55rem; inset-block-start: .05rem; inset-inline-end: 1.4rem; }
  .pos-grid .pos-tile-arrow { width: 1.2rem; inset-inline-end: .35rem; inset-block-end: .56rem; font-size: .81rem; }
  .pos-group + .pos-group { margin-top: 1.25rem; }
  .pos-group h2 { font-size: 1.02rem; }
}

@media (max-width: 23rem) {
  .pos-grid .pos-tile:not(.pos-tile-primary) { padding-inline-end: 1.05rem; }
  .pos-grid .pos-tile:not(.pos-tile-primary) .pos-tile-arrow { display: none; }
  .pos-authenticated .masthead { gap: .45rem .65rem; }
}

@media (prefers-reduced-motion: reduce) {
  .pos-grid .pos-tile { transition: none; }
}
