/**
 * Sales / operations dashboard — layout aligned with Figma (لوحة تحكم المبيعات).
 * Scoped under .samo-sales-dashboard to avoid colliding with Vuexy defaults.
 */
.samo-sales-dashboard {
  --ssd-bg: #eef2f6;
  --ssd-card: #ffffff;
  --ssd-border: #e2e8f0;
  --ssd-text: #0f172a;
  --ssd-muted: #64748b;
  --ssd-accent: #7b9d36;
  --ssd-accent-soft: rgba(123, 157, 54, 0.12);
  --ssd-radius: 14px;
  --ssd-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04);
  font-family: 'Tajawal', 'Cairo', sans-serif;
  color: var(--ssd-text);
  margin: 0 0 1rem;
}

.samo-sales-dashboard .ssd-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.samo-sales-dashboard .ssd-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.samo-sales-dashboard .ssd-brand {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ssd-muted);
  letter-spacing: 0.02em;
}

.samo-sales-dashboard .ssd-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.15rem 0 0;
  color: var(--ssd-text);
}

.samo-sales-dashboard .ssd-meta {
  text-align: end;
}

.samo-sales-dashboard .ssd-meta-date {
  font-size: 0.875rem;
  color: var(--ssd-muted);
}

.samo-sales-dashboard .ssd-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 1199px) {
  .samo-sales-dashboard .ssd-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .samo-sales-dashboard .ssd-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.samo-sales-dashboard .ssd-kpi {
  background: var(--ssd-card);
  border: 1px solid var(--ssd-border);
  border-radius: var(--ssd-radius);
  box-shadow: var(--ssd-shadow);
  padding: 1.05rem 1.2rem 1.15rem;
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
}

.samo-sales-dashboard .ssd-kpi-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}

.samo-sales-dashboard .ssd-kpi-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.samo-sales-dashboard .ssd-kpi-icon--money {
  background: rgba(123, 157, 54, 0.14);
  color: #6b8d2e;
}

.samo-sales-dashboard .ssd-kpi-icon--today {
  background: rgba(59, 130, 246, 0.14);
  color: #1d4ed8;
}

.samo-sales-dashboard .ssd-kpi-icon--check {
  background: rgba(16, 185, 129, 0.14);
  color: #059669;
}

.samo-sales-dashboard .ssd-kpi-icon--clock {
  background: rgba(245, 158, 11, 0.16);
  color: #d97706;
}

.samo-sales-dashboard .ssd-kpi-icon--hash {
  background: rgba(100, 116, 139, 0.14);
  color: #475569;
}

.samo-sales-dashboard .ssd-kpi-trend {
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: end;
  max-width: 52%;
}

.samo-sales-dashboard .ssd-kpi-trend.is-up {
  color: #059669;
}

.samo-sales-dashboard .ssd-kpi-trend.is-down {
  color: #dc2626;
}

.samo-sales-dashboard .ssd-kpi-trend.is-flat {
  color: #94a3b8;
}

.samo-sales-dashboard .ssd-kpi-currency {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ssd-muted);
}

.samo-sales-dashboard .ssd-kpi-label {
  font-size: 0.875rem;
  color: var(--ssd-muted);
  font-weight: 600;
}

.samo-sales-dashboard .ssd-kpi-value {
  font-size: 1.65rem;
  font-weight: 700;
  margin-top: 0.35rem;
  letter-spacing: -0.02em;
}

.samo-sales-dashboard .ssd-kpi-sub {
  font-size: 0.8125rem;
  color: var(--ssd-muted);
  margin-top: 0.35rem;
  font-weight: 600;
}

