/*
 * ERP Media — contract vizual comun Outdoor + Digital
 *
 * Acest fișier se încarcă ultimul. Workspace-urile își păstrează logica și accentul,
 * însă tipografia, suprafețele, filtrele, tabelele și stările au aceeași gramatică.
 */

:root {
  --ui-font: "Segoe UI Variable", "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  --ui-bg: #0b0f16;
  --ui-sidebar: #0f141e;
  --ui-surface: #121823;
  --ui-surface-raised: #171e2b;
  --ui-surface-soft: #101620;
  --ui-border: #252e3e;
  --ui-border-strong: #313c50;
  --ui-text: #edf2f8;
  --ui-text-soft: #a3aec0;
  --ui-muted: #738096;
  --ui-danger: #ff6b84;
  --ui-success: #42d7a4;
  --ui-warning: #f2ba53;
  --ui-radius-sm: 7px;
  --ui-radius-md: 10px;
  --ui-radius-lg: 14px;
  --ui-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.22);
  --ui-shadow-md: 0 14px 34px rgba(0, 0, 0, 0.22);
  --ui-control-height: 40px;
  --ui-content-max: 1600px;
}

body[data-workspace="outdoor"] {
  --ui-accent: #6d9fff;
  --ui-accent-strong: #5488ed;
  --ui-accent-soft: rgba(109, 159, 255, 0.12);
  --ui-accent-border: rgba(109, 159, 255, 0.32);
  --primary: var(--ui-accent);
  --primary-strong: var(--ui-accent-strong);
  --brand: var(--ui-accent);
  --line: var(--ui-border);
  --surface-1: var(--ui-surface);
  --surface-2: var(--ui-surface-raised);
  --shadow-card: var(--ui-shadow-sm);
}

body[data-workspace="digital"] {
  --ui-accent: #8c70ff;
  --ui-accent-strong: #7458ed;
  --ui-accent-soft: rgba(140, 112, 255, 0.13);
  --ui-accent-border: rgba(140, 112, 255, 0.34);
  --primary: var(--ui-accent);
  --primary-strong: var(--ui-accent-strong);
  --brand: var(--ui-accent);
  --line: var(--ui-border);
  --surface-1: var(--ui-surface);
  --surface-2: var(--ui-surface-raised);
  --shadow-card: var(--ui-shadow-sm);
}

html,
body,
button,
input,
select,
textarea {
  /* Stilurile Digital istorice conțin reguli globale cu !important. Contractul
     comun trebuie să aibă prioritate ca ambele aplicații să folosească exact
     aceeași tipografie. */
  font-family: var(--ui-font) !important;
}

html { background: var(--ui-bg); }

body {
  background:
    radial-gradient(circle at 70% -20%, color-mix(in srgb, var(--ui-accent, #6d9fff) 5%, transparent), transparent 34rem),
    var(--ui-bg);
  color: var(--ui-text);
  font-size: 13px;
  line-height: 1.5;
}

body * {
  scrollbar-width: thin;
  scrollbar-color: var(--ui-border-strong) transparent;
}

body *::-webkit-scrollbar { width: 8px; height: 8px; }
body *::-webkit-scrollbar-track { background: transparent; }
body *::-webkit-scrollbar-thumb { background: var(--ui-border-strong); border: 2px solid transparent; border-radius: 999px; background-clip: padding-box; }

/* Primul cadru nu presupune nici tema, nici permisiunile utilizatorului. */
.erpBootScreen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  color: var(--ui-text);
  background: var(--ui-bg);
}

.erpBootBrand {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.erpBootSpinner,
.appAccessSpinner {
  width: 22px;
  height: 22px;
  border: 2px solid var(--ui-border-strong);
  border-top-color: #a7b0c0;
  border-radius: 50%;
  animation: erpSafeSpin 0.8s linear infinite;
}

@keyframes erpSafeSpin { to { transform: rotate(360deg); } }

.unifiedAppShell .appPermissionSkeleton {
  padding: 10px 7px;
  display: grid;
  gap: 10px;
}

.unifiedAppShell .appPermissionSkeleton > span {
  height: 34px;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: linear-gradient(90deg, var(--ui-surface-soft), var(--ui-surface-raised), var(--ui-surface-soft));
  background-size: 220% 100%;
  animation: erpPermissionPulse 1.25s ease-in-out infinite;
}

.unifiedAppShell .appPermissionSkeleton > span:nth-child(2),
.unifiedAppShell .appPermissionSkeleton > span:nth-child(5) { width: 84%; }
.unifiedAppShell .appPermissionSkeleton > span:nth-child(3) { width: 92%; }

@keyframes erpPermissionPulse {
  0%, 100% { background-position: 100% 0; opacity: 0.62; }
  50% { background-position: 0 0; opacity: 1; }
}

.unifiedAppShell .appAccessState {
  min-height: min(560px, calc(100vh - 80px));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--ui-text-soft);
}

.unifiedAppShell .appAccessStateTitle { font-size: 12.5px; font-weight: 650; }

/* ---------- shell și navigație ---------- */
.unifiedAppShell .appSidebar {
  width: 264px;
  padding: 18px 13px 10px;
  gap: 9px;
  background: linear-gradient(180deg, rgba(17, 23, 34, 0.99), rgba(12, 17, 26, 0.995));
  border-right: 1px solid var(--ui-border);
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.2);
}

.unifiedAppShell .appMain {
  margin-left: 264px;
  background: transparent;
}

.unifiedAppShell .container {
  width: 100%;
  max-width: var(--ui-content-max);
  padding: 24px 30px 36px;
}

.unifiedAppShell .appMinimalBrand,
.unifiedAppShell .appMobileBrand {
  color: var(--ui-accent);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.unifiedAppShell .appMinimalBrand {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0 7px 10px;
  font-size: 25px;
  border-bottom: 1px solid var(--ui-border);
}

.unifiedAppShell .appNavGroup { gap: 2px; }
.unifiedAppShell .appNavGroupLabel {
  margin: 9px 7px 4px;
  color: var(--ui-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.unifiedAppShell .appSidebarLink,
.unifiedAppShell .appSidebarSectionToggle,
.unifiedAppShell .appSidebarSubLink {
  min-height: 35px;
  padding: 7px 9px;
  gap: 9px;
  border-radius: var(--ui-radius-sm);
  color: var(--ui-text-soft);
  font-size: 12.5px;
  font-weight: 500;
}

.unifiedAppShell .appSidebarLink:hover,
.unifiedAppShell .appSidebarSectionToggle:hover,
.unifiedAppShell .appSidebarSubLink:hover {
  color: var(--ui-text);
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--ui-border);
}

.unifiedAppShell .appSidebarLink[data-active="true"],
.unifiedAppShell .appSidebarSectionToggle[data-active="true"],
.unifiedAppShell .appSidebarSubLink[data-active="true"] {
  color: #fff;
  background: var(--ui-accent-soft);
  border-color: var(--ui-accent-border);
  box-shadow: inset 3px 0 0 var(--ui-accent);
}

.unifiedAppShell .appNavIcon {
  width: 18px;
  color: var(--ui-muted);
}

.unifiedAppShell [data-active="true"] > .appNavIcon { color: var(--ui-accent); }

.unifiedAppShell .appSidebarSubnav {
  margin-left: 17px;
  padding-left: 9px;
  gap: 2px;
  border-color: var(--ui-border);
}

.unifiedAppShell .appSidebarIdentity {
  padding-top: 8px;
  border-top: 1px solid var(--ui-border);
}

.unifiedAppShell .appSidebarDashboardLine { color: var(--ui-muted); font-size: 10px; }
.unifiedAppShell .appSidebarDashboardLine a { color: var(--ui-accent); font-weight: 700; }
.unifiedAppShell .appUserCard {
  min-height: 48px;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-md);
  background: rgba(255, 255, 255, 0.018);
  box-shadow: none;
}

/* ---------- tipografie și ierarhie ---------- */
.unifiedAppShell :where(h1, h2, h3, .title, .appPageTitle, .adminSubpageTitle, .tplTitle, .ofrTitle, .nrsvTitle, .comenziTitle, .opsTitle) {
  color: var(--ui-text);
  font-family: var(--ui-font);
  letter-spacing: -0.025em;
}

.unifiedAppShell :where(.appPageTitle, .adminSubpageTitle, .tplTitle, .ofrTitle, .nrsvTitle, .comenziTitle, .opsTitle) {
  margin: 0;
  font-size: 21px;
  font-weight: 750;
  line-height: 1.2;
}

.unifiedAppShell :where(.appPageTagline, .adminSubpageDesc, .tplSub, .ofrLead, .nrsvSub, .comenziTagline, .opsSub) {
  max-width: 780px;
  margin-top: 5px;
  color: var(--ui-muted);
  font-size: 12px;
  line-height: 1.55;
}

.unifiedAppShell :where(.muted, .appPageMeta) { color: var(--ui-muted); }

/* ---------- suprafețe și pagini ---------- */
.unifiedAppShell :where(.card, .appTableShell, .adminSubpage, .ofrSection, .tplCard, .nrsvPanel, .comenziFiltersCard, .staffProfileHeader, .staffAccountPanel, .excelDesignCard) {
  border-color: var(--ui-border);
  border-radius: var(--ui-radius-lg);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
}

.unifiedAppShell .card.appSurface,
.unifiedAppShell .adminSubpage,
.unifiedAppShell .tplShell,
.unifiedAppShell .nrsvShell,
.unifiedAppShell .comenziPage,
.unifiedAppShell .excelDesignShell {
  padding: 22px;
  gap: 18px;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-lg);
  background: color-mix(in srgb, var(--ui-surface) 96%, transparent);
  box-shadow: var(--ui-shadow-md);
}

.unifiedAppShell :where(.ofrShell, .tplShell)::before { opacity: 0.28; }

.unifiedAppShell :where(.appPageHero, .adminSubpageHeader, .tplHeader, .ofrTopBar, .nrsvHeader, .comenziHeader, .opsHeader) {
  min-height: 52px;
  margin: 0;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--ui-border);
  background: transparent;
}

.unifiedAppShell .appPageHero { align-items: flex-start; }
.unifiedAppShell .appPagePeriod { color: var(--ui-muted); }
.unifiedAppShell .appPagePeriod strong { color: var(--ui-accent); }

/* ---------- câmpuri și filtre ---------- */
.unifiedAppShell :where(.field, .appField, .dspField, .comenziField, .ofrField, .nrsvField) > :where(label, span:first-child),
.unifiedAppShell :where(.dspLabel, .loginLabel) {
  display: block;
  margin-bottom: 6px;
  color: var(--ui-text-soft);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.07em;
  line-height: 1.25;
  text-transform: uppercase;
}

.unifiedAppShell :where(
  .input,
  .dspInput,
  .dspSelect,
  .dspSearch,
  .comenziSearchInput,
  .comenziSortSelect,
  .ofrPagSelect,
  .loginInput,
  .searchableSelectButton,
  .nrsvMultiDropBtn
) {
  min-height: var(--ui-control-height);
  height: auto;
  padding: 9px 12px;
  color: var(--ui-text);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-md);
  outline: none;
  background: var(--ui-surface-soft);
  box-shadow: none;
  font-size: 12.5px;
  line-height: 1.35;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.unifiedAppShell textarea.input { min-height: 88px; resize: vertical; }
.unifiedAppShell :where(.input, .dspInput, .dspSearch, .comenziSearchInput, .loginInput)::placeholder { color: #647087; opacity: 1; }

.unifiedAppShell :where(
  .input,
  .dspInput,
  .dspSelect,
  .dspSearch,
  .comenziSearchInput,
  .comenziSortSelect,
  .ofrPagSelect,
  .loginInput,
  .searchableSelectButton,
  .nrsvMultiDropBtn
):focus,
.unifiedAppShell :where(.searchableSelectButton, .nrsvMultiDropBtn)[aria-expanded="true"] {
  border-color: var(--ui-accent);
  box-shadow: 0 0 0 3px var(--ui-accent-soft);
  background: var(--ui-surface);
}

.unifiedAppShell :where(.input, .dspInput, .dspSelect, .loginInput):disabled {
  color: var(--ui-muted);
  opacity: 0.62;
  cursor: not-allowed;
  background: #0d121b;
}

.unifiedAppShell :where(.appToolbar, .adminSubpageFilters, .dspFilterPanel, .dspFilterBar, .ofrFilters, .comenziToolbar, .comenziFiltersCard, .confFiltersCard, .rezervFiltersCard, .nrsvFilters, .mapCmd) {
  padding: 14px;
  gap: 12px;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-lg);
  background: var(--ui-surface-soft);
  box-shadow: none;
}

.unifiedAppShell :where(.appToolbar, .adminSubpageFilters, .dspFilterGrid, .comenziFiltersGrid, .ofrGrid, .nrsvFilterGrid) {
  align-items: end;
}

/* ---------- butoane și acțiuni ---------- */
.unifiedAppShell :where(.btn, .dspBtnPrimary, .dspBtnGhost, .dspBtnExcel, .dspBtnFilter, .comenziFiltersToggle, .opsBtn, .adminSubpageActionBtn) {
  min-height: 38px;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--ui-border-strong);
  border-radius: var(--ui-radius-sm);
  color: var(--ui-text-soft);
  background: var(--ui-surface-raised);
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: color 120ms ease, border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

.unifiedAppShell :where(.btn, .dspBtnGhost, .dspBtnExcel, .dspBtnFilter, .comenziFiltersToggle, .opsBtn, .adminSubpageActionBtn):hover:not(:disabled) {
  color: var(--ui-text);
  border-color: color-mix(in srgb, var(--ui-accent) 52%, var(--ui-border));
  background: color-mix(in srgb, var(--ui-accent) 7%, var(--ui-surface-raised));
  transform: translateY(-1px);
}

