/* Basit Mod shares the optician shell and theme tokens. Workflow selectors stay scoped. */
.sm-page {
  --sm-ink: var(--kt-ink, #1c2541);
  --sm-accent: var(--kt-accent, #5146cd);
  --sm-line: var(--kt-line, #d6deed);
  --sm-muted: var(--kt-muted, #56647c);
  --sm-shadow: var(--op-shadow, 0 5px 18px #2235680c, 0 1px 3px #22356808);
  max-width: 1480px; margin: 0 auto; padding: 0;
  color: var(--sm-ink); font: inherit; font-size: 14px; line-height: 1.5;
}
.sm-page *, .sm-nav * { box-sizing: border-box; }
.sm-page h1 { margin: 0 0 6px; font-size: 26px; line-height: 1.25; letter-spacing: -.5px; font-weight: 700; }
.sm-page h2 { margin: 0 0 12px; font-size: 18px; font-weight: 650; }
.sm-page p { margin: 4px 0 16px; max-width: 74ch; }
.sm-page a { text-decoration: none; color: inherit; }
.sm-page button, .sm-switch button {
  min-height: 40px; padding: 8px 14px; border: 1px solid var(--kt-line, #d6deed);
  border-radius: var(--kt-radius, 9px); background: #fff; color: var(--kt-accent, #5146cd);
  cursor: pointer; font: inherit; font-weight: 600;
}
.sm-page button:hover { border-color: var(--sm-accent); background: var(--kt-hover, #f1f3fc); }
.sm-page-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 20px; padding: 24px 26px; border-radius: 14px;
  color: #fff; background: linear-gradient(110deg, var(--kt-shell, #20234a), var(--kt-accent, #5146cd));
}
.sm-page-head p { margin: 4px 0 0; color: #e7e9f8; font-size: 13px; }
.sm-mode-badge { border: 1px solid #ffffff4d; border-radius: 22px; padding: 6px 12px; font-size: 12px; white-space: nowrap; background: #ffffff0d; }
.sm-jobs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.sm-job {
  --sm-job-color: #245edb; --sm-job-soft: #eef4ff;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 7px;
  padding: 22px; min-height: 178px; border: 1px solid var(--sm-line); border-radius: 13px;
  background: linear-gradient(145deg, #fff, #fbfdff 70%, #f4f8ff); box-shadow: var(--sm-shadow);
}
.sm-job:nth-child(2) { --sm-job-color: #077b61; --sm-job-soft: #ecf8f2; }
.sm-job:nth-child(3) { --sm-job-color: #b85d0a; --sm-job-soft: #fff4e8; }
.sm-job:nth-child(4) { --sm-job-color: #6844bd; --sm-job-soft: #f3efff; }
.sm-job>svg { width: 46px; height: 46px; padding: 11px; margin-bottom: 6px; color: var(--sm-job-color); background: var(--sm-job-soft); border-radius: 12px; }
.sm-job strong { font-size: 19px; font-weight: 650; }
.sm-job span { font-size: 13px; color: var(--sm-muted); line-height: 1.55; }
.sm-job.sm-job-primary { border-color: #adc7f8; }
.sm-page a.sm-job { color: var(--sm-ink)!important; }
.sm-job:hover { border-color: var(--sm-job-color); box-shadow: 0 5px 18px #22356815; }
.sm-overview { margin-bottom: 20px; padding: 20px 22px; background: #fff; border: 1px solid var(--sm-line); border-radius: 13px; box-shadow: var(--sm-shadow); }
.sm-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sm-row h2 { margin-bottom: 0; }
.sm-muted { font-size: 12px; color: var(--sm-muted); }
.sm-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.sm-metrics>div { padding: 18px 20px; display: flex; flex-direction: column; gap: 5px; border: 1px solid var(--sm-line); background: #f9faff; border-radius: 10px; }
.sm-metrics strong { font-size: 30px; font-weight: 700; color: var(--sm-accent); font-variant-numeric: tabular-nums; }
.sm-metrics [data-metric=recete] strong { color: #077b61; }
.sm-metrics [data-metric=belgeler] strong { color: #245edb; }
.sm-metrics small { color: var(--sm-muted); font-size: 11px; }
.sm-panel { padding: 20px 22px; background: #fff; border: 1px solid var(--sm-line); border-radius: 13px; box-shadow: var(--sm-shadow); }
.sm-follow { display: flex; flex-wrap: wrap; gap: 10px; }
.sm-follow a { min-height: 40px; display: flex; align-items: center; padding: 8px 12px; border: 1px solid var(--sm-line); border-radius: 8px; color: var(--sm-accent); background: #fafbff; font-size: 13px; }
.sm-follow a:hover { background: var(--kt-hover, #f1f3fc); border-color: var(--sm-accent); }
.sm-error, .sm-recover { border-left: 3px solid #b42318; background: #fff4f3; padding: 12px 16px; color: #862018; }
.sm-recover { margin: 16px; }
.sm-switch { display: flex; align-items: center; gap: 8px; max-width: 330px; flex-shrink: 0; }
.sm-switch button { font-size: 12px; white-space: nowrap; min-height: 36px; }
.sm-switch span { font-size: 12px; color: #b42318; line-height: 1.3; }
.sm-switch span:empty { display: none; }

/* Same sidebar dimensions, palette and selection treatment as the native menu. */
.sm-nav {
  box-sizing: border-box; padding: 16px 8px 12px; height: 100%; overflow: auto;
  display: flex; flex-direction: column; gap: 5px;
  color: var(--kt-shell-ink, #1c2541); background: var(--kt-shell, #fff);
  border-right: 1px solid var(--kt-shell-line, #d6deed); font-family: inherit;
}
.sm-nav-heading { padding: 2px 16px 13px; font-size: 11px; font-weight: 600; color: var(--kt-shell-muted, #56647c); letter-spacing: .4px; }
.sm-nav a {
  --sm-nav-icon: #aa9bff;
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 16px; margin: 0;
  border: 1px solid transparent; border-radius: 6px; text-decoration: none;
  font-size: 14px; font-weight: 600; color: inherit; white-space: normal;
}
.sm-nav [data-section=sales] { --sm-nav-icon: #64d4b3; }
.sm-nav [data-section=stock] { --sm-nav-icon: #8baeff; }
.sm-nav [data-section=invoices] { --sm-nav-icon: #bb9bff; }
.sm-nav [data-section=uts] { --sm-nav-icon: #63d3d5; }
.sm-nav [data-section=money] { --sm-nav-icon: #f4c167; }
.sm-nav [data-section=reports] { --sm-nav-icon: #71c8ec; }
.sm-nav svg { width: 19px; height: 19px; flex: 0 0 19px; color: var(--kt-accent, #5146cd); }
body.op-kurumsal .sm-nav svg { color: var(--sm-nav-icon); }
body.op-kurumsal .sm-nav a { color: var(--kt-shell-ink, #e7e9f8)!important; }
.sm-nav a:hover { background: var(--kt-hover, #f1f3fc); }
.sm-nav a[aria-current=page] { background: #eeecff; border-color: #d9d5fb; color: var(--kt-accent, #5146cd); box-shadow: inset 3px 0 var(--kt-accent, #5146cd); }
body.op-kurumsal .sm-nav a:hover { color: #fff!important; background: #ffffff12; }
body.op-kurumsal .sm-nav a[aria-current=page] { color: #fff!important; background: #ffffff13; border-color: #ffffff18; box-shadow: inset 3px 0 var(--sm-nav-icon); }
.sm-nav-settings { margin-top: auto!important; border-top: 1px solid var(--kt-shell-line, #d6deed)!important; padding-top: 15px!important; border-radius: 0!important; min-height: 57px!important; }
.sm-page :focus-visible, .sm-switch :focus-visible, .sm-nav :focus-visible { outline: 3px solid #8baeff; outline-offset: 2px; }
.sm-page button:disabled, .sm-switch button:disabled { opacity: .6; cursor: wait; }
html[data-op-simple-mode=on] .ant-layout-sider-children>:not([data-simple-nav]) { display: none!important; }
html[data-op-simple-mode=on] .ant-layout-sider-collapsed .sm-nav { padding: 12px 4px; }
html[data-op-simple-mode=on] .ant-layout-sider-collapsed .sm-nav a { gap: 0; justify-content: center; padding: 10px 4px; }
html[data-op-simple-mode=on] .ant-layout-sider-collapsed .sm-nav a span,
html[data-op-simple-mode=on] .ant-layout-sider-collapsed .sm-nav-heading { display: none; }

.sm-compact-head { margin-bottom: 18px; padding: 20px 24px; }
.sm-compact-head h1 { margin: 0; font-size: 23px; }
.sm-work-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sm-work-link { display: flex; gap: 14px; align-items: center; min-height: 82px; padding: 18px 20px; border: 1px solid var(--sm-line); border-radius: 13px; background: #fff; box-shadow: var(--sm-shadow); }
.sm-work-link:hover { background: var(--kt-hover, #f1f3fc); border-color: var(--sm-accent); }
.sm-work-link>svg { width: 40px; height: 40px; padding: 9px; flex: 0 0 40px; color: var(--sm-accent); border-radius: 10px; background: var(--op-module-soft, #eeecff); }
.sm-work-link strong { font-size: 15px; font-weight: 600; color: var(--sm-ink); flex: 1; min-width: 0; }
.sm-chevron { font-size: 24px; color: var(--sm-muted); }
.sm-nav a, .sm-work-link, .sm-job, .sm-page button { transition: none!important; }

/* Native ST hero, fields and primary buttons keep their normal optician design. */
.pst-step-group { display: contents; }
.pst-simple { max-width: 1280px; margin: 0 auto; }
.pst-simple .pst-eyebrow { display: none; }
.pst-step-nav { margin-bottom: 16px; padding: 16px 18px; border: 1px solid var(--kt-line, #d6deed); border-radius: 13px; background: #fff; box-shadow: var(--op-shadow, 0 5px 18px #2235680c); }
.pst-step-nav h2 { margin: 0 0 12px; font-size: 20px; color: var(--kt-ink, #1c2541); }
.pst-step-nav>div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pst-step-nav button[aria-current=step] { background: var(--kt-accent, #5146cd)!important; color: #fff!important; border-color: var(--kt-accent, #5146cd)!important; font-weight: 650; }
.pst-simple[data-pst-stage=customer] [data-pst-group]:not([data-pst-group=customer]),
.pst-simple[data-pst-stage=products] [data-pst-group]:not([data-pst-group=products]),
.pst-simple[data-pst-stage=payment] [data-pst-group]:not([data-pst-group=payment]) { display: none!important; }
.pst-simple .pst-grid { display: flex; flex-direction: column; gap: 14px; }
.pst-simple .pst-main, .pst-simple .pst-checkout { display: contents!important; }
.pst-simple .pst-step-group[data-pst-group=customer], .pst-simple .pst-step-group[data-pst-group=payment] { display: block; padding: 22px; border: 1px solid var(--kt-line, #d6deed); border-radius: 13px; background: #fff; box-shadow: var(--op-shadow, 0 5px 18px #2235680c); max-width: 820px; width: 100%; align-self: center; }
.pst-simple .pst-main>.pst-review { order: 2; width: 100%; }
.pst-simple .pst-step-group>form { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.pst-simple .pst-step-group>form>label { flex: 1; }
.pst-step-actions { position: sticky; bottom: 10px; z-index: 3; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff; padding: 14px 18px; border: 1px solid var(--kt-line, #d6deed); border-radius: 13px; box-shadow: 0 4px 18px #22356814; margin: 16px 0; }
.pst-step-actions span { flex: 1; font-size: 13px; color: var(--kt-muted, #56647c); }
.pst-simple :focus-visible { outline: 3px solid #8baeff; outline-offset: 2px; }
.pst-simple [tabindex="-1"]:focus { outline: none; }
.pst-simple button { min-height: 44px; }
.pst-simple .pst-fields { gap: 12px!important; }
.pst-simple .pst-line { padding: 16px!important; }
.pst-simple .pst-hero h1 { font-size: 26px!important; }

@media(max-width:1000px) {
  .sm-jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm-switch { max-width: 180px; }
  .sm-switch span { display: none; }
}
@media(max-width:600px) {
  .sm-page { padding: 0; }
  .sm-page h1 { font-size: 22px; }
  .sm-page-head { padding: 20px 18px; margin-bottom: 14px; }
  .sm-mode-badge { display: none; }
  .sm-jobs { gap: 9px; margin-bottom: 14px; }
  .sm-job { padding: 16px 13px; min-height: 172px; }
  .sm-job strong { font-size: 17px; }
  .sm-job span { font-size: 12px; }
  .sm-metrics { grid-template-columns: 1fr; gap: 8px; }
  .sm-metrics>div { padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; }
  .sm-metrics strong { grid-row: 1/3; grid-column: 2; font-size: 26px; }
  .sm-overview, .sm-panel { padding: 16px; }
  .sm-follow { flex-direction: column; gap: 7px; }
  .sm-follow a { margin: 0; }
  .sm-switch button { padding: 5px 8px; font-size: 11px; }
  .sm-switch { max-width: 120px; }
  .sm-work-list { grid-template-columns: 1fr; gap: 9px; }
  .sm-work-link { min-height: 70px; padding: 14px; }
  .pst-step-nav { padding: 14px; }
  .pst-step-nav>div { gap: 5px; }
  .pst-step-nav button { font-size: 12px; padding: 6px!important; min-width: 0; }
  .pst-step-actions { bottom: 0; padding: 10px; gap: 8px; }
  .pst-step-actions span { flex-basis: 100%; order: -1; }
  .pst-simple .pst-step-group[data-pst-group=customer], .pst-simple .pst-step-group[data-pst-group=payment] { padding: 14px; }
  .pst-simple .pst-hero h1 { font-size: 23px!important; }
}
@media(prefers-reduced-motion:reduce) { .sm-page *, .sm-nav *, .pst-simple * { transition: none!important; animation: none!important; } }

/* Existing transparent wrapper spacing in advanced ST stays native. */
.pst:not(.pst-simple) .pst-checkout>.pst-step-group>label { margin-top: 18px; }
.pst:not(.pst-simple) .pst-checkout>.pst-step-group>.pst-primary { width: 100%; margin-top: 16px; }
.pst:not(.pst-simple) .pst-checkout>.pst-step-group>button:not(.pst-primary) { margin-top: 8px; }

[data-op-basic-recipe-hidden]{display:none!important}
html[data-op-simple-unavailable="on"] .ant-layout-sider-children>:not([data-simple-nav]){visibility:hidden}
.sm-nav a[data-section="rx"]{--sm-accent:#8b7aff}.sm-nav a[data-section="customers"]{--sm-accent:#67d8d2}