.samo-sales-dashboard .ssd-alerts {
  background: var(--ssd-card);
  border: 1px solid var(--ssd-border);
  border-radius: var(--ssd-radius);
  box-shadow: var(--ssd-shadow);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.samo-sales-dashboard .ssd-alerts-title {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.samo-sales-dashboard .ssd-alerts-list {
  margin: 0;
  padding: 0 1rem 0 0;
  color: var(--ssd-muted);
  font-size: 0.875rem;
  line-height: 1.65;
}

.samo-sales-dashboard .ssd-alerts-positive {
  margin: 0;
  font-size: 0.875rem;
  color: #6b8d2e;
  font-weight: 600;
  line-height: 1.6;
}

.samo-sales-dashboard .ssd-insights-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 991px) {
  .samo-sales-dashboard .ssd-insights-row {
    grid-template-columns: 1fr;
  }
}

.samo-sales-dashboard .ssd-insight {
  background: var(--ssd-card);
  border: 1px solid var(--ssd-border);
  border-radius: var(--ssd-radius);
  box-shadow: var(--ssd-shadow);
  padding: 1rem 1.15rem;
}

.samo-sales-dashboard .ssd-insight--ghost {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.samo-sales-dashboard .ssd-insight-label {
  font-size: 0.8125rem;
  color: var(--ssd-muted);
  font-weight: 700;
}

.samo-sales-dashboard .ssd-insight-value {
  font-size: 1.45rem;
  font-weight: 800;
  margin-top: 0.35rem;
  letter-spacing: -0.02em;
}

.samo-sales-dashboard .ssd-insight-unit {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ssd-muted);
  margin-inline-start: 0.15rem;
}

.samo-sales-dashboard .ssd-insight-hint {
  font-size: 0.75rem;
  color: var(--ssd-accent);
  font-weight: 600;
  margin-top: 0.25rem;
}

.samo-sales-dashboard .ssd-chart-card {
  background: var(--ssd-card);
  border: 1px solid var(--ssd-border);
  border-radius: var(--ssd-radius);
  box-shadow: var(--ssd-shadow);
  padding: 1rem 1.25rem 0.5rem;
  margin-bottom: 1rem;
}

.samo-sales-dashboard .ssd-chart-card--growth {
  padding-bottom: 0.25rem;
}

.samo-sales-dashboard .ssd-chart-legend {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ssd-muted);
}

.samo-sales-dashboard .ssd-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  display: inline-block;
  margin-inline-end: 0.2rem;
}

.samo-sales-dashboard .ssd-legend-dot--rev {
  background: #c4d89a;
}

.samo-sales-dashboard .ssd-legend-dot--req {
  background: #7b9d36;
  margin-inline-start: 0.65rem;
}

.samo-sales-dashboard .ssd-chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.samo-sales-dashboard .ssd-chart-title {
  font-size: 1rem;
  font-weight: 700;
}

.samo-sales-dashboard .ssd-chart-sub {
  font-size: 0.8125rem;
  color: var(--ssd-muted);
}

.samo-sales-dashboard .ssd-table-card {
  background: var(--ssd-card);
  border: 1px solid var(--ssd-border);
  border-radius: var(--ssd-radius);
  box-shadow: var(--ssd-shadow);
  overflow: hidden;
}

.samo-sales-dashboard .ssd-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--ssd-border);
}

.samo-sales-dashboard .ssd-table-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.samo-sales-dashboard .ssd-table-head a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ssd-accent);
}

.samo-sales-dashboard .ssd-table {
  width: 100%;
  margin: 0;
  font-size: 0.875rem;
}

.samo-sales-dashboard .ssd-table thead th {
  background: #f8fafc;
  color: var(--ssd-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--ssd-border);
  padding: 0.75rem 1rem;
  white-space: nowrap;
}

.samo-sales-dashboard .ssd-table tbody td {
  padding: 0.85rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--ssd-border);
}

.samo-sales-dashboard .ssd-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.samo-sales-dashboard .ssd-table tbody tr:last-child td {
  border-bottom: none;
}

.samo-sales-dashboard .ssd-pill {
  display: inline-block;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--ssd-accent-soft);
  color: var(--ssd-accent);
  white-space: nowrap;
}