.unifiedAppShell :where(.btnPrimary, .dspBtnPrimary) {
  color: #fff;
  border-color: var(--ui-accent);
  background: var(--ui-accent-strong);
  box-shadow: 0 7px 18px color-mix(in srgb, var(--ui-accent) 18%, transparent);
}

.unifiedAppShell :where(.btnPrimary, .dspBtnPrimary):hover:not(:disabled) {
  color: #fff;
  border-color: color-mix(in srgb, var(--ui-accent) 80%, #fff);
  background: var(--ui-accent);
}

.unifiedAppShell :where(.btnDanger, .adminSubpageActionBtn--danger) {
  color: #ff90a3;
  border-color: rgba(255, 107, 132, 0.28);
  background: rgba(255, 107, 132, 0.07);
}

.unifiedAppShell :where(button, a, input, select, textarea):focus-visible {
  outline: 2px solid var(--ui-accent);
  outline-offset: 2px;
}

.unifiedAppShell button:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ---------- KPI-uri și carduri informative ---------- */
.unifiedAppShell :where(.appKpiGrid, .opsStats, .dashStats, .dHomeGrid) { gap: 12px; }

.unifiedAppShell :where(.appKpiCard, .opsStat, .dashStat, .dHomeCard, .comenziStat) {
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-lg);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
}

.unifiedAppShell :where(.appKpiLabel, .opsStatLabel, .dashStatLabel, .dHomeKicker) {
  color: var(--ui-muted);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.unifiedAppShell :where(.appKpiValue, .opsStatValue, .dashStatValue) {
  color: var(--ui-text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
}

/* ---------- tabele și liste ---------- */
.unifiedAppShell :where(.appTableShell, .tableWrap, .dspTableWrap, .ofrTableShell, .opsListWrap) {
  overflow: auto;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-lg);
  background: var(--ui-surface);
  box-shadow: none;
}

.unifiedAppShell :where(.appTableShell .tableWrap, .appTableShell > .tableWrap) {
  border: 0;
  border-radius: inherit;
  background: transparent;
}

.unifiedAppShell :where(.table, .dspTable, .ofrTable, .opsTable) {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  color: var(--ui-text-soft);
  font-size: 12px;
}

.unifiedAppShell :where(.table, .dspTable, .ofrTable, .opsTable) thead th {
  height: 38px;
  padding: 10px 12px;
  color: #8f9db2;
  border-bottom: 1px solid var(--ui-border);
  background: var(--ui-surface-soft);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.075em;
  line-height: 1.25;
  text-transform: uppercase;
  white-space: nowrap;
}

.unifiedAppShell :where(.table, .dspTable, .ofrTable, .opsTable) tbody td {
  min-height: 50px;
  padding: 11px 12px;
  color: var(--ui-text-soft);
  border-bottom: 1px solid color-mix(in srgb, var(--ui-border) 72%, transparent);
  background: transparent;
  vertical-align: middle;
}

.unifiedAppShell :where(.table, .dspTable, .ofrTable, .opsTable) tbody tr:last-child td { border-bottom: 0; }
.unifiedAppShell :where(.table, .dspTable, .ofrTable, .opsTable) tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.012); }
.unifiedAppShell :where(.table, .dspTable, .ofrTable, .opsTable) tbody tr:hover td { background: var(--ui-accent-soft); }

.unifiedAppShell :where(.adminSubpageTdStrong, .comenziCellStrong, .ofrCellTitle, .dspCellName) { color: var(--ui-text); font-weight: 700; }
.unifiedAppShell :where(.adminSubpageTdSub, .comenziCellSub, .ofrCellMeta, .dspCellDim) { color: var(--ui-muted); font-size: 11px; }

.unifiedAppShell :where(.pill, .dspBadge, .dspTypeBadge, .comenziPill, .tplBadge, .historyChannelBadge) {
  min-height: 22px;
  padding: 3px 8px;
  border: 1px solid var(--ui-border-strong);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

/* ---------- paginare ---------- */
.unifiedAppShell .listPaginationToolbar,
.unifiedAppShell .dspPag,
.unifiedAppShell .ofrPagBar {
  min-height: 52px;
  margin-top: 12px;
  padding: 8px 10px 8px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow: visible;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-md);
  background: var(--ui-surface-soft);
  box-shadow: none;
}

.unifiedAppShell .listPaginationToolbar__controls { display: flex; align-items: center; gap: 12px; }
.unifiedAppShell .listPaginationNav { display: flex; align-items: center; gap: 6px; }
.unifiedAppShell .listPaginationNav__meta {
  min-width: 104px;
  color: var(--ui-text-soft);
  font-size: 11px;
  text-align: center;
  white-space: nowrap;
}

.unifiedAppShell .listPaginationNav__btn,
.unifiedAppShell .listPaginationPageSize__select {
  min-height: 34px;
  border-color: var(--ui-border-strong);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-surface-raised);
}

/* ---------- dropdown-uri și modale ---------- */
.unifiedAppShell :where(.searchableSelectMenu, .nrsvMultiDropPanel, .filterDropdownCard) {
  z-index: 80;
  border: 1px solid var(--ui-border-strong);
  border-radius: var(--ui-radius-md);
  background: #151c28;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.modalBackdrop,
.modalOverlay {
  background: rgba(4, 7, 12, 0.76);
  backdrop-filter: blur(7px);
}

.modalCard,
.modalContent,
.tplModal {
  color: var(--ui-text);
  border: 1px solid var(--ui-border-strong);
  border-radius: var(--ui-radius-lg);
  background: #141b27;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
}

/* ---------- stări ---------- */
.unifiedAppShell :where(.appEmptyState, .dspEmpty, .ofrEmptyRow, .tplEmpty, .galEmpty) {
  min-height: 148px;
  padding: 28px;
  color: var(--ui-muted);
  text-align: center;
}

.unifiedAppShell :where(.appLoading, .dspLoading, .loginLoading) {
  min-height: 120px;
  display: grid;
  place-items: center;
  color: var(--ui-muted);
}

.unifiedAppShell :where(.errorText, .dspError, .comenziError, .ofrBanner) {
  padding: 10px 12px;
  border: 1px solid rgba(255, 107, 132, 0.25);
  border-radius: var(--ui-radius-md);
  color: #ff9bad;
  background: rgba(255, 107, 132, 0.07);
}

/* ---------- familii speciale ---------- */
.unifiedAppShell .mapCmd { border-radius: var(--ui-radius-md); }
.unifiedAppShell :where(.mapCanvas, .galMain, .galSidebar) { border-color: var(--ui-border); border-radius: var(--ui-radius-lg); }

.unifiedAppShell .staffProfileHeader {
  padding: 20px;
  margin-bottom: 16px;
  background: linear-gradient(110deg, var(--ui-accent-soft), var(--ui-surface) 42%);
}
.unifiedAppShell .staffProfileTabs { border-color: var(--ui-border); background: var(--ui-surface-soft); }
.unifiedAppShell .staffProfileTabs a[data-active="true"] { background: var(--ui-accent-strong); }
.unifiedAppShell .staffAccountSection { border-color: var(--ui-border); }

.unifiedAppShell .dHome {
  width: min(100%, 1480px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--ui-text);
  font-family: var(--ui-font);
}

.unifiedAppShell .dHomeHeader {
  min-height: 112px;
  padding: 21px 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-lg);
  background: linear-gradient(135deg, var(--ui-accent-soft), transparent 46%), var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
}

.unifiedAppShell .dHomeLabel {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  color: var(--ui-accent);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.unifiedAppShell .dHomeLabel span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--ui-accent);
  box-shadow: 0 0 0 4px var(--ui-accent-soft);
}

.unifiedAppShell .dHomeHeader h1 {
  margin: 0;
  color: var(--ui-text);
  font-size: clamp(23px, 2vw, 29px);
  font-weight: 760;
  letter-spacing: -0.035em;
}

.unifiedAppShell .dHomeHeader p {
  margin: 6px 0 0;
  color: var(--ui-muted);
  font-size: 12.5px;
  text-transform: capitalize;
}

.unifiedAppShell .dHomePrimary {
  min-height: 41px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--ui-accent);
  border-radius: var(--ui-radius-md);
  color: #fff;
  background: var(--ui-accent-strong);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--ui-accent) 18%, transparent);
  font-size: 12.5px;
  font-weight: 750;
  transition: transform 120ms ease, background 120ms ease;
}

.unifiedAppShell .dHomePrimary:hover { transform: translateY(-1px); background: var(--ui-accent); }
.unifiedAppShell .dHomePrimary svg { width: 17px; height: 17px; }

.unifiedAppShell .dHomeMetrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
}

.unifiedAppShell .dHomeMetrics--single { grid-template-columns: minmax(220px, 320px); }

.unifiedAppShell .dHomeMetrics article {
  min-height: 108px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-lg);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
}

