/* try-it panel, matching the look of the NAM admin */
.adm { display: grid; grid-template-columns: 180px 1fr; max-width: 1040px; margin: 0 auto; border: 1px solid #e3e9e9; border-radius: 18px; overflow: hidden; background: #f3f8f8; color: #2c302e; text-align: left; font-size: 15px; box-shadow: 0 40px 70px -45px rgba(0, 0, 0, .45); }
.adm button, .adm input, .adm select { font: 500 14px "BVP", system-ui, sans-serif; color: inherit; }
.adm button { cursor: pointer; }
.adm button:disabled { cursor: default; }
.adm h3 { margin: 0; }
.adm :focus-visible { outline: 2px solid #d8573a; outline-offset: 2px; }
.na__side { display: flex; flex-direction: column; gap: 4px; padding: 22px 14px 14px; border-right: 1px solid #e3e9e9; background: #fff; }
.na__logo { width: 62px; height: auto; margin: 0 8px 22px; }
.na__link { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border: 0; border-radius: 9px; background: none; text-align: left; transition: background .2s, color .2s; }
.na__link:hover { background: #f3f8f8; }
.na__link[aria-pressed="true"] { color: #c8442a !important; background: #fdf0ec; }
.na__link svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.na__link--settings { margin-top: auto; }
.na__link--reset { font-size: 13px !important; color: #7a807d !important; }
.na__main { display: flex; flex-direction: column; gap: 14px; min-height: 560px; min-width: 0; padding: 30px 26px 8px; }
.na__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.na__title { font-size: 30px; font-weight: 600; letter-spacing: -.03em; line-height: 1.2; }
.na__seg { display: flex; gap: 2px; padding: 3px; border-radius: 11px; background: #e9efef; }
.na__seg button { display: flex; align-items: center; gap: 7px; padding: 8px 13px; border: 0; border-radius: 9px; background: none; color: #6d7471; }
.na__seg button[aria-pressed="true"] { background: #fff; color: #2c302e; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.na__seg i { font-style: normal; font-size: 12px; opacity: .7; }
.na__input { padding: 10px 12px; border: 1px solid #dde4e4; border-radius: 9px; background: #fff; }
.na__find { width: 100%; max-width: 270px; }
.na__tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; align-items: start; }
.na__ticket { border: 1px solid #e3e9e9; border-radius: 13px; overflow: hidden; background: #fff; box-shadow: 0 4px 14px -10px rgba(0, 0, 0, .3); animation: naIn .45s var(--ease); }
@keyframes naIn { from { transform: translateY(10px) scale(.97); } }
.na__ticket header { display: flex; justify-content: space-between; align-items: flex-end; padding: 10px 13px; background: #fdf0ec; }
.na__ticket header strong { font-size: 20px; color: #c8442a; }
.na__ticket header div { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.na__ticket header small { font-size: 11px; color: #7a807d; }
.na__ticket header time { font-size: 18px; font-weight: 600; }
.na__lines { padding: 12px 13px; list-style: none; }
.na__lines li { display: flex; gap: 10px; margin-bottom: 4px; }
.na__lines em { display: block; font-style: normal; font-size: 13px; color: #c8442a; }
.na__foot { display: flex; border-top: 1px solid #eef2f2; }
.na__tap, .na__ok { flex: 1; padding: 12px; border: 0; background: #fff; font-weight: 600 !important; }
.na__tap:hover { background: #f3f8f8; }
.na__ok { background: #2f8a55; color: #fff !important; }
.na__btn { padding: 10px 16px; border: 1px solid #d8573a; border-radius: 9px; background: #d8573a; color: #fff !important; font-weight: 600 !important; transition: filter .2s, transform .2s; }
.na__btn:hover { filter: brightness(.94); }
.na__btn:active { transform: scale(.97); }
.na__btn--line { align-self: flex-start; background: #fff; color: #c8442a !important; }
.na__btn--grey { background: #fff; border-color: #dde4e4; color: #2c302e !important; }
.na__btn--end { align-self: flex-end; }
.na__status, .na__state { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: 13px; font-weight: 600; }
.na__status { padding: 7px 13px; border: 1px solid #e3e9e9; border-radius: 99px; background: #fff; }
.na__status::before, .na__state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3fae6a; }
.na__status.is-off::before, .na__state.is-off::before { background: #d8573a; }
.na__stock { display: grid; grid-template-columns: 130px 1fr; gap: 14px; align-items: start; }
.na__cats { display: flex; flex-direction: column; gap: 2px; padding: 5px; border: 1px solid #e3e9e9; border-radius: 12px; background: #fff; }
.na__cats button { padding: 9px 10px; border: 0; border-radius: 8px; background: none; text-align: left; color: #6d7471; }
.na__cats button[aria-pressed="true"] { background: #fdf0ec; color: #c8442a; }
.na__dishes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; align-items: start; }
.na__dish { border: 1px solid #e3e9e9; border-radius: 13px; overflow: hidden; background: #fff; }
.na__dish-top { display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 12px; border: 0; background: none; text-align: left; }
.na__dish-top span { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.na__dish-top small { font-size: 12px; color: #7a807d; line-height: 1.35; }
.na__dish-top strong { margin-top: 5px; font-size: 13px; }
.na__dish-top i { padding: 2px 8px; border-radius: 6px; background: #e8f4ec; color: #237043; font-style: normal; font-size: 11px; font-weight: 600; }
.na__dish.is-sold i { background: #fdf0ec; color: #c8442a; }
.na__dish img { flex: none; width: 104px; height: 90px; border-radius: 9px; background: #e9f1da; object-fit: cover; transition: transform .35s var(--ease), filter .2s; }
.na__dish-top:hover img { transform: scale(1.05); }
.na__dish.is-sold img { filter: grayscale(1) opacity(.55); }
.na__edit { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; border-top: 1px solid #eef2f2; animation: naIn .35s var(--ease); }
.na__edit input { width: 84px; }
.na__card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid #e3e9e9; border-radius: 14px; background: #fff; }
.na__card small, .na__hint { font-size: 13px; color: #7a807d; }
.na__line { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.na__nav { display: flex; justify-content: space-between; }
.na__nav button { width: 32px; height: 32px; border: 0; border-radius: 8px; background: #f3f8f8; font-size: 18px; }
.na__months { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.na__cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; align-content: start; text-align: center; }
.na__cal strong { grid-column: 1 / -1; margin-bottom: 6px; text-transform: capitalize; font-weight: 600; }
.na__cal button { aspect-ratio: 1; max-height: 38px; border: 0; border-radius: 8px; background: none; font-size: 13px !important; }
.na__cal button:hover:not(:disabled) { background: #f3f8f8; }
.na__cal button:disabled { color: #c5cbc9; }
.na__cal button.is-today { color: #c8442a; font-weight: 700 !important; }
.na__cal button[aria-pressed="true"] { background: #d8573a; color: #fff; }
.na__cal button.is-closed { background: #f8d8cf; color: #c8442a; }
.na__hint { padding-top: 12px; border-top: 1px solid #eef2f2; text-align: center; }
.na__warn { padding: 10px 14px; border-radius: 10px; background: #fdf0ec; color: #9a2f12; font-weight: 600; }
.na__empty { color: #7a807d; }
.na__note { min-height: 36px; margin-top: auto; font-size: 13px; font-weight: 600; color: #237043; }
@media (max-width: 760px) {
  .adm { grid-template-columns: 1fr; }
  .na__side { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px; border-right: 0; border-bottom: 1px solid #e3e9e9; }
  .na__logo { width: 44px; margin: 0 auto 6px 4px; }
  .na__link { font-size: 12px !important; padding: 8px; gap: 6px; }
  .na__link--settings { margin-top: 0; }
  .na__main { padding: 20px 14px 6px; }
  .na__stock, .na__months { grid-template-columns: 1fr; }
  .na__cats { flex-direction: row; flex-wrap: wrap; }
}

/* ---------- the small adminpanel picture between "Nemt" and "adminpanel" (about 16 x 8 units) ---------- */
.a-nam { position: absolute; inset: .7em; display: grid; grid-template-columns: 3.6em 1fr; border-radius: .7em; overflow: hidden; background: #f3f8f8; color: #2c302e; }
.a-nam__side { display: flex; flex-direction: column; align-items: center; gap: .45em; padding-top: .7em; background: #fff; }
.a-nam__side img { width: 2.2em; height: auto; margin-bottom: .3em; }
.a-nam__side i { width: 2.4em; height: .45em; border-radius: 1em; background: #e3e9e9; }
.a-nam__side i:first-of-type { background: #d8573a; }
.a-nam__main { display: grid; grid-template-columns: 1fr 1fr; gap: .6em; padding: .7em; align-content: center; }
.a-nam__t { border-radius: .5em; overflow: hidden; background: #fff; box-shadow: 0 .2em .6em rgba(0, 0, 0, .12); }
.a-nam__t b { display: flex; justify-content: space-between; padding: .35em .5em; background: #fdf0ec; color: #c8442a; font: 600 .85em/1.4 "BVP", sans-serif; letter-spacing: 0; }
.a-nam__t b em { font-style: normal; color: #2c302e; }
.a-nam__t span { display: block; padding: .5em; font: 600 .75em/1.5 "BVP", sans-serif; letter-spacing: 0; }
.a-nam__t u { position: relative; display: block; height: 2em; border-top: 1px solid #eef2f2; text-decoration: none; overflow: hidden; }
.a-nam__t u i { position: absolute; inset: 0; display: grid; place-items: center; font: 600 .75em "BVP", sans-serif; font-style: normal; letter-spacing: 0; }
.a-nam__t u i + i { background: #2f8a55; color: #fff; transform: translateY(100%); animation: aNamOk 4.5s var(--ease) infinite; }
.a-nam__t:first-child { animation: aNamPress 4.5s var(--ease) infinite; }
.a-nam__t:last-child u i + i, .a-nam__t:last-child { animation-delay: 1.4s; }
@keyframes aNamOk { 0%, 28% { transform: translateY(100%); } 38%, 84% { transform: none; } 94%, 100% { transform: translateY(100%); } }
@keyframes aNamPress { 0%, 22%, 36%, 100% { transform: none; } 29% { transform: scale(.93); } }
.na__seg button { white-space: nowrap; } @media (max-width: 420px) { .na__seg button { padding: 8px 9px; font-size: 13px !important; } }

@media (max-width: 600px) {
  .adm { border-radius: 12px; }
  .na__side { gap: 2px 6px; }
  .na__main { min-height: 0; }
  .na__link, .na__seg button, .na__tap, .na__ok, .na__btn, .na__nav button { min-height: 44px; }
  .na__nav button { min-width: 44px; }
  .na__cats button { min-height: 40px; }
  .na__seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .na__seg button { justify-content: center; flex-wrap: wrap; gap: 0 5px; padding: 6px 3px; white-space: normal; }
  .na__find { max-width: none; }
  .na__input { min-height: 44px; }
  .adm .na__input { font-size: 16px; }
  .na__dish img { width: clamp(68px, 22vw, 104px); height: 80px; }
  .na__card { padding: 13px; }
  .na__note:empty { min-height: 0; }
}
