/* Operator surface: the same clear hierarchy and palette as the shop workspace. */
:root {
  --b-50: #fce5ee; --b-600: #b12756; --b-700: #8d1d43;
  --bg: #edf1f8; --text: #15243c; --text-light: #425674; --border: #c9d4e5;
  --success-c: #147659; --success-tint: #e4f5ed;
  --warning-c: #92520c; --warning-tint: #fff3dc;
  --danger-c: #b42d3c; --danger-tint: #fff0f1;
  --info: #245cc0; --info-tint: #eaf2ff;
  --sidebar-bg: #182c4c; --sidebar-text: #e2eafa;
}
:focus-visible { outline: 2px solid var(--info); outline-offset: 3px; }
.sidebar { background: linear-gradient(180deg, #182c4c, #111f37); border-inline-end: 1px solid #ffffff20; }
.sidebar-header { padding: 30px 22px 24px; border-color: #ffffff20; }
.sidebar-header h2 { color: #fff; font-size: 22px; }
.sidebar-header small { color: #b6c6df; font-size: 13px; }
.sidebar-nav { padding: 18px 12px; }
.nav-item { border-radius: 11px; min-height: 48px; margin-bottom: 6px; padding: 12px; }
.nav-item:hover { background: #294366; color: #fff; }
.nav-item.active { background: #245acd; color: #fff; border-right-color: #a9ceff; }
.nav-item svg { color: #a9ceff; }
.nav-item[data-view="add-tenant"] svg { color: #85e2be; }
.sidebar :focus-visible { outline-color: #b9d5ff; }
.sidebar-footer { border-color: #ffffff20; }
.content { padding: 36px; min-width: 0; }
.content-header h1 { font-size: 30px; }
.card { border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 4px 16px #20375912; }
.card-header { background: #dce9ff; color: #204da7; padding: 20px; }
th { background: #e1e8f3; color: var(--text-light); padding-block: 16px; }
td { padding-block: 16px; }
tr:hover td { background: #f7f9fc; }
.btn { min-height: 44px; border-radius: 10px; }
.btn-primary { box-shadow: 0 3px 8px #962f501a; }
.btn-icon { min-height: 40px; }
.badge { padding: 5px 12px; font-weight: 600; }
input, select, textarea { border-color: #8d9fbb; border-radius: 10px; min-height: 44px; }
.modal-box { border-radius: 18px; }
.modal-box-header { background: #f4f6fa; border-radius: 18px 18px 0 0; }
.modal-box-footer { background: #f4f6fa; border-radius: 0 0 18px 18px; }
.tabs { gap: 5px; }
.tab.active { background: var(--b-50); border-radius: 8px 8px 0 0; }
.wizard-steps { padding: 12px; border-radius: 12px; background: var(--bg); }
#login-screen { background: radial-gradient(ellipse at 15% 5%, #2c62a8, transparent 58%), radial-gradient(ellipse at 90% 95%, #78326b, transparent 55%), #142640; }
.login-box { border: 1px solid var(--border); border-radius: 24px; box-shadow: 0 24px 80px #09142655; }
.login-box label { display: block; text-align: start; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.stat-card { background: #dce9ff; border: 1px solid #b4ccf8; border-top: 4px solid #245acd; }
.stat-card .num { color: #204da7; }
.stat-card:nth-child(2) { background: #d9f3e7; border-color: #a1d6bd; border-top-color: #08785a; }
.stat-card:nth-child(2) .num { color: #08664d; }
.stat-card:nth-child(3) { background: #ffedc5; border-color: #eac778; border-top-color: #995306; }
.stat-card:nth-child(3) .num { color: #884804; }
.stat-card:nth-child(4) { background: #ecdefb; border-color: #c9b7e9; border-top-color: #743dc1; }
.stat-card:nth-child(4) .num { color: #6231a6; }
.empty-state { color: var(--text-light); }
@media (max-width: 768px) {
  #app { flex-direction: column; }
  .content { padding: 20px 14px; width: 100%; }
  .content-header h1 { font-size: 26px; }
  .mobile-header { background: #182c4c; color: #fff; border-bottom: 1px solid var(--border); }
  .hamburger { color: #fff; }
  .sidebar { box-shadow: -10px 0 40px #24355020; visibility: hidden; }
  .sidebar.open { visibility: visible; }
  .tabs { overflow-x: auto; }
  #view-tenants thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  #tenants-tbody { display: grid; gap: 14px; padding: 14px; }
  #tenants-tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; }
  #tenants-tbody td { padding: 0; border: 0; background: transparent; min-width: 0; overflow-wrap: anywhere; }
  #tenants-tbody td:first-child { grid-column: 1 / -1; font-size: 19px; }
  #tenants-tbody td::before { display: block; font: 400 12px "Simona Pro", sans-serif; color: var(--text-light); margin-bottom: 4px; }
  #tenants-tbody td:nth-child(2)::before { content: "מזהה העסק"; }
  #tenants-tbody td:nth-child(3)::before { content: "סטטוס"; }
  #tenants-tbody td:nth-child(4)::before { content: "גורם מפנה"; }
  #tenants-tbody td:nth-child(5)::before { content: "הזמנות"; }
  #tenants-tbody td:nth-child(6)::before { content: "לקוחות"; }
  #tenants-tbody td:nth-child(7)::before { content: "מוצרים"; }
  #tenants-tbody .actions-cell { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid var(--border); gap: 8px; }
  #tenants-tbody .actions-cell .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
