/* Easy Parking brand — Midnight Navy, Easy Teal, Cloud. Neo Sans Arabic UI, Michroma wordmark. */
@font-face {
  font-family: "Neo Sans Arabic";
  src: url("../assets/neo-sans-arabic/NeoSansArabicLight.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Neo Sans Arabic";
  src: url("../assets/neo-sans-arabic/NeoSansArabic.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Neo Sans Arabic";
  src: url("../assets/neo-sans-arabic/NeoSansArabicMedium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Neo Sans Arabic";
  src: url("../assets/neo-sans-arabic/NeoSansArabicMedium.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Neo Sans Arabic";
  src: url("../assets/neo-sans-arabic/NeoSansArabicBold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Neo Sans Arabic";
  src: url("../assets/neo-sans-arabic/NeoSansArabicBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Neo Sans Arabic";
  src: url("../assets/neo-sans-arabic/NeoSansArabicBlack.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: block;
}
:root {
  --ep-navy: #14213D;
  --ep-navy-dark: #0d1730;
  --ep-teal: #52D2C7;
  --ep-cloud: #F6F7F9;
  --ep-line: #e3e7ee;
  --ep-mute: #5d677c;
  --ep-ink: #14213D;
  --niv-brand: #14213D;
  --niv-brand-dark: #0d1730;
  --niv-brand-darker: #0a1224;
  --niv-brand-light: #e7faf8;
  --niv-brand-soft: #9adfd8;
  --niv-brand-rgb: 20, 33, 61;
  --niv-accent: #52D2C7;
  --niv-accent-soft: rgba(82, 210, 199, 0.18);
  --niv-ink: #14213D;
  --niv-cream: #F6F7F9;
  --niv-font: "Neo Sans Arabic", "Noto Sans Arabic", Tahoma, sans-serif;
  --niv-font-display: "Neo Sans Arabic", "Noto Sans Arabic", Tahoma, sans-serif;
  --tk-brand: #14213D;
  --tk-brand-2: #52D2C7;
  --tk-brand-dark: #0d1730;
  --tk-brand-soft: rgba(82, 210, 199, 0.18);
  --tk-accent: #52D2C7;
  --tk-surface: #F6F7F9;
  --tk-sidebar-bg: #F6F7F9;
  --tk-topbar-bg: #ffffff;
}
html[lang="ku"],
html[lang="ckb"] {
  --niv-font: "Noto Sans Arabic", Tahoma, sans-serif;
  --niv-font-display: "Noto Sans Arabic", Tahoma, sans-serif;
}
html[lang="ku"] body *:not(.fa):not([class^="fa-"]):not([class*=" fa-"]),
html[lang="ckb"] body *:not(.fa):not([class^="fa-"]):not([class*=" fa-"]) {
  font-family: "Noto Sans Arabic", Tahoma, sans-serif !important;
}
html, body,
.tk-app-body,
.tk-auth-page,
.tk-shell,
.tk-main,
.tk-sidebar,
.niv-btn,
.niv-input,
.niv-select,
.niv-label,
.tk-row-act {
  font-family: var(--niv-font);
}
body,
.tk-app-body,
.tk-auth-page { background: var(--ep-cloud); color: var(--ep-ink); }
h1, h2, h3,
.tk-auth-brand__title,
.tk-auth-card__title,
.tk-sidebar__section-title,
.niv-app-header__title,
.niv-stat-card__value {
  font-family: var(--niv-font-display);
  letter-spacing: 0;
}
.niv-btn--primary {
  background: var(--ep-navy);
  border-color: var(--ep-navy);
  color: #fff;
}
.niv-btn--primary:hover { background: var(--ep-navy-dark); border-color: var(--ep-navy-dark); color: #fff; }
.niv-stat-card--sky { border-top-color: var(--ep-teal); }
.tk-sidebar__icon--teal,
.tk-sidebar__badge--teal { --tk-icon-tone: #0f766e; }
[data-ep-plate],
[data-ep-ocr-status],
[data-kw-field="vehiclePlate"],
td[dir="ltr"] {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
}
.tk-impersonate-bar { background: #14213D !important; }
.tk-impersonate-bar .niv-btn { color: #14213D !important; }

.tk-dir-page .tk-bolt-orders td,
.ep-dash-revenue td {
  font-size: 15.5px;
  font-weight: 650;
  padding: 11px 10px;
  vertical-align: middle;
}
.tk-dir-page .tk-bolt-orders th {
  font-size: 13px;
  font-weight: 800;
}
.ep-val-plate {
  color: #14213D;
  font-weight: 800;
  font-size: 16.5px;
  letter-spacing: 0.04em;
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}
.ep-val-when {
  color: #5d677c;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ep-val-money {
  color: #14213D;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 16px;
}
.tk-bolt-orders .tk-status-cell {
  display: inline-block;
  min-width: 4.5rem;
  padding: 4px 10px;
  border-radius: 8px;
  text-align: center;
  line-height: 1.35;
}
.tk-status-cell.ep-pill {
  display: inline-block;
  min-width: 4.5rem;
  padding: 4px 10px;
  border-radius: 8px;
  text-align: center;
  line-height: 1.35;
  color: #fff !important;
  background-color: #64748b !important;
  font-weight: 800;
}
.tk-status-cell.ep-pill.ep-pill--parked,
.tk-status-cell.ep-pill.ep-pill--pending { background-color: #d97706 !important; }
.tk-status-cell.ep-pill.ep-pill--due { background-color: #c2410c !important; }
.tk-status-cell.ep-pill.ep-pill--unpaid { background-color: #be123c !important; }
.tk-status-cell.ep-pill.ep-pill--retrieval,
.tk-status-cell.ep-pill.ep-pill--partial,
.tk-status-cell.ep-pill.ep-pill--card,
.tk-status-cell.ep-pill.ep-pill--exit,
.tk-status-cell.ep-pill.ep-pill--org { background-color: #1d4ed8 !important; }
.tk-status-cell.ep-pill.ep-pill--preparing,
.tk-status-cell.ep-pill.ep-pill--self,
.tk-status-cell.ep-pill.ep-pill--desk,
.tk-status-cell.ep-pill.ep-pill--minute,
.tk-status-cell.ep-pill.ep-pill--online { background-color: #7c3aed !important; }
.tk-status-cell.ep-pill.ep-pill--ready,
.tk-status-cell.ep-pill.ep-pill--branch,
.tk-status-cell.ep-pill.ep-pill--hour,
.tk-status-cell.ep-pill.ep-pill--mixed { background-color: #0284c7 !important; }
.tk-status-cell.ep-pill.ep-pill--done,
.tk-status-cell.ep-pill.ep-pill--facility,
.tk-status-cell.ep-pill.ep-pill--entry { background-color: #0f766e !important; }
.tk-status-cell.ep-pill.ep-pill--paid,
.tk-status-cell.ep-pill.ep-pill--active,
.tk-status-cell.ep-pill.ep-pill--open,
.tk-status-cell.ep-pill.ep-pill--cash { background-color: #15803d !important; }
.tk-status-cell.ep-pill.ep-pill--cashier { background-color: #166534 !important; }
.tk-status-cell.ep-pill.ep-pill--cancel,
.tk-status-cell.ep-pill.ep-pill--full { background-color: #e11d48 !important; }
.tk-status-cell.ep-pill.ep-pill--exempt,
.tk-status-cell.ep-pill.ep-pill--neutral { background-color: #475569 !important; }
.tk-status-cell.ep-pill.ep-pill--off { background-color: #cbd5e1 !important; color: #1e293b !important; }
.tk-status-cell.ep-pill.ep-pill--valet,
.tk-status-cell.ep-pill.ep-pill--navy { background-color: #14213d !important; }
.tk-status-cell.ep-pill.ep-pill--period,
.tk-status-cell.ep-pill.ep-pill--account { background-color: #b45309 !important; }
.tk-dir-page .tk-bolt-orders tbody tr.rowofitem {
  background-color: #fff;
}
.tk-dir-page .tk-bolt-orders tbody tr.rowofitem:nth-child(even) {
  background-color: #f7f9fc;
}
.tk-dir-page .tk-bolt-orders tbody tr.rowofitem:hover {
  background-color: #eef8f7 !important;
}
.tk-dir-page .tk-bolt-orders td.tk-dir-col-actions,
.tk-dir-page .tk-bolt-orders th.tk-dir-col-actions {
  display: table-cell !important;
  max-width: none !important;
  min-width: 7.5rem;
  width: auto;
  white-space: nowrap;
  overflow: visible;
  vertical-align: middle;
  text-align: center;
}
.tk-dir-page .tk-bolt-orders th.ep-staff-act-col,
.tk-dir-page .tk-bolt-orders td.ep-staff-act-col {
  min-width: 6.25rem;
  width: 1%;
  padding-inline: 0.35rem;
}
.tk-dir-page .ep-val-empty {
  color: #94a3b8;
  font-weight: 600;
}
.tk-dir-page .ep-val-pkg {
  font-weight: 700;
  color: #0f172a;
}
.tk-dir-page .tk-bolt-orders tbody td {
  vertical-align: middle;
}
/* Keep flex on the inner wrapper only ? never on <td>, or columns collapse into one stack. */
.tk-dir-page .tk-bolt-row-actions {
  display: inline-flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  max-width: none;
  padding-block: 0.2rem;
}
.tk-dir-page .tk-row-act {
  min-height: 2.15rem;
  padding: 0.38rem 0.7rem;
  gap: 0.35rem;
  border-radius: 0.65rem;
  font-size: 0.8rem;
  line-height: 1.2;
  white-space: nowrap;
}
.tk-dir-page .tk-row-act .fas {
  font-size: 0.86rem;
}
.tk-dir-page .tk-row-act__txt {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}
.tk-dir-page .tk-row-act:disabled,
.tk-dir-page .tk-row-act.is-disabled,
.tk-dir-page .tk-btn-edit:disabled,
.tk-dir-page .tk-btn-edit.is-disabled,
.tk-dir-page .tk-btn-del:disabled,
.tk-dir-page .tk-btn-del.is-disabled {
  background: #e5e7eb !important;
  color: #9ca3af !important;
  border-color: #d1d5db !important;
  opacity: 0.55;
  filter: grayscale(1);
  cursor: not-allowed !important;
  pointer-events: none;
  box-shadow: none !important;
  transform: none !important;
}
.tk-dir-page .tk-btn-revise {
  background: #f8fafc;
  color: #475569;
  border-color: #e2e8f0;
}
.tk-dir-page .tk-btn-revise.is-on {
  background: #ecfdf5;
  color: #166534;
  border-color: #bbf7d0;
}
.tk-app-body .niv-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  background: #fff;
}
.tk-app-body .niv-table th,
.tk-app-body .niv-table td {
  padding: 11px 10px;
  border: 1px solid #e3e7ee;
  vertical-align: middle;
}
.tk-app-body .niv-table th {
  background: #f6f7f9;
  color: #14213d;
  font-weight: 700;
}
.tk-app-body .niv-table tbody tr:nth-child(even) { background: #f7f9fc; }
.tk-app-body .niv-table tbody tr:hover { background: #eef8f7; }
.ep-check-col {
  width: 42px;
  text-align: center;
}
.ep-check-col input {
  width: 18px;
  height: 18px;
  accent-color: #14213D;
}
.tk-combo__btn,
.ep-multi__btn {
  position: relative;
  border-radius: 12px;
  border-color: #E3E7EE;
  color: #14213D;
  padding-inline-end: 2rem;
}
.tk-combo__btn::after,
.ep-multi__btn::after {
  content: '';
  position: absolute;
  inset-inline-end: 0.85rem;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #14213D;
  transform: translateY(-30%);
  pointer-events: none;
}
.tk-combo.is-open .tk-combo__btn::after,
.ep-multi.is-open .ep-multi__btn::after {
  transform: translateY(-70%) rotate(180deg);
}
.ep-multi { position: relative; min-width: 0; }
.ep-multi__btn {
  width: 100%;
  text-align: start;
  background: #fff;
  border: 1px solid #E3E7EE;
  min-height: 42px;
  padding-block: 0.45rem;
  padding-inline-start: 0.75rem;
  padding-inline-end: 2rem;
  font: inherit;
  cursor: pointer;
}
.ep-multi__find {
  width: 100%;
  border: 1px solid #E3E7EE;
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  margin-bottom: 0.25rem;
  font: inherit;
}
.ep-multi__menu {
  position: absolute;
  z-index: 40;
  inset-inline: 0;
  top: calc(100% - 2px);
  background: #fff;
  border: 1px solid var(--ep-line, #E3E7EE);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(20, 33, 61, 0.12);
  max-height: 240px;
  overflow: auto;
  padding: 0.35rem;
}
.ep-multi__row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  cursor: pointer;
}
.ep-multi__row:hover { background: rgba(82, 210, 199, 0.16); }
.ep-multi__row input { width: 16px; height: 16px; accent-color: #14213D; flex: none; }
.ep-print-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.ep-print-metrics span {
  border: 1px solid #E3E7EE;
  border-radius: 10px;
  padding: 6px 10px;
  min-width: 88px;
}
.ep-print-metrics b { display: block; color: #14213D; }
.ep-print-metrics small { color: #5D677C; }
.ep-scope-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 280px;
}
.ep-scope-filters[hidden],
.tk-bolt-filters [hidden],
#epDirAddBtn[hidden] { display: none !important; }
.tk-bolt-actions__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.ep-audit { padding: 4px 2px 0; }
.ep-audit__title { margin: 0 0 8px; font-weight: 800; }
.ep-audit__sums {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 12px;
  font-size: 16px;
}
.ep-audit__table { width: 100%; border-collapse: collapse; }
.ep-audit__table th,
.ep-audit__table td {
  border: 1px solid #e6ebf0;
  padding: 8px 10px;
  text-align: start;
}
[data-ep-desk] {
  border-radius: 16px;
}
[data-ep-desk] h2 {
  font-size: 1.05rem;
  font-weight: 800;
}
[data-ep-desk] .niv-input,
[data-ep-desk] .niv-btn {
  min-height: 44px;
}
[data-ep-plate] {
  font-size: 20px !important;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #14213D;
}
[data-ep-amount] {
  font-size: 20px !important;
  font-weight: 800;
  color: #14213D;
}
[data-ep-amount][readonly],
[data-ep-amount]:disabled,
[data-ep-pay-amt][readonly],
[data-ep-pay-amt]:disabled,
.ep-pay-sheet__amt-input[readonly],
.ep-pay-sheet__amt-input:disabled {
  background: #f1f5f9 !important;
  color: #334155 !important;
  cursor: not-allowed;
  pointer-events: none;
}
.tk-dash-kpi__value,
.ep-dash-revenue td.ep-val-money {
  font-variant-numeric: tabular-nums;
}
.ep-report-kpis .tk-dash-kpi { border-top: 3px solid var(--ep-kpi, #52d2c7); }
.ep-report-kpis .tk-dash-kpi__icon { background: color-mix(in srgb, var(--ep-kpi, #52d2c7) 16%, #fff); color: var(--ep-kpi, #0f766e); }
.ep-report-kpis--revenue { --ep-kpi: #059669; }
.ep-report-kpis--visits { --ep-kpi: #ea580c; }
.ep-report-kpis--staff { --ep-kpi: #7c3aed; }
.ep-report-kpis--shifts { --ep-kpi: #d97706; }
.ep-report-kpis--garages { --ep-kpi: #0891b2; }
.ep-report-kpis--revenue .tk-dash-kpi { background: linear-gradient(165deg, #fff, #ecfdf5); }
.ep-report-kpis--visits .tk-dash-kpi { background: linear-gradient(165deg, #fff, #fff7ed); }
.ep-report-kpis--staff .tk-dash-kpi { background: linear-gradient(165deg, #fff, #f5f3ff); }
.ep-report-kpis--shifts .tk-dash-kpi { background: linear-gradient(165deg, #fff, #fffbeb); }
.ep-report-kpis--garages .tk-dash-kpi { background: linear-gradient(165deg, #fff, #ecfeff); }
@media (max-width: 900px) {
  .tk-bolt-filters__row--selects {
    flex-wrap: wrap;
  }
  .tk-bolt-actions__btns .niv-btn {
    flex: 1 1 calc(50% - 8px);
  }
  [data-ep-desk] > div {
    flex-direction: column;
  }
}
@media (max-width: 640px) {
  .tk-dir-page .tk-row-act__txt {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .tk-dir-page .tk-bolt-orders td {
    font-size: 14.5px;
    padding: 9px 7px;
  }
  .tk-bolt-sums__table td {
    display: block;
    width: 100%;
  }
}
.ep-pos {
  background: #fff;
  border: 1px solid #e6ebf0;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 14px;
}
.ep-pos [hidden] { display: none !important; }
.ep-pos__top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 16px;
  align-items: center;
  margin-bottom: 12px;
}
.ep-pos__tabs { display: flex; gap: 8px; }
.ep-pos__tab {
  border: 1px solid #d7dee7;
  background: #f8fafc;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 800;
  cursor: pointer;
}
.ep-pos__tab.is-on { background: #14213D; color: #fff; border-color: #14213D; }
.ep-pos__day {
  display: flex;
  gap: 14px;
  font-size: 14px;
  color: #334155;
}
.ep-pos__day strong { color: #14213D; font-size: 16px; }
.ep-pos__who { color: #334155; font-weight: 700; }
.ep-pos__period {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.ep-pos__period-name { font-weight: 800; }
.ep-pos__mini { width: 120px; min-height: 36px; }
.ep-pos__panel {
  display: grid;
  grid-template-columns: minmax(240px, 1.1fr) minmax(240px, .9fr);
  gap: 16px;
  align-items: start;
}
.ep-pos__panel[data-ep-panel="out"] {
  grid-template-columns: minmax(240px, 1.1fr) minmax(260px, .9fr);
}
.ep-pos__out-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ep-pos__cam {
  position: relative;
  height: 280px;
  border-radius: 22px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #1b2d52 0%, #0c1426 72%);
  color: #d7f7f3;
  border: 1px solid #14213d;
}
.ep-pos__cam video,
.ep-pos__cam img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
  border-radius: 0;
}
.ep-cam__idle {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 16px 72px;
  text-align: center;
}
.ep-cam__idle p { margin: 0; font-size: 15px; font-weight: 700; }
.ep-cam__mark {
  width: 56px;
  height: 56px;
  border-radius: 20px;
  background: rgba(82, 210, 199, 0.16);
  color: #52d2c7;
  display: grid;
  place-items: center;
}
.ep-cam__mark svg { width: 30px; height: 30px; }
.ep-cam__corner {
  position: absolute;
  width: 26px;
  height: 26px;
  z-index: 2;
  pointer-events: none;
  border: 0 solid #52d2c7;
}
.ep-cam__corner--a { top: 16px; inset-inline-start: 16px; border-top-width: 3px; border-inline-start-width: 3px; border-start-start-radius: 8px; }
.ep-cam__corner--b { top: 16px; inset-inline-end: 16px; border-top-width: 3px; border-inline-end-width: 3px; border-start-end-radius: 8px; }
.ep-cam__corner--c { bottom: 68px; inset-inline-start: 16px; border-bottom-width: 3px; border-inline-start-width: 3px; border-end-start-radius: 8px; }
.ep-cam__corner--d { bottom: 68px; inset-inline-end: 16px; border-bottom-width: 3px; border-inline-end-width: 3px; border-end-end-radius: 8px; }
.ep-cam__actions {
  position: absolute;
  z-index: 3;
  inset-inline: 14px;
  bottom: 14px;
  display: flex;
  gap: 8px;
}
.ep-cam__actions button {
  flex: 1;
  border: 0;
  background: #77f4e8;
  color: #14213d;
  border-radius: 12px;
  min-height: 40px;
  padding: 0 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}
.ep-cam__actions button svg { width: 18px; height: 18px; flex: none; }
.ep-pos__cam.is-live [data-ep-idle],
.ep-pos__cam.is-shot [data-ep-idle] { display: none; }
.ep-pos__progress {
  position: absolute;
  z-index: 3;
  top: 12px;
  inset-inline: 18px;
  height: 6px;
  background: rgba(255,255,255,.22);
  border-radius: 99px;
  overflow: hidden;
}
.ep-pos__progress div { height: 100%; width: 0; background: #52d2c7; }
.ep-pos__cam [data-ep-ocr-status] {
  position: absolute;
  z-index: 3;
  top: 24px;
  inset-inline: 16px;
  margin: 0;
  text-align: center;
  font-weight: 700;
  color: #d7f7f3;
}
.ep-pos__cam input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ep-pos__plate::placeholder,
.ep-pos__scan-input::placeholder { color: #c5ced9; font-weight: 500; opacity: 1; }
.ep-pos__plate.is-reading,
.ep-pos__scan-input.is-reading { box-shadow: inset 0 0 0 2px #52d2c7; }
/* ===== Ops floor desk (compact + scrollable, mobile cam/plates) ===== */
.ep-cashier-page.tk-shell {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}
.ep-cashier-page .tk-main {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  background:
    radial-gradient(80% 50% at 100% 0%, rgba(82, 210, 199, 0.1), transparent 55%),
    linear-gradient(180deg, #f3f6fb 0%, #e9eef5 100%);
}
.ep-cashier-page .tk-topbar {
  flex: 0 0 auto;
  margin-bottom: 6px;
  padding: 2px 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  align-items: center;
}
.ep-cashier-page .tk-topbar .niv-app-header__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}
.ep-cashier-page .tk-topbar .niv-app-header__subtitle { display: none; }
.ep-cashier-page .tk-topbar .niv-btn--primary {
  min-height: 36px;
  border-radius: 10px;
  padding-inline: 14px;
  font-weight: 800;
  font-size: 0.88rem;
}
.ep-cashier-split {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  /* RTL: form on the right ~col-7; cars list ~col-5 so plates/status fit */
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, 1.15fr);
  gap: 10px;
  align-items: stretch;
  overflow: hidden;
}
.ep-cashier-split > .ep-pos,
.ep-cashier-records {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #d7e0ec;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}
.ep-cashier-split > .ep-pos {
  margin-bottom: 0;
  padding: 8px;
}
.ep-cashier-split .ep-pos__site-bar,
.ep-pos__site-bar {
  flex: 0 0 auto;
  margin-bottom: 6px;
  padding: 5px 8px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.ep-pos__site-bar .ep-pos__plate-label {
  margin-bottom: 4px;
}
.ep-pos__site-bar .ep-pos__field,
.ep-pos__site-bar .niv-select,
.ep-pos__site-bar select {
  width: 100%;
}
.ep-cashier-split > .ep-pos > .ep-switch {
  flex: 0 0 auto;
  margin-bottom: 6px;
  background: #eef2f7;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2px;
  gap: 2px;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  overflow: visible;
}
.ep-cashier-split > .ep-pos > .ep-switch .ep-switch__btn {
  position: relative;
  border: 0;
  background: transparent;
  border-radius: 9px;
  min-height: 30px;
  padding: 0 12px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #475569;
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.ep-cashier-split > .ep-pos > .ep-switch .ep-switch__valet {
  padding-inline-end: 22px;
}
.ep-cashier-split > .ep-pos > .ep-switch .ep-switch__btn.is-on {
  background: #14213d;
  color: #fff;
  box-shadow: 0 6px 14px rgba(20, 33, 61, 0.14);
}
.ep-cashier-split > .ep-pos > .ep-switch .ep-switch__valet .ep-seg-badge {
  position: absolute;
  top: 2px;
  inset-inline-end: 4px;
  margin: 0;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 4px;
  font-size: 10px;
  line-height: 1.1rem;
  box-shadow: 0 0 0 2px #eef2f7;
  z-index: 1;
}
.ep-cashier-split > .ep-pos > .ep-switch .ep-switch__valet.is-on .ep-seg-badge {
  box-shadow: 0 0 0 2px #14213d;
}
.ep-cashier-split > .ep-pos > [data-ep-mode-panel] {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
}
.ep-cashier-split .ep-pos__top {
  flex: 0 0 auto;
  margin-bottom: 6px;
  gap: 6px;
  grid-template-columns: 1fr;
}
.ep-cashier-split .ep-pos__tabs {
  display: none !important;
}
.ep-cashier-split .ep-pos__tab {
  flex: 1;
  border: 0;
  background: transparent;
  border-radius: 9px;
  padding: 5px 10px;
  font-size: 0.8rem;
  min-height: 32px;
  font-weight: 800;
  color: #475569;
}
.ep-cashier-split .ep-pos__tab.is-on {
  background: #14213d;
  color: #fff;
}
.ep-cashier-split .ep-pos__day {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  font-size: 10px;
}
.ep-cashier-split .ep-pos__day > span {
  background: #f8fafc;
  border: 1px solid #e8eef5;
  border-radius: 10px;
  padding: 4px 7px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 700;
  color: #64748b;
}
.ep-cashier-split .ep-pos__day strong {
  font-size: 0.84rem;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}
.ep-cashier-split .ep-pos__who { display: none; }
.ep-cashier-split .ep-pos__panel {
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
  align-items: stretch;
  justify-items: stretch;
  width: 100%;
  max-width: none;
  overflow: hidden;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
  gap: 0;
}
.ep-cashier-split .ep-pos__scroll {
  flex: 1 1 auto;
  align-self: stretch;
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 0;
  scrollbar-width: none;
}
.ep-cashier-split .ep-pos__scroll::-webkit-scrollbar { display: none; }
.ep-cashier-split .ep-pos__panel--pay,
.ep-cashier-split .ep-pos__out-side {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.ep-cashier-split .ep-pos__out-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 6px;
}
.ep-cashier-split .ep-pos__form {
  gap: 6px;
  background: #f7f9fc;
  border: 1px solid #e6edf5;
  border-radius: 12px;
  padding: 8px;
  flex: 1 1 auto;
  align-self: stretch;
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
}
.ep-cashier-split .ep-pos__block--plate,
.ep-cashier-split .ep-pos__cell--plate {
  padding: 8px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #dbe3ef;
}
.ep-cashier-split .ep-pos__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.ep-cashier-split .ep-pos__grid--entry {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}
.ep-cashier-split .ep-pos__grid--entry .ep-pos__cell--plate {
  grid-column: 1 / -1;
}
.ep-cashier-split .ep-pos__grid > [hidden],
.ep-cashier-split .ep-pos__grid--entry > [hidden] { display: none !important; }
.ep-cashier-split .ep-pos__grid > .ep-pos__field,
.ep-cashier-split .ep-pos__grid > div:not([hidden]),
.ep-cashier-split .ep-pos__cell {
  min-width: 0;
}
.ep-cashier-split .ep-pos__cell .ep-pos__field,
.ep-cashier-split .ep-pos__cell .niv-input,
.ep-cashier-split .ep-pos__cell .niv-select,
.ep-cashier-split .ep-pos__cell select,
.ep-cashier-split .ep-pos__cell .ep-pos__plate {
  width: 100%;
}
@media (min-width: 1100px) {
  .ep-cashier-split .ep-pos__grid--entry {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ep-cashier-split .ep-pos__grid--entry .ep-pos__cell--plate {
    grid-column: 1 / -1;
  }
}
.ep-cashier-split .ep-pos__actions {
  flex: 0 0 auto;
  align-self: stretch;
  width: 100%;
  max-width: none;
  min-width: 0;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
  margin-top: 4px;
  padding: 6px 0 0;
  border-top: 1px solid #e8eef5;
  background: #fff;
}
.ep-cashier-split .ep-pos__paper {
  margin: 0;
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 2px;
}
.ep-cashier-split .ep-pos__paper .niv-btn {
  min-width: 3.2rem;
  min-height: 34px;
  font-weight: 800;
  font-size: 0.75rem;
  border: 0;
  background: transparent;
  color: #64748b;
  border-radius: 8px;
  box-shadow: none;
}
.ep-cashier-split .ep-pos__paper .niv-btn.is-on {
  background: #14213d;
  color: #fff;
}
/* Mobile-matched camera (dark viewfinder + teal actions) */
.ep-cashier-split .ep-pos__cam {
  position: relative;
  height: 132px;
  min-height: 132px;
  max-height: 132px;
  width: 100%;
  max-width: none;
  align-self: stretch;
  box-sizing: border-box;
  border-radius: 14px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid #14213d;
  background: radial-gradient(circle at 50% 40%, #1b2d52 0%, #0c1426 72%);
  color: #d7f7f3;
}
.ep-cashier-split .ep-pos__cam.is-live,
.ep-cashier-split .ep-pos__cam.is-shot {
  height: 176px;
  min-height: 176px;
  max-height: 176px;
}
.ep-cashier-split .ep-cam__idle {
  height: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 6px 12px 38px;
  text-align: center;
  color: #d7f7f3;
}
.ep-cashier-split .ep-cam__idle p {
  font-size: 11px;
  line-height: 14px;
  max-width: none;
  font-weight: 700;
  color: #d7f7f3;
  margin: 0;
}
.ep-cashier-split .ep-cam__mark { display: none; }
.ep-cashier-split .ep-cam__corner { display: block; }
.ep-cashier-split .ep-cam__corner--a { top: 8px; inset-inline-start: 10px; }
.ep-cashier-split .ep-cam__corner--b { top: 8px; inset-inline-end: 10px; }
.ep-cashier-split .ep-cam__corner--c { bottom: 38px; inset-inline-start: 10px; }
.ep-cashier-split .ep-cam__corner--d { bottom: 38px; inset-inline-end: 10px; }
.ep-cashier-split .ep-cam__actions {
  inset-inline: 8px;
  inset-inline-start: 8px;
  inset-inline-end: 8px;
  top: auto;
  bottom: 7px;
  transform: none;
  width: auto;
  flex-direction: row;
  gap: 6px;
}
.ep-cashier-split .ep-cam__actions button {
  flex: 1;
  min-height: 28px;
  font-size: 11px;
  border-radius: 8px;
  padding: 0 8px;
  gap: 4px;
  white-space: nowrap;
  background: #77f4e8;
  color: #14213d;
  border: 0;
  font-weight: 800;
}
.ep-cashier-split .ep-pos__cam [data-ep-ocr-status]:empty { display: none; }
.ep-cashier-split .ep-pos__cam [data-ep-ocr-status] {
  top: 6px;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ep-cashier-split .ep-cam__actions button svg { width: 15px; height: 15px; }
.ep-cashier-split .ep-pos__plate {
  font-size: 1.12rem;
  padding: 6px 10px;
  min-height: 38px;
  border-width: 2px;
  border-radius: 10px;
  background: #fff;
}
.ep-cashier-split .ep-pos__plate-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748b;
  margin-bottom: 4px;
}
.ep-cashier-split .ep-pos__go {
  min-height: 38px;
  border-radius: 10px;
  font-size: 0.86rem;
  box-shadow: 0 8px 18px rgba(20, 33, 61, 0.14);
}
.ep-pos__print-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ep-pos__go--keys {
  background: #fff;
  color: #14213d;
  border: 1.5px solid #14213d;
  box-shadow: none;
  font-weight: 800;
}
.ep-pos__go--keys:hover {
  background: #f8fafc;
}
.ep-cashier-split [data-ep-desk] .niv-input,
.ep-cashier-split [data-ep-desk] .niv-btn {
  min-height: 34px;
}
.ep-pos__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ep-pos__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ep-pos__scroll { display: contents; }
.ep-cashier-split .ep-pos__scroll { display: flex; }

.ep-cashier-records .ep-ops-list-tools {
  flex: 0 0 auto;
  margin: 0;
  padding: 10px 12px 8px;
  border: 0;
  border-bottom: 1px solid #e8eef5;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}
.ep-ops-list-tools__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ep-ops-list-tools__count {
  font-size: 0.88rem;
  color: #0f172a;
  font-weight: 800;
}
.ep-ops-list-tools__acts {
  display: flex;
  gap: 5px;
  flex: 0 0 auto;
}
.ep-ops-list-tools__acts .niv-btn {
  min-width: 32px;
  min-height: 32px;
  border-radius: 9px;
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #334155;
}
.ep-car-cards {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 8px 10px 10px;
  overflow: hidden;
  background: #f4f7fb;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
.ep-car-cards__search {
  position: relative;
  flex: 0 0 auto;
  margin-bottom: 8px;
}
.ep-car-cards__search i {
  position: absolute;
  inset-inline-start: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
  z-index: 1;
  font-size: 0.8rem;
}
.ep-car-cards__search input {
  padding-inline-start: 2.1rem;
  min-height: 36px;
  font-weight: 700;
  font-size: 0.86rem;
  border-radius: 10px;
  background: #fff;
  border-color: #d7e0ec;
  width: 100%;
  box-sizing: border-box;
}
.ep-car-cards__list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 1px 4px;
  touch-action: pan-y;
}
.ep-car-cards__empty {
  margin: 22px 8px;
  text-align: center;
  color: #64748b;
  font-weight: 700;
  font-size: 0.86rem;
}

/* Shared Iraq plate (mobile match) */
.ep-iq-plate {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: stretch;
  min-height: 42px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid #0f172a;
  background: linear-gradient(180deg, #ffffff 0%, #f3f6fa 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.ep-iq-plate__band {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: linear-gradient(180deg, #0f766e 0%, #115e59 100%);
  color: #ecfeff;
  padding: 4px 2px;
}
.ep-iq-plate__flag {
  width: 16px;
  height: 10px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(#ce1126 0 33%, #fff 33% 66%, #000 66% 100%);
}
.ep-iq-plate__band b {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
}
.ep-iq-plate__num {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3px 7px;
  min-width: 0;
  gap: 1px;
}
.ep-iq-plate__city {
  font-size: 0.62rem;
  font-weight: 800;
  color: #475569;
  line-height: 1.1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ep-iq-plate__num strong {
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #0f172a;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.ep-iq-plate--sm {
  grid-template-columns: 28px minmax(0, 1fr);
  min-height: 38px;
  border-radius: 9px;
}
.ep-iq-plate--sm .ep-iq-plate__num strong { font-size: 0.86rem; }
.ep-iq-plate--sm .ep-iq-plate__flag { width: 13px; height: 8px; }
.ep-iq-plate--sm .ep-iq-plate__band b { font-size: 7px; }

.ep-car-card {
  position: relative;
  background: #fff;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
  border-inline-start: 4px solid #22c55e;
  flex: 0 0 auto;
  min-width: 0;
}
.ep-car-card.is-parked { border-inline-start-color: #22c55e; }
.ep-car-card.is-valet { border-inline-start-color: #8b5cf6; }
.ep-car-card.is-self { border-inline-start-color: #3b82f6; }
.ep-car-card.is-fetch { border-inline-start-color: #f59e0b; }
.ep-car-card.is-door { border-inline-start-color: #14b8a6; }
.ep-car-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.07);
}
.ep-car-card__body {
  padding: 7px 8px 8px;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 8px;
  align-items: start;
}
.ep-car-card__head {
  display: grid;
  grid-template-columns: minmax(112px, 1fr) minmax(0, 1.4fr);
  gap: 6px 8px;
  align-items: stretch;
  min-width: 0;
}
.ep-car-card__body > .ep-iq-plate,
.ep-car-card__head > .ep-iq-plate {
  min-width: 0;
  width: 100%;
}
.ep-car-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  min-width: 0;
}
.ep-car-fact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 3px 6px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  line-height: 1.15;
}
.ep-car-fact small {
  font-size: 0.58rem;
  font-weight: 800;
  color: #64748b;
}
.ep-car-fact b {
  font-size: 0.78rem;
  font-weight: 800;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ep-car-fact--locker {
  background: #fef3c7;
  border-color: #fcd34d;
}
.ep-car-fact--locker b { color: #b45309; }
.ep-cashier-records .ep-car-card__body {
  display: grid;
}
.ep-car-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  min-width: 0;
}
.ep-car-card__status,
.ep-car-card__chip {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ep-car-card__status,
.ep-car-card__status--parked {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
}
.ep-car-card__status--fetch {
  background: #fff7ed;
  border-color: #fdba74;
  color: #c2410c;
}
.ep-car-card__status--door {
  background: #ccfbf1;
  border-color: #5eead4;
  color: #0f766e;
}
.ep-car-card__chip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-weight: 700;
}
.ep-car-card__chip--self {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
}
.ep-car-card__chip--valet {
  background: #ede9fe;
  border-color: #c4b5fd;
  color: #6d28d9;
}
.ep-car-card__chip--svc {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: #0369a1;
}
.ep-car-card__chip--spot {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #b45309;
}
.ep-car-card__chip--when {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}
.ep-car-card__chip--stay {
  background: #cffafe;
  border-color: #67e8f9;
  color: #0e7490;
}
.ep-car-card__chip--stay.is-long {
  background: #ffe4e6;
  border-color: #fda4af;
  color: #be123c;
}
.ep-car-card__acts {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  justify-content: flex-end;
  align-items: center;
  flex: 0 0 auto;
}
.ep-car-card__prints {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  justify-content: flex-end;
  align-items: center;
}
.ep-car-card__prints .tk-row-act {
  background: #fff;
  color: #14213d;
  border-color: #cbd5e1;
}
.ep-car-card__prints .tk-row-act:hover {
  background: #f8fafc;
  color: #0d1730;
}
.ep-car-card__acts .tk-row-act,
.ep-car-card__prints .tk-row-act {
  border-radius: 8px;
  min-height: 30px;
  padding: 0.28rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  margin: 0;
}
.ep-car-card__acts .tk-row-act {
  background: #14213d;
  border-color: #14213d;
  color: #fff;
}
.ep-car-card__acts .tk-row-act:hover {
  background: #0d1730;
  color: #fff;
}

@media (max-width: 1280px) {
  .ep-cashier-split {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.85fr);
  }
  .ep-cashier-split > .ep-pos,
  .ep-cashier-records {
    overflow: auto;
  }
}
@media (max-width: 1100px) {
  .ep-cashier-page.tk-shell {
    height: auto;
    max-height: none;
    overflow: visible;
  }
  .ep-cashier-page .tk-main {
    height: auto;
    max-height: none;
    overflow: auto;
  }
  .ep-cashier-split {
    grid-template-columns: 1fr;
    overflow: visible;
  }
  .ep-cashier-split > .ep-pos,
  .ep-cashier-records { overflow: visible; }
  .ep-cashier-split > .ep-pos > [data-ep-mode-panel] {
    overflow: visible;
    display: block;
  }
  .ep-cashier-split > .ep-pos > [data-ep-mode-panel="valet"] {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: min(70vh, 720px);
  }
  .ep-cashier-split [data-ep-vpanel] {
    overflow-y: auto;
  }
  .ep-cashier-split .ep-pos__panel,
  .ep-cashier-split .ep-pos__scroll,
  .ep-cashier-split .ep-pos__panel--pay,
  .ep-cashier-split .ep-pos__out-side {
    overflow: visible;
  }
  .ep-cashier-split .ep-pos__actions {
    grid-template-columns: 1fr;
  }
  .ep-cashier-split .ep-pos__paper { width: fit-content; }
  .ep-cashier-split .ep-pos__grid,
  .ep-cashier-split .ep-pos__grid--entry { grid-template-columns: 1fr 1fr; }
  .ep-cashier-split .ep-pos__cell--site,
  .ep-cashier-split .ep-pos__cell--plate { grid-column: auto; }
  .ep-cashier-split .ep-pos__day { grid-template-columns: 1fr 1fr; }
  .ep-car-cards__list { max-height: 48vh; overflow-y: auto; }
}
@media (max-width: 900px) {
  .ep-cashier-split .ep-pos__grid,
  .ep-cashier-split .ep-pos__grid--entry { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ep-car-card__body {
    grid-template-columns: minmax(120px, 1fr) auto;
  }
}
@media (max-height: 820px) {
  .ep-cashier-split .ep-pos__cam { height: 120px; min-height: 120px; max-height: 120px; }
  .ep-cashier-split .ep-pos__cam.is-live,
  .ep-cashier-split .ep-pos__cam.is-shot { height: 148px; min-height: 148px; max-height: 148px; }
  .ep-cashier-split .ep-pos__plate { font-size: 1.05rem; min-height: 34px; }
}

.ep-val-spot { min-width: 9.5rem; max-width: 16rem; }
.ep-val-empty { color: #9a3412; font-weight: 700; font-size: 13px; }
.ep-pos__form, .ep-pos__scan, .ep-pos__bill { display: flex; flex-direction: column; gap: 8px; }
.ep-pos__plate {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .04em;
  color: #14213D;
  direction: ltr;
  text-align: left;
  border: 2px solid #14213D;
  border-radius: 12px;
  padding: 10px 12px;
  width: 100%;
  box-sizing: border-box;
}
.ep-pos__go { min-height: 48px; font-size: 16px; font-weight: 800; }
.ep-pos__paper { display: flex; gap: 8px; align-items: center; }
.ep-pos__paper .is-on { background: #14213D; color: #fff; }
.ep-pos__scan-input {
  font-size: 22px;
  min-height: 52px;
  border-radius: 12px;
  border: 2px solid #14213D;
  padding: 8px 12px;
  direction: ltr;
}
.ep-pos__bill-plate { font-size: 32px; font-weight: 800; color: #14213D; direction: ltr; }
.ep-pos__bill-amount { font-size: 40px; font-weight: 800; color: #14213D; }
.ep-pos__bill-meta { display: flex; justify-content: space-between; gap: 8px; color: #5d677c; font-weight: 700; }
@media (max-width: 860px) {
  .ep-pos__panel { grid-template-columns: 1fr; }
  .ep-pos__cam { height: 220px; }
}
.ep-print-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-inline-start: auto;
}
@media print {
  .kw-modal-overlay,
  .swal2-container,
  body.ep-printing .tk-shell,
  body.ep-printing .taktek-preloader,
  body.ep-printing .tk-impersonate-bar {
    display: none !important;
  }
  body.ep-printing #print-section {
    display: block !important;
    visibility: visible !important;
    position: static !important;
    width: 100% !important;
  }
}

.ep-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.ep-logo__mark { width: 1.85rem; height: auto; display: block; flex: none; }
.ep-logo__bar { fill: #52D2C7; }
.ep-logo__stem { fill: #14213D; }
.ep-logo--on-navy .ep-logo__stem { fill: #fff; }
.ep-logo--on-teal .ep-logo__bar { fill: #fff; }
.ep-logo--on-teal .ep-logo__stem { fill: #14213D; }
.ep-logo--on-teal .ep-logo__easy,
.ep-logo--on-teal .ep-logo__parking { color: #14213D; }
.ep-logo--sm .ep-logo__mark { width: 1.45rem; }
.ep-logo--xl .ep-logo__mark { width: 2.75rem; }
.ep-logo--stack { flex-direction: column; gap: 0.35rem; align-items: center; }
.ep-logo--stack.ep-logo--xl .ep-logo__mark { width: 4.6rem; }
.ep-logo__word {
  font-family: Michroma, sans-serif;
  font-weight: 400;
  font-size: 0.62rem;
  line-height: 1.15;
  letter-spacing: 0;
  white-space: nowrap;
}
.ep-logo--xl .ep-logo__word { font-size: 0.92rem; }
.ep-logo__easy { color: var(--ep-navy); }
.ep-logo__parking { color: var(--ep-teal); }
.ep-logo--on-navy .ep-logo__easy { color: #fff; }
.tk-sidebar__brand {
  overflow: hidden;
  min-height: 4.25rem;
}
.tk-sidebar__brand .ep-logo {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  gap: 0.4rem;
}
.tk-sidebar__brand .ep-logo__word {
  font-size: 1rem;
  line-height: 1.1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tk-sidebar__brand .ep-logo__mark {
  width: 3rem;
  height: 3rem;
}
@media (min-width: 981px) {
  .tk-app-body.tk-sidebar-collapsed .tk-sidebar__brand {
    min-height: 0;
    overflow: visible;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.7rem 0.25rem 0.45rem;
  }
  .tk-app-body.tk-sidebar-collapsed .tk-sidebar__brand .ep-logo {
    flex: none;
    justify-content: center;
    overflow: visible;
  }
  .tk-app-body.tk-sidebar-collapsed .tk-sidebar__brand .ep-logo__word {
    display: none;
  }
  .tk-app-body.tk-sidebar-collapsed .tk-sidebar__brand .ep-logo__mark {
    width: 3rem;
    height: 3rem;
  }
  .tk-app-body.tk-sidebar-collapsed .tk-sidebar__collapse {
    width: 1.65rem;
    height: 1.65rem;
  }
}

.tk-sidebar {
  background: var(--ep-cloud);
  color: var(--ep-navy);
  border-inline-end: 1px solid var(--ep-line);
}
.tk-sidebar__brand,
.tk-sidebar__lang {
  background: #fff;
  border-bottom-color: var(--ep-line);
}
.tk-sidebar__link { color: var(--ep-navy); }
.tk-sidebar__link:hover { background: rgba(82, 210, 199, 0.14); color: var(--ep-navy); }
.tk-sidebar__link.is-active {
  background: rgba(82, 210, 199, 0.22);
  color: var(--ep-navy);
  box-shadow: inset 3px 0 0 var(--ep-teal);
}
html[dir="rtl"] .tk-sidebar__link.is-active { box-shadow: inset -3px 0 0 var(--ep-teal); }
.tk-sidebar__link.is-active .tk-sidebar__chev { color: var(--ep-navy); }
.tk-sidebar__link.is-active .tk-sidebar__icon { box-shadow: 0 0 0 2px rgba(82, 210, 199, 0.55); }
.tk-sidebar__icon--brand { background: rgba(20, 33, 61, 0.12); color: #14213d; }
.tk-sidebar__icon--teal { background: rgba(82, 210, 199, 0.28); color: #0f766e; }
.tk-sidebar__icon--green { background: rgba(16, 185, 129, 0.2); color: #047857; }
.tk-sidebar__icon--emerald { background: rgba(52, 211, 153, 0.22); color: #059669; }
.tk-sidebar__icon--blue { background: rgba(59, 130, 246, 0.18); color: #1d4ed8; }
.tk-sidebar__icon--indigo { background: rgba(99, 102, 241, 0.18); color: #4338ca; }
.tk-sidebar__icon--violet { background: rgba(139, 92, 246, 0.18); color: #6d28d9; }
.tk-sidebar__icon--orange { background: rgba(249, 115, 22, 0.18); color: #c2410c; }
.tk-sidebar__icon--amber { background: rgba(245, 158, 11, 0.22); color: #b45309; }
.tk-sidebar__icon--cyan { background: rgba(34, 211, 238, 0.22); color: #0e7490; }
.tk-sidebar__icon--pink { background: rgba(236, 72, 153, 0.18); color: #be185d; }
.tk-sidebar__icon--rose { background: rgba(244, 63, 94, 0.16); color: #e11d48; }
.tk-sidebar__icon--slate { background: rgba(100, 116, 139, 0.18); color: #334155; }

.tk-auth-page { background: var(--ep-cloud); }
.tk-auth-brand {
  background: var(--ep-teal);
  color: var(--ep-navy);
}
.tk-auth-brand__title,
.tk-auth-brand__feats { color: var(--ep-navy); }
.tk-auth-brand__text { color: rgba(20, 33, 61, 0.78); }
.tk-auth-brand__orb { background: rgba(20, 33, 61, 0.08); }
.tk-auth-brand__ico { background: var(--ep-navy); color: #fff; }
.tk-auth-form-side { background: var(--ep-cloud); }
.tk-auth-card {
  border: 1px solid var(--ep-line);
  box-shadow: 0 18px 48px rgba(20, 33, 61, 0.08);
}
.tk-impersonate-bar { background: var(--ep-navy) !important; }
.tk-impersonate-bar .niv-btn { color: var(--ep-navy) !important; }
.tk-auth-btn { background: var(--ep-navy); }
.tk-auth-btn:hover { background: var(--ep-navy-dark); }
.tk-auth-btn--ghost { color: var(--ep-navy); border-color: rgba(20, 33, 61, 0.22); }
.tk-auth-btn--ghost:hover { background: rgba(82, 210, 199, 0.18); }
.niv-input:focus,
.niv-select:focus,
.tk-auth-card input:focus {
  border-color: var(--ep-navy);
  box-shadow: 0 0 0 3px rgba(82, 210, 199, 0.35);
}

.ep-skel {
  display: block;
  height: 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, #e7ebf2 0%, #f7f8fb 42%, #e7ebf2 80%);
  background-size: 220% 100%;
  animation: ep-skel 1.15s ease-in-out infinite;
}
.ep-skel-row td { padding: 14px 12px; }
.ep-skel-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 84px;
}
.ep-skel--icon { width: 42px; height: 42px; border-radius: 12px; flex: 0 0 42px; }
.ep-skel-card__text { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ep-skel--value { width: 46%; height: 18px; }
.ep-skel--label { width: 68%; height: 12px; }
.ep-skel-panel { display: grid; gap: 12px; padding: 8px 0 4px; }
.ep-wiz.is-loading .ep-wiz__steps,
.ep-wiz.is-loading [data-wiz-panel],
.ep-wiz.is-loading .ep-wiz__nav,
.ep-wiz.is-loading #epGarageMsg { display: none; }
.ep-wiz:not(.is-loading) .ep-skel-panel { display: none; }
@keyframes ep-skel {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ep-skel { animation: none; }
}

form.ep-wiz {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  padding: 22px 22px 16px;
  border: 1px solid var(--ep-line);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(20, 33, 61, 0.06);
}
form.ep-wiz > * { width: 100%; min-width: 0; }
.ep-wiz [hidden] { display: none !important; }
.ep-wiz__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 6px;
  background: #f6f7f9;
  border: 1px solid var(--ep-line);
  border-radius: 16px;
}
.ep-wiz__step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border: 1px solid transparent;
  background: transparent;
  color: #5d677c;
  border-radius: 12px;
  padding: 8px 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}
.ep-wiz__num {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e3e7ee;
  color: #14213d;
  font-weight: 800;
  flex: 0 0 auto;
  line-height: 1;
}
.ep-wiz__step-txt { line-height: 1.3; }
.ep-wiz__step.is-done {
  color: #0f766e;
}
.ep-wiz__step.is-done .ep-wiz__num {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}
.ep-wiz__step.is-on {
  background: var(--ep-navy);
  color: #fff;
  border-color: var(--ep-navy);
  box-shadow: 0 8px 18px rgba(20, 33, 61, 0.14);
}
.ep-wiz__step.is-on .ep-wiz__num {
  background: #52d2c7;
  border-color: #52d2c7;
  color: #14213d;
}
.ep-wiz__guide {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 14px;
  padding: 12px 14px;
  background: #f3fbfa;
  border: 1px solid #d7f3ef;
  border-radius: 14px;
  color: #14213d;
}
.ep-wiz__guide i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #14213d;
  color: #52d2c7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
}
.ep-wiz__guide strong { display: block; margin-bottom: 2px; font-weight: 800; }
.ep-wiz__guide p { margin: 0; color: #3d4760; line-height: 1.55; font-weight: 650; }
.ep-garage-pick { display: flex; flex-direction: column; gap: 10px; }
.ep-garage-pick__find { font-weight: 700; min-height: 46px; }
.ep-garage-pick__scroll {
  position: relative;
  max-height: 360px;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid #e3e7ee;
  border-radius: 16px;
  background: #f6f7f9;
}
@media (min-width: 981px) {
  .ep-garage-pick__scroll { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.ep-garage-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 76px;
  padding: 12px 14px;
  border: 1px solid #e3e7ee;
  border-radius: 14px;
  background: #fff;
  color: #14213d;
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.ep-garage-card strong { font-weight: 800; font-size: 1.02rem; line-height: 1.35; }
.ep-garage-card small { color: #5d677c; font-weight: 650; line-height: 1.35; }
.ep-garage-card.is-on {
  background: #14213d;
  border-color: #14213d;
  color: #fff;
  box-shadow: 0 8px 18px rgba(20, 33, 61, 0.16);
}
.ep-garage-card.is-on small { color: #9eeae3; }
.ep-garage-pick__pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.ep-garage-pick__pager span { font-weight: 800; color: #14213d; min-width: 4.5rem; text-align: center; }
.ep-garage-pick__pager .niv-btn:disabled { opacity: 0.45; }
.ep-wiz__choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.ep-wiz__choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--ep-line);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
  cursor: pointer;
  min-height: 92px;
}
.ep-wiz__choice input { margin-top: 4px; accent-color: var(--ep-navy); }
.ep-wiz__choice:has(input:checked) {
  border-color: var(--ep-teal);
  background: #f3fbfa;
  box-shadow: 0 0 0 3px rgba(82, 210, 199, 0.35);
}
.ep-wiz__choice small { display: block; color: var(--ep-mute); margin-top: 4px; line-height: 1.45; }
.ep-wiz__hours,
.ep-wiz__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.ep-wiz__hours .niv-field,
.ep-wiz__grid .niv-field { margin: 0; }
.ep-wiz__note { margin: 0; color: var(--ep-mute); }
.ep-wiz__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--ep-line);
}
.ep-pos__hint { margin: 8px 0 0; color: var(--ep-navy); font-weight: 700; }
.ep-time12 { position: relative; display: block; }
.ep-time12__face {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--ep-line);
  border-radius: 12px;
  background: #fff;
  color: var(--ep-navy);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  direction: ltr;
}
.ep-time12.is-open .ep-time12__face,
.ep-time12__face:focus {
  border-color: var(--ep-navy);
  box-shadow: 0 0 0 3px rgba(82, 210, 199, 0.35);
  outline: none;
}
.ep-time12.is-empty .ep-time12__face { color: var(--ep-mute); font-weight: 600; }
.ep-time12__face svg { width: 20px; height: 20px; flex: 0 0 20px; }
.ep-time12__pop {
  background: #fff;
  border: 1px solid var(--ep-line);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(20, 33, 61, 0.16);
  padding: 8px;
}
.ep-time12__cols { display: grid; grid-template-columns: 1fr 1fr 72px; gap: 6px; height: 220px; }
.ep-time12__col {
  overflow: auto;
  border-radius: 12px;
  background: var(--ep-cloud);
  padding: 4px;
}
.ep-time12__cell {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 8px;
  min-height: 36px;
  font: inherit;
  font-weight: 700;
  color: var(--ep-navy);
  cursor: pointer;
}
.ep-time12__cell.is-on { background: var(--ep-navy); color: #fff; }
.ep-time12__apcol { display: flex; flex-direction: column; gap: 6px; }
.ep-time12__apcol .ep-time12__cell { flex: 1; background: #fff; border: 1px solid var(--ep-line); }
.ep-time12__apcol .ep-time12__cell.is-on { background: var(--ep-navy); color: #fff; border-color: var(--ep-navy); }
.ep-time12__next { display: block; margin-top: 6px; color: #0f766e; font-weight: 700; font-size: 0.82rem; }
.kw-field .ep-time12 { margin-top: 2px; }
@media (max-width: 720px) {
  .ep-wiz__steps { grid-template-columns: 1fr 1fr; }
  form.ep-wiz { padding: 16px 12px 12px; }
  .tk-dash-kpi-row { grid-template-columns: 1fr 1fr; }
}

.tk-app-body .tk-fade-up {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}
.ep-shell-skel__top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ep-skel--title { width: min(240px, 55%); height: 22px; }
.ep-shell-skel__menu {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.ep-shell-skel__menu span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: #14213d;
}
.ep-shell-skel__kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.ep-shell-skel__card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 14px;
  background: #fff;
  border: 1px solid #e3e7ee;
  border-radius: 14px;
}
.ep-shell-skel__lines { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.ep-shell-skel__filters {
  display: grid;
  grid-template-columns: 140px 140px minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid #e3e7ee;
  border-radius: 14px;
}
.ep-skel--field { height: 40px; width: 100%; }
.ep-shell-skel__table {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e3e7ee;
  border-radius: 14px;
}
@media (max-width: 980px) {
  .ep-shell-skel__menu { display: inline-flex; }
  .ep-shell-skel__kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .ep-shell-skel__kpis,
  .ep-shell-skel__filters { grid-template-columns: 1fr; }
  .ep-time12__cols { grid-template-columns: 1fr 1fr 64px; height: 200px; }
}
html body :where(h1, h2, h3, h4, h5, h6, p, a, span, button, label, div, li, td, th, small, strong, b, em, dt, dd, legend, option, figcaption, input, select, textarea) {
  font-family: "Neo Sans Arabic", sans-serif !important;
}
.ep-logo__word,
.ep-logo__word span {
  font-family: Michroma, "Neo Sans Arabic", sans-serif !important;
}
.fa, .fas, .far, .fab, .fa-solid, .fa-regular, .fa-brands,
.fa::before, .fas::before, .far::before, .fab::before,
.fa-solid::before, .fa-regular::before, .fa-brands::before {
  font-family: "Font Awesome 6 Free" !important;
  font-style: normal !important;
  font-variant: normal !important;
  text-rendering: auto !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  speak: never;
}
.fas, .fa-solid, .fas::before, .fa-solid::before {
  font-weight: 900 !important;
}
.far, .fa-regular, .far::before, .fa-regular::before {
  font-weight: 400 !important;
}
.fab, .fa-brands, .fab::before, .fa-brands::before {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
}
.ep-act-na {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  padding: 0.35rem 0.55rem;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 700;
}

.ep-page-skel { display: none; }
.ep-page-skel__bar,
.ep-page-skel__hero,
.ep-page-skel__filters,
.ep-page-skel__panel,
.ep-page-skel__table,
.ep-page-skel__card,
.ep-page-skel__tile {
  background: #fff;
  border: 1px solid #e3e7ee;
  border-radius: 16px;
}
.ep-page-skel__bar,
.ep-page-skel__hero {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.ep-page-skel .tk-topbar__menu {
  width: 42px;
  height: 42px;
  padding: 0;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.ep-page-skel .tk-topbar__menu span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: #14213d;
}
.ep-skel--btn { width: 128px; height: 40px; margin-inline-start: auto; border-radius: 12px; }
.ep-skel--grow { flex: 1; }
.ep-skel--pill { height: 64px; border-radius: 16px; }
.ep-skel--tab { width: 140px; height: 40px; border-radius: 12px; }
.ep-skel--step { height: 42px; border-radius: 12px; }
.ep-page-skel__kpis,
.ep-page-skel__status,
.ep-page-skel__pills,
.ep-page-skel__split,
.ep-page-skel__choices,
.ep-page-skel__steps,
.ep-page-skel__desk {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}
.ep-page-skel__kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ep-page-skel__kpis--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ep-page-skel__card,
.ep-page-skel__tile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 14px;
}
.ep-page-skel__tile { flex-direction: column; align-items: flex-start; min-height: 120px; }
.ep-page-skel__lines { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ep-page-skel__pills { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ep-page-skel__status { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ep-page-skel__split,
.ep-page-skel__choices,
.ep-page-skel__desk { grid-template-columns: 1.1fr 0.9fr; }
.ep-page-skel__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ep-page-skel__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  margin-bottom: 14px;
}
.ep-page-skel__filters .ep-skel--field { width: 140px; height: 42px; }
.ep-page-skel__filters .ep-skel--grow { flex: 1 1 180px; width: auto; }
.ep-page-skel__sums { display: flex; gap: 18px; margin: 0 0 12px; }
.ep-page-skel__sums .ep-skel { width: 90px; }
.ep-page-skel__table,
.ep-page-skel__panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  margin-bottom: 14px;
}
.ep-page-skel__panel--tall { min-height: 280px; align-content: start; }
.ep-page-skel__cam { min-height: 190px; border-radius: 16px; background: linear-gradient(180deg, #e7ebf2, #f7f8fb); }
.ep-page-skel__choice { min-height: 96px; border-radius: 16px; border: 1px solid #e3e7ee; background: #fff; }
.ep-page-skel__sheet { height: 180px; width: 100%; border-radius: 12px; }
.ep-page-skel__tabs { display: flex; gap: 8px; margin-bottom: 12px; }

.tk-app-body { background: #f3f5f8; }
.tk-main { padding: 16px 16px 40px; }
.tk-topbar,
.tk-topbar--compact {
  background: #fff;
  border: 1px solid #e3e7ee;
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 14px;
  box-shadow: 0 8px 22px rgba(20, 33, 61, 0.04);
}
.tk-app-body .niv-panel {
  border-radius: 16px;
  border-color: #e3e7ee;
  box-shadow: 0 10px 28px rgba(20, 33, 61, 0.05);
}
.tk-app-body .tk-bolt-orders thead th {
  background: #f6f7f9;
  color: #14213d;
  font-weight: 700;
}
.tk-app-body .tk-bolt-orders tbody tr:hover { background: #f4fbfa; }
.tk-app-body .niv-btn { border-radius: 12px; }
.tk-app-body .niv-input,
.tk-app-body .niv-select { border-radius: 12px; }
@media (max-width: 980px) {
  .ep-page-skel .tk-topbar__menu { display: inline-flex; }
  .ep-page-skel__kpis,
  .ep-page-skel__kpis--5,
  .ep-page-skel__status { grid-template-columns: 1fr 1fr; }
  .ep-page-skel__split,
  .ep-page-skel__choices,
  .ep-page-skel__desk,
  .ep-page-skel__steps { grid-template-columns: 1fr; }
  .tk-main { padding: 12px 10px 32px; }
}
@media (max-width: 560px) {
  .ep-page-skel__kpis,
  .ep-page-skel__kpis--5,
  .ep-page-skel__status,
  .ep-page-skel__pills { grid-template-columns: 1fr; }
  .ep-page-skel__bar { flex-wrap: wrap; }
}

.ep-val-stay { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.ep-spots { display: flex; flex-direction: column; gap: 14px; }
.ep-spots__site { padding: 16px; }
.ep-spots__head, .ep-spots__floor-head, .ep-spots__add, .ep-spots__range, .ep-spots__ask, .ep-spots__actions {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.ep-spots__range[hidden], .ep-spots__ask[hidden] { display: none; }
.ep-spots__head { justify-content: space-between; margin-bottom: 12px; }
.ep-spots__head h2 { margin: 0; font-size: 1.15rem; }
.ep-spots__meta, .ep-spots__none { margin: 0; color: #5d677c; font-size: 0.86rem; }
.ep-spots__floors { display: flex; flex-direction: column; gap: 10px; }
.ep-spots__floor {
  background: #f6f7f9;
  border: 1px solid #e3e7ee;
  border-radius: 14px;
  padding: 12px;
}
.ep-spots__title {
  flex: 1; min-width: 140px; border: 0; background: transparent;
  font: inherit; font-weight: 800; color: #14213d; padding: 4px 0;
}
.ep-spots__title:focus { outline: none; border-bottom: 2px solid #52d2c7; }
.ep-spots__text-btn, .ep-spots__danger { color: #b42318; }
.ep-spots__text-btn { border: 0; background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
.ep-spots__ask {
  background: #fff; border: 1px solid #f3c7c3; border-radius: 12px; padding: 8px 10px; margin: 8px 0;
}
.ep-spots__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.ep-spot {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid #e3e7ee; border-radius: 999px;
  padding: 6px 8px 6px 12px; font-weight: 800; color: #14213d;
}
.ep-spot.is-busy { background: rgba(82, 210, 199, 0.22); border-color: #52d2c7; }
.ep-spot.is-in { animation: epSpotIn .18s ease; }
@keyframes epSpotIn { from { transform: scale(.92); opacity: .4; } to { transform: none; opacity: 1; } }
.ep-spot__x {
  width: 22px; height: 22px; border: 0; border-radius: 50%;
  background: #f6f7f9; color: #5d677c; cursor: pointer; font-size: 1rem; line-height: 1;
}
.ep-spot__x:hover { background: #fde8e6; color: #b42318; }
.ep-spots__add .niv-input, .ep-spots__range .niv-input { width: 120px; min-height: 38px; }
.ep-spots__empty { padding: 18px; }

.ep-stay__btn {
  display: flex; align-items: center; gap: 8px; width: 100%;
  border: 0; background: transparent; color: #9f1239; font: inherit; font-weight: 800;
  padding: 8px 10px; border-radius: 12px; cursor: pointer; text-align: inherit;
  text-decoration: none;
}
.ep-stay__btn.is-hot { background: #fff1f2; }
.ep-stay__btn.is-active { background: #fff1f2; }
.ep-stay__badge {
  margin-inline-start: auto; min-width: 1.35rem; height: 1.35rem; padding: 0 6px;
  border-radius: 999px; background: #b42318; color: #fff; font-size: 0.75rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.ep-stay__badge.is-zero {
  background: #cbd5e1;
  color: #475569;
}
.ep-dash-notices {
  padding: 8px;
}
.ep-dash-notices__empty {
  margin: 24px 8px;
  text-align: center;
  color: #64748b;
  font-weight: 700;
}
.ep-dash-notices__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #eef1f6;
}
.ep-dash-notices__item:last-child { border-bottom: 0; }
.ep-dash-notices__item.is-unread {
  background: #f0f7ff;
  border-radius: 12px;
  border-bottom-color: transparent;
  margin-bottom: 6px;
}
.ep-dash-notices__main { min-width: 0; flex: 1; }
.ep-dash-notices__main strong {
  display: block;
  color: #14213d;
  font-size: 0.95rem;
}
.ep-dash-notices__main p {
  margin: 4px 0 0;
  color: #5d677c;
  font-size: 0.86rem;
  line-height: 1.45;
}
.ep-dash-notices__meta {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
}
.ep-dash-notices__meta a { color: #0f766e; }
.ep-dash-notices__item button {
  flex: none;
  border: 1px solid #d7e0ec;
  background: #fff;
  color: #14213d;
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.ep-stay__panel {
  position: fixed; z-index: 80; max-height: min(70vh, 520px); overflow: auto;
  background: #fff; border: 1px solid #fecaca; border-radius: 16px;
  box-shadow: 0 18px 40px rgba(180, 35, 24, 0.18); padding: 12px;
}
.ep-dash-notif { width: 100%; position: relative; }
.ep-dash-notif .ep-stay__btn { width: 100%; }
.ep-dash-notif__panel.niv-notif__panel {
  position: fixed; inset: auto auto 4.5rem 0.75rem; top: auto;
  width: min(22rem, calc(100vw - 1.5rem));
  z-index: 90; max-height: min(70vh, 520px); overflow: auto;
}
html[dir="rtl"] .ep-dash-notif__panel.niv-notif__panel {
  inset: auto 0.75rem 4.5rem auto;
}
.ep-stay__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #9f1239; }
.ep-stay__all, .ep-stay__actions button {
  border: 0; background: transparent; color: #b42318; font: inherit; font-weight: 700; cursor: pointer;
}
.ep-stay__empty { margin: 12px 0 4px; color: #9f1239; }
.ep-stay__card {
  margin-top: 8px; padding: 10px 12px; border-radius: 12px;
  background: #fff1f2; border: 1px solid #fecaca; color: #7f1d1d;
}
.ep-stay__card.is-read { background: #fff; opacity: 0.78; }
.ep-stay__plate { font-weight: 800; font-size: 1.05rem; direction: ltr; text-align: left; }
.ep-stay__site { font-size: 0.86rem; margin-top: 2px; }
.ep-stay__line { margin-top: 6px; font-weight: 700; }
.ep-stay__time { direction: ltr; unicode-bidi: isolate; color: #b42318; }
.ep-stay__actions { display: flex; gap: 10px; margin-top: 8px; }
.ep-stay__actions a { color: #9f1239; font-weight: 800; }

.swal2-container.ep-logout-host {
  background: rgba(20, 33, 61, 0.46) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.swal2-popup.ep-logout {
  width: min(22.5rem, calc(100vw - 1.5rem)) !important;
  padding: 1.45rem 1.25rem 1.15rem !important;
  border-radius: 16px !important;
  border: 1px solid #e3e7ee !important;
  background:
    linear-gradient(#52D2C7, #52D2C7) top / 100% 4px no-repeat,
    #fff !important;
  box-shadow: 0 18px 48px rgba(20, 33, 61, 0.16) !important;
  font-family: "Neo Sans Arabic", sans-serif !important;
  color: #14213D !important;
}
.swal2-popup.ep-logout .swal2-icon {
  width: auto !important;
  height: auto !important;
  margin: 0.2rem auto 0.15rem !important;
  border: 0 !important;
  background: transparent !important;
  color: #14213D !important;
}
.swal2-popup.ep-logout .swal2-icon .swal2-icon-content {
  display: flex !important;
  justify-content: center !important;
  font-size: inherit !important;
}
.ep-logout__body { margin: 0 !important; padding: 0 !important; }
.ep-logout__mark {
  width: 3.35rem;
  height: 3.35rem;
  margin: 0.35rem auto 0.85rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(82, 210, 199, 0.28);
  color: #14213D;
}
.ep-logout__mark svg { width: 1.45rem; height: 1.45rem; }
.swal2-popup.ep-logout .ep-logout__title {
  margin: 0 !important;
  padding: 0 !important;
  font-family: "Neo Sans Arabic", sans-serif !important;
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  color: #14213D !important;
}
.ep-logout__text {
  margin: 0.4rem 0 0;
  color: #5d677c;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.55;
}
.swal2-popup.ep-logout .ep-logout__actions {
  display: flex !important;
  flex-direction: row !important;
  gap: 0.65rem !important;
  width: 100% !important;
  margin: 1.25rem 0 0 !important;
}
.swal2-popup.ep-logout .ep-logout__go,
.swal2-popup.ep-logout .ep-logout__stay {
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 2.75rem !important;
  margin: 0 !important;
  padding: 0.7rem 0.9rem !important;
  border-radius: 12px !important;
  font-family: "Neo Sans Arabic", sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}
.swal2-popup.ep-logout .ep-logout__go {
  background: #14213D !important;
  color: #fff !important;
  border: 0 !important;
}
.swal2-popup.ep-logout .ep-logout__go:hover { background: #0d1730 !important; color: #fff !important; }
.swal2-popup.ep-logout .ep-logout__stay {
  background: #fff !important;
  color: #14213D !important;
  border: 1px solid rgba(20, 33, 61, 0.18) !important;
}
.swal2-popup.ep-logout .ep-logout__stay:hover {
  background: rgba(82, 210, 199, 0.18) !important;
  border-color: #52D2C7 !important;
  color: #14213D !important;
}
.swal2-popup.ep-inside {
  width: min(24rem, calc(100vw - 1.4rem)) !important;
  padding: 1.2rem 1.15rem 1rem !important;
}
.swal2-popup.ep-inside .swal2-html-container {
  margin: 0 !important;
  overflow: visible !important;
}
.ep-inside__hero {
  margin: 0.85rem 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f6f8fb;
  border: 1px solid #e3e7ee;
  text-align: center;
}
.ep-inside__plate {
  display: block;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #14213d;
  margin: 0 0 4px;
}
.ep-inside__hero .ep-logout__text { margin-top: 2px; }
.ep-inside__acts {
  display: grid;
  gap: 8px;
  margin-top: 1rem;
}
.ep-inside__cta,
.ep-inside__opt,
.ep-inside__ghost {
  width: 100%;
  min-height: 46px;
  margin: 0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
}
.ep-inside__cta {
  border: 0;
  background: #14213d;
  color: #fff;
  box-shadow: 0 8px 18px rgba(20, 33, 61, 0.16);
}
.ep-inside__cta:hover { background: #0d1730; }
.ep-inside__opt {
  background: #fff;
  color: #14213d;
  border: 1px solid rgba(20, 33, 61, 0.16);
}
.ep-inside__opt:hover {
  background: rgba(82, 210, 199, 0.18);
  border-color: #52d2c7;
}
.ep-inside__ghost {
  border: 0;
  background: transparent;
  color: #64748b;
  min-height: 38px;
  font-weight: 700;
}
.ep-inside__ghost:hover { color: #14213d; }

/* Multi-role floor desk — mirror mobile segments */
.ep-switch {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  align-items: stretch;
  margin: 0 0 14px;
}
.ep-switch__btn {
  position: relative;
  border: 1px solid #d7dee7;
  background: #f8fafc;
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 800;
  cursor: pointer;
  color: #14213D;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.ep-switch__btn.is-on {
  background: #14213D;
  color: #fff;
  border-color: #14213D;
}
.ep-seg-badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.25rem;
  height: 1.25rem;
  margin-inline-start: 6px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.ep-switch__btn.is-on .ep-seg-badge {
  background: #52d2c7;
  color: #0c1426;
}
.ep-switch__valet .ep-seg-badge[hidden] {
  display: none !important;
}
.ep-vmode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.ep-vmode button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #d7dee7;
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 800;
  cursor: pointer;
  color: #14213D;
}
.ep-vmode button.is-on {
  background: #14213D;
  color: #fff;
  border-color: #14213D;
}
.ep-vmode b {
  min-width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #e11d48;
  color: #fff;
  font-size: 12px;
}
.ep-vmode button.is-on b { background: #52d2c7; color: #0c1426; }
.ep-vlead {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e8edf4;
  color: #475569;
  font-weight: 650;
  font-size: 0.86rem;
  line-height: 1.45;
}
.ep-cashier-split > .ep-pos > [data-ep-mode-panel="valet"] {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.ep-cashier-split .ep-vmode {
  flex: 0 0 auto;
  margin-bottom: 8px;
}
.ep-cashier-split [data-ep-vpanel] {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 transparent;
}
.ep-cashier-split [data-ep-vpanel]::-webkit-scrollbar {
  width: 8px;
}
.ep-cashier-split [data-ep-vpanel]::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 99px;
}
.ep-cashier-split [data-ep-vlist] {
  min-height: 0;
}
.ep-vtask {
  position: relative;
  border: 1px solid #e6ebf2;
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 10px 26px rgba(20, 33, 61, 0.06);
  overflow: hidden;
}
.ep-vtask::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 4px;
  background: #cbd5e1;
}
.ep-vtask--busy { opacity: .9; }
.ep-vtask--busy .ep-vtask__cta { opacity: 0.85; }
.ep-vtask--focus {
  border-color: #52d2c7;
  box-shadow: 0 0 0 2px rgba(82, 210, 199, 0.22), 0 12px 26px rgba(20, 33, 61, 0.08);
}
.ep-vtask--wait { border-color: #fde68a; }
.ep-vtask--wait::before { background: #f59e0b; }
.ep-vtask--move { border-color: #99f6e4; }
.ep-vtask--move::before { background: #14b8a6; }
.ep-vtask--ready { border-color: #6ee7b7; background: linear-gradient(180deg, #f0fdf8 0%, #fff 52%); }
.ep-vtask--ready::before { background: #059669; }
.ep-vtask__main {
  display: grid;
  grid-template-columns: minmax(110px, 0.9fr) minmax(0, 1.2fr) auto;
  gap: 8px 12px;
  align-items: center;
}
.ep-vtask__main > .ep-car-facts {
  min-width: 0;
}
.ep-vtask .ep-iq-plate--desk {
  grid-template-columns: 32px minmax(0, 1fr);
  min-height: 48px;
  border-radius: 10px;
  max-width: 100%;
}
.ep-vtask .ep-iq-plate--desk .ep-iq-plate__num strong { font-size: 1.05rem; }
.ep-vtask__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.ep-vtask__spot {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  dir: ltr;
}
.ep-vtask__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ep-vtask__plate {
  font-size: 18px;
  font-weight: 900;
  color: #14213D;
  letter-spacing: .03em;
}
.ep-vbay {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  text-align: start;
  font: inherit;
}
.ep-vbay--set {
  border-style: solid;
  border-color: #14b8a6;
  background: #ecfeff;
}
.ep-vbay__icon,
.ep-vbay__chev {
  width: 22px;
  height: 22px;
  flex: none;
  color: #0f766e;
}
.ep-vbay__chev { color: #94a3b8; }
.ep-vbay__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.ep-vbay__text small {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}
.ep-vbay__text b {
  font-size: 13px;
  font-weight: 800;
  color: #14213d;
}
.ep-vtask__acts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: 100%;
}
.ep-vtask__acts--split {
  grid-template-columns: 1fr 1fr;
}
.ep-vtask__acts--solo {
  grid-template-columns: 1fr;
}
.ep-vtask__acts--solo .ep-vtask__cta {
  width: 100%;
  min-height: 50px;
}
.ep-vtask__cta {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: #14213d;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  letter-spacing: .01em;
}
.ep-vtask__ico {
  width: 18px;
  height: 18px;
  flex: none;
}
.ep-vtask__cta--fetch {
  background: #14213d;
  box-shadow: 0 8px 16px rgba(20, 33, 61, 0.16);
}
.ep-vtask__cta--pay {
  background: #0f766e;
  box-shadow: 0 8px 16px rgba(15, 118, 110, 0.22);
}
.ep-vtask__steps {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}
.ep-vtask__steps i {
  width: 18px;
  height: 4px;
  border-radius: 99px;
  background: #e2e8f0;
  display: block;
}
.ep-vtask__steps i.is-on { background: #0f766e; }
.ep-vtask--wait .ep-vtask__steps i.is-on { background: #f59e0b; }
.ep-vtask--ready .ep-vtask__steps i.is-on { background: #059669; }
.ep-vtask__cta:hover {
  filter: brightness(1.06);
}
.ep-vtask__cta:disabled {
  cursor: wait;
  opacity: .55;
  filter: none;
}
.ep-vchip {
  border-radius: 999px;
  padding: 5px 10px 5px 8px;
  font-size: 12px;
  font-weight: 800;
  background: #f1f5f9;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.ep-vchip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.ep-vchip[data-tone="wait"] { background: #fff7ed; color: #c2410c; }
.ep-vchip[data-tone="move"] { background: #ecfeff; color: #0e7490; }
.ep-vchip[data-tone="ready"] { background: #ecfdf5; color: #047857; }
.ep-vtask__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}
.ep-vbay-select { display: none; }
.ep-lot-sheet {
  position: fixed;
  inset: 0;
  z-index: 1220;
  background: rgba(20, 33, 61, 0.48);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.ep-lot-sheet[hidden] { display: none !important; }
.ep-lot-sheet__panel {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  max-height: 82vh;
  background: #f6f7f9;
  border-radius: 24px 24px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -12px 40px rgba(20, 33, 61, 0.18);
}
.ep-lot-sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 16px 10px;
}
.ep-lot-sheet__head h2 {
  margin: 0;
  color: #14213d;
  font-size: 1.25rem;
  line-height: 1.3;
}
.ep-lot-sheet__head p {
  margin: 4px 0 0;
  color: #5d677c;
  font-size: 13px;
  font-weight: 700;
}
.ep-lot-sheet__body {
  overflow: auto;
  padding: 4px 12px 8px;
  min-height: 120px;
}
.ep-lot-sheet__floor {
  margin: 0 0 12px;
}
.ep-lot-sheet__floor h3 {
  margin: 0 4px 8px;
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
}
.ep-lot-sheet__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.ep-lot-sheet__grid button {
  min-height: 72px;
  border: 1px solid #e3e7ee;
  border-radius: 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font: inherit;
  color: #14213d;
  padding: 10px 6px;
  cursor: pointer;
}
.ep-lot-sheet__grid button.on {
  border-color: #52d2c7;
  background: #eefbf9;
  box-shadow: inset 0 0 0 1px #52d2c7;
}
.ep-lot-sheet__grid small {
  color: #5d677c;
  font-size: 11px;
  font-weight: 700;
}
.ep-lot-sheet__grid b {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.ep-lot-sheet__empty {
  margin: 12px 8px 16px;
  text-align: center;
  color: #5d677c;
  font-weight: 700;
}
.ep-lot-sheet__skip {
  margin: 0 12px 16px;
  min-height: 44px;
  border: 1px dashed #94a3b8;
  border-radius: 12px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
@media (min-width: 720px) {
  .ep-lot-sheet { align-items: center; padding: 24px; }
  .ep-lot-sheet__panel { border-radius: 20px; max-height: 76vh; }
}
.ep-locker-sheet { z-index: 1400; }
.ep-locker-sheet__find {
  display: block;
  width: calc(100% - 24px);
  margin: 0 12px 8px;
  min-height: 44px;
  border: 1px solid #e3e7ee;
  border-radius: 12px;
  background: #fff;
  padding: 0 14px;
  font: inherit;
  font-weight: 700;
  color: #14213d;
}
.ep-locker-sheet .ep-lot-sheet__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.ep-locker-sheet .ep-lot-sheet__grid button {
  min-height: 58px;
}
.ep-vempty {
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  padding: 28px 18px;
  text-align: center;
  color: #64748b;
}
.ep-vempty strong {
  display: block;
  color: #14213D;
  margin-bottom: 6px;
}
.ep-pos__ticket {
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #d7dee7;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ep-pos__ticket-acts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ep-pos__ticket-acts .niv-btn {
  width: 100%;
  margin: 0;
}
.ep-report-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}
.ep-report-bar__date {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
  color: #334155;
}
.ep-report-bar__date input {
  min-height: 40px;
  border: 1px solid #d7dee7;
  border-radius: 10px;
  padding: 0 10px;
}
.ep-audit {
  border: 1px solid #14213D;
  background: #fff;
  color: #14213D;
  border-radius: 12px;
  min-height: 42px;
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
}
.ep-audit.on {
  background: #ecfdf5;
  border-color: #059669;
  color: #047857;
}
.ep-audit:disabled { cursor: default; opacity: .9; }
.ep-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.ep-metrics--slim > div {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}
.ep-metrics span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}
.ep-metrics strong {
  font-size: 18px;
  color: #14213D;
}
.ep-metrics .money strong { color: #0f766e; }
.ep-table-wrap {
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
}
.ep-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.ep-table th,
.ep-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eef2f7;
  text-align: start;
}
.ep-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 800;
}
.ep-table tfoot td {
  font-weight: 800;
  background: #f8fafc;
}
.ep-hint { color: #64748b; font-weight: 600; }
@media (max-width: 720px) {
  .ep-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Lot board - mobile Home parity */
.ep-lot-page .ep-lot-board { margin: 12px 16px 24px; padding: 16px; }
.ep-lot-switch {
  display: flex;
  gap: 4px;
  padding: 6px;
  margin: 4px 0 14px;
  background: #e8eeff;
  border-radius: 18px;
}
.ep-lot-switch__btn {
  position: relative;
  flex: 1;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #45464d;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.ep-lot-switch__btn.is-on {
  background: #14213d;
  color: #fff;
  box-shadow: 0 6px 14px rgba(20, 33, 61, 0.16);
}
.ep-lot-switch .ep-seg-badge {
  position: absolute;
  top: 4px;
  inset-inline-end: 8px;
  margin: 0;
  box-shadow: 0 0 0 2px #e8eeff;
}
.ep-lot-switch__btn.is-on .ep-seg-badge {
  background: #e11d48;
  color: #fff;
  box-shadow: 0 0 0 2px #14213d;
}
.ep-lot__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0 8px;
}
.ep-lot__head h2 { margin: 0; color: #14213d; font-size: 16px; }
.ep-lot__head span { color: #0f766e; font-size: 13px; font-weight: 700; }
.ep-bays {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.ep-bay {
  min-height: 78px;
  border: 1.5px dashed #c9d1de;
  border-radius: 14px;
  background: #fff;
  color: #14213d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 6px;
  cursor: pointer;
  font: inherit;
}
.ep-bay:disabled { cursor: default; opacity: .9; }
.ep-bay b { font-size: 13px; font-weight: 800; }
.ep-bay small { font-size: 11px; font-weight: 700; color: #0f766e; text-align: center; }
.ep-bay em { font-style: normal; font-size: 10px; font-weight: 750; color: #9a6700; }
.ep-bay.taken {
  border-style: solid;
  border-color: #14213d;
  background: #14213d;
  color: #fff;
}
.ep-bay.taken b { color: #fff; }
.ep-bay.taken small { color: #52d2c7; }
.ep-bay.taken em { color: #9ae6de; }
.ep-bay.door { box-shadow: inset 0 0 0 2px #52d2c7; }
.ep-lot-loose {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
  margin-top: 4px;
}
.ep-lot-loose .ep-lot__empty { grid-column: 1 / -1; }
.ep-car--tap {
  position: relative;
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: start;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #dbe3ef;
  border-radius: 18px;
  background: #fff;
  padding: 12px 12px 12px 14px;
  margin: 0;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
  cursor: pointer;
  overflow: hidden;
  color: #14213d;
}
.ep-car--tap::before {
  content: '';
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 4px;
  background: #94a3b8;
}
.ep-car--tap.is-fetch::before { background: #f59e0b; }
.ep-car--tap.is-door::before { background: #14b8a6; }
.ep-car--tap:hover {
  border-color: #cbd5e1;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}
.ep-car--tap:active { transform: scale(0.994); }
.ep-car__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ep-lot-loose .ep-car__main {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(0, 1.3fr);
  gap: 8px 10px;
  align-items: stretch;
}
.ep-lot-loose .ep-car__meta {
  grid-column: 1 / -1;
}
.ep-lot-loose .ep-iq-plate {
  grid-template-columns: 52px minmax(0, 1fr);
  min-height: 58px;
  border-width: 2px;
  border-radius: 12px;
}
.ep-lot-loose .ep-iq-plate__flag { width: 22px; height: 14px; }
.ep-lot-loose .ep-iq-plate__band b { font-size: 11px; }
.ep-lot-loose .ep-iq-plate__num strong {
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
  font-weight: 900;
  letter-spacing: 0.06em;
}
.ep-car__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.ep-car__status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 800;
}
.ep-car--tap.is-fetch .ep-car__status {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}
.ep-car--tap.is-door .ep-car__status {
  background: #ecfeff;
  border-color: #a5f3fc;
  color: #0f766e;
}
.ep-car__site {
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 700;
}
.ep-car--tap small {
  display: block;
  width: 100%;
  margin-top: 0;
  color: #0f766e;
  font-weight: 800;
  font-size: 0.78rem;
}
.ep-car__chev {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #94a3b8;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.ep-car__chev svg { width: 16px; height: 16px; display: block; }
html[dir="ltr"] .ep-car__chev svg { transform: scaleX(-1); }
@media (min-width: 720px) {
  .ep-lot-loose { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .ep-lot-loose { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1480px) {
  .ep-lot-loose { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.ep-lot__empty {
  margin-top: 12px;
  padding: 28px 16px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #e3e7ee;
  text-align: center;
  color: #5d677c;
}
.ep-lot__empty strong { display: block; margin-bottom: 4px; color: #14213d; }
.ep-bay-sheet, .ep-pay-sheet {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(12, 18, 32, 0.42);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
}
.ep-bay-sheet[hidden], .ep-pay-sheet[hidden] { display: none !important; }
.ep-bay-sheet__panel, .ep-pay-sheet__panel {
  width: min(440px, 100%);
  border-radius: 22px 22px 18px 18px;
  background: #f4f6fa;
  padding: 10px 16px 18px;
  box-shadow: 0 -8px 28px rgba(12, 18, 32, 0.18);
}
.ep-bay-sheet__grab, .ep-pay-sheet__grab {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: #c9d1de;
  margin: 2px auto 12px;
}
.ep-bay-sheet__hero, .ep-pay-hero {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
}
.ep-bay-sheet__hero .ep-plate, .ep-pay-hero .ep-plate {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .04em;
  margin: 0 0 4px;
  color: #14213d;
}
.ep-bay-sheet__hero p, .ep-pay-hero p {
  margin: 2px 0 0;
  color: #5d677c;
  font-size: 13px;
  font-weight: 650;
}
.ep-pay-hero__due {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eef1f6;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.ep-pay-hero__due span { color: #5d677c; font-size: 13px; font-weight: 700; }
.ep-pay-hero__due strong { color: #0f766e; font-size: 26px; font-weight: 800; }
.ep-bay-sheet__list, .ep-pay {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.ep-pay { grid-template-columns: repeat(2, 1fr); }
.ep-bay-sheet__list--with-print {
  grid-template-columns: minmax(0, 1fr) 56px;
  align-items: start;
}
.ep-bay-sheet__list--with-print .ep-bay-sheet__opt:not(.ep-bay-sheet__opt--icon) {
  grid-column: 1;
}
.ep-bay-sheet__list--with-print .ep-bay-sheet__opt--icon {
  grid-column: 2;
  grid-row: 1;
  height: 48px;
}
.ep-bay-sheet__list button, .ep-pay button {
  min-height: 48px;
  border: 1px solid #e3e7ee;
  border-radius: 14px;
  background: #fff;
  color: #14213d;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  padding: 12px 14px;
  box-shadow: 0 1px 3px rgba(20, 33, 61, 0.05);
}
.ep-bay-sheet__list button { text-align: start; }
.ep-bay-sheet__list button.on, .ep-pay button.on {
  border-color: #14213d;
  background: #14213d;
  color: #fff;
}
.ep-bay-sheet__opt--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  min-width: 56px;
  width: 56px;
  background: #eef1f5;
  border-color: #d5dbe6;
  color: #64748b;
  box-shadow: none;
}
.ep-bay-sheet__opt--icon img {
  width: 22px;
  height: 22px;
  display: block;
  filter: invert(42%) sepia(8%) saturate(650%) hue-rotate(182deg) brightness(94%) contrast(88%);
}
.ep-bay-sheet__opt--icon.on {
  background: #dbe3ee;
  border-color: #94a3b8;
  color: #475569;
}
.ep-bay-sheet__opt--icon.on img {
  filter: invert(30%) sepia(10%) saturate(700%) hue-rotate(182deg) brightness(90%) contrast(92%);
}
.ep-bay-sheet__one {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  color: #14213d;
  font-size: 15px;
  font-weight: 750;
  text-align: center;
}
.ep-bay-sheet__actions, .ep-pay-sheet__actions { display: grid; gap: 8px; }
.ep-bay-sheet .ep-cta, .ep-pay-sheet .ep-cta {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: #14213d;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.ep-bay-sheet .ep-cta.ghost, .ep-pay-sheet .ep-cta.ghost {
  background: #fff;
  color: #14213d;
  border: 1px solid #e3e7ee;
  font-weight: 750;
}
.ep-pay-sheet__amt {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0 12px;
  font-size: 12px;
  font-weight: 700;
  color: #5d677c;
}
.ep-pay-sheet__amt input {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(20, 33, 61, 0.06);
  padding: 0 12px;
  font: inherit;
  color: #14213d;
}
.ep-pay-sheet h2 { margin: 0 0 8px; font-size: 18px; }
.ep-pay-sheet.is-open { display: flex; }
.ep-pay-sheet__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.ep-pay-sheet__panel { position: relative; z-index: 1; }
.ep-pay-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.ep-pay-sheet__head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #14213d;
}
.ep-pay-sheet__x {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: #eef2f7;
  color: #334155;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.ep-pay-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0;
}
.ep-pay-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 11px;
  font-weight: 750;
}
.ep-pay-chip[hidden] { display: none !important; }
.ep-pay-hero .ep-iq-plate--sheet {
  min-height: 48px;
  grid-template-columns: 44px minmax(0, 1fr);
}
.ep-pay-hero .ep-iq-plate--sheet .ep-iq-plate__num strong { font-size: 1.15rem; }
.ep-pay-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}
.ep-pay-methods__btn {
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #14213d;
  font: inherit;
  font-weight: 750;
  box-shadow: 0 1px 3px rgba(20, 33, 61, 0.06);
  cursor: pointer;
}
.ep-pay-methods__btn.is-on {
  background: #14213d;
  color: #fff;
}
.ep-pay-sheet__amt-input {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(20, 33, 61, 0.06);
  padding: 0 12px;
  font: inherit;
  font-weight: 800;
  color: #14213d;
  width: 100%;
  box-sizing: border-box;
}
.ep-pay-sheet__cta {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: #14213d;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.ep-pay-sheet__cta--ghost {
  background: #fff;
  color: #14213d;
  border: 1px solid #e3e7ee;
  font-weight: 750;
}
.ep-pay-ready__hint {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 650;
  color: #64748b;
}
html.ep-pay-sheet-open,
html.ep-pay-sheet-open body {
  overflow: hidden;
}
@media (min-width: 900px) {
  .ep-pay-sheet {
    align-items: center;
  }
  .ep-pay-sheet__panel {
    width: min(420px, 92vw);
    border-radius: 20px;
  }
}
.tk-sidebar__actor-site {
  font-size: 12px;
  font-weight: 700;
  color: #5d677c;
  margin-bottom: 6px;
}
.tk-sidebar__roles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tk-sidebar__role-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e8eeff;
  color: #14213d;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}
.tk-sidebar__role-chip:hover { background: #14213d; color: #fff; }
.tk-sidebar__role-chip.is-static { cursor: default; opacity: .85; }

/* Pay tab - mobile-like, no rescan / no shift */
.ep-pos__panel--pay { max-width: none; }
.ep-cashier-split .ep-pos__panel--pay { max-width: none; }
.ep-pay-ready {
  background: #fff;
  border: 1px solid #e3e7ee;
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 0;
}
.ep-pay-ready h3,
.ep-pos__bill-title {
  margin: 0 0 8px;
  font-size: 14px;
  color: #14213d;
  font-weight: 800;
}
.ep-pay-ready__list {
  display: grid;
  gap: 6px;
}
.ep-pay-ready__btn {
  width: 100%;
  text-align: start;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #f8fafc;
  padding: 8px;
  cursor: pointer;
  font: inherit;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.ep-pay-ready__btn:hover {
  border-color: #14b8a6;
  background: #fff;
}
.ep-pay-ready__btn .ep-iq-plate { width: 100%; }
.ep-pay-ready__meta {
  font-size: 11px;
  font-weight: 800;
  color: #0f766e;
  white-space: nowrap;
}
.ep-pay-ready__btn strong {
  font-size: 16px;
  letter-spacing: .03em;
  color: #14213d;
}
.ep-pay-ready__btn span {
  font-size: 12px;
  font-weight: 700;
  color: #0f766e;
}
.ep-pos__bill--focus {
  background: #fff;
  border: 1px solid #e3e7ee;
  border-radius: 16px;
  padding: 16px;
}
.ep-pos__bill-due {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 12px 0;
  padding-top: 10px;
  border-top: 1px solid #eef1f6;
}
.ep-pos__bill-due span {
  color: #5d677c;
  font-size: 13px;
  font-weight: 700;
}
.ep-pos__bill--focus .ep-pos__bill-amount {
  color: #0f766e;
  font-size: 28px;
  font-weight: 800;
}
.ep-pos__amt-lbl {
  display: block;
  margin: 10px 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: #5d677c;
}
.ep-pos__find-more {
  margin-top: 12px;
  color: #5d677c;
  font-size: 13px;
  font-weight: 650;
}
.ep-pos__find-more summary { cursor: pointer; }
.ep-pos__find-more .ep-pos__scan {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.ep-pos__find-more .ep-pos__scan-input { flex: 1; }

/* ?? Billing invoice cards ?? */
.ep-inv-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-bottom: 1.5rem;
}
.ep-inv-empty {
  text-align: center;
  color: #64748b;
  font-weight: 600;
}
.ep-inv-card {
  position: relative;
  background: #fff;
  border: 1px solid #dbe3ef;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}
.ep-inv-card__accent {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 4px;
  background: linear-gradient(180deg, #1e3a5f 0%, #2f6fed 100%);
}
.ep-inv-card__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  padding: 1.1rem 1.15rem 0.65rem;
}
.ep-inv-card__no-row {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-bottom: 0.25rem;
}
.ep-inv-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.ep-inv-card__no {
  font-size: 1.05rem;
  color: #0f172a;
  font-weight: 800;
}
.ep-inv-card__site {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
}
.ep-inv-card__pkg,
.ep-inv-card__scope {
  margin: 0.2rem 0 0;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 600;
}
.ep-inv-card__scope { color: #94a3b8; font-size: 0.8rem; }
.ep-inv-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: flex-start;
  justify-content: flex-end;
}
.ep-inv-card__summary {
  display: grid;
  grid-template-columns: minmax(9rem, 0.9fr) minmax(0, 1.4fr);
  gap: 0.75rem 1rem;
  margin: 0 1.15rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  background:
    linear-gradient(135deg, #f8fafc 0%, #eef4fb 100%);
  border: 1px solid #e2e8f0;
}
.ep-inv-card__hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  padding-inline-end: 0.75rem;
  border-inline-end: 1px dashed #cbd5e1;
}
.ep-inv-card__hero span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
}
.ep-inv-card__hero strong {
  font-size: 1.55rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.1;
}
.ep-inv-card__hero small {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
}
.ep-inv-card__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  align-content: center;
}
.ep-inv-card__facts > div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.ep-inv-card__facts span {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
}
.ep-inv-card__facts strong {
  font-size: 1rem;
  font-weight: 800;
  color: #1e293b;
}
.ep-inv-card__facts strong.is-due { color: #b45309; }
.ep-inv-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.85rem 1.15rem 1.05rem;
}
.ep-inv-card__dates {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 700;
}
.ep-inv-card__more {
  font-weight: 700;
}
.ep-inv-detail {
  padding: 0.35rem 0.15rem 0.5rem;
}
.ep-inv-detail__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e2e8f0;
}
.ep-inv-detail__no {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1e3a5f;
}
.ep-inv-detail__top h3 {
  margin: 0.2rem 0 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
}
.ep-inv-detail__top p {
  margin: 0.2rem 0 0;
  color: #475569;
  font-weight: 600;
}
.ep-inv-detail__scope { color: #94a3b8 !important; font-size: 0.85rem !important; }
.ep-inv-detail__badges { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ep-inv-detail__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 1rem;
}
.ep-inv-detail__row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.55rem;
  background: #f8fafc;
  border: 1px solid #eef2f7;
}
.ep-inv-detail__row span {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
}
.ep-inv-detail__row strong {
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 800;
}
.ep-inv-detail__row.is-strong {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.ep-inv-detail__row.is-muted strong { color: #64748b; font-weight: 700; }
.ep-inv-detail__lines {
  margin-top: 1rem;
}
.ep-inv-detail__lines h4 {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
}
.ep-inv-detail__lines table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.ep-inv-detail__lines th,
.ep-inv-detail__lines td {
  border: 1px solid #e2e8f0;
  padding: 0.4rem 0.5rem;
  text-align: start;
}
.ep-inv-detail__lines th {
  background: #f1f5f9;
  font-weight: 800;
  color: #334155;
}
.ep-inv-detail__note {
  margin: 0.9rem 0 0;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-weight: 600;
  font-size: 0.88rem;
}
@media (max-width: 720px) {
  .ep-inv-card__summary {
    grid-template-columns: 1fr;
  }
  .ep-inv-card__hero {
    border-inline-end: 0;
    border-bottom: 1px dashed #cbd5e1;
    padding-inline-end: 0;
    padding-bottom: 0.65rem;
  }
  .ep-inv-detail__grid { grid-template-columns: 1fr; }
}

.ep-bill-lines { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.ep-bill-lines__row {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 0.7fr 0.9fr 0.9fr auto;
  gap: 6px;
  align-items: center;
}
.ep-bill-lines__head { font-size: 12px; font-weight: 700; color: #5d677c; }
.ep-bill-lines__row input,
.ep-bill-lines__row select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #d7dee8;
  border-radius: 10px;
  padding: 6px 8px;
}
@media (max-width: 900px) {
  .ep-bill-lines__row { grid-template-columns: 1fr 1fr; }
}

/* ?? Admin: notifications compose ?? */
.ep-admin-compose {
  padding: 18px 18px 14px;
  margin-bottom: 14px;
  border: 1px solid #e6ebf2;
  border-radius: 18px;
  background:
    radial-gradient(1200px 240px at 100% 0%, rgba(20, 33, 61, 0.06), transparent 60%),
    #fff;
}
.ep-admin-compose__head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}
.ep-admin-compose__head h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}
.ep-admin-compose__head p {
  margin: 0;
  color: #5d677c;
  font-size: .9rem;
}
.ep-admin-compose__grid {
  display: grid;
  gap: 12px;
}
.ep-admin-compose__full { grid-column: 1 / -1; }
.ep-aud-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}
.ep-aud-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1.5px solid #e3e7ee;
  border-radius: 14px;
  background: #fbfcfe;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.ep-aud-card:hover { border-color: #b8c5d6; }
.ep-aud-card:has(input:checked) {
  border-color: #14213D;
  background: #f3f6fb;
  box-shadow: 0 0 0 3px rgba(20, 33, 61, .08);
}
.ep-aud-card input { margin-top: 3px; accent-color: #14213D; }
.ep-aud-card strong { display: block; font-size: .92rem; color: #14213D; }
.ep-aud-card small { display: block; margin-top: 2px; color: #5d677c; font-size: .78rem; }
.ep-push-scope {
  margin-top: 4px;
  padding: 14px;
  border-radius: 14px;
  background: #f7f9fc;
  border: 1px dashed #d5dde8;
}
.ep-push-scope__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.ep-role-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.ep-role-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: .4rem .7rem;
  border-radius: 999px;
  border: 1px solid #d7dee8;
  background: #fff;
  cursor: pointer;
  font-size: .86rem;
}
.ep-role-chip:has(input:checked) {
  border-color: #14213D;
  background: #eef2f8;
  font-weight: 700;
}
.ep-admin-compose__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #eef1f5;
}
.ep-admin-compose__status { color: #5d677c; font-size: .88rem; }
.ep-notif-list { padding: 0; overflow: hidden; }
.ep-notif-list__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #eef1f5;
}
.ep-notif-list__head h2 { margin: 0; font-size: 1rem; }
.ep-notif-list__count {
  min-width: 1.75rem;
  height: 1.75rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #14213D;
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
}
.ep-notif-title { display: block; }
.ep-notif-preview {
  margin-top: 4px;
  color: #5d677c;
  font-size: .8rem;
  max-width: 42rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ep-notif-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  white-space: nowrap;
}
#epNotifTable tr.is-inactive { opacity: .62; }
.niv-btn--danger {
  background: #fff5f5 !important;
  color: #b42318 !important;
  border-color: #f3c0bc !important;
}

/* ?? Admin: support inbox ?? */
body:has(.ep-inbox-page) {
  overflow: hidden;
}
.ep-inbox-page.tk-shell {
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}
.ep-inbox-page .tk-main {
  display: flex !important;
  flex-direction: column;
  min-height: 0 !important;
  height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
  padding: 12px 12px 12px !important;
  box-sizing: border-box;
}
.ep-inbox-page .tk-topbar {
  flex: 0 0 auto;
  margin-bottom: 8px;
}
.ep-inbox-page .niv-app-header__subtitle {
  max-width: none;
  white-space: normal;
}
.ep-inbox {
  display: grid;
  grid-template-columns: minmax(280px, 34%) minmax(0, 1fr);
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
  max-width: none;
  align-items: stretch;
  overflow: hidden;
  font-size: 15px;
}
.ep-inbox__list,
.ep-inbox__detail {
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  border-radius: 14px;
  background: #fff;
}
.ep-inbox__list[hidden],
.ep-inbox__detail [hidden],
.ep-inbox__placeholder[hidden],
.ep-inbox__reading[hidden] {
  display: none !important;
}
.ep-inbox__toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 140px);
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid #eef1f5;
  flex: 0 0 auto;
}
.ep-inbox__toolbar .niv-input,
.ep-inbox__toolbar .niv-select,
.ep-inbox__toolbar .tk-combo,
.ep-inbox__toolbar .tk-combo__btn {
  min-height: 44px;
  font-size: 0.95rem;
}
.ep-inbox__items {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1 1 auto;
  min-height: 0;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.ep-inbox__foot {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-top: 1px solid #eef1f5;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  background: #fbfcfe;
}
.ep-inbox__empty {
  margin: 0;
  padding: 28px 16px;
  text-align: center;
  color: #334155;
  font-size: 1rem;
}
.ep-inbox__placeholder {
  margin: 0;
  padding: 36px 22px;
  text-align: center;
  color: #334155;
  font-size: 1.05rem;
  display: grid;
  place-content: center;
  flex: 1;
  min-height: 0;
}
.ep-inbox__placeholder i {
  font-size: 2rem;
  margin-bottom: 10px;
  opacity: .55;
}
.ep-inbox__item {
  width: 100%;
  text-align: start;
  border: 0;
  border-bottom: 1px solid #eef1f5;
  background: #fff;
  padding: 14px 14px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.ep-inbox__item.is-unread {
  background: #fff9e8;
}
.ep-inbox__item.is-unread strong {
  font-weight: 800;
}
.ep-inbox__item.is-read {
  background: #fff;
}
.ep-inbox__item:hover {
  background: #f5f7fa;
}
.ep-inbox__item.is-unread:hover {
  background: #fff3d1;
}
.ep-inbox__item.is-active {
  background: #eaf1fb !important;
  box-shadow: inset 3px 0 0 #14213D;
}
.ep-inbox__item-top {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}
.ep-inbox__item-top strong {
  font-size: 1.02rem;
  line-height: 1.35;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #0f172a;
}
.ep-inbox-status {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 4px 10px;
  min-height: 26px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: .01em;
  white-space: nowrap;
  background: #eef1f5;
  color: #334155;
}
.ep-inbox-status--wait { background: #fff4e5; color: #b54708; }
.ep-inbox-status--sent { background: #e8f7ee; color: #067647; }
.ep-inbox-status--ok { background: #e8f2fb; color: #175cd3; }
.ep-inbox-status--fail { background: #fee4e2; color: #b42318; }
.ep-inbox__snippet {
  margin: 6px 0 4px;
  color: #334155;
  font-size: 0.92rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ep-inbox__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 600;
}
.ep-inbox__reading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.ep-inbox__detail-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef1f5;
  flex: 0 0 auto;
}
.ep-inbox__detail-head h2 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  line-height: 1.35;
  color: #0f172a;
}
.ep-inbox__from {
  margin: 0;
  color: #334155;
  font-size: 0.95rem;
  font-weight: 600;
}
.ep-inbox__detail-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 600;
}
.ep-inbox__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-content: start;
  padding: 12px 10px 16px;
  background:
    radial-gradient(circle at 20% 10%, rgba(82, 210, 199, 0.08), transparent 40%),
    #ece5dd;
}
.ep-inbox__body,
.ep-wa-bubble {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.55;
  font-size: 0.98rem;
  color: #111b21;
  max-width: min(78%, 36rem);
  padding: 8px 12px 18px;
  border-radius: 8px 12px 12px 12px;
  background: #fff;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
  position: relative;
  align-self: flex-start;
}
.ep-wa-bubble--out,
.ep-inbox__thread {
  align-self: flex-end;
  background: #d9fdd3;
  border: 0;
  border-radius: 12px 8px 12px 12px;
  padding: 8px 12px 18px;
  max-width: min(78%, 36rem);
}
.ep-inbox__thread h3 { display: none; }
.ep-inbox__thread p { margin: 0; white-space: pre-wrap; font-size: 0.98rem; line-height: 1.55; }
.ep-inbox__thread small,
.ep-wa-time {
  position: absolute;
  inset-inline-end: 10px;
  bottom: 4px;
  font-size: 11px;
  color: #667781;
}
.ep-inbox__composer {
  flex: 0 0 auto;
  padding: 8px 10px 10px;
  border-top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  background: #f0f2f5;
}
.ep-inbox__composer .niv-label { display: none; }
.ep-inbox__composer .niv-input {
  min-height: 44px;
  max-height: 120px;
  resize: none;
  font-size: 0.95rem;
  line-height: 1.45;
  border-radius: 22px;
  padding: 10px 16px;
  border: 0;
  background: #fff;
}
.ep-inbox__composer-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.ep-inbox__composer-actions .niv-btn {
  min-height: 44px;
  min-width: 44px;
  border-radius: 999px;
  font-size: 0.9rem;
  padding: 0 14px;
}
.ep-inbox-page .niv-app-header__title {
  font-size: 1.45rem;
}
.ep-inbox-page .niv-app-header__subtitle {
  font-size: 0.95rem;
  color: #475569;
}

/* Admin: monitor action pills */
.ep-pill--audit-delete {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border: 1px solid #fecaca;
  font-weight: 700;
}
.ep-pill--audit-update {
  background: #ffedd5 !important;
  color: #c2410c !important;
  border: 1px solid #fed7aa;
  font-weight: 700;
}
.ep-pill--audit-create {
  background: #dcfce7 !important;
  color: #15803d !important;
  border: 1px solid #bbf7d0;
  font-weight: 700;
}

/* Admin: audit detail */
.kw-wizard--audit { width: min(920px, 100%); }
.kw-wizard--audit .kw-wizard__body {
  max-height: min(72vh, 720px);
  overflow: auto;
}
.ep-audit-view { display: grid; gap: 14px; max-width: 100%; }
.ep-audit-view__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.ep-audit-view__meta > div {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7f9fc;
  border: 1px solid #e8edf4;
  min-width: 0;
}
.ep-audit-view__meta span {
  display: block;
  color: #5d677c;
  font-size: .78rem;
  margin-bottom: 4px;
}
.ep-audit-view__meta .ep-pill {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: .78rem;
  width: fit-content;
}
.ep-audit-view__meta strong {
  display: block;
  font-size: .92rem;
  word-break: break-word;
}
.ep-audit-block h3,
.ep-audit-view h3 {
  margin: 0 0 8px;
  font-size: .92rem;
}
.ep-audit-block h3 small {
  color: #5d677c;
  font-weight: 600;
}
.ep-audit-diff-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #e6ebf2;
  border-radius: 12px;
  background: #fff;
}
.ep-audit-diff {
  width: 100%;
  border-collapse: collapse;
  font-size: .84rem;
  table-layout: fixed;
}
.ep-audit-diff th,
.ep-audit-diff td {
  border-bottom: 1px solid #e6ebf2;
  padding: 9px 11px;
  vertical-align: top;
  text-align: start;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.ep-audit-diff thead th {
  background: #f3f6fb;
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 1;
}
.ep-audit-diff__field {
  width: 22%;
  background: #f7f9fc;
  font-weight: 700;
  color: #243047;
}
.ep-audit-diff tbody th.ep-audit-diff__field {
  border-inline-end: 1px solid #e6ebf2;
}
.ep-audit-diff td { width: 39%; }
.ep-audit-val {
  margin: 0;
  padding: 0;
  font: inherit;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  color: inherit;
  background: transparent;
  border: 0;
}
.ep-audit-diff tr.is-changed td:nth-child(2) { background: #fff6f4; }
.ep-audit-diff tr.is-changed td:nth-child(3) {
  background: #eefaf3;
  font-weight: 650;
}
.ep-audit-diff tr.is-same td { color: #5d677c; }
.kw-modal-overlay .ep-audit-view { max-width: 100%; }

@media (max-width: 980px) {
  .ep-aud-grid { grid-template-columns: 1fr 1fr; }
  .ep-push-scope__grid { grid-template-columns: 1fr; }
  body:has(.ep-inbox-page) { overflow: auto; }
  .ep-inbox-page.tk-shell,
  .ep-inbox-page .tk-main {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .ep-inbox {
    grid-template-columns: 1fr;
    width: 100%;
    height: auto;
  }
  .ep-inbox__list { height: 38vh; min-height: 240px; }
  .ep-inbox__detail { height: 48vh; min-height: 320px; }
  .ep-audit-view__meta { grid-template-columns: 1fr; }
  .ep-audit-diff__field { width: 28%; }
}
@media (max-width: 640px) {
  .ep-aud-grid { grid-template-columns: 1fr; }
  .ep-inbox__toolbar { grid-template-columns: 1fr; }
}

/* —— Guest ticket (QR scan) — compact multi-column —— */
body:has(.ep-guest-page) {
  background:
    radial-gradient(ellipse 70% 45% at 12% -8%, rgba(82, 210, 199, 0.28), transparent 58%),
    radial-gradient(ellipse 55% 40% at 92% 8%, rgba(251, 191, 36, 0.16), transparent 52%),
    linear-gradient(165deg, #e8f4f2 0%, #f4f7fb 45%, #eef1f8 100%);
  min-height: 100vh;
  min-height: 100dvh;
}
.ep-guest-page {
  box-sizing: border-box;
  min-height: calc(100dvh - 3.5rem);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0.85rem 0.85rem calc(1.6rem + env(safe-area-inset-bottom, 0px));
}
.ep-guest-card {
  width: min(36rem, 100%);
  margin: 0 auto;
  padding: 1rem 0.95rem 1.15rem;
  border-radius: 1.2rem;
  background: #fff;
  border: 1px solid rgba(20, 33, 61, 0.08);
  box-shadow: none;
  text-align: center;
}
.ep-guest-card__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 10px;
  margin-bottom: 0.7rem;
  text-align: center;
}
.ep-guest-card__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  color: #14213d;
}
.ep-guest-card__mark {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.55rem;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.7rem;
  background: #14213d;
  color: #52d2c7;
}
.ep-guest-card__brand-name {
  font-weight: 800;
  font-size: 0.92rem;
}
.ep-guest-card__site {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: #14213d;
  line-height: 1.2;
}
.ep-guest-card__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.8rem;
}
.ep-guest-plate {
  width: min(100%, 18rem);
  margin: 0;
  min-height: 3.6rem;
  border-radius: 0.7rem;
  box-shadow: 0 8px 18px rgba(15, 40, 70, 0.12);
  overflow: visible;
}
.ep-guest-plate .ep-iq-plate__num {
  padding: 0.35rem 0.65rem;
  overflow: visible;
}
.ep-guest-plate .ep-iq-plate__num strong {
  font-size: clamp(1.3rem, 5.2vw, 1.75rem);
  letter-spacing: 0.05em;
  line-height: 1.35;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  max-width: none;
  height: auto;
  background: none;
  animation: none;
}
.ep-guest-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.85rem;
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
}
.ep-guest-badge.is-ready { background: #dcfce7; color: #166534; }
.ep-guest-badge.is-wait { background: #ffedd5; color: #c2410c; }
.ep-guest-badge.is-closed { background: #e2e8f0; color: #475569; }
.ep-guest-badge.is-self { background: #dbeafe; color: #1d4ed8; }
.ep-guest-badge.is-miss { background: #fee2e2; color: #b91c1c; }

/* Always horizontal compact stepper */
.ep-guest-steps {
  --ep-step-parked: #10b981;
  --ep-step-fetching: #f59e0b;
  --ep-step-moving: #3b82f6;
  --ep-step-door: #8b5cf6;
  --ep-step-closed: #64748b;
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 7px 0.5rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.25rem;
  border-radius: 0.95rem;
  background: #f5f8fb;
  border: 1px solid #e2e8f0;
}
.ep-guest-card[data-state='self'] .ep-guest-steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ep-guest-steps__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.22rem;
  min-width: 0;
  text-align: center;
}
.ep-guest-steps__item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 0.62rem;
  inset-inline-start: calc(50% + 0.7rem);
  width: calc(100% - 1.05rem);
  height: 2px;
  background: #d7dee8;
}
.ep-guest-steps__item.is-done:not(:last-child)::after,
.ep-guest-steps__item.is-on:not(:last-child)::after {
  background: currentColor;
  opacity: 0.5;
}
.ep-guest-steps__index {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: #94a3b8;
  background: #fff;
  border: 2px solid #cbd5e1;
  z-index: 1;
  box-sizing: border-box;
}
.ep-guest-steps__item.tone-parked { --step: var(--ep-step-parked); color: var(--step); }
.ep-guest-steps__item.tone-fetching { --step: var(--ep-step-fetching); color: var(--step); }
.ep-guest-steps__item.tone-moving { --step: var(--ep-step-moving); color: var(--step); }
.ep-guest-steps__item.tone-door { --step: var(--ep-step-door); color: var(--step); }
.ep-guest-steps__item.tone-closed { --step: var(--ep-step-closed); color: var(--step); }
.ep-guest-steps__item .ep-guest-steps__index {
  border-color: color-mix(in srgb, var(--step, #cbd5e1) 55%, #cbd5e1);
  color: var(--step, #94a3b8);
}
.ep-guest-steps__item.is-done .ep-guest-steps__index,
.ep-guest-steps__item.is-on .ep-guest-steps__index {
  color: #fff;
  border-color: var(--step);
  background: var(--step);
}
.ep-guest-steps__item.is-on .ep-guest-steps__index {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--step) 28%, transparent);
  animation: epGuestPulse 1.4s ease-out infinite;
}
.ep-guest-steps__label {
  font-size: 0.64rem;
  font-weight: 750;
  line-height: 1.2;
  color: #94a3b8;
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.ep-guest-steps__item.is-done .ep-guest-steps__label,
.ep-guest-steps__item.is-on .ep-guest-steps__label {
  color: #0f172a;
}
@keyframes epGuestPulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 40%, transparent); }
  100% { box-shadow: 0 0 0 8px transparent; }
}

/* Home/work style multi-column facts */
.ep-guest-meta { margin: 0 0 0.9rem; text-align: start; }
.ep-guest-meta__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}
.ep-guest-meta__cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
  min-width: 0;
  min-height: 3.35rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.7rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  line-height: 1.25;
  box-sizing: border-box;
}
.ep-guest-meta__cell.is-wide { grid-column: 1 / -1; }
.ep-guest-meta__cell small {
  font-size: 0.78rem;
  font-weight: 750;
  color: #64748b;
}
.ep-guest-meta__cell b {
  font-size: 0.98rem;
  font-weight: 850;
  line-height: 1.4;
  color: #0f172a;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  min-width: 0;
  height: auto;
  background: none;
  animation: none;
}
.ep-guest-meta__cell.tone-status { background: #ecfdf5; border-color: #a7f3d0; }
.ep-guest-meta__cell.tone-status b { color: #047857; }
.ep-guest-meta__cell.tone-time,
.ep-guest-meta__cell.tone-stay { background: #eff6ff; border-color: #bfdbfe; }
.ep-guest-meta__cell.tone-time b,
.ep-guest-meta__cell.tone-stay b { color: #1d4ed8; }
.ep-guest-meta__cell.tone-price { background: #ecfdf5; border-color: #6ee7b7; }
.ep-guest-meta__cell.tone-price b { color: #047857; }
.ep-guest-meta__cell.tone-ticket { background: #eef2ff; border-color: #c7d2fe; }
.ep-guest-meta__cell.tone-ticket b { color: #3730a3; font-size: 0.95rem; letter-spacing: 0.02em; }
.ep-guest-meta__cell.tone-order { background: #fdf4ff; border-color: #f0abfc; }
.ep-guest-meta__cell.tone-order b { color: #86198f; }
.ep-guest-meta__cell.tone-locker { background: #fef3c7; border-color: #fcd34d; }
.ep-guest-meta__cell.tone-locker b { color: #b45309; }
.ep-guest-meta__cell.tone-lot,
.ep-guest-meta__cell.tone-floor,
.ep-guest-meta__cell.tone-spot { background: #fff7ed; border-color: #fed7aa; }
.ep-guest-meta__cell.tone-lot b,
.ep-guest-meta__cell.tone-floor b,
.ep-guest-meta__cell.tone-spot b { color: #c2410c; }
.ep-guest-meta__cell.tone-name,
.ep-guest-meta__cell.tone-phone { background: #f1f5f9; border-color: #cbd5e1; }

.ep-guest-card__action { margin-top: 0.25rem; }
.ep-guest-hint {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.45;
  color: #475569;
}
.ep-guest-btn {
  appearance: none;
  width: 100%;
  min-height: 3.15rem;
  padding: 0.8rem 1.05rem;
  border: 0;
  border-radius: 0.9rem;
  background: #14213d;
  color: #fff;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(20, 33, 61, 0.2);
}
.ep-guest-btn:hover { background: #0d1730; }
.ep-guest-btn:disabled { opacity: 0.65; cursor: wait; }
.ep-guest-msg {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.4;
  color: #0f172a;
}
.ep-guest-msg--ok { color: #067647; }
.ep-guest-msg--err { color: #b42318; }
.ep-guest-msg--muted {
  font-size: 0.88rem;
  font-weight: 650;
  color: #475569;
}

/* Guest-only value skeleton (do NOT use global .ep-skel — it forces 14px grey bars) */
.ep-guest-page [data-ep-skel].is-skel {
  position: relative;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  background: #e5ebf2 !important;
  border-color: #e5ebf2 !important;
  border-radius: 0.4rem;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  min-width: 3.25rem;
  height: 1.15rem !important;
  line-height: 1.15rem !important;
  display: inline-block;
  vertical-align: middle;
  animation: none !important;
}
.ep-guest-page .ep-guest-badge[data-ep-skel].is-skel {
  display: inline-flex;
  min-width: 5.5rem;
  min-height: 1.85rem;
  height: 1.85rem !important;
}
.ep-guest-page .ep-guest-meta__cell b[data-ep-skel].is-skel {
  display: block;
  width: 72%;
  min-height: 1.15rem;
  height: 1.15rem !important;
  border-radius: 0.35rem;
}
.ep-guest-page .ep-guest-meta__cell.is-wide b[data-ep-skel].is-skel { width: 55%; }
.ep-guest-page .ep-guest-card__site[data-ep-skel].is-skel {
  display: inline-block;
  min-width: 7rem;
  min-height: 1.2rem;
  height: 1.2rem !important;
  line-height: 1.35;
}
.ep-guest-page .ep-guest-plate [data-ep-skel].is-skel {
  display: block;
  width: 85%;
  min-height: 1.5rem;
  height: 1.5rem !important;
  margin: 0.2rem auto;
  border-radius: 0.3rem;
}
.ep-guest-page [data-ep-skel].is-skel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.7) 45%,
    transparent 90%
  );
  transform: translateX(-120%);
  animation: epGuestSkel 1.15s ease-in-out infinite;
}
@keyframes epGuestSkel {
  100% { transform: translateX(120%); }
}

@media (min-width: 480px) {
  .ep-guest-meta__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
  .ep-guest-meta__cell { min-height: 3.5rem; padding: 0.75rem 0.9rem; }
  .ep-guest-meta__cell.is-wide { grid-column: 1 / -1; }
  .ep-guest-steps__label { font-size: 0.7rem; }
}
@media (min-width: 720px) {
  .ep-guest-page { padding: 1.25rem 1.2rem 2.1rem; }
  .ep-guest-card { padding: 1.2rem 1.25rem 1.35rem; width: min(40rem, 100%); }
  .ep-guest-meta__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
  .ep-guest-meta__cell.is-wide { grid-column: 1 / -1; }
  .ep-guest-steps__label { font-size: 0.74rem; }
}

.ep-legal-pub-body { background: #eef2f7; }
.ep-legal-pub {
  width: min(760px, calc(100% - 24px));
  margin: 24px auto 48px;
}
.ep-legal-pub__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.ep-legal-pub__brand > a {
  font-weight: 900;
  color: #14213d;
  text-decoration: none;
  font-size: 1.05rem;
}
.ep-legal-pub__nav { display: flex; flex-wrap: wrap; gap: 8px; }
.ep-legal-pub__nav a {
  text-decoration: none;
  color: #334155;
  font-weight: 750;
  font-size: 0.82rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
}
.ep-legal-pub__nav a.is-on { background: #14213d; color: #fff; border-color: #14213d; }
.ep-legal-pub__sheet {
  background: #fff;
  border-radius: 18px;
  padding: 18px 16px 22px;
  box-shadow: 0 12px 28px rgba(20, 33, 61, 0.06);
}
.ep-legal-pub__sheet > h1 {
  margin: 0 0 12px;
  color: #14213d;
  font-size: 1.35rem;
}
.ep-legal-pub__msg { margin: 8px 0 0; font-weight: 750; color: #0f766e; }
.ep-legal-pub .ep-support {
  margin-top: 16px;
  background: #f8fafc;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ep-legal-pub .ep-support h3 { margin: 0; color: #14213d; }
.ep-legal-pub .ep-support p { margin: 0; color: #5d677c; font-size: 13px; }
.ep-legal-pub .ep-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2px 12px;
}
.ep-legal-pub .ep-box input,
.ep-legal-pub .ep-box textarea {
  width: 100%;
  border: 0;
  background: transparent;
  min-height: 44px;
  font: inherit;
  color: #111c2d;
}
.ep-legal-pub .ep-box textarea { min-height: 110px; padding: 10px 0; resize: vertical; }
.ep-legal__html { color: #1c2434; line-height: 1.7; }
.ep-legal__html .ep-cms { display: flex; flex-direction: column; gap: 14px; }
.ep-legal__html .ep-cms-hero {
  background: #14213d;
  color: #fff;
  border-radius: 16px;
  padding: 18px;
}
.ep-legal__html .ep-cms-hero h2 { color: #fff; margin: 10px 0 0; font-size: 22px; }
.ep-legal__html .ep-cms-hero p { color: #b9c6ea; margin: 6px 0 0; }
.ep-legal__html .ep-cms-hero--light { background: #fff; color: #111c2d; border: 1px solid #e8eef5; }
.ep-legal__html .ep-cms-hero--light h2 { color: #111c2d; }
.ep-legal__html .ep-cms-hero--light p { color: #45464d; }
.ep-legal__html .ep-cms-card,
.ep-legal__html .ep-cms-hl,
.ep-legal__html .ep-cms-faq,
.ep-legal__html .ep-cms-item {
  background: #f8fafc;
  border-radius: 14px;
  padding: 14px;
}
.ep-legal__html .ep-cms-card h3,
.ep-legal__html .ep-cms-hl h3 { margin: 0 0 6px; color: #111c2d; }
.ep-legal__html .ep-cms-card p,
.ep-legal__html .ep-cms-item p { margin: 0; color: #45464d; }
.ep-legal__html .ep-cms-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ecfeff;
  color: #155e75;
  font-weight: 700;
}
.ep-legal__html .ep-cms-faq summary { cursor: pointer; font-weight: 700; }
.ep-legal__html .ep-cms-faq div { margin-top: 8px; color: #45464d; font-size: 13px; }
.ep-legal__html .ep-cms-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.ep-legal__html .ep-cms-nav a { color: #0f766e; font-weight: 700; font-size: 13px; }

.ep-settle-page { background: #f3f6fb; }
.ep-settle {
  padding: 8px 22px 36px;
  display: grid;
  gap: 16px;
  max-width: 980px;
}
.ep-settle__hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(82, 210, 199, .35), transparent 55%),
    linear-gradient(135deg, #14213d 0%, #1c335f 100%);
  box-shadow: 0 18px 40px rgba(20, 33, 61, .18);
}
.ep-settle__kicker {
  margin: 0 0 4px;
  color: #52d2c7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}
.ep-settle__hero h2 { margin: 0 0 6px; font-size: 26px; line-height: 1.2; }
.ep-settle__hero p { margin: 0; color: #b7c4dc; font-size: 13px; font-weight: 600; max-width: 46ch; }
.ep-settle__pill {
  flex: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255,255,255,.12);
  color: #fff;
}
.ep-settle__pill.is-wait { background: #f59e0b; color: #1f1300; }
.ep-settle__pill.is-done { background: #34d399; color: #064e3b; }
.ep-settle__pill.is-idle { background: rgba(255,255,255,.14); }
.ep-settle__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  width: fit-content;
  max-width: 100%;
  background: #fff;
  border: 1px solid #e4eaf3;
  border-radius: 18px;
  padding: 14px;
}
.ep-settle__toolbar label { display: grid; gap: 6px; font-size: 12px; font-weight: 800; color: #64748b; }
.ep-settle__toolbar input,
.ep-settle__toolbar select,
.ep-settle__toolbar .tk-combo-host,
.ep-settle__toolbar .tk-combo {
  width: 220px;
  max-width: 100%;
  min-height: 44px;
  border: 1px solid #d7dee9;
  border-radius: 12px;
  padding: 0 12px;
  font: inherit;
  background: #f8fafc;
  box-sizing: border-box;
}
.ep-settle__pending {
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  padding: 14px 16px;
}
.ep-settle__pending p {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  color: #1d4ed8;
}
.ep-settle__pending > div { display: flex; flex-wrap: wrap; gap: 8px; }
.ep-settle__pending button {
  display: grid;
  gap: 2px;
  border: 0;
  background: #eff6ff;
  color: #1e3a8a;
  border-radius: 14px;
  padding: 8px 12px;
  cursor: pointer;
  text-align: start;
}
.ep-settle__pending button b { font-size: 13px; }
.ep-settle__pending button span { font-size: 11px; font-weight: 700; opacity: .75; }
.ep-settle__compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr minmax(140px, .7fr);
  gap: 12px;
  align-items: stretch;
}
.ep-settle__sum,
.ep-settle__flag {
  background: #fff;
  border: 1px solid #e4eaf3;
  border-radius: 20px;
  padding: 16px 18px;
  display: grid;
  gap: 4px;
}
.ep-settle__sum span,
.ep-settle__flag span { color: #64748b; font-size: 12px; font-weight: 800; }
.ep-settle__sum strong {
  font-size: 28px;
  line-height: 1.1;
  color: #14213d;
  font-variant-numeric: tabular-nums;
}
.ep-settle__sum small,
.ep-settle__flag small { color: #94a3b8; font-weight: 700; }
.ep-settle__vs {
  align-self: center;
  font-size: 12px;
  font-weight: 800;
  color: #94a3b8;
}
.ep-settle__flag.is-ok { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.ep-settle__flag.is-bad { background: #fff1f2; border-color: #fecdd3; color: #be123c; }
.ep-settle__flag strong { font-size: 22px; }
.ep-settle__staff {
  background: #fff;
  border: 1px solid #e4eaf3;
  border-radius: 20px;
  padding: 16px 18px;
}
.ep-settle__staff h3 { margin: 0 0 12px; font-size: 14px; color: #14213d; }
.ep-settle__staff ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ep-settle__staff li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 14px;
}
.ep-settle__empty { margin: 0; color: #64748b; font-weight: 700; }
.ep-settle__form {
  display: grid;
  gap: 16px;
  background: #fff;
  border: 1px solid #e4eaf3;
  border-radius: 22px;
  padding: 20px;
}
.ep-settle__form header h3 { margin: 0 0 4px; font-size: 18px; color: #14213d; }
.ep-settle__form header p { margin: 0; color: #64748b; font-weight: 600; }
.ep-settle__form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.ep-settle__form legend { font-weight: 800; color: #14213d; }
.ep-settle__choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ep-settle__choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
  cursor: pointer;
}
.ep-settle__choice small { display: block; color: #64748b; font-weight: 600; margin-top: 2px; }
.ep-settle__choice:has(input:checked).ep-settle__choice--yes {
  background: #ecfdf5;
  border-color: #34d399;
}
.ep-settle__choice:has(input:checked).ep-settle__choice--no {
  background: #fff1f2;
  border-color: #fb7185;
}
.ep-settle__note { display: grid; gap: 6px; font-size: 12px; font-weight: 800; color: #64748b; }
.ep-settle textarea {
  width: 100%;
  border: 1px solid #d7dee9;
  border-radius: 14px;
  padding: 12px;
  font: inherit;
  background: #f8fafc;
  resize: vertical;
}
.ep-settle__cta {
  border: 0;
  min-height: 48px;
  border-radius: 14px;
  background: #14213d;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.ep-settle__cta:disabled { opacity: .55; cursor: default; }
@media (max-width: 860px) {
  .ep-settle { padding: 8px 14px 28px; }
  .ep-settle__hero { flex-direction: column; align-items: flex-start; }
  .ep-settle__toolbar { width: 100%; }
  .ep-settle__toolbar input,
  .ep-settle__toolbar select,
  .ep-settle__toolbar .tk-combo-host,
  .ep-settle__toolbar .tk-combo { width: 100%; }
  .ep-settle__compare,
  .ep-settle__choices { grid-template-columns: 1fr; }
  .ep-settle__vs { display: none; }
  .ep-settle__staff li { grid-template-columns: 1fr auto; }
}

.ep-print-studio {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: start;
}
.ep-print-studio__form,
.ep-print-studio__preview {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}
.ep-print-studio__form { padding: 18px 18px 22px; display: grid; gap: 12px; }
.ep-print-studio__head h2 { margin: 0 0 4px; font-size: 1.05rem; color: #14213d; }
.ep-print-studio__head p { margin: 0; color: #64748b; font-size: 0.88rem; }
.ep-print-studio__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ep-print-studio__color { height: 44px; padding: 4px; }
.ep-print-studio__uploads { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ep-print-drop {
  border: 1.5px dashed #cbd5e1;
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  background: #f8fafc;
}
.ep-print-drop p { margin: 0 0 8px; font-weight: 800; color: #14213d; font-size: 0.88rem; }
.ep-print-drop__preview {
  min-height: 72px;
  display: grid;
  place-items: center;
  color: #64748b;
  font-size: 0.82rem;
}
.ep-print-drop__preview img { max-height: 56px; max-width: 100%; object-fit: contain; }
.ep-print-studio__save { justify-self: start; min-height: 44px; padding-inline: 22px; }
.ep-print-studio__preview {
  padding: 22px 18px 18px;
  background:
    radial-gradient(80% 50% at 100% 0%, rgba(82, 210, 199, 0.16), transparent 55%),
    #eef2f7;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  overflow: auto;
}
.ep-slip-caption {
  margin: 0;
  color: #5d677c;
  font-size: 12px;
  font-weight: 800;
}
.ep-slip-frame-wrap {
  width: 55mm;
  zoom: 1.55;
  background: #fff;
  box-shadow: 0 18px 40px rgba(20, 33, 61, 0.18);
}
.ep-slip-frame-wrap[data-paper="80"] {
  width: 80mm;
  zoom: 1.15;
}
.ep-slip-frame-wrap iframe {
  display: block;
  width: 100%;
  min-height: 120mm;
  border: 0;
  background: #fff;
  pointer-events: none;
}
.ep-ticket-preview__paper {
  text-align: center; font-size: 11px; font-weight: 800; color: #fff;
  background: #14213D; border-radius: 999px; padding: 4px 10px;
}
@media (max-width: 980px) {
  .ep-print-studio,
  .ep-print-studio__grid,
  .ep-print-studio__uploads { grid-template-columns: 1fr; }
}

.ep-color-table thead th { background: #14213D; color: #fff; white-space: nowrap; }
.ep-color-table tbody tr:nth-child(odd) { background: #f8fafc; }
.ep-color-table tbody tr:nth-child(even) { background: #fff; }
.ep-color-table tbody tr:hover { background: #ecfeff; }
.ep-color-table td, .ep-color-table th { vertical-align: middle; }
.tk-app-body table td,
.tk-app-body .niv-table td,
.tk-app-body .table td,
.tk-app-body .tk-bolt-orders td,
.tk-app-body .ep-color-table td {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  max-width: none;
}
.tk-app-body table th,
.tk-app-body .niv-table th,
.tk-app-body .tk-bolt-orders th,
.tk-app-body .ep-color-table th {
  white-space: nowrap;
}
.tk-app-body .ep-act-cell,
.tk-app-body td.tk-dir-col-actions,
.tk-app-body td[data-col="actions"] {
  white-space: nowrap !important;
  overflow: visible;
  max-width: none;
}
.ep-td-wrap {
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 14rem;
  font-size: 0.84rem;
  line-height: 1.45;
}
.ep-act-stack { display: flex; flex-wrap: wrap; gap: 6px; min-width: 16rem; }
.ep-act-head { text-align: center !important; min-width: 5.6rem; }
.ep-act-col { width: 1%; text-align: center; padding: 8px 6px !important; white-space: nowrap; vertical-align: middle; }
.ep-act-col .ep-chip-btn, .ep-act-col .tk-row-act { width: 100%; justify-content: center; }
.ep-act-cell { text-align: center; padding: 8px 6px !important; white-space: nowrap; }
.ep-act-cell .ep-chip-btn { width: auto; justify-content: center; min-height: 34px; }
.ep-act-cluster {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-width: max-content;
}
.ep-act-cluster .ep-chip-btn {
  width: auto;
  flex: none;
  white-space: nowrap;
}
.ep-act-na { color: #94a3b8; font-weight: 700; }
.ep-chip-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 10px; padding: 7px 10px; font-size: 12px; font-weight: 800;
  text-decoration: none; cursor: pointer; color: #0f172a;
  white-space: nowrap;
}
.ep-chip-btn--info { background: #dbeafe; color: #1d4ed8; }
.ep-chip-btn--print { background: #e0e7ff; color: #3730a3; }
.ep-chip-btn--money { background: #dcfce7; color: #166534; }
.ep-chip-btn--edit { background: #fef3c7; color: #92400e; }
.ep-chip-btn--ok { background: #ccfbf1; color: #0f766e; }
.ep-chip-btn--hold { background: #ffedd5; color: #9a3412; }
.ep-chip-btn--go { background: #d1fae5; color: #047857; }
.ep-chip-btn--danger { background: #fee2e2; color: #b91c1c; }
.ep-sal-staff {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin: 0 0 16px;
  overflow-x: auto;
}
.ep-budget-page .ep-sal-staff {
  flex-wrap: wrap;
  overflow: visible;
}
.ep-budget-page .ep-sal-card {
  flex: 1 1 168px;
  min-width: 158px;
}
.ep-budget-page .ep-sal-card strong {
  font-size: 15px;
  line-height: 1.35;
}
.ep-budget-page .ep-sal-card em {
  font-size: 12px;
  min-height: 1.2em;
}
.ep-budget-page .ep-sal-card b {
  font-size: 1.45rem;
}
.tk-sidebar__section-head {
  padding: 0.12rem 0.4rem;
  margin: 0.04rem 0;
}
.tk-sidebar__section-title {
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 800;
  color: #1e293b;
}
.ep-settle-lock {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 11px 13px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.45;
}
.ep-settle-cash {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  padding: 18px 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 1px solid #86efac;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.ep-settle-cash b {
  font-size: 2.45rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: #047857;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.ep-settle-cash small {
  font-size: 13px;
  font-weight: 800;
  color: #64748b;
}
.ep-settle-cash--edit {
  gap: 8px;
}
.ep-settle-cash__input {
  width: min(100%, 220px);
  border: 0;
  border-bottom: 2px solid #86efac;
  background: transparent;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: #047857;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  padding: 2px 8px 4px;
  outline: none;
  direction: ltr;
  -moz-appearance: textfield;
}
.ep-settle-cash__input::-webkit-outer-spin-button,
.ep-settle-cash__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.ep-settle-cash__input:focus {
  border-bottom-color: #047857;
}
.ep-settle-cash--price {
  background: linear-gradient(180deg, #eef2ff 0%, #e0e7ff 100%);
  border-color: #a5b4fc;
}
.ep-settle-cash--price b,
.ep-settle-cash--price .ep-settle-cash__input { color: #3730a3; }
.ep-settle-cash--price .ep-settle-cash__input { border-bottom-color: #a5b4fc; }
.ep-settle-cash--price .ep-settle-cash__input:focus { border-bottom-color: #3730a3; }
.ep-settle-cash--due {
  background: linear-gradient(180deg, #fef2f2 0%, #fee2e2 100%);
  border-color: #fca5a5;
}
.ep-settle-cash--due b { color: #b91c1c; }
.ep-sub-money-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}
.ep-pkg-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #14213d 0%, #1d4ed8 55%, #0ea5e9 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(29, 78, 216, 0.28);
}
.ep-pkg-card[hidden] { display: none !important; }
.ep-pkg-card__mark {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  background: rgba(255,255,255,.16);
}
.ep-pkg-card__body { flex: 1 1 auto; min-width: 0; }
.ep-pkg-card__body strong { display: block; font-size: 1.05rem; }
.ep-pkg-card__body span { display: block; font-size: 12px; opacity: .85; margin-top: 2px; }
.ep-pkg-card b {
  font-size: 1.45rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.ep-subs-table tbody tr.ep-row-st--active { background: #ecfdf5 !important; }
.ep-subs-table tbody tr.ep-row-st--held { background: #fff7ed !important; }
.ep-subs-table tbody tr.ep-row-st--expired { background: #fef2f2 !important; }
.ep-subs-table tbody tr.ep-row-st--cancelled { background: #f1f5f9 !important; }
.ep-subs-table tbody tr.is-ending { background: #fffbeb !important; }
.ep-subs-table tbody tr:hover { background: #e0f2fe !important; }
.ep-led-chip--inv { background: #dbeafe; color: #1d4ed8; font-variant-numeric: tabular-nums; }
.ep-led-chip--pkg { background: #ede9fe; color: #6d28d9; }
.ep-led-chip--days { background: #cffafe; color: #0e7490; }
.ep-sub-muted { color: #64748b; font-weight: 600; }
.ep-bill-lines .ep-hint { margin: .75rem 0 0; font-size: .9rem; font-weight: 700; color: #14213d; }
@media (max-width: 700px) {
  .ep-sub-money-row { grid-template-columns: 1fr; }
}
.ep-budget-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
.ep-sal-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 12px 12px 10px;
  display: grid;
  gap: 5px;
  flex: 1 1 0;
  min-width: 0;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  border-inline-start: 6px solid #6366f1;
}
.ep-sal-card:nth-child(5n+2) { border-inline-start-color: #06b6d4; }
.ep-sal-card:nth-child(5n+3) { border-inline-start-color: #22c55e; }
.ep-sal-card:nth-child(5n+4) { border-inline-start-color: #f59e0b; }
.ep-sal-card:nth-child(5n+5) { border-inline-start-color: #f43f5e; }
.ep-sal-card__top { display: flex; align-items: center; gap: 10px; }
.ep-sal-card__avatar {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: #eef2ff; color: #4338ca; font-weight: 800; font-size: 16px;
}
.ep-sal-card:nth-child(5n+2) .ep-sal-card__avatar { background: #ecfeff; color: #0e7490; }
.ep-sal-card:nth-child(5n+3) .ep-sal-card__avatar { background: #ecfdf5; color: #047857; }
.ep-sal-card:nth-child(5n+4) .ep-sal-card__avatar { background: #fffbeb; color: #b45309; }
.ep-sal-card:nth-child(5n+5) .ep-sal-card__avatar { background: #fff1f2; color: #be123c; }
.ep-sal-card strong { font-size: 14px; color: #0f172a; display: block; line-height: 1.3; }
.ep-sal-card span { font-size: 12px; color: #64748b; }
.ep-sal-card b { font-size: 1.35rem; color: #047857; letter-spacing: .01em; }
.ep-sal-card em { font-style: normal; font-size: 11px; color: #64748b; font-weight: 700; }
.ep-sal-card__stats {
  display: flex; justify-content: space-between; gap: 8px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 8px 10px;
}
.ep-sal-card__stats span { display: grid; gap: 2px; font-size: 11px; }
.ep-sal-card__stats strong { font-size: 13px; }
.ep-sal-card__wallet { font-style: normal; font-weight: 800; color: #1d4ed8; font-size: 13px; }
.ep-sal-card small { color: #94a3b8; }
.ep-sal-card__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; justify-content: center; }
.tk-bolt-orders th,
.tk-bolt-orders td {
  text-align: center;
  vertical-align: middle;
}
.ep-sal-sum td { background: #f8fafc; font-weight: 700; }
.ep-sal-staff-row td { vertical-align: middle; }
.ep-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-bottom: 12px; }
.ep-metric-grid--6 { grid-template-columns: repeat(6, minmax(0,1fr)); }
.ep-metric-grid--8 { grid-template-columns: repeat(8, minmax(0,1fr)); }
.ep-metric { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 12px 14px; }
.ep-metric b { display: block; color: #64748b; font-size: 12px; }
.ep-metric strong { font-size: 1.25rem; color: #14213D; }
.ep-metric--ok { border-color: #86efac; background: #f0fdf4; }
.ep-metric--hold { border-color: #fde68a; background: #fffbeb; }
.ep-metric--bad { border-color: #fca5a5; background: #fef2f2; }
.ep-money-paid { color: #047857; font-weight: 800; }
.ep-ledger-table tbody tr.ep-led--in { background: #ecfdf5 !important; }
.ep-ledger-table tbody tr.ep-led--out { background: #fef2f2 !important; }
.ep-ledger-table tbody tr.ep-led--hold-in { background: #eff6ff !important; }
.ep-ledger-table tbody tr.ep-led--hold-out { background: #fff7ed !important; }
.ep-ledger-table tbody tr.ep-led--in:hover { background: #d1fae5 !important; }
.ep-ledger-table tbody tr.ep-led--out:hover { background: #fee2e2 !important; }
.ep-led-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.ep-led-chip--in { background: #d1fae5; color: #047857; }
.ep-led-chip--out { background: #fee2e2; color: #b91c1c; }
.ep-led-chip--hold-in { background: #dbeafe; color: #1d4ed8; }
.ep-led-chip--hold-out { background: #ffedd5; color: #c2410c; }
.ep-led-amt { font-weight: 800; font-variant-numeric: tabular-nums; }
.ep-led-amt--in { color: #047857; }
.ep-led-amt--out { color: #b91c1c; }
.ep-led-amt--zero { color: #94a3b8; }
.ep-led-amt--hold-in { color: #1d4ed8; }
.ep-led-amt--hold-out { color: #c2410c; }
.ep-led-chip--emp { background: #cffafe; color: #0e7490; }
.ep-led-chip--exp { background: #fee2e2; color: #b91c1c; }
.ep-led-chip--main { background: #d1fae5; color: #047857; }
.ep-led-chip--org { background: #ede9fe; color: #6d28d9; }
.ep-led-chip--branch { background: #ffedd5; color: #c2410c; }
.ep-ledger-table tbody tr.ep-led--emp { background: #ecfeff !important; }
.ep-ledger-table tbody tr.ep-led--exp { background: #fef2f2 !important; }
.ep-ledger-table tbody tr.ep-led--main { background: #ecfdf5 !important; }
.ep-ledger-table tbody tr.ep-led--org { background: #f5f3ff !important; }
.ep-ledger-table tbody tr.ep-led--branch { background: #fff7ed !important; }
.ep-ledger-table tbody tr.ep-led--emp:hover { background: #cffafe !important; }
.ep-ledger-table tbody tr.ep-led--main:hover { background: #d1fae5 !important; }
.ep-wallets-table td { vertical-align: middle; }
.ep-wallets-table .ep-led-chip { margin: 2px 0 2px 4px; }
.ep-hq-section {
  margin: 0 0 10px;
  font-size: 1.08rem;
  font-weight: 800;
  color: #14213D;
}
.ep-hq-block {
  border-radius: 22px;
  padding: 14px 14px 8px;
  margin: 1.15rem 0 1.35rem;
  border: 1px solid;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
.ep-hq-block--regions {
  background: #eef6ff;
  border-color: #bfdbfe;
}
.ep-hq-block--branches {
  background: #fff7ed;
  border-color: #fed7aa;
}
.ep-hq-block--garages {
  background: #f3e8ff;
  border-color: #d8b4fe;
}
.ep-hq-block .ep-hq-sec-filter,
.ep-hq-block .niv-panel {
  background: rgba(255, 255, 255, 0.78);
}
.ep-hq-block .ep-hq-pager { margin-bottom: 0.35rem; }
.ep-hq-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  contain: content;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  transform: translateZ(0);
}
.ep-hq-scroll table {
  width: max-content;
  min-width: 100%;
  margin: 0;
}
.ep-hq-block .ep-color-table td,
.ep-hq-block .ep-color-table th {
  box-shadow: none;
}
.ep-hq-block .ep-color-table tbody tr:hover { background: inherit; }
.ep-hq-block .ep-color-table td:has(.ep-hq-owner),
.ep-hq-block .ep-color-table td:has(.ep-hq-belong) {
  white-space: normal !important;
  min-width: 11rem;
  max-width: 16rem;
}
.ep-hq-acts {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
}
.ep-hq-acts .ep-chip-btn { margin: 0; }
.kw-wizard.ep-hq-settle-modal {
  width: min(1240px, calc(100vw - 1.25rem));
  max-width: none;
  max-height: min(94vh, 980px);
}
.ep-hq-settle-modal .kw-wizard__body {
  padding: 12px 16px 8px;
  overflow: auto;
}
.ep-hq-settle-sheet { text-align: start; }
.ep-hq-settle-sheet .ep-sal-staff {
  flex-wrap: wrap;
  overflow: visible;
  margin-bottom: 12px;
}
.ep-hq-settle-sheet .ep-sal-card {
  flex: 1 1 160px;
  min-width: 150px;
}
.ep-hq-settle-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.ep-hq-settle-party {
  margin: 0;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.ep-hq-settle-party strong { font-size: 1rem; color: #14213d; }
.ep-hq-settle-party span { color: #475569; font-size: 0.86rem; }
.ep-hq-settle-sheet .ep-hq-section { margin-top: 4px; }
@media (max-width: 800px) {
  .ep-hq-settle-parties { grid-template-columns: 1fr; }
}
.ep-hq-block .tk-combo { display: none !important; }
.ep-hq-block select.ep-hq-status,
.ep-hq-block select.niv-select {
  display: block;
}
.ep-hq-belong {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
  white-space: normal !important;
}
.ep-hq-belong .ep-led-chip {
  white-space: normal;
  line-height: 1.25;
}
.ep-hq-belong .ep-led-chip small {
  display: block;
  opacity: 0.72;
  font-size: 0.68rem;
  font-weight: 800;
}
.ep-hq-sec-filter {
  margin-bottom: 0.55rem;
  padding: 0.75rem 0.9rem;
}
.ep-hq-sec-filter .niv-field { min-width: 8.5rem; }
.ep-hq-sec-filter input[name$="Skip"],
.ep-hq-sec-filter select[name$="Take"] { max-width: 6.5rem; }
.ep-hq-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0.35rem 0 1.1rem;
  font-weight: 800;
  color: #334155;
}
.ep-hq-pager__nav { display: inline-flex; gap: 6px; }
.ep-hq-owner-cell--garage .ep-hq-owner {
  padding: 8px 10px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ecfeff 0%, #f5f3ff 55%, #fff7ed 100%);
  border: 1px solid #c4b5fd;
}
.ep-hq-users {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 18rem;
  white-space: normal !important;
}
.ep-hq-users .ep-led-chip { white-space: normal; font-weight: 700; }
.ep-hq-owner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 10rem;
  white-space: normal !important;
}
.ep-hq-owner__name {
  font-weight: 800;
  font-size: 0.92rem;
  color: #0f172a;
  line-height: 1.25;
}
.ep-hq-owner__phone { font-family: ui-monospace, monospace; font-size: 0.86rem; color: #334155; }
.ep-hq-wa {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 3px 10px 3px 7px;
  border-radius: 999px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  text-decoration: none;
  font-weight: 800;
  line-height: 1;
}
.ep-hq-wa:hover { background: #d1fae5; color: #065f46; }
.ep-hq-wa__ico {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.ep-hq-wa__ico svg { width: 18px; height: 18px; display: block; }
.ep-hq-wa__num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}
.ep-hq-status {
  font-weight: 800;
  border-radius: 10px;
  min-height: 34px;
  padding-inline: 8px;
}
.ep-hq-status.is-ok { background: #dcfce7; color: #166534; border-color: #86efac; }
.ep-hq-status.is-wait { background: #e0e7ff; color: #3730a3; border-color: #a5b4fc; }
.ep-hq-status.is-hold { background: #ffedd5; color: #9a3412; border-color: #fdba74; }
.ep-hq-status.is-off { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.ep-led-amt--billed { color: #1d4ed8; }
.ep-led-amt--paid { color: #047857; }
.ep-led-amt--due { color: #b91c1c; }
.ep-led-amt--commission { color: #7c3aed; }
.ep-led-amt--net { color: #0f766e; }
.swal2-popup.ep-gate {
  border-radius: 22px !important;
  padding: 22px 20px 18px !important;
  border: 1px solid #fecaca;
}
.ep-gate__mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  border-radius: 16px;
  background: #fee2e2;
  color: #b91c1c;
}
.ep-gate__mark svg { width: 28px; height: 28px; }
.swal2-popup.ep-gate .ep-gate__title {
  margin: 0 0 6px !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: #7f1d1d !important;
}
.ep-gate__text { margin: 0; color: #7f1d1d; font-weight: 650; line-height: 1.55; }
.ep-td-note {
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 28rem;
  min-width: 14rem;
  line-height: 1.5;
  font-size: 0.86rem;
}
.ep-money-due { color: #b91c1c; font-weight: 800; }
.ep-money-zero { color: #64748b; font-weight: 700; }
.ep-row-pay--paid { box-shadow: inset 4px 0 0 #22c55e; }
.ep-row-pay--partial { box-shadow: inset 4px 0 0 #f59e0b; }
.ep-row-pay--unpaid { box-shadow: inset 4px 0 0 #ef4444; }
.ep-filter-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 1100px) {
  .ep-metric-grid--6 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .ep-metric-grid--8 { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .ep-metric-grid { grid-template-columns: 1fr 1fr; }
  .ep-budget-split { grid-template-columns: 1fr; }
  .ep-sal-staff { flex-wrap: wrap; }
  .ep-sal-card { flex: 1 1 calc(50% - 10px); }
}
html[lang="ku"] body,
html[lang="ckb"] body,
html[lang="ku"] .tk-app-body,
html[lang="ckb"] .tk-app-body,
html[lang="ku"] .tk-shell,
html[lang="ckb"] .tk-shell,
html[lang="ku"] .niv-btn,
html[lang="ku"] .niv-input,
html[lang="ku"] .niv-select,
html[lang="ku"] .niv-label,
html[lang="ku"] .tk-sidebar,
html[lang="ku"] .tk-sidebar__label,
html[lang="ku"] .swal2-popup,
html[lang="ku"] .swal2-title,
html[lang="ku"] .swal2-html-container {
  font-family: "Noto Sans Arabic", Tahoma, sans-serif !important;
}