.unifiedAppShell .dHomeMetrics article > span {
  color: var(--ui-muted);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.unifiedAppShell .dHomeMetrics article > strong {
  margin-top: 7px;
  color: var(--ui-text);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 760;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
  line-height: 1;
}

.unifiedAppShell .dHomeMetrics article > small { margin-top: 7px; color: var(--ui-muted); font-size: 11px; }
.unifiedAppShell .dHomeMetrics .dHomeMetricAlert { border-color: rgba(255, 107, 132, 0.3); background: linear-gradient(145deg, rgba(255, 107, 132, 0.06), var(--ui-surface) 58%); }
.unifiedAppShell .dHomeMetrics .dHomeMetricAlert > strong { color: #ff91a4; }

.unifiedAppShell .dHomeCard {
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-lg);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
}

.unifiedAppShell .dHomeCardHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.unifiedAppShell .dHomeKicker {
  display: block;
  margin-bottom: 5px;
  color: var(--ui-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.unifiedAppShell .dHomeCardHead h2,
.unifiedAppShell .dHomeOperational h2 {
  margin: 0;
  color: var(--ui-text);
  font-size: 16px;
  font-weight: 730;
}

.unifiedAppShell .dHomeCardHead > a,
.unifiedAppShell .dHomeOperational > a { color: var(--ui-accent); font-size: 11.5px; font-weight: 700; }

.unifiedAppShell .dHomeActionIcon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid var(--ui-accent-border);
  border-radius: 9px;
  color: var(--ui-accent);
  background: var(--ui-accent-soft);
}

.unifiedAppShell .dHomeActionIcon svg { width: 18px; height: 18px; }

.unifiedAppShell .dHomeOutdoorActions { padding: 20px; }
.unifiedAppShell .dHomeOutdoorActionGrid {
  margin-top: 15px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.unifiedAppShell .dHomeOutdoorActionGrid > a {
  min-height: 112px;
  padding: 15px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-md);
  background: var(--ui-surface-soft);
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

.unifiedAppShell .dHomeOutdoorActionGrid > a:hover {
  border-color: var(--ui-accent-border);
  background: var(--ui-accent-soft);
  transform: translateY(-1px);
}

.unifiedAppShell .dHomeOutdoorActionGrid > a > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.unifiedAppShell .dHomeOutdoorActionGrid strong { color: var(--ui-text); font-size: 12.5px; }
.unifiedAppShell .dHomeOutdoorActionGrid small { margin-top: 6px; color: var(--ui-muted); font-size: 10.5px; line-height: 1.5; }
.unifiedAppShell .dHomeOutdoorActionGrid b { color: var(--ui-muted); font-size: 15px; }

.unifiedAppShell .dHomeOperational {
  padding: 20px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.unifiedAppShell .dHomeOperational .dHomeActionIcon { width: 44px; height: 44px; }
.unifiedAppShell .dHomeOperational p { margin: 5px 0 0; color: var(--ui-muted); font-size: 11.5px; }

.unifiedAppShell .dashHero {
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-lg);
  box-shadow: var(--ui-shadow-md);
}

/* ---------- autentificare (în afara shell-ului) ---------- */
.loginPage {
  min-height: 100vh;
  padding: 24px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--ui-accent, #6d9fff) 12%, transparent), transparent 34rem),
    var(--ui-bg);
  font-family: var(--ui-font);
}

.loginCard {
  width: min(100%, 430px);
  padding: 28px;
  border: 1px solid var(--ui-border);
  border-radius: 16px;
  background: var(--ui-surface);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

.loginBrand { color: var(--ui-accent, #6d9fff); letter-spacing: -0.035em; }
.loginSub { color: var(--ui-muted); }
.loginInput {
  min-height: 42px;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-md);
  color: var(--ui-text);
  background: var(--ui-surface-soft);
}
.loginInput:focus { border-color: var(--ui-accent, #6d9fff); box-shadow: 0 0 0 3px var(--ui-accent-soft, rgba(109,159,255,.12)); }
.loginBtn { min-height: 42px; border-radius: var(--ui-radius-md); background: var(--ui-accent-strong, #5488ed); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .unifiedAppShell .container { padding-inline: 22px; }
  .unifiedAppShell :where(.appKpiGrid, .opsStats, .dashStats, .dHomeGrid) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .unifiedAppShell .dHomeMetrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  .unifiedAppShell .appMain { margin-left: 0; }
  .unifiedAppShell .appSidebar { width: min(290px, 86vw); }
  .unifiedAppShell .container { padding: 78px 16px 28px; }
  .unifiedAppShell .card.appSurface,
  .unifiedAppShell .adminSubpage,
  .unifiedAppShell .tplShell,
  .unifiedAppShell .nrsvShell,
  .unifiedAppShell .comenziPage,
  .unifiedAppShell .excelDesignShell { padding: 16px; }
  .unifiedAppShell .dHomeOutdoorActionGrid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .unifiedAppShell :where(.appPageTitle, .adminSubpageTitle, .tplTitle, .ofrTitle, .nrsvTitle, .comenziTitle, .opsTitle) { font-size: 19px; }
  .unifiedAppShell :where(.appPageHero, .adminSubpageHeader, .tplHeader, .ofrTopBar, .nrsvHeader, .comenziHeader, .opsHeader) { flex-direction: column; align-items: stretch; }
  .unifiedAppShell :where(.appKpiGrid, .opsStats, .dashStats, .dHomeGrid) { grid-template-columns: 1fr; }
  .unifiedAppShell :where(.appToolbar, .adminSubpageFilters, .dspFilterGrid, .comenziFiltersGrid, .ofrGrid, .nrsvFilterGrid) { grid-template-columns: 1fr; }
  .unifiedAppShell .listPaginationToolbar { align-items: stretch; flex-direction: column; }
  .unifiedAppShell .listPaginationToolbar__controls { align-items: stretch; justify-content: space-between; }
  .unifiedAppShell .listPaginationNav { flex: 1; justify-content: flex-end; }
  .unifiedAppShell .listPaginationNav__meta { min-width: 88px; }
  .unifiedAppShell .dHome { gap: 11px; }
  .unifiedAppShell .dHomeHeader { min-height: 0; padding: 18px; align-items: stretch; flex-direction: column; }
  .unifiedAppShell .dHomePrimary { width: 100%; }
  .unifiedAppShell .dHomeMetrics { grid-template-columns: 1fr 1fr; gap: 8px; }
  .unifiedAppShell .dHomeMetrics article { min-height: 100px; padding: 14px; }
  .unifiedAppShell .dHomeOutdoorActions { padding: 16px; }
  .unifiedAppShell .dHomeOperational { grid-template-columns: 44px minmax(0, 1fr); }
  .unifiedAppShell .dHomeOperational > a { grid-column: 2; }
}

@media (max-width: 430px) {
  .unifiedAppShell .dHomeMetrics { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Căutare comună în filtrul de proprietari — Outdoor + Digital. */
.unifiedAppShell .ownerFilterDropdown {
  min-width: min(310px, calc(100vw - 32px));
  overflow: hidden;
}

.unifiedAppShell .ownerFilterSearchWrap {
  position: relative;
  padding: 10px 10px 8px;
}

.unifiedAppShell .ownerFilterSearchWrap svg {
  position: absolute;
  top: 50%;
  left: 21px;
  width: 15px;
  height: 15px;
  pointer-events: none;
  fill: none;
  stroke: var(--ui-muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  transform: translateY(-50%);
}

.unifiedAppShell .ownerFilterSearch {
  width: 100%;
  min-height: 38px;
  padding: 8px 32px 8px 34px;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  outline: none;
  background: var(--ui-surface-soft);
  color: var(--ui-text);
  font: inherit;
  font-size: 12px;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.unifiedAppShell .ownerFilterSearch::placeholder {
  color: var(--ui-muted);
}

.unifiedAppShell .ownerFilterSearch:focus {
  border-color: var(--ui-accent);
  background: var(--ui-surface-raised);
  box-shadow: 0 0 0 3px rgba(var(--ui-accent-rgb), 0.13);
}

.unifiedAppShell .ownerFilterSearch::-webkit-search-cancel-button {
  cursor: pointer;
  filter: invert(0.75);
}

.unifiedAppShell .ownerFilterMeta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ui-muted);
  font-size: 10px;
}

.unifiedAppShell .ownerFilterMeta .nrsvMultiDropClear {
  margin-left: auto;
  white-space: nowrap;
}

.unifiedAppShell .ownerFilterEmpty {
  padding: 24px 14px;
  color: var(--ui-muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 640px) {
  .unifiedAppShell .ownerFilterDropdown {
    width: min(100%, 340px);
    min-width: min(100%, 280px);
  }

  .unifiedAppShell .ownerFilterSearch {
    min-height: 42px;
    font-size: 14px;
  }
}

/* ---------- ofertare Outdoor + Digital ---------- */
.unifiedAppShell .dsp {
  width: min(100%, var(--ui-content-max));
  margin: 0 auto;
  padding: 20px 24px 32px;
  gap: 12px;
}

.unifiedAppShell .dspHeader.dspHeader--workspace {
  position: relative;
  min-height: 112px;
  margin: 0;
  padding: 20px 22px;
  align-items: flex-end;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-lg);
  background:
    linear-gradient(115deg, var(--ui-accent-soft), transparent 42%),
    var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
  overflow: hidden;
}

.unifiedAppShell .dspHeader.dspHeader--workspace::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--ui-accent);
}

.unifiedAppShell .dspHeaderCopy {
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.unifiedAppShell .dspEyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ui-accent);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.unifiedAppShell .dspEyebrowDot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px var(--ui-accent-soft);
}

.unifiedAppShell .dspTitleLine {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.unifiedAppShell .dspTitle {
  color: var(--ui-text);
  font-size: clamp(21px, 2vw, 25px);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.unifiedAppShell .dspSubtitle {
  max-width: 620px;
  margin: 0;
  color: var(--ui-text-soft);
  font-size: 12px;
  line-height: 1.5;
}

.unifiedAppShell .dspCount {
  min-height: 24px;
  padding: 3px 9px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ui-accent-border);
  border-radius: 999px;
  color: var(--ui-accent);
  background: var(--ui-accent-soft);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
}

.unifiedAppShell .dspHeaderRight {
  min-width: 0;
  flex: 0 1 auto;
  justify-content: flex-end;
  gap: 8px;
}

.unifiedAppShell :where(.dspSearch, .dspSelect) {
  height: var(--ui-control-height);
  border-color: var(--ui-border-strong);
  border-radius: var(--ui-radius-md);
  color: var(--ui-text);
  background: color-mix(in srgb, var(--ui-bg) 70%, var(--ui-surface));
  box-shadow: none;
}

.unifiedAppShell .dspSearch { width: min(260px, 25vw); }
.unifiedAppShell .dspSelect { min-width: 136px; }
.unifiedAppShell :where(.dspSearch, .dspSelect):focus {
  border-color: var(--ui-accent);
  box-shadow: 0 0 0 3px var(--ui-accent-soft);
}

.unifiedAppShell .dspBtnExcel {
  min-height: var(--ui-control-height);
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid color-mix(in srgb, var(--ui-accent) 82%, white);
  border-radius: var(--ui-radius-md);
  color: #fff;
  background: var(--ui-accent-strong);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--ui-accent) 20%, transparent);
  font-size: 11.5px;
  font-weight: 720;
}

.unifiedAppShell .dspBtnExcel:hover:not(:disabled) {
  background: var(--ui-accent);
  transform: translateY(-1px);
}

.unifiedAppShell .dspExportIcon {
  width: 19px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1;
}

.unifiedAppShell .dspFilterBar {
  min-height: 62px;
  margin: 0;
  padding: 11px 12px 11px 15px;
  flex-wrap: nowrap;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-lg);
  background: var(--ui-surface-soft);
  box-shadow: var(--ui-shadow-sm);
}

.unifiedAppShell .dspFilterSummary {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.unifiedAppShell .dspFilterSummaryLabel {
  color: var(--ui-muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.unifiedAppShell .dspFilterChips { gap: 6px; }
.unifiedAppShell .dspChip {
  height: 24px;
  padding: 0 9px;
  border: 1px solid var(--ui-border-strong);
  border-radius: 7px;
  color: var(--ui-text-soft);
  background: var(--ui-surface-raised);
  font-size: 10.5px;
  font-weight: 650;
}

.unifiedAppShell .dspChip--period {
  border-color: var(--ui-accent-border);
  color: var(--ui-accent);
  background: var(--ui-accent-soft);
}

.unifiedAppShell .dspBtnFilter {
  min-height: 38px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-color: var(--ui-border-strong);
  border-radius: var(--ui-radius-md);
  color: var(--ui-text);
  background: var(--ui-surface-raised);
  font-size: 11px;
  font-weight: 700;
}

.unifiedAppShell .dspFilterIcon {
  position: relative;
  width: 14px;
  height: 10px;
  display: inline-block;
  border-top: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
}

.unifiedAppShell .dspFilterIcon::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  border-top: 1.5px solid currentColor;
}

.unifiedAppShell .dspFilterPanel {
  margin: 0;
  border-radius: var(--ui-radius-lg);
  box-shadow: var(--ui-shadow-sm);
}

.unifiedAppShell .dspResultsSection {
  min-width: 0;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-lg);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
  overflow: hidden;
}

.unifiedAppShell .dspResultsHeader {
  min-height: 64px;
  padding: 13px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--ui-border);
  background: linear-gradient(90deg, var(--ui-accent-soft), transparent 34%);
}

.unifiedAppShell .dspResultsKicker {
  display: block;
  margin-bottom: 2px;
  color: var(--ui-accent);
  font-size: 9px;
  font-weight: 780;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
}

.unifiedAppShell .dspResultsTitle {
  margin: 0;
  color: var(--ui-text);
  font-size: 14px;
  font-weight: 740;
  letter-spacing: -0.015em;
}

.unifiedAppShell .dspSelectionStatus {
  min-height: 27px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ui-border);
  border-radius: 999px;
  color: var(--ui-muted);
  background: var(--ui-surface-soft);
  font-size: 10.5px;
  font-weight: 650;
}

.unifiedAppShell .dspSelectionStatus--active {
  border-color: var(--ui-accent-border);
  color: var(--ui-accent);
  background: var(--ui-accent-soft);
}

.unifiedAppShell .dspResultsSection .dspTableWrap {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow-x: auto;
}

.unifiedAppShell .dspResultsSection .dspTable { min-width: 900px; }
body[data-workspace="digital"] .unifiedAppShell .dspResultsSection .dspTable { min-width: 1160px; }

.unifiedAppShell .dspTable thead {
  background: color-mix(in srgb, var(--ui-surface-raised) 82%, var(--ui-bg));
}

.unifiedAppShell .dspTable thead th {
  height: 38px;
  padding: 8px 14px;
  border-color: var(--ui-border);
  color: var(--ui-muted);
  font-size: 9.5px;
  font-weight: 760;
  letter-spacing: 0.075em;
}

.unifiedAppShell .dspTable tbody tr { border-color: var(--ui-border); }
.unifiedAppShell .dspTable tbody tr:hover { background: var(--ui-accent-soft) !important; }
.unifiedAppShell .dspTable tbody td {
  height: 66px;
  padding: 10px 14px;
  color: var(--ui-text);
}

.unifiedAppShell .dspTdCode {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace !important;
  font-size: 11.5px;
}

.unifiedAppShell .dspCellSpace { gap: 11px; }
.unifiedAppShell .dspThumb {
  width: 60px;
  height: 43px;
  border-color: var(--ui-border-strong);
  border-radius: 8px;
  background: var(--ui-surface-soft);
}
.unifiedAppShell .dspCellName { color: var(--ui-text); font-size: 11.5px; font-weight: 680; }
.unifiedAppShell .dspCellDim { margin-top: 3px; color: var(--ui-muted); font-size: 10px; }
.unifiedAppShell .dspTdPrice { color: color-mix(in srgb, var(--ui-accent) 76%, white) !important; font-size: 12px; }
.unifiedAppShell .dspPriceCur { color: var(--ui-muted); font-size: 9.5px; font-weight: 600; }
.unifiedAppShell .dspTypeBadge { border: 1px solid var(--ui-border); border-radius: 6px; background: var(--ui-surface-soft); }

.unifiedAppShell .dspResultsSection .dspPag {
  min-height: 58px;
  margin: 0;
  padding: 11px 16px;
  border: 0;
  border-top: 1px solid var(--ui-border);
  border-radius: 0;
  background: color-mix(in srgb, var(--ui-surface-soft) 88%, var(--ui-surface));
}

.unifiedAppShell :where(.dspPagSize, .dspPagBtn) {
  min-height: 34px;
  border-color: var(--ui-border-strong);
  border-radius: 8px;
  color: var(--ui-text-soft);
  background: var(--ui-surface-raised);
}
.unifiedAppShell .dspPagInfo { color: var(--ui-muted); font-size: 10.5px; }
.unifiedAppShell .dspPagCur { color: var(--ui-text); font-size: 11px; }

/* ---------- catalog panouri: aceeași densitate vizuală în ambele module ----------
   Outdoor păstrează accentul albastru, Digital accentul mov, însă suprafețele,
   antetul și contrastul rândurilor sunt identice. Starea de montaj este deja
   comunicată prin badge și indicatorul lateral, deci nu estompăm întregul rând. */
.unifiedAppShell .card.appSurface.appSurface--unifiedCatalog .tbA {
  border-color: var(--ui-border) !important;
  background: var(--ui-surface-raised) !important;
  box-shadow: none !important;
}

.unifiedAppShell .card.appSurface.appSurface--unifiedCatalog .appTableShell,
.unifiedAppShell .card.appSurface.appSurface--unifiedCatalog .panelsVariantA {
  border-color: var(--ui-border) !important;
  background: #151a25 !important;
  box-shadow: none !important;
}

.unifiedAppShell .appSurface--unifiedCatalog .panelsVariantA .panelsVariantATh {
  padding: 12px 14px !important;
  border-color: var(--ui-border) !important;
  background: var(--ui-surface-soft) !important;
  color: #aab7c9 !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.035em !important;
  text-transform: none !important;
}

.unifiedAppShell .appSurface--unifiedCatalog .panelsVariantARow + .panelsVariantARow {
  border-color: var(--ui-border) !important;
}

.unifiedAppShell .appSurface--unifiedCatalog .panelsVariantATd {
  border-color: color-mix(in srgb, var(--ui-border) 78%, transparent) !important;
  color: var(--ui-text-soft);
}

.unifiedAppShell .appSurface--unifiedCatalog .panelsVariantARow[data-lifecycle="FUTURE"] .panelsVariantATd {
  opacity: 0.56 !important;
}

.unifiedAppShell .appSurface--unifiedCatalog .panelsVariantARow[data-lifecycle="REMOVED"] .panelsVariantATd {
  opacity: 0.46 !important;
}

.unifiedAppShell .appSurface--unifiedCatalog .panelsVariantARow[data-lifecycle="FUTURE"] .panelsVariantATd:first-child {
  box-shadow: inset 3px 0 0 rgba(96, 165, 250, 0.72) !important;
}

.unifiedAppShell .appSurface--unifiedCatalog .panelsVariantARow[data-lifecycle="REMOVED"] .panelsVariantATd:first-child {
  box-shadow: inset 3px 0 0 rgba(148, 163, 184, 0.62) !important;
}

.unifiedAppShell .appSurface--unifiedCatalog .panelsVariantARow[data-lifecycle="FUTURE"]:hover .panelsVariantATd {
  opacity: 0.72 !important;
}

.unifiedAppShell .appSurface--unifiedCatalog .panelsVariantARow:hover .panelsVariantATd {
  background: var(--ui-accent-soft) !important;
}

@media (max-width: 1180px) {
  .unifiedAppShell .dspHeader.dspHeader--workspace { align-items: stretch; flex-direction: column; }
  .unifiedAppShell .dspHeaderRight { justify-content: flex-start; }
  .unifiedAppShell .dspSearch { width: min(360px, 100%); flex: 1 1 240px; }
}

@media (max-width: 900px) {
  .unifiedAppShell .dsp { padding: 78px 14px 26px; }
  .unifiedAppShell .dspHeader.dspHeader--workspace { min-height: 0; padding: 17px; }
  .unifiedAppShell .dspHeaderRight { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(118px, .55fr); }
  .unifiedAppShell .dspSearch { width: 100%; grid-column: 1 / -1; }
  .unifiedAppShell .dspBtnExcel { width: 100%; }
  .unifiedAppShell .dspFilterBar { align-items: flex-end; }
  .unifiedAppShell .dspResultsSection .dspTable { min-width: 900px; }
  body[data-workspace="digital"] .unifiedAppShell .dspResultsSection .dspTable { min-width: 0; }
}

@media (max-width: 640px) {
  .unifiedAppShell .dsp { padding-inline: 10px; gap: 9px; }
  .unifiedAppShell .dspTitleLine { align-items: flex-start; flex-direction: column; gap: 7px; }
  .unifiedAppShell .dspSubtitle { font-size: 11px; }
  .unifiedAppShell .dspHeaderRight { grid-template-columns: 1fr; }
  .unifiedAppShell .dspHeaderRight > * { width: 100%; }
  .unifiedAppShell .dspSearch { grid-column: auto; }
  .unifiedAppShell .dspFilterBar { align-items: stretch; flex-direction: column; }
  .unifiedAppShell .dspBtnFilter { justify-content: center; }
  .unifiedAppShell .dspResultsHeader { min-height: 58px; padding: 11px 13px; }
  .unifiedAppShell .dspResultsSection .dspPag { align-items: stretch; flex-direction: column; }
  .unifiedAppShell .dspPagLeft,
  .unifiedAppShell .dspPagRight { width: 100%; justify-content: space-between; }
}

/* Operațiuni teren — compoziție compactă, încadrată și comună Outdoor/Digital. */
.unifiedAppShell .opsPage {
  width: 100%;
  margin-inline: auto;
  gap: 16px;
}

.unifiedAppShell .opsOverview,
.unifiedAppShell .opsFilterPanel {
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-lg);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
}

.unifiedAppShell .opsOverview {
  position: relative;
  padding: 20px;
  overflow: hidden;
}

.unifiedAppShell .opsOverview::before {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ui-accent), transparent);
  opacity: 0.55;
  content: "";
}

.unifiedAppShell .opsOverview .opsHeader {
  min-height: 0;
  margin: 0 0 18px;
  padding: 0 0 18px;
  border: 0;
  border-bottom: 1px solid var(--ui-border);
  border-radius: 0;
  background: transparent;
}

.unifiedAppShell .opsTitle { font-size: 21px; }
.unifiedAppShell .opsSub { max-width: 760px; color: var(--ui-muted); line-height: 1.5; }
.unifiedAppShell .opsHeaderActions .opsBtn { min-height: 40px; }

.unifiedAppShell .opsStats {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.unifiedAppShell .opsStat {
  position: relative;
  min-height: 82px;
  padding: 15px 16px;
  overflow: hidden;
  border-color: var(--ui-border);
  border-radius: var(--ui-radius-md);
  background: var(--ui-surface-raised);
  box-shadow: none;
}

.unifiedAppShell .opsStat::after {
  position: absolute;
  inset: auto 14px 0;
  height: 2px;
  border-radius: 999px 999px 0 0;
  background: var(--ui-border-strong);
  content: "";
}

.unifiedAppShell .opsStat--active::after { background: #60a5fa; }
.unifiedAppShell .opsStat--done::after { background: #3dd9a0; }
.unifiedAppShell .opsStat--dec::after { background: #a78bfa; }
.unifiedAppShell .opsStat--redec::after { background: #38bdf8; }
.unifiedAppShell .opsStat--neu::after { background: #f0aa3c; }
.unifiedAppShell .opsStatValue { font-size: 24px; }

.unifiedAppShell .opsFilterPanel { padding: 16px; }
.unifiedAppShell .opsFilterPanelHead {
  min-height: 38px;
  margin-bottom: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.unifiedAppShell .opsFilterPanelHead h2 {
  margin: 0;
  color: var(--ui-text);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: -0.01em;
}
.unifiedAppShell .opsFilterPanelHead .opsResetBtn { min-height: 34px; padding: 6px 11px; }

.unifiedAppShell .opsFilters {
  grid-template-columns: minmax(138px, .72fr) minmax(138px, .72fr) minmax(230px, 1.24fr) minmax(340px, 1.7fr) minmax(240px, 1.9fr);
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.unifiedAppShell .opsFilterLabel {
  color: var(--ui-text-soft);
  font-size: 9.5px;
  font-weight: 780;
  letter-spacing: 0.08em;
}

.unifiedAppShell .opsFilterInput,
.unifiedAppShell .opsSegmented {
  min-height: 40px;
  height: 40px;
  border-color: var(--ui-border-strong);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-surface-soft);
}
.unifiedAppShell .opsFilterInput { width: 100%; padding-inline: 11px; }
.unifiedAppShell .opsSegmented { padding: 3px; }
.unifiedAppShell .opsSegBtn { flex: 1 1 auto; min-width: 0; padding-inline: 9px; border-radius: 6px; }
.unifiedAppShell .opsSegBtn[data-active="true"] {
  color: var(--ui-text);
  border: 1px solid var(--ui-accent-border);
  background: var(--ui-accent-soft);
  box-shadow: none;
}

.unifiedAppShell .opsListWrap {
  min-height: 180px;
  border-radius: var(--ui-radius-lg);
  background: var(--ui-surface);
}
.unifiedAppShell .opsListWrap[data-empty="true"] { min-height: 238px; }
.unifiedAppShell .opsEmpty {
  min-height: 236px;
  padding: 30px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--ui-muted);
}
.unifiedAppShell .opsEmpty--loading { min-height: 178px; }
.unifiedAppShell .opsEmptyIcon {
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ui-accent-border);
  border-radius: 14px;
  color: var(--ui-accent);
  background: var(--ui-accent-soft);
}
.unifiedAppShell .opsEmptyTitle { color: var(--ui-text); font-size: 14px; }
.unifiedAppShell .opsEmptyText { margin-bottom: 7px; color: var(--ui-muted); font-size: 12px; }

@media (max-width: 1480px) {
  .unifiedAppShell .opsStats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .unifiedAppShell .opsFilters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .unifiedAppShell .opsFilterGroup--search { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .unifiedAppShell .opsPage { gap: 12px; }
  .unifiedAppShell .opsOverview,
  .unifiedAppShell .opsFilterPanel { padding: 14px; border-radius: 12px; }
  .unifiedAppShell .opsOverview .opsHeader { margin-bottom: 14px; padding: 0 0 14px; }
  .unifiedAppShell .opsHeaderActions,
  .unifiedAppShell .opsHeaderActions .opsBtn { width: 100%; }
  .unifiedAppShell .opsStats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .unifiedAppShell .opsStat:first-child { grid-column: 1 / -1; }
  .unifiedAppShell .opsStat { min-height: 74px; padding: 13px 14px; }
  .unifiedAppShell .opsStatValue { font-size: 22px; }
  .unifiedAppShell .opsFilterPanelHead { margin-bottom: 11px; }
  .unifiedAppShell .opsFilters { grid-template-columns: 1fr !important; gap: 11px; }
  .unifiedAppShell .opsFilterGroup--search { grid-column: auto; }
  .unifiedAppShell .opsFilterInput,
  .unifiedAppShell .opsSegmented { min-height: 44px; height: 44px; }
  .unifiedAppShell .opsListWrap[data-empty="true"],
  .unifiedAppShell .opsEmpty { min-height: 220px; }
}

/* Sesiuni utilizator — istoric compact, scalabil și comun ambelor workspace-uri. */
.unifiedAppShell .userSessionsPanel { overflow: hidden; }
.unifiedAppShell .userSessionsHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.unifiedAppShell .userSessionsHeader .adminSubpageFormTitle { margin-bottom: 8px; }
.unifiedAppShell .userSessionsStats,
.unifiedAppShell .userSessionsFilters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.unifiedAppShell .userSessionsStats span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid var(--ui-border);
  border-radius: 999px;
  background: var(--ui-surface-soft);
  color: var(--ui-text-soft);
  font-size: 0.75rem;
}
.unifiedAppShell .userSessionsStats strong { color: var(--ui-text); font-variant-numeric: tabular-nums; }
.unifiedAppShell .userSessionsFilters .btn { min-height: 36px; padding-inline: 13px; }
.unifiedAppShell .userSessionsTable { min-width: 840px; }
.unifiedAppShell .userSessionDevice,
.unifiedAppShell .userSessionMeta { display: block; }
.unifiedAppShell .userSessionMeta { margin-top: 4px; font-size: 0.72rem; line-height: 1.35; }
.unifiedAppShell .userSessionIp {
  display: inline-flex;
  max-width: 100%;
  padding: 4px 7px;
  border: 1px solid var(--ui-border);
  border-radius: 6px;
  background: var(--ui-surface-soft);
  color: var(--ui-text);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}
.unifiedAppShell .userSessionStatus {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid var(--ui-border);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}
.unifiedAppShell .userSessionStatus--active,
.unifiedAppShell .userSessionStatus--current { border-color: rgba(52, 211, 153, 0.32); background: rgba(52, 211, 153, 0.09); color: #6ee7b7; }
.unifiedAppShell .userSessionStatus--current::before {
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}
.unifiedAppShell .userSessionStatus--closed { color: var(--ui-text-soft); }

/* ========================================================================== */
/* Telefon — contract final pentru toate paginile Outdoor + Digital           */
/* ========================================================================== */
@media (max-width: 720px) {
  html,
  body { max-width: 100%; overflow-x: hidden; }

  .unifiedAppShell,
  .unifiedAppShell .appMain,
  .unifiedAppShell .container,
  .unifiedAppShell :where(.card, .appSurface, .adminSubpage, .appTableShell, .tableWrap) {
    min-width: 0;
    max-width: 100%;
  }

  .unifiedAppShell .container {
    width: 100%;
    padding: 22px 14px 28px !important;
  }

  .unifiedAppShell .appMobileTopbar {
    min-height: 56px;
    padding: 7px 14px;
  }

  .unifiedAppShell .appMobileMenuBtn {
    width: 44px;
    height: 44px;
  }

  .unifiedAppShell .appMobileBrand {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  .unifiedAppShell :where(.workspaceSwitchButton, .appSidebarLink, .appSidebarSectionToggle, .appSidebarSubLink, .appUserLogout) {
    min-height: 40px;
  }

  .unifiedAppShell .ownerNetworkSegment { min-height: 40px; }

  .unifiedAppShell .userSessionsHeader { flex-direction: column; align-items: stretch; gap: 12px; }
  .unifiedAppShell .userSessionsFilters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .unifiedAppShell .userSessionsFilters .btn { width: 100%; min-height: 40px; }
  .unifiedAppShell .userSessionsTable { min-width: 0; }

  .unifiedAppShell :where(.appPageHero, .adminSubpageHeader, .tplHeader, .ofrTopBar, .nrsvHeader, .comenziHeader, .opsHeader) {
    min-height: 0;
    padding-bottom: 13px;
  }

  .unifiedAppShell :where(.card.appSurface, .adminSubpage, .tplShell, .nrsvShell, .comenziPage, .excelDesignShell) {
    padding: 14px;
    border-radius: 12px;
  }

  .unifiedAppShell :where(input, select, textarea) {
    max-width: 100%;
    font-size: 16px !important;
  }

  .unifiedAppShell :where(.btn, .tbA__btn, .adminSubpageActionBtn, .listPaginationNav__btn) {
    min-height: 40px;
  }

  .unifiedAppShell :where(.appToolbarActions, .adminSubpageHeaderActions, .comenziHeaderActions) {
    width: 100%;
    flex-wrap: wrap;
  }

  .unifiedAppShell .appToolbarActions > * {
    flex: 1 1 150px;
  }

  .unifiedAppShell :where(.adminSubpageHeaderActions, .comenziHeaderActions) > * {
    width: 100%;
    flex: 0 0 auto;
  }

  /* Catalogul panourilor devine aceeași fișă verticală în ambele module. */
  .unifiedAppShell .appSurface--unifiedCatalog .panelsVariantA,
  .unifiedAppShell .appSurface--unifiedCatalog .panelsVariantATable,
  .unifiedAppShell .appSurface--unifiedCatalog .panelsVariantATable tbody,
  .unifiedAppShell .appSurface--unifiedCatalog .panelsVariantATable tr,
  .unifiedAppShell .appSurface--unifiedCatalog .panelsVariantATable td {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .unifiedAppShell .appSurface--unifiedCatalog .panelsVariantATable,
  .unifiedAppShell .appSurface--unifiedCatalog .panelsVariantATable tbody,
  .unifiedAppShell .appSurface--unifiedCatalog .panelsVariantATable td {
    display: block !important;
  }

  .unifiedAppShell .appSurface--unifiedCatalog .panelsVariantATable thead { display: none !important; }
  .unifiedAppShell .appSurface--unifiedCatalog .panelsVariantATable tbody {
    display: grid !important;
    gap: 10px;
    padding: 0;
  }

  .unifiedAppShell .appSurface--unifiedCatalog .panelsVariantARow {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
    padding: 13px !important;
    border: 1px solid var(--ui-border) !important;
    border-radius: 11px !important;
    background: var(--ui-surface-raised) !important;
    box-shadow: none !important;
  }

  .unifiedAppShell .appSurface--unifiedCatalog .panelsVariantARow + .panelsVariantARow { border-top: 1px solid var(--ui-border) !important; }
  .unifiedAppShell .appSurface--unifiedCatalog .panelsVariantATd {
    display: block !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  .unifiedAppShell .appSurface--unifiedCatalog .panelsVariantASpace {
    display: grid !important;
    grid-template-columns: 64px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 11px !important;
  }

  .unifiedAppShell .appSurface--unifiedCatalog .panelsVariantAThumb {
    width: 64px !important;
    height: 48px !important;
    min-height: 48px !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  .unifiedAppShell .appSurface--unifiedCatalog .panelsVariantASpaceBody {
    min-width: 0 !important;
    grid-column: 2 !important;
  }

  .unifiedAppShell .appSurface--unifiedCatalog :where(.panelsVariantATitle, .panelsVariantAAddress, .panelsVariantAOwnerName) {
    overflow-wrap: anywhere;
    white-space: normal !important;
  }

  .unifiedAppShell .appSurface--unifiedCatalog :where(.panelsVariantATd--type, .panelsVariantATd--config, .panelsVariantATd--contract, .panelsVariantATd--owner, .panelsVariantATd--details, .panelsVariantATd--offer, .panelsVariantATd--actions) {
    margin-top: 11px !important;
    padding-top: 10px !important;
    border-top: 1px solid color-mix(in srgb, var(--ui-border) 78%, transparent) !important;
  }

  .unifiedAppShell .appSurface--unifiedCatalog .panelsVariantATd--type::before,
  .unifiedAppShell .appSurface--unifiedCatalog .panelsVariantATd--config::before,
  .unifiedAppShell .appSurface--unifiedCatalog .panelsVariantATd--contract::before,
  .unifiedAppShell .appSurface--unifiedCatalog .panelsVariantATd--owner::before,
  .unifiedAppShell .appSurface--unifiedCatalog .panelsVariantATd--details::before,
  .unifiedAppShell .appSurface--unifiedCatalog .panelsVariantATd--offer::before {
    display: block;
    margin-bottom: 7px;
    color: var(--ui-muted);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.075em;
    text-transform: uppercase;
  }

  .unifiedAppShell .appSurface--unifiedCatalog .panelsVariantATd--type::before { content: "Tip suport"; }
  .unifiedAppShell .appSurface--unifiedCatalog .panelsVariantATd--config::before { content: "Configurație"; }
  .unifiedAppShell .appSurface--unifiedCatalog .panelsVariantATd--contract::before { content: "Contract"; }
  .unifiedAppShell .appSurface--unifiedCatalog .panelsVariantATd--owner::before { content: "Proprietar"; }
  .unifiedAppShell .appSurface--unifiedCatalog .panelsVariantATd--details::before { content: "Detalii"; }
  .unifiedAppShell .appSurface--unifiedCatalog .panelsVariantATd--offer::before { content: "Preț ofertă"; }

  .unifiedAppShell .appSurface--unifiedCatalog .panelsVariantAConfigMetrics,
  .unifiedAppShell .appSurface--unifiedCatalog .panelsVariantAOffer {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .unifiedAppShell .appSurface--unifiedCatalog .panelsVariantAActionBtn {
    width: 100% !important;
    min-height: 42px !important;
    justify-content: center !important;
  }

  /* Rapoartele Analiză își anulează min-width-ul desktop și rămân în viewport. */
  .unifiedAppShell .analysisReportTableShell,
  .unifiedAppShell .analysisReportTableShell .tableWrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  .unifiedAppShell :where(.profitReportTable, .coverageReportTable, .paymentsOwnerTable, .paymentsDetailTable, .staffReportTable) {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: auto !important;
  }

  .unifiedAppShell :where(.profitReportTable, .coverageReportTable) tbody tr {
    width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }

  .unifiedAppShell :where(.profitReportTable, .coverageReportTable) td {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere;
    white-space: normal !important;
  }

  .unifiedAppShell :where(.profitReportTable, .coverageReportTable) td > * { max-width: 100% !important; }
  .unifiedAppShell .profitReportTable tfoot { display: none !important; }

  .unifiedAppShell .staffProfileOrdersTable,
  .unifiedAppShell .staffProfileOrdersTable tbody,
  .unifiedAppShell .staffProfileOrdersTable tr,
  .unifiedAppShell .staffProfileOrdersTable td {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .unifiedAppShell .staffProfileOrdersTable thead { display: none !important; }
  .unifiedAppShell .staffProfileOrdersTable tbody { display: grid !important; gap: 10px; }
  .unifiedAppShell .staffProfileOrdersTable tbody tr {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
    padding: 12px;
    border: 1px solid var(--ui-border);
    border-radius: 11px;
    background: var(--ui-surface-raised);
  }
  .unifiedAppShell .staffProfileOrdersTable tbody td {
    padding: 8px 0 !important;
    border: 0 !important;
    overflow-wrap: anywhere;
    white-space: normal !important;
  }
  .unifiedAppShell .staffProfileOrdersTable tbody td::before {
    display: block;
    margin-bottom: 3px;
    color: var(--ui-muted);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }
  .unifiedAppShell .staffProfileOrdersTable tbody td:nth-child(1)::before { content: "Cod"; }
  .unifiedAppShell .staffProfileOrdersTable tbody td:nth-child(2)::before { content: "Panou"; }
  .unifiedAppShell .staffProfileOrdersTable tbody td:nth-child(3)::before { content: "Locație"; }
  .unifiedAppShell .staffProfileOrdersTable tbody td:nth-child(4)::before { content: "Client"; }
  .unifiedAppShell .staffProfileOrdersTable tbody td:nth-child(5)::before { content: "Perioadă"; }
  .unifiedAppShell .staffProfileOrdersTable tbody td:nth-child(6)::before { content: "Preț final"; }
  .unifiedAppShell .staffProfileOrdersTable tbody td:nth-child(7)::before { content: "Discount"; }
  .unifiedAppShell .staffProfileOrdersTable tbody td:nth-child(8)::before { content: "Cost"; }
  .unifiedAppShell .staffProfileOrdersTable tbody td:nth-child(9)::before { content: "Profit"; }
  .unifiedAppShell .staffProfileOrdersTable tbody td:nth-child(2),
  .unifiedAppShell .staffProfileOrdersTable tbody td:nth-child(3),
  .unifiedAppShell .staffProfileOrdersTable tbody td:nth-child(4),
  .unifiedAppShell .staffProfileOrdersTable tbody td:nth-child(5) { grid-column: 1 / -1; }

  .unifiedAppShell .appTableShell:has(.staffProfileOrdersTable) {
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
  }

  .unifiedAppShell .dHomeCardHead a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 8px 0;
  }

  /* Listele administrative folosesc carduri etichetate, nu tabele tăiate. */
  .unifiedAppShell table.adminSubpageTable[data-mobile-cards="true"],
  .unifiedAppShell table.adminSubpageTable[data-mobile-cards="true"] tbody,
  .unifiedAppShell table.adminSubpageTable[data-mobile-cards="true"] tr,
  .unifiedAppShell table.adminSubpageTable[data-mobile-cards="true"] td,
  .unifiedAppShell table.historyTable,
  .unifiedAppShell table.historyTable tbody,
  .unifiedAppShell table.historyTable tr,
  .unifiedAppShell table.historyTable td {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .unifiedAppShell table.adminSubpageTable[data-mobile-cards="true"] thead,
  .unifiedAppShell table.historyTable thead { display: none !important; }

  .unifiedAppShell table.adminSubpageTable[data-mobile-cards="true"] tbody,
  .unifiedAppShell table.historyTable tbody {
    display: grid !important;
    gap: 10px;
    padding: 0;
  }

  .unifiedAppShell table.adminSubpageTable[data-mobile-cards="true"] tbody tr,
  .unifiedAppShell table.historyTable tbody tr {
    padding: 12px;
    border: 1px solid var(--ui-border);
    border-radius: 11px;
    background: var(--ui-surface-raised);
  }

  .unifiedAppShell table.adminSubpageTable[data-mobile-cards="true"] tbody td,
  .unifiedAppShell table.historyTable tbody td {
    display: grid !important;
    grid-template-columns: minmax(92px, 34%) minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 8px 0 !important;
    border: 0 !important;
    color: var(--ui-text-soft);
    text-align: left !important;
    overflow-wrap: anywhere;
    white-space: normal !important;
  }

  .unifiedAppShell table.adminSubpageTable[data-mobile-cards="true"] tbody td + td,
  .unifiedAppShell table.historyTable tbody td + td {
    border-top: 1px solid color-mix(in srgb, var(--ui-border) 70%, transparent) !important;
  }

  .unifiedAppShell table.adminSubpageTable[data-mobile-cards="true"] tbody td::before,
  .unifiedAppShell table.historyTable tbody td::before {
    content: attr(data-label);
    color: var(--ui-muted);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }

  .unifiedAppShell table.adminSubpageTable[data-mobile-cards="true"] .adminSubpageRowActions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .unifiedAppShell table.adminSubpageTable[data-mobile-cards="true"] .adminSubpageRowActions > * {
    width: 100%;
    min-height: 40px;
  }

  .unifiedAppShell table.adminSubpageTable[data-mobile-cards="true"] td[data-label="Acțiuni"] {
    grid-template-columns: 1fr;
  }

  .unifiedAppShell table.adminSubpageTable[data-mobile-cards="true"] td.appEmptyState,
  .unifiedAppShell table.historyTable td[colspan] {
    display: block !important;
    padding: 22px 8px !important;
    text-align: center !important;
  }

  .unifiedAppShell table.adminSubpageTable[data-mobile-cards="true"] td.appEmptyState::before,
  .unifiedAppShell table.historyTable td[colspan]::before { content: none; }

  .unifiedAppShell .adminSubpageTableWrap:has(table[data-mobile-cards="true"]),
  .unifiedAppShell .appTableShell:has(> .tableWrap > table.historyTable) {
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
  }

  .unifiedAppShell .adminSubpageTableWrap:has(table[data-mobile-cards="true"])::after,
  .unifiedAppShell .appTableShell:has(> .tableWrap > table.historyTable)::after { display: none !important; }
}

@media (max-width: 420px) {
  .unifiedAppShell .container { padding-inline: 12px !important; }
  .unifiedAppShell :where(.card.appSurface, .adminSubpage, .tplShell, .nrsvShell, .comenziPage, .excelDesignShell) { padding: 12px; }
  .unifiedAppShell .appSurface--unifiedCatalog .panelsVariantAConfigMetrics,
  .unifiedAppShell .appSurface--unifiedCatalog .panelsVariantAOffer { grid-template-columns: 1fr 1fr !important; }
  .unifiedAppShell table.adminSubpageTable[data-mobile-cards="true"] tbody td,
  .unifiedAppShell table.historyTable tbody td { grid-template-columns: minmax(84px, 31%) minmax(0, 1fr); }
  .unifiedAppShell table.adminSubpageTable[data-mobile-cards="true"] .adminSubpageRowActions { grid-template-columns: 1fr !important; }
}

/* Încărcare fotografii panou — experiență comună Outdoor / Digital. */
.unifiedAppShell .supportSketchSection {
  gap: 18px;
}

.unifiedAppShell .supportSketchHeader {
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--ui-border) !important;
  border-radius: 14px !important;
  background: var(--ui-surface-raised) !important;
  box-shadow: none;
}

.unifiedAppShell .supportSketchHeader .title {
  font-size: 19px;
  letter-spacing: -0.025em;
}

.unifiedAppShell .panelPhotoUploader {
  padding: 16px;
  border: 1px solid var(--ui-border);
  border-radius: 16px;
  background: var(--ui-surface-raised);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.unifiedAppShell .panelPhotoDropzone {
  min-height: 218px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 28px 22px;
  border: 1.5px dashed color-mix(in srgb, var(--ui-accent) 42%, var(--ui-border));
  border-radius: 13px;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--ui-accent) 10%, transparent), transparent 54%),
    color-mix(in srgb, var(--ui-surface-soft) 82%, transparent);
  color: var(--ui-text);
  text-align: center;
  cursor: pointer;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.unifiedAppShell .panelPhotoDropzone:hover,
.unifiedAppShell .panelPhotoDropzone:focus-visible,
.unifiedAppShell .panelPhotoDropzone[data-drag-active="true"] {
  border-color: var(--ui-accent);
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--ui-accent) 18%, transparent), transparent 58%),
    var(--ui-accent-soft);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ui-accent) 14%, transparent);
}

.unifiedAppShell .panelPhotoDropzone[data-drag-active="true"] {
  transform: translateY(-1px);
}

.unifiedAppShell .panelPhotoDropzoneIcon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--ui-accent) 32%, var(--ui-border));
  border-radius: 15px;
  background: var(--ui-accent-soft);
  color: var(--ui-accent);
}

.unifiedAppShell .panelPhotoDropzoneIcon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.unifiedAppShell .panelPhotoDropzoneCopy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.unifiedAppShell .panelPhotoDropzoneCopy strong {
  font-size: 17px;
  letter-spacing: -0.015em;
}

.unifiedAppShell .panelPhotoDropzoneCopy span,
.unifiedAppShell .panelPhotoDropzoneMeta {
  color: var(--ui-muted);
  font-size: 12.5px;
}

.unifiedAppShell .panelPhotoPickerButton {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border: 1px solid color-mix(in srgb, var(--ui-accent) 36%, var(--ui-border));
  border-radius: 9px;
  background: var(--ui-accent-soft);
  color: var(--ui-text);
  font-size: 12.5px;
  font-weight: 750;
}

.unifiedAppShell .panelPhotoSelectionError {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(248, 113, 113, 0.28);
  border-radius: 10px;
  background: rgba(248, 113, 113, 0.08);
  color: #fda4af;
  font-size: 12.5px;
}

.unifiedAppShell .panelPhotoSelection {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--ui-border);
  border-radius: 13px;
  background: color-mix(in srgb, var(--ui-surface-soft) 76%, transparent);
}

.unifiedAppShell .panelPhotoSelectionHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.unifiedAppShell .panelPhotoSelectionHead > div {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.unifiedAppShell .panelPhotoSelectionHead strong {
  font-size: 13px;
}

.unifiedAppShell .panelPhotoSelectionHead span {
  color: var(--ui-muted);
  font-size: 11.5px;
}

.unifiedAppShell .panelPhotoClearButton {
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: var(--ui-muted);
  font: inherit;
  font-size: 11.5px;
  cursor: pointer;
}

.unifiedAppShell .panelPhotoClearButton:hover { color: #fda4af; }

.unifiedAppShell .panelPhotoPreviewGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}

.unifiedAppShell .panelPhotoPreviewCard {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 7px 36px 7px 7px;
  border: 1px solid var(--ui-border);
  border-radius: 10px;
  background: var(--ui-surface-raised);
  overflow: hidden;
}

.unifiedAppShell .panelPhotoPreviewImage {
  width: 72px;
  height: 56px;
  display: block;
  border-radius: 7px;
  object-fit: cover;
  background: var(--ui-surface-soft);
}

.unifiedAppShell .panelPhotoPreviewInfo {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.unifiedAppShell .panelPhotoPreviewInfo strong {
  overflow: hidden;
  color: var(--ui-text);
  font-size: 11.5px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unifiedAppShell .panelPhotoPreviewInfo span {
  color: var(--ui-muted);
  font-size: 10.5px;
}

.unifiedAppShell .panelPhotoRemoveButton {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--ui-border);
  border-radius: 7px;
  background: var(--ui-surface-soft);
  color: var(--ui-muted);
  cursor: pointer;
}

.unifiedAppShell .panelPhotoRemoveButton:hover {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.1);
  color: #fb7185;
}

.unifiedAppShell .panelPhotoRemoveButton svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.unifiedAppShell .panelPhotoUploaderActions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--ui-border);
}

.unifiedAppShell .panelPhotoUploadButton {
  min-width: 158px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.unifiedAppShell .panelPhotoSpinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-top-color: #fff;
  border-radius: 50%;
  animation: panelPhotoSpin 700ms linear infinite;
}

@keyframes panelPhotoSpin { to { transform: rotate(360deg); } }

.unifiedAppShell .supportSketchGrid {
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 14px;
}

.unifiedAppShell .supportSketchCard {
  border-color: var(--ui-border);
  border-radius: 13px;
  background: var(--ui-surface-raised);
  box-shadow: none;
}

.unifiedAppShell .supportSketchCard:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--ui-accent) 34%, var(--ui-border));
  background: var(--ui-surface-raised);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.unifiedAppShell .supportSketchPreview {
  aspect-ratio: 16 / 10;
  border-color: var(--ui-border);
  background: var(--ui-surface-soft);
}

