/* ==========================================================================
   Praxys Empi — hero: iki sekmeli sahne (İzin yönetimi / Zimmet yönetimi)
   Yalnız praxys-empi.html yükler. İşaretleme: praxys-empi.html içinde.
   Kart sitenin .mock / .mock-bar / .mock-tabs / .mock-foot dilini kullanır; renkler style.css token'larına bağlı.
   Küçük yazılar --empi-fs (12 px; fareyle eğim açık cihazlarda 12,5 px: 3B eğimde ekranda 11 px altına inmesin).
   ========================================================================== */

/* ---- hero yerleşimi (WMS sahnesiyle aynı): metin keskinliği için flat, dar ekranda scale yerine kartın düzeni ---- */
.lp-hero .empi-vis .hs-3d { transform-style: flat; }
.lp-hero .empi-vis .fl.chip small { font-size: 13px; }
.lp-hero .empi-vis .fl.chip > div { transition: transform .18s ease; }
.lp-hero .empi-vis .fl.chip.empi-swap > div { transform: translateY(-2px); }   /* metin hiçbir anda boş/gizli olmaz */
@media (max-width: 960px) {
  .lp-hero .empi-vis { height: auto; }
  .lp-hero .empi-vis .hs-3d { scale: none; width: min(540px, 100%); margin-left: auto; margin-right: auto; }
}