.samo-sales-dashboard .ssd-pill--accent {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

.samo-sales-dashboard .ssd-pill--success {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.samo-sales-dashboard .ssd-pill--warning {
  background: rgba(245, 158, 11, 0.18);
  color: #b45309;
}

.samo-sales-dashboard .ssd-pill--danger {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.samo-sales-dashboard .ssd-pill--info {
  background: rgba(14, 165, 233, 0.14);
  color: #0369a1;
}

.samo-sales-dashboard .ssd-cell-user {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.samo-sales-dashboard .ssd-cell-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 0.65rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.samo-sales-dashboard .ssd-td-muted {
  color: var(--ssd-muted);
  font-size: 0.8125rem;
  max-width: 220px;
}

.samo-sales-dashboard .ssd-link {
  font-weight: 600;
  color: var(--ssd-accent);
  font-size: 0.8125rem;
}

html[dir='ltr'] .samo-sales-dashboard .ssd-alerts-list {
  padding: 0 0 0 1rem;
}

/* —— Samo operations portal shell (Figma: تطبيق سمو للنقليات) —— */
.ssp-app {
  --ssd-bg: #eef2f6;
  --ssd-border: #e2e8f0;
  --ssd-text: #0f172a;
  --ssd-muted: #94a3b8;
  --ssd-accent: #7b9d36;
  --ssp-sidebar-bg: #0f172a;
  --ssp-sidebar-border: rgba(255, 255, 255, 0.07);
  --ssp-sidebar-text: rgba(255, 255, 255, 0.74);
  --ssp-sidebar-active-bg: rgba(123, 157, 54, 0.14);
  min-height: 100vh;
  display: flex;
  background:
    radial-gradient(ellipse 120% 80% at 100% 0%, rgba(123, 157, 54, 0.06), transparent 50%),
    radial-gradient(ellipse 90% 60% at 0% 100%, rgba(59, 130, 246, 0.05), transparent 45%),
    var(--ssd-bg);
  color: var(--ssd-text);
  font-family: 'Tajawal', 'Cairo', sans-serif;
}

.ssp-sidebar {
  width: 256px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #111c2e 0%, var(--ssp-sidebar-bg) 48%, #0c1424 100%);
  border-inline-end: 1px solid var(--ssp-sidebar-border);
  display: flex;
  flex-direction: column;
  padding: 0;
  min-height: 100vh;
  box-shadow: 4px 0 32px rgba(15, 23, 42, 0.12);
}

.ssp-sidebar-brand {
  padding: 1.35rem 1.25rem 1.15rem;
  border-bottom: 1px solid var(--ssp-sidebar-border);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.ssp-brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, #7b9d36, #6d8d31);
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(123, 157, 54, 0.35);
}

.ssp-brand-text {
  min-width: 0;
}

.ssp-brand-title {
  font-weight: 700;
  font-size: 1.08rem;
  color: #fff;
  letter-spacing: -0.01em;
}

.ssp-brand-tagline {
  font-size: 0.78rem;
  color: var(--ssp-sidebar-text);
  font-weight: 600;
  margin-top: 0.25rem;
  line-height: 1.35;
}

.ssp-nav {
  list-style: none;
  margin: 0;
  padding: 0.75rem 0;
  flex: 1;
}

.ssp-nav a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.72rem 1.1rem;
  margin: 0.12rem 0.55rem;
  border-radius: 10px;
  color: var(--ssp-sidebar-text);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-inline-end: 3px solid transparent;
}

.ssp-nav-svg {
  flex-shrink: 0;
  opacity: 0.95;
  stroke: currentColor;
}

.ssp-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.ssp-nav a.is-active {
  color: #fff;
  background: var(--ssp-sidebar-active-bg);
  border-inline-end-color: var(--ssd-accent);
}

.ssp-sidebar-footer {
  padding: 0.85rem 1rem 1.25rem;
  border-top: 1px solid var(--ssp-sidebar-border);
  margin-top: auto;
}

.ssp-sidebar-logout {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  justify-content: flex-start;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ssp-sidebar-text);
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  font-family: inherit;
}

.ssp-sidebar-logout:hover {
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.ssp-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--ssd-bg);
}

.ssp-sticky-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  padding: 0.85rem 1.5rem;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
}

.ssp-header-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 200px;
  max-width: 420px;
  padding: 0.5rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: linear-gradient(180deg, #fff, #f8fafc);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ssp-header-search input[type='search'] {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--ssd-text);
  outline: none;
}

.ssp-header-search input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.ssp-search-icon {
  display: flex;
  color: #64748b;
  flex-shrink: 0;
}

.ssp-header-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--ssd-muted);
  font-weight: 600;
}

.ssp-crumb {
  color: var(--ssd-muted);
}

.ssp-crumb-sep {
  color: #cbd5e1;
}

.ssp-crumb-current {
  color: var(--ssd-text);
}

.ssp-header-date {
  font-size: 0.8125rem;
  color: var(--ssd-muted);
  font-weight: 600;
}

.ssp-header-spacer {
  flex: 1;
  min-width: 0.5rem;
}

.ssp-notify-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--ssd-border);
  background: #fff;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.ssp-notify-btn:hover {
  background: #f8fafc;
  color: var(--ssd-text);
}