.unifiedAppShell .supportSketchImage { object-fit: cover; }
.unifiedAppShell .supportSketchMeta { padding: 12px 13px 8px; }
.unifiedAppShell .supportSketchName { font-size: 12.5px; }
.unifiedAppShell .supportSketchActions { padding: 4px 12px 12px; }

@media (max-width: 700px) {
  .unifiedAppShell .supportSketchHeader {
    align-items: stretch;
    padding: 15px;
  }

  .unifiedAppShell .supportSketchHeader > .btn { width: 100%; }
  .unifiedAppShell .panelPhotoUploader { padding: 11px; border-radius: 13px; }
  .unifiedAppShell .panelPhotoDropzone { min-height: 200px; padding: 23px 15px; }
  .unifiedAppShell .panelPhotoDropzoneCopy strong { font-size: 16px; }
  .unifiedAppShell .panelPhotoSelectionHead { align-items: flex-start; }
  .unifiedAppShell .panelPhotoSelectionHead > div { flex-direction: column; gap: 2px; }
  .unifiedAppShell .panelPhotoPreviewGrid { grid-template-columns: 1fr; }
  .unifiedAppShell .panelPhotoUploaderActions { display: grid; grid-template-columns: 1fr 1.35fr; }
  .unifiedAppShell .panelPhotoUploaderActions .btn { width: 100%; min-width: 0; }
  .unifiedAppShell .supportSketchGrid { grid-template-columns: 1fr; }
}