/* ---- kart ---- */
.empi-card { --empi-fs: 12px; --empi-warm: #f59e0b; font-size: 12.5px; line-height: 1.4; }
@media (hover: hover) and (pointer: fine) { .empi-card { --empi-fs: 12.5px; } }
.empi-in { container-type: inline-size; }
.empi-sr { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.empi-bar { padding: 9px 12px 9px 12px; }
.empi-tabs { flex: none; }
.empi-tab { position: relative; padding: 4px 11px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: var(--empi-fs); line-height: 16px; white-space: nowrap; cursor: pointer; transition: background .25s, color .25s; }
.empi-tab:not(.empi-on):hover { background: var(--tq-ll); color: var(--tq-d); }
.empi-tab.empi-on { background: var(--tq-l); color: var(--tq-d); font-weight: 600; }
.empi-tab:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }
.empi-tabs .empi-tab span { padding: 0; border-radius: 0; background: none; color: inherit; font-size: inherit; }   /* site: .mock-tabs span */
.empi-tab .empi-s { display: none; }
.empi-prog { position: absolute; left: 10px; right: 10px; bottom: 1px; height: 2px; border-radius: 2px; background: var(--grad-brand); transform: scaleX(0); transform-origin: 0 50%; opacity: 0; }
.empi-tab.empi-on .empi-prog { opacity: 1; }
.empi-bar { justify-content: flex-start; }
.empi-panel .empi-kpis { justify-content: flex-end; padding: 8px 12px 0; background: linear-gradient(180deg, var(--blue-50), var(--blue-50)); }
.empi-foot { display: block; }   /* site: .mock-foot flex; burada adımlar üstte, durum altta */
.empi-stack { display: grid; }
.empi-panel { grid-area: 1 / 1; min-width: 0; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
.empi-panel.empi-on { opacity: 1; visibility: visible; transition: opacity .35s ease, visibility 0s; }
.empi-panel[data-scene="zimmet"] .empi-nd .empi-pr { stroke: url(#empi-z-gStep); }

/* sayaçlar */
.empi-kpis { display: flex; gap: 6px; margin: 0; }
.empi-kpis div { position: relative; }
.empi-kpis div::after { content: ""; position: absolute; inset: -3px; border-radius: 999px; border: 2px solid var(--blue-500); opacity: var(--on, 0); }
.empi-kpis div { display: flex; align-items: baseline; gap: 5px; padding: 3px 9px; border-radius: 999px; background: #fff; border: 1px solid var(--line); white-space: nowrap; }
.empi-kpis dt { font-size: var(--empi-fs); line-height: 16px; font-weight: 500; color: var(--muted); }
.empi-kpis dd { margin: 0; font-size: 13px; line-height: 16px; font-weight: 600; color: var(--navy-700); font-variant-numeric: tabular-nums; }
.empi-kpis .empi-d { display: inline-block; width: .62em; text-align: center; }

/* sahne */
.empi-scene { position: relative; background: linear-gradient(180deg, var(--blue-50), #fff 78%); }
.empi-scene-svg { display: block; width: 100%; height: auto; }

.empi-tag { position: absolute; transform: translate(-50%, -100%); display: flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 7px; background: rgba(255, 255, 255, .95); border: 1px solid var(--blue-200); box-shadow: 0 6px 12px -8px rgba(var(--navy-950-rgb), .45); font-size: var(--empi-fs); line-height: 1; font-weight: 600; color: var(--navy-800); white-space: nowrap; }
.empi-tag .empi-ok { display: block; width: 0; height: 14px; border-radius: 50%; text-decoration: none; overflow: hidden; margin-right: -4px;
  background: var(--navy-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.empi-tag { opacity: 0; }
.empi-tag::after { content: ""; position: absolute; inset: -3px; border-radius: 9px; border: 2px solid var(--blue-500); opacity: var(--on, 0); }

.empi-ov-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 1px 6px; white-space: nowrap; }
.empi-ov-h b { font-weight: 600; color: var(--ink); }
.empi-ov-h span { color: var(--muted); }
.empi-ov { position: absolute; padding: 8px 9px 7px; border-radius: 12px; background: rgba(255, 255, 255, .96); border: 1px solid var(--blue-200); box-shadow: 0 14px 28px -16px rgba(var(--navy-950-rgb), .45); font-size: var(--empi-fs); line-height: 16px; opacity: 0; }
.empi-ov ul, .empi-ov ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.empi-kayit { left: 2.2%; bottom: 3%; width: 236px; }
.empi-kayit li { display: flex; justify-content: space-between; padding: 2px 6px; border-radius: 6px; background: var(--blue-50); opacity: 0; }
.empi-kayit li span { color: var(--muted); } .empi-kayit li b { color: var(--navy-800); font-weight: 600; }
.empi-okline { display: flex; align-items: center; gap: 6px; margin: 6px 1px 0; color: var(--ink-2); opacity: 0; }
.empi-okline s, .empi-gecmis li s { flex: none; display: block; width: 14px; height: 14px; border-radius: 50%; text-decoration: none;
  background: var(--navy-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.empi-sicil { left: 2.2%; bottom: 3%; width: 312px; }
.empi-sicil li { display: grid; grid-template-columns: 1fr auto 80px; gap: 8px; align-items: center; padding: 2px 6px; border-radius: 6px; background: var(--blue-50); }
.empi-sicil li span { color: var(--ink); font-weight: 500; white-space: nowrap; }
.empi-sicil li i { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.empi-sicil li b { position: relative; justify-self: end; font-weight: 600; color: var(--navy-700); white-space: nowrap; }
.empi-sicil li.car { position: relative; }
.empi-sicil li.car::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1.5px var(--blue-500); opacity: var(--on, 0); }
.empi-sicil li.car b { display: grid; justify-items: end; }
.empi-sicil li.car b em { grid-area: 1 / 1; font-style: normal; }
.empi-sicil li.car .empi-was { color: var(--blue-600); }
.empi-sicil .empi-sum { margin: 6px 1px 0; color: var(--ink-2); font-weight: 600; opacity: 0; }
.empi-gecmis { left: 2.2%; bottom: 3%; width: 268px; }
.empi-gecmis li { position: relative; display: flex; align-items: center; gap: 7px; padding-left: 2px; color: var(--ink-2); opacity: 0; }
.empi-gecmis li + li::before { content: ""; position: absolute; left: 8.5px; top: -7px; width: 1.5px; height: 7px; background: var(--blue-300); }
.empi-gecmis li.plan { color: var(--muted); }
.empi-gecmis li.plan s { background: #fff; box-shadow: inset 0 0 0 1.5px var(--blue-400); }
.empi-gecmis li.plan em { font-style: normal; padding: 0 5px; border-radius: 4px; border: 1px dashed var(--blue-400); color: var(--blue-600); font-size: var(--empi-fs); line-height: 14px; }
.empi-plate { position: absolute; transform: translate(-50%, -100%); display: flex; align-items: stretch; height: 20px; border-radius: 4px; background: #fff; border: 1.5px solid var(--navy-800); box-shadow: 0 6px 12px -8px rgba(var(--navy-950-rgb), .5); font-size: 12.5px; line-height: 17px; font-weight: 700; letter-spacing: .04em; color: var(--ink); white-space: nowrap; padding-right: 6px; width: max-content; }   /* overflow yok: vurgu halkası (::after) görünür, scrollWidth = clientWidth */
.empi-plate i { display: grid; place-items: center; margin-right: 5px; padding: 0 3px; border-radius: 2.5px 0 0 2.5px; background: var(--navy-700); color: #fff; font-style: normal; font-size: var(--empi-fs); letter-spacing: 0; }
.empi-plate::after { content: ""; position: absolute; inset: -4px; border-radius: 7px; border: 2px solid var(--blue-500); opacity: var(--on, 0); }

/* adımlar + durum */
.empi-steps { list-style: none; margin: 0; padding: 0 4px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.empi-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.empi-steps li + li::before, .empi-steps li + li::after { content: ""; position: absolute; top: 9px; left: calc(-50% + 14px); right: calc(50% + 14px); height: 2px; border-radius: 2px; background: var(--line); }
.empi-steps li + li::after { background: var(--grad-brand); transform-origin: 0 50%; transform: scaleX(var(--c, 0)); }
.empi-nd, .empi-nd svg { display: block; width: 20px; height: 20px; overflow: visible; }
.empi-nd .empi-tr { fill: #fff; stroke: var(--line); stroke-width: 2; }
.empi-nd .empi-pr { fill: none; stroke: url(#empi-i-gStep); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 47.12; stroke-dashoffset: 47.12; transform: rotate(-90deg); transform-origin: 10px 10px; }
.empi-nd .empi-fi { fill: var(--navy-700); opacity: 0; transform-origin: 10px 10px; }
.empi-nd .empi-ck { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 12; stroke-dashoffset: 12; }
.empi-lb { font-size: var(--empi-fs); line-height: 15px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.empi-status { display: flex; align-items: center; gap: 9px; margin: 9px 4px 0; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-2); }
.empi-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-500); box-shadow: 0 0 0 3px rgba(var(--blue-500-rgb), .16); }
.empi-st { position: relative; flex: 1; min-width: 0; height: 18px; }
.empi-st > span { position: absolute; inset: 0 0 auto 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* dar kart */


/* izin sahnesine özgü kartlar */
.empi-rule, .empi-cal { position: absolute; padding: 8px 9px 7px; border-radius: 12px; background: rgba(255, 255, 255, .96); border: 1px solid var(--blue-200); box-shadow: 0 14px 28px -16px rgba(var(--navy-950-rgb), .45); font-size: var(--empi-fs); line-height: 16px; opacity: 0; }
.empi-rule { right: 2%; top: 3%; width: 196px; }
.empi-rule ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.empi-rule li { position: relative; display: flex; justify-content: space-between; padding: 2px 7px; border-radius: 6px; color: var(--ink-2); }
.empi-rule li::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--blue-100); box-shadow: inset 0 0 0 1px var(--blue-300); opacity: var(--on, 0); }
.empi-rule li > * { position: relative; }
.empi-rule li b { color: var(--navy-700); font-weight: 600; font-variant-numeric: tabular-nums; }
.empi-rule .empi-note { margin: 6px 1px 0; color: var(--ink-2); }
.empi-rule .empi-note b { color: var(--navy-700); }
.empi-rule .empi-note2 { margin: 2px 1px 0; color: var(--muted); }
.empi-cal { left: 2.2%; bottom: 3%; width: 262px; }
.empi-cal ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.empi-cal li { position: relative; display: grid; justify-items: center; gap: 1px; padding: 3px 0 4px; border-radius: 7px; background: var(--blue-50); border: 1px solid var(--line); opacity: 0; }
.empi-cal li i { font-style: normal; color: var(--muted); }
.empi-cal li span { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.empi-cal li b { font-weight: 700; color: var(--navy-700); }
.empi-cal li small { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); padding: 0 4px; border-radius: 4px; font-size: var(--empi-fs); line-height: 14px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.empi-cal li.hol { background: #fff; }
.empi-cal li.hol small { border-color: var(--empi-warm); color: #92400e; }
.empi-cal li.hol span { box-shadow: inset 0 -2px 0 var(--empi-warm); }
.empi-cal li.we b, .empi-cal li.hol b { color: var(--muted); }
.empi-cal li.half b { color: var(--blue-600); }
.empi-cal .empi-sum { margin: 6px 1px 0; display: flex; justify-content: space-between; color: var(--ink-2); }
.empi-cal .empi-sum b { color: var(--navy-700); font-weight: 700; }
.empi-rchip { position: absolute; left: 38%; top: 3%; padding: 3px 9px; border-radius: 999px; background: var(--navy-800); color: #fff; font-size: var(--empi-fs); line-height: 16px; font-weight: 500; white-space: nowrap; opacity: 0; box-shadow: 0 8px 18px -10px rgba(var(--navy-950-rgb), .6); }

/* orta genişlik (441–499 px kart): durum satırı iki satıra kadar */
@container (max-width: 499px) {
  .empi-status { align-items: flex-start; min-height: 36px; }
  .empi-dot { margin-top: 5px; }
  .empi-st { height: 36px; }
  .empi-st > span { white-space: normal; }
}
@container (max-width: 440px) {
  .empi-bar { flex-wrap: wrap; row-gap: 8px; padding: 10px 12px; }
  .empi-kpis { width: 100%; }
  .empi-tag { display: none; }
  .empi-kayit { width: 210px; padding: 6px 7px; }
  .empi-kayit .empi-ov-h span { display: none; }
  .empi-sicil { left: 2%; right: 2%; width: auto; padding: 6px 7px; }
  .empi-sicil li { grid-template-columns: 1fr 74px; }
  .empi-sicil li i { display: none; }
  .empi-gecmis { width: 236px; padding: 6px 7px; }
  .empi-gecmis .empi-ov-h span { display: none; }
  .empi-foot { padding: 9px 6px 10px; }
  .empi-status { align-items: flex-start; min-height: 36px; font-size: 12.5px; line-height: 17px; }
  .empi-dot { margin-top: 5px; }
  .empi-st { height: 34px; }
  .empi-st > span { white-space: normal; }
  .empi-rule { width: 156px; padding: 6px 7px; }
  .empi-rule .empi-ov-h span, .empi-rule .empi-note2 { display: none; }
  .empi-cal { left: 2%; right: 2%; width: auto; padding: 6px 7px; }
  .empi-cal .empi-ov-h span { display: none; }
  .empi-cal li { padding: 2px 0 3px; }
  .empi-cal li small { display: none; }
  .empi-rchip { left: 2%; top: 2%; }
  .empi-tab .empi-l { display: none; }
  .empi-tab .empi-s { display: inline; }
  .empi-panel .empi-kpis { justify-content: flex-start; padding: 7px 10px 0; }
  .empi-kpis { gap: 4px; }
  .empi-kpis div { padding: 3px 7px; gap: 4px; }
  .empi-sicil { right: auto; width: 200px; }
  .empi-plate { left: 80% !important; }
  .empi-kayit, .empi-gecmis { width: 205px; }   /* plaka çipinin solunda kalır */   /* dar kartta plaka çipi aracın sağında: Sicil kartıyla çakışmaz */
  /* dar kartta durum sütunu simge: onaylı = onay işareti, bekleyen = boş halka (metin DOM'da kalır) */
  .empi-sicil li { grid-template-columns: minmax(0, 1fr) 14px; gap: 6px; }
  .empi-sicil li span { overflow: hidden; text-overflow: ellipsis; }
  .empi-sicil li > b { width: 14px; height: 14px; overflow: hidden; text-indent: 100%; white-space: nowrap; border-radius: 50%; background: var(--navy-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
  .empi-sicil li.empi-car > b { display: grid; background: none; }
  .empi-sicil li.empi-car b em { grid-area: 1 / 1; width: 14px; height: 14px; overflow: hidden; text-indent: 100%; border-radius: 50%; }
  .empi-sicil li.empi-car .empi-now { background: var(--navy-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
  .empi-sicil li.empi-car .empi-was { background: #fff; box-shadow: inset 0 0 0 2px var(--blue-400); }
}