.ssp-notify-wrap {
  position: relative;
  flex-shrink: 0;
}

.ssp-notify-badge {
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.ssp-notify-panel {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  width: min(360px, calc(100vw - 2rem));
  max-height: 420px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--ssd-border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
  z-index: 1200;
}

.ssp-notify-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--ssd-border);
  font-size: 0.875rem;
}

.ssp-notify-panel-head a {
  color: var(--ssd-primary);
  text-decoration: none;
  font-weight: 600;
}

.ssp-notify-panel-empty {
  margin: 0;
  padding: 1rem;
  color: #64748b;
  font-size: 0.875rem;
}

.ssp-notify-panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ssp-notify-panel-list li {
  border-bottom: 1px solid #f1f5f9;
}

.ssp-notify-panel-list a {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: inherit;
}

.ssp-notify-panel-list a:hover {
  background: #f8fafc;
}

.ssp-notify-panel-title {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.2rem;
}

.ssp-notify-panel-body {
  display: block;
  font-size: 0.8rem;
  color: #64748b;
}

.ssp-notify-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ssp-notify-item {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.ssp-notify-item-link {
  flex: 1;
  padding: 0.85rem 0;
  text-decoration: none;
  color: inherit;
}

.ssp-notify-item-link:hover {
  color: var(--ssd-primary);
}

.ssp-notify-delete-btn {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem;
}

.ssp-notify-delete-btn:hover {
  color: #dc2626;
}

.ssp-user-chip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.ssp-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7b9d36, #6d8d31);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ssp-user-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.ssp-user-text strong {
  font-size: 0.9rem;
  color: var(--ssd-text);
}

.ssp-user-role {
  font-size: 0.72rem;
  color: var(--ssd-muted);
  font-weight: 600;
}

.ssp-main-scroll {
  flex: 1;
  padding: 1.35rem 1.65rem 2.25rem;
  overflow-x: auto;
}

.ssp-placeholder-card {
  background: #fff;
  border: 1px solid var(--ssd-border);
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04);
  color: #475569;
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 720px;
}

@media (max-width: 991px) {
  .ssp-app {
    flex-direction: column;
  }

  .ssp-sidebar {
    width: 100%;
    border-inline-end: none;
    border-bottom: 1px solid var(--ssp-sidebar-border);
    min-height: 0;
  }

  .ssp-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .ssp-nav a {
    padding: 0.5rem 0.85rem;
  }

  .ssp-header-search {
    max-width: none;
    order: 10;
    width: 100%;
  }
}

.ssp-guest-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 100% 80% at 50% -30%, rgba(123, 157, 54, 0.12), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 100%, rgba(59, 130, 246, 0.08), transparent 50%),
    linear-gradient(180deg, #f8fafc, #eef2f6);
  font-family: 'Tajawal', 'Cairo', sans-serif;
  margin: 0;
}

.ssp-login-card {
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  padding: 2rem 1.85rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 24px 48px rgba(15, 23, 42, 0.1),
    0 4px 16px rgba(15, 23, 42, 0.04);
}

.ssp-login-card h1 {
  font-size: 1.25rem;
  margin: 0 0 1.25rem;
  color: #0f172a;
}

.ssp-login-card label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.ssp-login-card input[type='email'],
.ssp-login-card input[type='password'],
.ssp-login-card input[type='text'],
.ssp-login-card input[type='tel'],
.ssp-login-card input[type='date'] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.ssp-phone-row {
  display: grid;
  grid-template-columns: minmax(76px, 100px) minmax(0, 1fr);
  gap: 0.65rem;
  align-items: end;
  margin-bottom: 1rem;
}

.ssp-phone-row label {
  margin-bottom: 0.35rem;
}

.ssp-phone-row input {
  margin-bottom: 0 !important;
}

.ssp-auth-muted--tight {
  font-size: 0.8125rem;
  margin: -0.25rem 0 1rem;
  line-height: 1.45;
}

@media (max-width: 380px) {
  .ssp-phone-row {
    grid-template-columns: 1fr;
  }
}