/* Galerie foto publică — viewer premium comun Outdoor / Digital. */
.galPage {
  --gal-accent: #6b9fff;
  --gal-accent-rgb: 107, 159, 255;
  position: relative;
  min-height: 100dvh;
  display: block;
  padding: 0;
  overflow: hidden;
  background: #070a11;
  color: #eef3fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.galPage[data-workspace="digital"] {
  --gal-accent: #8b5cf6;
  --gal-accent-rgb: 139, 92, 246;
}

.galAmbient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 0%, rgba(var(--gal-accent-rgb), 0.12), transparent 34%),
    radial-gradient(circle at 88% 22%, rgba(var(--gal-accent-rgb), 0.06), transparent 30%),
    linear-gradient(180deg, #0a0e17 0%, #070a11 58%, #080b12 100%);
}

.galShell {
  position: relative;
  z-index: 1;
  width: min(1380px, 100%);
  margin: 0 auto;
  padding: 26px clamp(22px, 3vw, 44px) 34px;
}

.galHeader {
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.galBrandRow {
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #8d9ab0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.galBrandMark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--gal-accent-rgb), 0.38);
  border-radius: 8px;
  background: rgba(var(--gal-accent-rgb), 0.12);
  color: var(--gal-accent);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.galBrandName {
  color: #dfe7f3;
  font-size: 12px;
  letter-spacing: -0.01em;
  text-transform: none;
}

.galHeaderDivider {
  width: 1px;
  height: 14px;
  margin: 0 2px;
  background: #2a3140;
}

.galEyebrow { color: #718096; }

.galHeaderMain {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.galHeaderInfo { min-width: 0; }

.galTitle {
  max-width: 980px;
  margin: 0;
  color: #f7f9fc;
  font-size: clamp(22px, 2.15vw, 31px);
  font-weight: 780;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.galLocation {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 8px 0 0;
  color: #8190a7;
  font-size: 12.5px;
}

.galLocation svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--gal-accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.galCount {
  min-width: 70px;
  height: 38px;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  padding: 8px 13px;
  border: 1px solid #252d3d;
  border-radius: 11px;
  background: rgba(18, 23, 34, 0.88);
  color: #8290a5;
  font-size: 12px;
  font-weight: 650;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.galCount strong { color: #fff; font-size: 15px; }
.galCount span { color: #465267; }

.galStage {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: clamp(500px, 63vh, 720px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #222a39;
  border-radius: 23px;
  background: #0d111a;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.galStageBackdrop {
  position: absolute;
  z-index: -3;
  inset: -52px;
  width: calc(100% + 104px);
  height: calc(100% + 104px);
  object-fit: cover;
  filter: blur(38px) saturate(0.82) brightness(0.38);
  opacity: 0.82;
  transform: scale(1.08);
  transition: opacity 220ms ease;
}

.galStageShade {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 8, 13, 0.28) 0%, rgba(5, 8, 13, 0.04) 48%, rgba(5, 8, 13, 0.76) 100%),
    radial-gradient(circle at center, rgba(7, 10, 17, 0.02), rgba(7, 10, 17, 0.42));
}

.galImageFrame {
  position: absolute;
  z-index: 1;
  inset: 28px 64px;
  width: auto;
  height: auto;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
}

.galPage .galImageFrame .galImage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  display: block;
  border-radius: 12px;
  object-fit: contain;
  cursor: zoom-in;
  opacity: 0;
  transform: scale(0.992);
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.34));
  transition: opacity 180ms ease, transform 260ms ease;
}

.galPage .galImageFrame .galImage[data-ready="true"] {
  opacity: 1;
  transform: scale(1);
}

.galImageSkeleton {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(76%, 780px);
  height: min(76%, 500px);
  overflow: hidden;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
  transform: translate(-50%, -50%);
}

.galImageSkeleton span {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 28%, rgba(255, 255, 255, 0.075) 46%, transparent 66%);
  transform: translateX(-100%);
  animation: galShimmer 1.2s ease-in-out infinite;
}

@keyframes galShimmer { to { transform: translateX(100%); } }

.galNav,
.galFullscreenNav,
.galFullscreenClose {
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(12, 16, 25, 0.72);
  color: #e9eef8;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease, color 150ms ease;
}

.galNav {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  transform: translateY(-50%);
}

.galNav--left { left: 22px; }
.galNav--right { right: 22px; }

.galNav:hover,
.galFullscreenNav:hover,
.galFullscreenClose:hover {
  border-color: rgba(var(--gal-accent-rgb), 0.55);
  background: rgba(var(--gal-accent-rgb), 0.2);
  color: #fff;
}

.galNav:hover { transform: translateY(-50%) scale(1.04); }

.galNav svg,
.galFullscreenNav svg,
.galFullscreenClose svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.galStageProgress {
  width: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 13px auto 0;
}

.galStageProgress span {
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: #283143;
  transition: width 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.galStageProgress span[data-active="true"] {
  width: 34px;
  background: var(--gal-accent);
  box-shadow: 0 0 12px rgba(var(--gal-accent-rgb), 0.5);
}

.galFilmstrip {
  width: fit-content;
  max-width: 100%;
  margin: 10px auto 0;
  padding: 8px;
  border: 1px solid #202838;
  border-radius: 14px;
  background: rgba(14, 18, 28, 0.76);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(16px);
}

.galThumbs {
  width: auto;
  max-width: min(1100px, calc(100vw - 48px));
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 9px;
  padding: 1px 1px 3px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #30394b transparent;
}

.galThumb {
  position: relative;
  flex: 0 0 auto;
  width: 108px;
  height: 72px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #293244;
  border-radius: 10px;
  background: #111620;
  cursor: pointer;
  opacity: 0.62;
  transform: none;
  transition: opacity 150ms ease, border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.galThumb:hover {
  border-color: #49566d;
  opacity: 0.9;
  transform: translateY(-1px);
}

.galThumb[data-active="true"] {
  border-color: var(--gal-accent);
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(var(--gal-accent-rgb), 0.18), 0 8px 18px rgba(0, 0, 0, 0.24);
}

.galThumbImg { width: 100%; height: 100%; display: block; object-fit: cover; }

.galThumbIndex {
  position: absolute;
  right: 5px;
  bottom: 5px;
  min-width: 23px;
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(5, 8, 13, 0.72);
  color: rgba(255, 255, 255, 0.82);
  font-size: 8.5px;
  font-weight: 750;
  line-height: 1.4;
  backdrop-filter: blur(8px);
}

.galFullscreen {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  background: rgba(3, 5, 9, 0.965);
  backdrop-filter: blur(18px);
  animation: galFullscreenIn 160ms ease-out;
}

@keyframes galFullscreenIn { from { opacity: 0; } }

.galFullscreenTop {
  position: absolute;
  z-index: 5;
  top: 18px;
  right: 22px;
  left: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.galFullscreenTop > div {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.galFullscreenTop strong {
  max-width: min(70vw, 780px);
  overflow: hidden;
  color: #f3f6fb;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.galFullscreenTop span { color: #75849a; font-size: 11px; }

.galFullscreenClose {
  position: static;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 12px;
  font-size: 0;
}

.galFullscreenNav {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  transform: translateY(-50%);
}

.galFullscreenNav--left { left: 22px; }
.galFullscreenNav--right { right: 22px; }
.galFullscreenNav:hover { transform: translateY(-50%) scale(1.04); }
.galFullscreenNav svg { width: 25px; height: 25px; }

.galPage .galFullscreenImageWrap {
  position: absolute;
  inset: 72px 84px 28px;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
}

.galPage .galFullscreenImageWrap .galFullscreenImage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  display: block;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.galStateCard {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(390px, calc(100% - 32px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 30px 24px;
  border: 1px solid #222a39;
  border-radius: 18px;
  background: #10151f;
  text-align: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.galStateCard strong { color: #edf2f9; font-size: 15px; }
.galStateCard > span:last-child { color: #74839a; font-size: 12px; }

.galStateSpinner {
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
  border: 2px solid #273044;
  border-top-color: var(--gal-accent);
  border-radius: 50%;
  animation: panelPhotoSpin 700ms linear infinite;
}

.galStateIcon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 7px;
  border: 1px solid rgba(var(--gal-accent-rgb), 0.28);
  border-radius: 14px;
  background: rgba(var(--gal-accent-rgb), 0.09);
  color: var(--gal-accent);
}

.galStateIcon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.galStateButton {
  min-height: 36px;
  margin-top: 10px;
  padding: 7px 14px;
  border: 1px solid rgba(var(--gal-accent-rgb), 0.35);
  border-radius: 9px;
  background: rgba(var(--gal-accent-rgb), 0.12);
  color: #eef3fb;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 800px) {
  .galShell { padding: 18px 14px 24px; }
  .galHeader { gap: 14px; margin-bottom: 14px; }
  .galHeaderMain { align-items: center; }
  .galStage { height: clamp(390px, 60dvh, 580px); border-radius: 18px; }
  .galImageFrame { inset: 21px 17px; }
  .galPage .galImageFrame .galImage { border-radius: 9px; }
  .galNav { width: 42px; height: 42px; border-radius: 12px; }
  .galNav--left { left: 10px; }
  .galNav--right { right: 10px; }
  .galFilmstrip { margin-top: 10px; padding: 7px; border-radius: 13px; }
  .galThumbs { max-width: calc(100vw - 44px); }
  .galPage .galFullscreenImageWrap { inset: 64px 58px 28px; }
  .galFullscreenNav { width: 44px; height: 44px; border-radius: 13px; }
  .galFullscreenNav--left { left: 9px; }
  .galFullscreenNav--right { right: 9px; }
}

@media (max-width: 520px) {
  .galBrandRow { gap: 7px; }
  .galHeaderDivider { display: none; }
  .galEyebrow { margin-left: auto; }
  .galTitle { font-size: 20px; }
  .galLocation { margin-top: 6px; font-size: 11.5px; }
  .galCount { min-width: 58px; height: 34px; padding: 6px 10px; }
  .galStage { height: clamp(340px, 56dvh, 500px); border-radius: 16px; }
  .galNav { top: 46%; width: 38px; height: 38px; border-radius: 11px; }
  .galNav svg { width: 18px; height: 18px; }
  .galThumb { width: 88px; height: 60px; border-radius: 8px; }
  .galStageProgress { gap: 4px; margin-top: 10px; }
  .galStageProgress span { width: 14px; }
  .galStageProgress span[data-active="true"] { width: 24px; }
  .galPage .galFullscreenImageWrap { inset: 62px 10px 70px; }
  .galFullscreenTop { top: 10px; right: 10px; left: 10px; }
  .galFullscreenTop strong { max-width: 58vw; }
  .galFullscreenNav { top: auto; bottom: 12px; }
  .galFullscreenNav--left { left: 10px; }
  .galFullscreenNav--right { right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .galImage,
  .galNav,
  .galThumb,
  .galFullscreen { transition: none !important; animation: none !important; }
}

/* ========================================================================== */
/* iPhone / telefon — controale compacte și liste de comenzi reproiectate      */
/* ========================================================================== */
@media (max-width: 720px) {
  /* Safari păstrează altfel o lățime intrinsecă mare pentru date și selecturi. */
  .unifiedAppShell :where(
    .appField,
    .field,
    .dspField,
    .opsFilterGroup,
    .nrsvToolGroup,
    .comenziField,
    .adminSubpageField,
    .formField
  ) {
    width: 100%;
    min-width: 0 !important;
    max-width: 100%;
  }

  .unifiedAppShell :where(
    input[type="date"],
    input[type="month"],
    input[type="datetime-local"]
  ) {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 9px 12px !important;
    border-radius: 9px !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
    text-align: left !important;
    -webkit-appearance: none;
    appearance: none;
  }

  .unifiedAppShell :where(
    input[type="date"],
    input[type="month"],
    input[type="datetime-local"]
  )::-webkit-date-and-time-value {
    min-width: 0;
    margin: 0;
    text-align: left;
  }

  .unifiedAppShell :where(
    input[type="date"],
    input[type="month"],
    input[type="datetime-local"]
  )::-webkit-calendar-picker-indicator {
    margin: 0 0 0 auto;
    opacity: 0.72;
  }

  /* Filtrele de raport rămân dense; butoanele nu mai umplu rândul pe înălțime. */
  .unifiedAppShell .appToolbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 14px !important;
  }

  .unifiedAppShell .appToolbar > *,
  .unifiedAppShell .appToolbar .appField,
  .unifiedAppShell .appToolbar .input {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .unifiedAppShell :where(
    .appToolbar .btn,
    .dspFilterActions .dspBtn,
    .opsBtn,
    .nrsvBar .btn,
    .nrsvBarRight .btn
  ) {
    height: auto !important;
    min-height: 42px !important;
    max-height: 48px;
    padding: 9px 14px !important;
    align-self: auto !important;
    line-height: 1.2 !important;
  }

  .unifiedAppShell .appKpiGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }

  .unifiedAppShell .appKpiCard {
    min-height: 92px;
    padding: 13px !important;
  }

  /* Ofertare: cardul de intrare și filtrele nu mai depășesc viewport-ul. */
  .unifiedAppShell .dspInitialWrap {
    width: 100%;
    max-width: 100%;
    padding-inline: 0 !important;
  }

  .unifiedAppShell .dspFilterPanel,
  .unifiedAppShell .dspFilterPanel--initial {
    width: 100%;
    max-width: 100%;
    padding: 14px !important;
    border-radius: 12px !important;
    box-sizing: border-box;
  }

  .unifiedAppShell .dspFilterGrid,
  .unifiedAppShell .dspFilterPanel--initial .dspFilterGrid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  .unifiedAppShell .dspFilterActions,
  .unifiedAppShell .dspFilterPanel--initial .dspFilterActions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  .unifiedAppShell .dspFilterActions > * { width: 100% !important; }

  /* Operațiuni teren: rezumat scurt și filtre fără zone moarte. */
  .unifiedAppShell .opsOverview,
  .unifiedAppShell .opsFilterPanel {
    padding: 12px !important;
  }

  .unifiedAppShell .opsStats { gap: 8px !important; }
  .unifiedAppShell .opsStat {
    min-height: 68px !important;
    padding: 11px 12px !important;
  }

  .unifiedAppShell .opsStatValue { font-size: 20px !important; }
  .unifiedAppShell .opsFilterPanelHead {
    min-height: 0;
    margin-bottom: 10px;
  }

  .unifiedAppShell .opsFilterPanelHead .opsResetBtn {
    width: auto !important;
    min-height: 38px !important;
    padding: 7px 11px !important;
  }

  .unifiedAppShell .opsFilters { gap: 9px !important; }
  .unifiedAppShell .opsSegmented { width: 100%; overflow: hidden; }
  .unifiedAppShell .opsSegBtn { padding-inline: 6px !important; }

  /* Wizard rezervare/comandă: datele sunt două câmpuri normale, nu panouri goale. */
  .unifiedAppShell .nrsvBookingToolbar {
    width: 100%;
    padding: 12px !important;
    box-sizing: border-box;
  }

  .unifiedAppShell .nrsvBookingToolbar .nrsvToolRow {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .unifiedAppShell .nrsvBookingToolbar .nrsvDatePair {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
    width: 100%;
  }

  .unifiedAppShell .nrsvBookingToolbar .nrsvDateSep { display: none !important; }

  .unifiedAppShell .nrsvBar {
    position: static !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
    padding: 12px 0 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .unifiedAppShell .nrsvBarRight {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  /* Formularele de utilizator/profil nu mai produc carduri supradimensionate. */
  .unifiedAppShell :where(.adminSubpageForm, .profileAccountForm) {
    padding: 14px !important;
    gap: 12px !important;
  }

  .unifiedAppShell :where(.adminSubpageFormActions, .profileAccountActions) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .unifiedAppShell :where(.adminSubpageFormActions, .profileAccountActions) > * {
    width: 100% !important;
  }

  /* Lista comenzilor Outdoor + Digital: fiecare comandă devine o fișă compactă. */
  .unifiedAppShell .comenziListWrap {
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }

  .unifiedAppShell .comenziListWrap .confListBody {
    display: grid;
    gap: 10px;
  }

  .unifiedAppShell .comenziListWrap .confListRow {
    overflow: hidden;
    border: 1px solid var(--ui-border) !important;
    border-radius: 12px;
    background: var(--ui-surface-raised) !important;
  }

  .unifiedAppShell .comenziListWrap .confListRow::before {
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 0 999px 999px 0;
  }

  .unifiedAppShell .comenziListWrap .comenziListMain,
  .unifiedAppShell .comenziListWrap .confListMain {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(112px, auto) !important;
    gap: 10px 12px !important;
    padding: 13px 13px 13px 16px !important;
    align-items: start !important;
  }

  .unifiedAppShell .comenziListWrap .confListCol {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  .unifiedAppShell .comenziListWrap .confListCol--urgency { grid-column: 1; grid-row: 1; }
  .unifiedAppShell .comenziListWrap .confListCol--client {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .unifiedAppShell .comenziListWrap .confListCol--panel {
    grid-column: 1 / -1;
    grid-row: 2;
    display: block !important;
    padding: 10px 0 !important;
    border-top: 1px solid var(--ui-border);
    border-bottom: 1px solid var(--ui-border);
  }
  .unifiedAppShell .comenziListWrap .confListCol--campaign {
    grid-column: 1 / -1;
    grid-row: 3;
  }
  .unifiedAppShell .comenziListWrap .confListCol--campaign:has(.confListPriceNone),
  .unifiedAppShell .comenziListWrap .confListCol--seller:has(.confListPriceNone) {
    display: none !important;
  }
  .unifiedAppShell .comenziListWrap .confListCol--period { grid-column: 1; }
  .unifiedAppShell .comenziListWrap .confListCol--price {
    grid-column: 2;
    justify-self: end;
    text-align: right;
  }
  .unifiedAppShell .comenziListWrap .confListCol--seller {
    grid-column: 1 / -1;
    padding-top: 8px !important;
    border-top: 1px solid var(--ui-border);
  }
  .unifiedAppShell .comenziListWrap .confListCol--actions {
    grid-column: 1 / -1;
    display: flex !important;
    gap: 7px !important;
    margin-top: 0 !important;
    padding-top: 2px !important;
  }

  .unifiedAppShell .comenziListWrap .confListClient { justify-content: flex-end; }
  .unifiedAppShell .comenziListWrap .confClientAvatar--sm {
    width: 32px !important;
    height: 32px !important;
  }
  .unifiedAppShell .comenziListWrap .confListClientName { font-size: 0.78rem; }
  .unifiedAppShell .comenziListWrap .comenziListClientPhone { display: none; }

  .unifiedAppShell .comenziListWrap .confListPanelPhoto,
  .unifiedAppShell .comenziListWrap .confListPanelPhotoPlaceholder {
    width: 52px;
    height: 38px;
    border-radius: 7px;
  }
  .unifiedAppShell .comenziListWrap .confListPanelTitle {
    white-space: normal;
    font-size: 0.86rem;
    line-height: 1.25;
  }
  .unifiedAppShell .comenziListWrap .confListPanelLoc {
    margin-top: 2px;
    white-space: normal;
    font-size: 0.7rem;
  }
  .unifiedAppShell .comenziListWrap .confListPeriodDates { font-size: 0.76rem; }
  .unifiedAppShell .comenziListWrap .confListPeriodDays { font-size: 0.58rem; }
  .unifiedAppShell .comenziListWrap .confListPriceVal { font-size: 0.86rem; }
  .unifiedAppShell .comenziListWrap .comenziListSubHint { font-size: 0.62rem; }

  .unifiedAppShell .comenziListWrap .comenziListMain > .confListCol:nth-child(5)::before,
  .unifiedAppShell .comenziListWrap .comenziListMain > .confListCol:nth-child(6)::before,
  .unifiedAppShell .comenziListWrap .comenziListMain > .confListCol:nth-child(7)::before,
  .unifiedAppShell .comenziListWrap .comenziListMain > .confListCol:nth-child(8)::before {
    display: block;
    margin-bottom: 4px;
    color: var(--ui-muted);
    font-size: 8.5px;
    font-weight: 760;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .unifiedAppShell .comenziListWrap .comenziListMain > .confListCol:nth-child(5)::before { content: "Perioadă"; }
  .unifiedAppShell .comenziListWrap .comenziListMain > .confListCol:nth-child(6)::before { content: "Durată"; }
  .unifiedAppShell .comenziListWrap .comenziListMain > .confListCol:nth-child(7)::before { content: "Preț final"; }
  .unifiedAppShell .comenziListWrap .comenziListMain > .confListCol:nth-child(8)::before { content: "Chirie"; }

  .unifiedAppShell .comenziListWrap :where(
    .confListActionConfirm,
    .confListActionCancel,
    .confListActionHide
  ) {
    width: auto !important;
    min-width: 40px;
    min-height: 40px !important;
    height: 40px !important;
    padding: 7px 12px !important;
    border-radius: 9px !important;
    box-shadow: none !important;
  }

  .unifiedAppShell .comenziListWrap .confListActionConfirm {
    flex: 1 1 auto !important;
    background: var(--ui-accent-soft) !important;
    border: 1px solid var(--ui-accent-border) !important;
    color: var(--ui-accent) !important;
  }

  .unifiedAppShell .comenziListWrap .confListLot {
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.28);
    border-left: 3px solid #8b5cf6;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.035);
  }

  .unifiedAppShell .comenziListWrap .confListLot::before,
  .unifiedAppShell .comenziListWrap .confListLot::after { display: none; }

  .unifiedAppShell .comenziListWrap .confListLotHeader {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    padding: 10px 12px !important;
    border-left: 0;
    font-size: 0.72rem;
  }

  .unifiedAppShell .comenziListWrap .confListLotHeader .confListLotTotal {
    width: 100%;
    margin-left: 24px;
  }

  .unifiedAppShell .comenziListWrap .confListLotBody {
    display: grid;
    gap: 8px;
    padding: 8px !important;
  }

  .unifiedAppShell .comenziListWrap .confListLot .confListRow {
    border: 1px solid rgba(139, 92, 246, 0.16) !important;
    background: var(--ui-surface-raised) !important;
  }
}

@media (max-width: 420px) {
  .unifiedAppShell .container { padding-inline: 10px !important; }
  .unifiedAppShell .opsStats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .unifiedAppShell .opsStat:first-child,
  .unifiedAppShell .opsStat:last-child { grid-column: 1 / -1; }

  .unifiedAppShell :where(.adminSubpageFormActions, .profileAccountActions) {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .unifiedAppShell .comenziListWrap .comenziListMain,
  .unifiedAppShell .comenziListWrap .confListMain {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 9px !important;
    padding: 12px 11px 12px 14px !important;
  }

  .unifiedAppShell .comenziListWrap .confListClientName {
    max-width: 150px;
    white-space: normal;
    text-align: right;
  }
}

/* Desktop keeps compact table rows. Cards are reserved for narrow viewports. */
.unifiedAppShell .appMain,
.unifiedAppShell .container { min-width: 0; }

@media (min-width: 900px) {
  .unifiedAppShell .appMain:has(.appAdaptiveTableShell) { padding: 0 !important; }
  .unifiedAppShell .appMain:has(.appAdaptiveTableShell) > .container {
    max-width: var(--ui-content-max) !important;
    padding: 24px clamp(16px, 1.5vw, 30px) 36px !important;
  }
}

@media (min-width: 900px) and (max-width: 1440px) {
  .unifiedAppShell .appSidebar { width: 224px !important; padding-inline: 10px !important; }
  .unifiedAppShell .appMain { margin-left: 224px !important; }
  .unifiedAppShell .container { padding-inline: 20px; }
}

.unifiedAppShell .appAdaptiveTableShell {
  container: adaptive-table / inline-size;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.unifiedAppShell table.appAdaptiveTable { table-layout: auto !important; }
.unifiedAppShell table.appUsersTable td[data-label="Email"] { min-width: 190px; }
.unifiedAppShell table.appUsersTable .adminSubpageRowActions { flex-wrap: wrap; }
.unifiedAppShell .appAdaptiveTableShell::after { display: none !important; }

@media (min-width: 900px) {
  .unifiedAppShell table.appAdaptiveTable {
    font-size: clamp(11.5px, .9cqi, 14px);
    line-height: 1.4;
  }
  .unifiedAppShell table.appAdaptiveTable :is(th, td) {
    padding: clamp(8px, .75cqi, 12px) clamp(6px, .65cqi, 12px);
  }
  .unifiedAppShell table.appAdaptiveTable th {
    font-size: clamp(9px, .7cqi, 11px);
    white-space: normal;
  }
  .unifiedAppShell table.appAdaptiveTable td {
    font-size: inherit;
    word-break: normal;
    overflow-wrap: break-word;
  }
  .unifiedAppShell table.appAdaptiveTable.appUsersTable {
    min-width: 960px;
    table-layout: fixed !important;
  }
  .unifiedAppShell table.appUsersTable :is(th, td) {
    min-width: 0;
    padding: 9px clamp(5px, .55cqi, 10px) !important;
    overflow-wrap: anywhere;
  }
  .unifiedAppShell table.appUsersTable td { font-size: inherit !important; }
  .unifiedAppShell table.appUsersTable th { letter-spacing: .025em !important; overflow-wrap: normal; }
  .unifiedAppShell table.appUsersTable th:nth-child(1) { width: 9%; }
  .unifiedAppShell table.appUsersTable th:nth-child(2),
  .unifiedAppShell table.appUsersTable th:nth-child(3) { width: 6%; }
  .unifiedAppShell table.appUsersTable th:nth-child(4) { width: 9%; }
  .unifiedAppShell table.appUsersTable th:nth-child(5) { width: 7%; }
  .unifiedAppShell table.appUsersTable th:nth-child(6) { width: 16%; }
  .unifiedAppShell table.appUsersTable th:nth-child(7) { width: 9%; }
  .unifiedAppShell table.appUsersTable th:nth-child(8) { width: 8%; }
  .unifiedAppShell table.appUsersTable th:nth-child(9) { width: 7%; }
  .unifiedAppShell table.appUsersTable th:nth-child(10) { width: 8%; }
  .unifiedAppShell table.appUsersTable th:nth-child(11) { width: 15%; }
  .unifiedAppShell table.appUsersTable td[data-label="Email"] { min-width: 0; }
  .unifiedAppShell table.appUsersTable .userPresenceLastSeen { white-space: normal; }
  .unifiedAppShell table.appUsersTable .userRoleBadge {
    max-width: 100%;
    font-size: .85em;
    padding-inline: 5px;
    white-space: normal;
  }
  .unifiedAppShell table.appUsersTable .adminSubpageRowActions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 5px !important;
  }
  .unifiedAppShell table.appUsersTable .adminSubpageActionBtn {
    min-width: 0;
    width: 100%;
    min-height: 32px;
    padding: 5px 4px !important;
    font-size: clamp(10px, .8cqi, 12px) !important;
    white-space: normal !important;
    overflow-wrap: normal;
  }
  .unifiedAppShell table.profitReportTable { min-width: 1000px; }
  .unifiedAppShell table.profitReportTable td[data-label="Comenzi"],
  .unifiedAppShell table.profitReportTable td .muted { white-space: normal !important; }
  .unifiedAppShell table.opsTable.appAdaptiveTable {
    min-width: 1060px;
    table-layout: fixed !important;
  }
  .unifiedAppShell .opsTable :is(.opsTh, .opsTd) { display: table-cell; }
  .unifiedAppShell .opsTable .opsTh--date { width: 7%; }
  .unifiedAppShell .opsTable .opsTh--type { width: 9%; }
  .unifiedAppShell .opsTable .opsTh--panel { width: 21%; }
  .unifiedAppShell .opsTable .opsTh--face { width: 4%; }
  .unifiedAppShell .opsTable .opsTh--dim { width: 8%; }
  .unifiedAppShell .opsTable .opsTh--support { width: 8%; }
  .unifiedAppShell .opsTable .opsTh--reservation { width: 13%; }
  .unifiedAppShell .opsTable .opsTh--decorator { width: 11%; }
  .unifiedAppShell .opsTable .opsTh--status { width: 6%; }
  .unifiedAppShell .opsTable .opsTh--actions { width: 13%; }
  .unifiedAppShell .opsTable .opsPanelTitle { display: inline; }
  .unifiedAppShell .opsTable .opsPanelCode { margin-right: 6px; }
  .unifiedAppShell .opsTable :is(.opsDecoratorName, .opsDimValue) { font-size: inherit; }
  .unifiedAppShell .opsTable :is(.opsPanelLoc, .opsCampaign, .opsDatePhrase) {
    font-size: .88em;
    white-space: normal;
  }
  .unifiedAppShell .opsTable :is(.opsTypeBadge, .opsSupportPill, .opsFacePill) {
    max-width: 100%;
    font-size: .83em;
    letter-spacing: 0;
    white-space: normal;
    padding: 3px 6px;
  }
  .unifiedAppShell .opsTable .opsTd--actions .opsBtn {
    min-width: 0;
    max-width: 100%;
    font-size: .9em;
    padding: 6px 8px;
    white-space: normal;
  }
}

@media (max-width: 899px) {
  .unifiedAppShell .appAdaptiveTableShell > .tableWrap { overflow: visible !important; }
  .unifiedAppShell table.appAdaptiveTable,
  .unifiedAppShell table.appAdaptiveTable > tbody,
  .unifiedAppShell table.appAdaptiveTable > tfoot {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .unifiedAppShell table.appAdaptiveTable thead { display: none !important; }
  .unifiedAppShell table.appAdaptiveTable > tbody > tr,
  .unifiedAppShell table.appAdaptiveTable > tfoot > tr {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px 20px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 18px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ui-border) !important;
    border-radius: 0 !important;
    background: var(--ui-surface) !important;
  }
  .unifiedAppShell table.appAdaptiveTable > tbody > tr:nth-child(even),
  .unifiedAppShell table.appAdaptiveTable > tbody.opsGroup:nth-of-type(even) > tr {
    background: var(--ui-surface-raised) !important;
  }
  .unifiedAppShell table.appAdaptiveTable > tfoot > tr {
    background: var(--ui-surface-raised) !important;
    border-top: 2px solid var(--ui-border) !important;
  }
  .unifiedAppShell table.appAdaptiveTable > :is(tbody, tfoot) > tr > td {
    display: block !important;
    grid-column: auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 5px 0 !important;
    border: 0 !important;
    background: transparent !important;
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .unifiedAppShell table.appAdaptiveTable > :is(tbody, tfoot) > tr > td::before {
    content: attr(data-label) !important;
    display: block !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 0 5px !important;
    background: none !important;
    color: var(--ui-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  .unifiedAppShell table.appAdaptiveTable td > * {
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
  .unifiedAppShell table.appAdaptiveTable > :is(tbody, tfoot) > tr > :is(td[colspan], td[data-label="Acțiuni"]) {
    grid-column: 1 / -1 !important;
  }
  .unifiedAppShell table.appAdaptiveTable td[colspan]::before { display: none !important; }
  .unifiedAppShell table.appAdaptiveTable .adminSubpageRowActions {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 8px;
  }
  .unifiedAppShell table.appAdaptiveTable .adminSubpageRowActions > * {
    width: auto !important;
    min-height: 38px;
  }
  .unifiedAppShell table.appAdaptiveTable .opsTd--actions .opsBtn {
    width: auto !important;
    max-width: 100%;
    white-space: normal;
  }
  .unifiedAppShell table.appAdaptiveTable .opsPanelTitle { flex-wrap: wrap; }
  .unifiedAppShell table.appAdaptiveTable .opsPanelLoc { white-space: normal; }
  /* Following operations retain the same-panel indicator, without empty fields. */
  .unifiedAppShell table.appAdaptiveTable .opsRow td:empty { display: none !important; }
}

@container adaptive-table (max-width: 900px) {
  .unifiedAppShell table.appAdaptiveTable > :is(tbody, tfoot) > tr {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@container adaptive-table (max-width: 620px) {
  .unifiedAppShell table.appAdaptiveTable > :is(tbody, tfoot) > tr {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px 14px !important;
    padding: 14px !important;
  }
  .unifiedAppShell table.appAdaptiveTable > tbody > tr > :is(td[data-label="Email"], td[data-label="Spațiu publicitar"], td[data-label="Panou digital"], td[data-label="Client / Campanie"]) {
    grid-column: 1 / -1 !important;
  }
}

@container adaptive-table (max-width: 340px) {
  .unifiedAppShell table.appAdaptiveTable > :is(tbody, tfoot) > tr {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Master-controlled tab access, with independent workspace checklists. */
.modalBackdrop.permissionsBackdrop {
  /* Avoid repainting/blurring the entire user table on every dialog update. */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.permissionsBackdrop .modalCard {
  height: min(860px, calc(100dvh - 36px));
}
.userPermissionsDialog { display: grid; gap: 14px; min-width: 0; }
.userPermissionsDialog p { margin: 0; }
.userPermissionsColumns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.userPermissionsWorkspace { min-width: 0; margin: 0; padding: 14px; border: 1px solid var(--ui-border); border-radius: 12px; }
.userPermissionsWorkspace legend { padding: 0 8px; font-size: 16px; font-weight: 750; }
.userPermissionsWorkspace:disabled { opacity: .6; }
.userPermissionsBulk, .userPermissionsFooter { display: flex; gap: 8px; flex-wrap: wrap; }
.userPermissionsFooter { justify-content: flex-end; padding-top: 12px; border-top: 1px solid var(--ui-border); }
.userPermissionsBulk .btn { font-size: 12px; padding: 7px 10px; }
.userPermissionsGroup h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ui-muted); margin: 18px 0 8px; }
.userPermissionsOption { display: flex; gap: 10px; align-items: center; min-height: 36px; padding: 6px; cursor: pointer; border-radius: 6px; }
.userPermissionsOption:hover { background: var(--ui-accent-soft); }
.userPermissionsOption input { width: 17px; height: 17px; flex: 0 0 17px; accent-color: var(--ui-accent); }
.userPermissionsOption span { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .userPermissionsColumns { grid-template-columns: minmax(0, 1fr); }
}