.ssp-login-card button[type='submit'] {
  width: 100%;
  padding: 0.72rem;
  background: linear-gradient(135deg, #7b9d36, #6d8d31);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9375rem;
  box-shadow: 0 8px 20px rgba(123, 157, 54, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ssp-login-card button[type='submit']:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(123, 157, 54, 0.42);
}

.ssp-login-card .error {
  color: #b91c1c;
  font-size: 0.8125rem;
  margin-bottom: 0.75rem;
}

/* Portal team — Figma «مستخدمين اللوحة» */
.ssd-team-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.ssd-team-head-text {
  text-align: inherit;
}

.ssd-team-head .ssd-title {
  margin: 0;
}

.ssd-team-sub {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ssd-muted);
}

.ssd-btn-add {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #7b9d36, #6d8d31);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 20px rgba(123, 157, 54, 0.28);
}

.ssd-btn-add:hover {
  filter: brightness(1.05);
}

.ssd-team-table-card .ssd-table-head {
  padding-bottom: 0.65rem;
}

.ssd-perm-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.ssd-perm-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(123, 157, 54, 0.12);
  color: #6b8d2e;
  border: 1px solid rgba(123, 157, 54, 0.25);
}

.ssd-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--ssd-border);
  background: #fff;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-inline-start: 0.25rem;
  vertical-align: middle;
}

.ssd-icon-btn:hover {
  background: #f8fafc;
  color: var(--ssd-text);
}

.ssd-icon-btn--danger:hover {
  border-color: rgba(239, 68, 68, 0.35);
  color: #b91c1c;
  background: rgba(254, 242, 242, 0.85);
}

.ssd-muted-note {
  color: var(--ssd-muted);
  font-size: 0.875rem;
}

.ssd-flash-success {
  background: rgba(123, 157, 54, 0.12);
  border: 1px solid rgba(123, 157, 54, 0.35);
  color: #5f7c28;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.ssd-flash-error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #991b1b;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-size: 0.8125rem;
  margin-bottom: 1rem;
}

.ssd-modal-inner {
  padding: 0;
  min-width: min(100%, 480px);
}

.ssd-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--ssd-border);
}

.ssd-modal-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.ssd-modal-close {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ssd-muted);
}

.ssd-modal-body {
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ssd-modal-foot {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--ssd-border);
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.ssd-field span {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ssd-muted);
  margin-bottom: 0.35rem;
}

.ssd-field input {
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--ssd-border);
  font-family: inherit;
  font-size: 0.9rem;
}

.ssd-fieldset {
  border: 1px dashed var(--ssd-border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin: 0;
}

.ssd-fieldset legend {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ssd-muted);
  padding: 0 0.35rem;
}

.ssd-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0.35rem 0;
  cursor: pointer;
}

.ssd-btn-primary {
  padding: 0.55rem 1.15rem;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #7b9d36, #6d8d31);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.ssd-btn-secondary {
  padding: 0.55rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--ssd-border);
  background: #fff;
  color: var(--ssd-text);
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

/* —— Auth shell (Figma-style split guest layout) —— */
.ssp-auth-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.ssp-auth-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ssp-auth-panel--brand {
  display: none;
  background: linear-gradient(160deg, #0f172a 0%, #111c2e 45%, #0c1424 100%);
  color: #fff;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 900px) {
  .ssp-auth-panel--brand {
    display: flex;
    max-width: 44%;
  }
}

.ssp-auth-brand-inner {
  position: relative;
  z-index: 1;
}

.ssp-auth-logo-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(145deg, #7b9d36, #6d8d31);
  box-shadow: 0 10px 28px rgba(123, 157, 54, 0.35);
  margin-bottom: 1.25rem;
}

.ssp-auth-brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ssp-auth-brand-lead {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}

.ssp-auth-bullets {
  margin: 1.5rem 0 0;
  padding: 0 1rem 0 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.65;
}

.ssp-auth-panel--form {
  flex: 1;
  padding: 2rem 1.35rem;
  align-items: center;
}

.ssp-auth-form-wrap {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.ssp-auth-footer-links {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
}

.ssp-auth-footer-links a {
  color: #6b8d2e;
  text-decoration: none;
}

.ssp-auth-footer-links a:hover {
  text-decoration: underline;
}

.ssp-auth-dot {
  margin: 0 0.35rem;
  opacity: 0.5;
}

.ssp-login-card--wide {
  max-width: 100%;
}

.sso-auth-error {
  background: rgba(254, 226, 226, 0.85);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #991b1b;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.8125rem;
  margin-bottom: 1rem;
}

.ssp-auth-muted {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #64748b;
}

.ssp-check-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.ssp-account-simple {
  min-height: 100vh;
  padding: 1rem;
}

.ssd-chat-card {
  background: var(--ssd-card);
  border: 1px solid var(--ssd-border);
  border-radius: var(--ssd-radius);
  box-shadow: var(--ssd-shadow);
  padding: 1.15rem 1.25rem;
}

.ssd-chat-stream {
  max-height: 480px;
  overflow-y: auto;
  padding-bottom: 0.75rem;
}

.ssd-chat-row {
  margin-bottom: 1rem;
}

.ssd-chat-meta {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ssd-muted);
  margin-bottom: 0.35rem;
}

.ssd-chat-bubble {
  display: inline-block;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: min(92%, 560px);
}

.ssd-chat-row--me .ssd-chat-bubble {
  background: rgba(123, 157, 54, 0.14);
  border: 1px solid rgba(123, 157, 54, 0.28);
}

.ssd-chat-row--them .ssd-chat-bubble {
  background: #f8fafc;
  border: 1px solid var(--ssd-border);
}

.ssd-chat-reply textarea {
  width: 100%;
}

/* —— Settings page (Figma-aligned layout) —— */
.samo-sales-dashboard .ssd-settings-page-sub {
  margin: 0.4rem 0 0;
  font-size: 0.9375rem;
  color: var(--ssd-muted);
  font-weight: 500;
  max-width: 44rem;
  line-height: 1.55;
}

.samo-sales-dashboard .ssd-settings-flash {
  margin-bottom: 1rem;
}

.samo-sales-dashboard .ssd-settings-error-list {
  margin: 0;
  padding-inline-start: 1.25rem;
}

.samo-sales-dashboard .ssd-settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 1.35rem 1.75rem;
  align-items: start;
}

@media (max-width: 991px) {
  .samo-sales-dashboard .ssd-settings-layout {
    grid-template-columns: 1fr;
  }
}

.samo-sales-dashboard .ssd-settings-aside {
  position: sticky;
  top: 1rem;
}

@media (max-width: 991px) {
  .samo-sales-dashboard .ssd-settings-aside {
    position: static;
  }
}

.samo-sales-dashboard .ssd-settings-profile-card {
  background: var(--ssd-card);
  border: 1px solid var(--ssd-border);
  border-radius: var(--ssd-radius);
  box-shadow: var(--ssd-shadow);
  padding: 1.35rem 1.25rem;
  text-align: center;
}

.samo-sales-dashboard .ssd-settings-avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  margin: 0 auto 1rem;
  background: linear-gradient(145deg, #7b9d36 0%, #6d8d31 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.02em;
  box-shadow: 0 8px 24px rgba(123, 157, 54, 0.28);
}

.samo-sales-dashboard .ssd-settings-profile-name {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  color: var(--ssd-text);
  line-height: 1.35;
}

.samo-sales-dashboard .ssd-settings-profile-email {
  font-size: 0.8125rem;
  color: var(--ssd-muted);
  margin: 0 0 0.85rem;
  word-break: break-all;
}

.samo-sales-dashboard .ssd-settings-role-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--ssd-accent-soft);
  color: #6b8d2e;
  border: 1px solid rgba(123, 157, 54, 0.28);
}

.samo-sales-dashboard .ssd-settings-profile-divider {
  height: 1px;
  background: var(--ssd-border);
  margin: 1.15rem 0 0.85rem;
}

.samo-sales-dashboard .ssd-settings-facility-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin: 0 0 0.35rem;
}

.samo-sales-dashboard .ssd-settings-facility-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ssd-text);
  margin: 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.samo-sales-dashboard .ssd-settings-section {
  background: var(--ssd-card);
  border: 1px solid var(--ssd-border);
  border-radius: var(--ssd-radius);
  box-shadow: var(--ssd-shadow);
  padding: 1.15rem 1.35rem 1.35rem;
  margin-bottom: 1rem;
}

.samo-sales-dashboard .ssd-settings-section__head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.samo-sales-dashboard .ssd-settings-section__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.samo-sales-dashboard .ssd-settings-section__icon--user {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.samo-sales-dashboard .ssd-settings-section__icon--building {
  background: rgba(123, 157, 54, 0.14);
  color: #6b8d2e;
}

.samo-sales-dashboard .ssd-settings-section__icon--lock {
  background: rgba(245, 158, 11, 0.16);
  color: #c2410c;
}

.samo-sales-dashboard .ssd-settings-section__titles {
  min-width: 0;
}

.samo-sales-dashboard .ssd-settings-section__title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
  color: var(--ssd-text);
}

.samo-sales-dashboard .ssd-settings-section__lead {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ssd-muted);
  font-weight: 500;
  line-height: 1.5;
}

.samo-sales-dashboard .ssd-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}

@media (max-width: 767px) {
  .samo-sales-dashboard .ssd-settings-grid {
    grid-template-columns: 1fr;
  }
}

.samo-sales-dashboard .ssd-settings-grid__full {
  grid-column: 1 / -1;
}

.samo-sales-dashboard .ssd-settings-readonly-panel {
  margin-top: 0.25rem;
  padding: 1rem 1.05rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--ssd-border);
}

.samo-sales-dashboard .ssd-settings-readonly-title {
  font-size: 0.82rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  color: var(--ssd-text);
}

.samo-sales-dashboard .ssd-readonly-dl {
  margin: 0;
}

.samo-sales-dashboard .ssd-readonly-dl__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.75);
}

.samo-sales-dashboard .ssd-readonly-dl__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.samo-sales-dashboard .ssd-readonly-dl dt {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin: 0;
}

.samo-sales-dashboard .ssd-readonly-dl dd {
  margin: 0;
  text-align: end;
}

.samo-sales-dashboard .ssd-readonly-pill {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--ssd-border);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ssd-text);
}

.samo-sales-dashboard .ssd-readonly-pill.is-warning {
  border-color: rgba(220, 38, 38, 0.35);
  color: #b91c1c;
  background: rgba(254, 226, 226, 0.35);
}

.samo-sales-dashboard .ssd-readonly-dl--spaced .ssd-readonly-dl__row:first-child {
  padding-top: 0;
}

.samo-sales-dashboard .ssd-settings-licence-badge {
  margin-inline-start: 0.35rem;
  font-size: 0.65rem;
  vertical-align: middle;
}

.samo-sales-dashboard .ssd-settings-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.35rem;
}

.samo-sales-dashboard .ssd-btn-primary--lg {
  padding: 0.65rem 1.6rem;
  border-radius: 12px;
  font-size: 0.9375rem;
  box-shadow: 0 4px 14px rgba(123, 157, 54, 0.28);
}

.samo-sales-dashboard .ssd-btn-primary--lg:hover {
  filter: brightness(1.03);
}

.samo-sales-dashboard .ssd-settings-form .ssd-field {
  margin-bottom: 0.85rem;
  padding: 0.85rem;
}

.samo-sales-dashboard .ssd-settings-form .ssd-settings-grid .ssd-field {
  margin-bottom: 0;
}

.samo-sales-dashboard .ssd-settings-form .ssd-field span {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ssd-muted);
  margin-bottom: 0.35rem;
}

.samo-sales-dashboard .ssd-settings-form input[type='text'],
.samo-sales-dashboard .ssd-settings-form input[type='password'],
.samo-sales-dashboard .ssd-settings-form .ssd-select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border-radius: 11px;
  border: 1px solid var(--ssd-border);
  font-family: inherit;
  font-size: 0.9rem;
  background: #fff;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.samo-sales-dashboard .ssd-settings-form input:focus-visible,
.samo-sales-dashboard .ssd-settings-form select:focus-visible {
  outline: none;
  border-color: rgba(123, 157, 54, 0.55);
  box-shadow: 0 0 0 3px rgba(123, 157, 54, 0.18);
}

.ssd-settings-form input[type='text'],
.ssd-settings-form input[type='password'],
.ssd-select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--ssd-border);
  font-family: inherit;
  font-size: 0.9rem;
}

.ssd-input-disabled {
  background: #f1f5f9 !important;
  color: #64748b !important;
}

.ssd-textarea {
  width: 100%;
  min-height: 120px;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--ssd-border);
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
}

.samo-sales-dashboard .ssd-settings-hint {
  font-size: 0.78rem;
  color: var(--ssd-muted);
  margin: 0 0 0.75rem;
  line-height: 1.45;
}

.samo-sales-dashboard .ssd-settings-hint--flush {
  margin-bottom: 0.5rem;
}
