/* Sanat Gharb dashboard core styles 1.0.3. Negah is the visual baseline. */
@font-face{font-family:SGDashboard;src:url('../../sanategharb-supply/assets/font.woff2') format('woff2');font-style:normal;font-weight:100 500;font-display:swap}
@font-face{font-family:SGDashboard;src:url('../../sanategharb-supply/assets/font-bold.woff2') format('woff2');font-style:normal;font-weight:600 900;font-display:swap}
:root{--sg-bg:#f6f5f1;--sg-panel:#fff;--sg-ink:#24343a;--sg-muted:#647479;--sg-line:#e7e9e5;--sg-teal:#21756c;--sg-teal-dark:#175b54;--sg-sidebar:#203137;--sg-copper:#b47a50;--sg-danger:#b34f45;--sg-radius:16px;--sg-shadow:0 3px 14px #20313705,0 1px 2px #20313704;--sg-ease:180ms ease}
.sgd-body{margin:0;color:var(--sg-ink);font-family:SGDashboard,Vazirmatn,Tahoma,Arial,sans-serif;font-size:14px;line-height:1.8;background:var(--sg-bg);-webkit-font-smoothing:antialiased}
.sgd-app,.sgd-app *{box-sizing:border-box}.sgd-app{min-height:100vh;text-align:right}:where(.sgd-app) button,:where(.sgd-app) input,:where(.sgd-app) select,:where(.sgd-app) textarea{font:inherit}:where(.sgd-app) button,:where(.sgd-app) a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}:where(.sgd-app) button{cursor:pointer;color:inherit}:where(.sgd-app) button:disabled{cursor:wait;opacity:.55}:where(.sgd-app) a{color:var(--sg-teal);text-decoration:none}.sgd-app :is(button,a,input,select,textarea):focus-visible{outline:3px solid var(--sg-focus,#62b4a7);outline-offset:3px}.sgd-app [hidden]{display:none!important}:where(.sgd-app) svg{flex-shrink:0}:where(.sgd-app) input,:where(.sgd-app) select,:where(.sgd-app) textarea{min-width:0}
.sgd-sidebar{position:fixed;right:0;top:0;bottom:0;width:264px;min-height:0;height:100vh;display:flex;flex-direction:column;padding:28px 20px 20px;color:#e9efed;z-index:30;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#526b6c transparent;background:linear-gradient(165deg,#253b40 0%,#203137 65%)}
.sgd-sidebar>*{flex-shrink:0}.sgd-workspace{margin-right:264px;min-width:0}
.sgd-brand{display:grid;grid-template-columns:44px minmax(0,1fr);gap:10px 12px;align-items:center;padding:0 10px 24px;margin-bottom:22px;border-bottom:1px solid #ffffff12;color:inherit!important;min-width:0}.sgd-brand-copy{display:contents}.sgd-brand-mark{display:block;width:44px;height:44px;object-fit:contain;flex:0 0 44px}.sgd-brand strong{display:block;font-size:32px;line-height:44px;font-weight:800}.sgd-brand small{display:block;grid-column:1/-1;margin:0;font-size:14px;line-height:1.85;color:#bdcecb;max-width:180px;text-wrap:balance;overflow-wrap:break-word}
.sgd-workspace-label{padding:0 12px 10px;font-size:12px;color:#9fb9b5;margin:0}.sgd-nav{display:flex;flex-direction:column;gap:6px}.sgd-app .sgd-nav-item{display:flex;align-items:center;gap:11px;width:100%;min-height:48px;border:0;border-radius:10px;padding:11px 12px;text-align:right;background:transparent;color:#c3d1d1;font-size:14px;line-height:1.8;transition:background var(--sg-ease),color var(--sg-ease),box-shadow var(--sg-ease)}.sgd-app .sgd-nav-item svg{width:19px;height:19px;color:#8ca9a7}.sgd-app .sgd-nav-item:hover{background:#2c4146;color:#fff}.sgd-app .sgd-nav-item.active,.sgd-app .sgd-nav-item[aria-current="page"]{background:#365b55;color:#fff;box-shadow:inset -3px 0 #bcd6c5,0 3px 10px #132c281c;font-weight:700}.sgd-app .sgd-nav-item.active svg,.sgd-app .sgd-nav-item[aria-current="page"] svg{color:#c5dfd5}
.sgd-sidebar-note{margin-top:auto;display:flex;gap:10px;align-items:center;font-size:12px;color:#b3c7c4;padding:28px 10px 20px}.sgd-sidebar-note svg{color:#87a8a0}.sgd-sidebar-note small{display:block;font-size:11px;color:#a2bab6;margin-top:4px}.sgd-sidebar-user{border-top:1px solid #3a4c50;padding-top:16px;display:flex;align-items:center;gap:10px}.sgd-sidebar-user strong{font-size:13px;display:block}.sgd-sidebar-user small{font-size:11px;color:#a2bab6;display:block}.sgd-sidebar-user .sgd-icon-button{margin-right:auto;color:#91aba9}.sgd-avatar{height:37px;width:37px;border-radius:50%;background:#d7c9ae;display:inline-flex;align-items:center;justify-content:center;color:#33433e;font-weight:700;font-size:16px;flex-shrink:0}
.sgd-topbar{height:70px;display:flex;align-items:center;justify-content:space-between;padding:0 38px;border-bottom:1px solid var(--sg-line);background:var(--sg-surface,#fafbf8);gap:16px}.sgd-breadcrumb{display:flex;align-items:center;gap:13px;color:var(--sg-secondary,#899398);font-size:13px;min-width:0}.sgd-product-name{color:var(--sg-teal);font-size:17px;font-weight:750;flex-shrink:0}.sgd-breadcrumb strong{color:var(--sg-secondary,#526268);font-weight:500;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sgd-slash{color:var(--sg-secondary,#c4cbc9)}.sgd-topbar-end{display:flex;align-items:center;gap:20px}.sgd-today{font-size:12px;color:var(--sg-secondary,#647479)}.sgd-icon-button{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;background:transparent;border:0;border-radius:8px;color:var(--sg-secondary,#80928f);padding:7px;flex-shrink:0;transition:background var(--sg-ease),color var(--sg-ease)}.sgd-icon-button:hover{background:var(--sg-raised,#e9eeea);color:var(--sg-teal)}.sgd-mobile-menu,.sgd-sidebar-shade{display:none}
.sgd-main{max-width:1560px;padding:36px 38px 15px;margin:auto}.sgd-page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.sgd-page-heading h1{font-size:30px;font-weight:750;line-height:1.55;letter-spacing:-.5px;margin:0;color:var(--sg-ink)}.sgd-page-heading p{font-size:14px;color:var(--sg-muted);margin:5px 0 0}.sgd-eyebrow{font-size:12px;color:var(--sg-warm-text,#996641);font-weight:650;margin-bottom:4px;letter-spacing:.1px}.sgd-footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:7px 16px;color:var(--sg-secondary,#6b7b65);font-size:11px;margin-top:43px;padding:17px 0 0;border-top:1px solid var(--sg-border,#e8ebe3)}
@media(min-width:1500px){.sgd-main{padding-top:32px}}
@media(min-width:761px) and (max-width:1200px){.sgd-sidebar{width:248px;padding-right:16px;padding-left:16px}.sgd-workspace{margin-right:248px}}
@media(max-width:760px){.sgd-sidebar{width:min(284px,calc(100vw - 32px));padding-top:25px;transform:translateX(100%);transition:transform .2s ease}.menu-open .sgd-sidebar{transform:translateX(0)}.menu-open .sgd-sidebar-shade{display:block;position:fixed;inset:0;background:#152c2a70;border:0;z-index:25}.sgd-workspace{margin-right:0}.sgd-mobile-menu{display:inline-flex}.sgd-topbar{height:66px;padding:0 17px;gap:6px}.sgd-breadcrumb{font-size:12px;gap:8px}.sgd-breadcrumb .sgd-product-name{font-size:16px}.sgd-icon-button{width:44px;height:44px}.sgd-main{padding:24px 20px 13px}.sgd-page-heading{flex-wrap:wrap;gap:16px;margin-bottom:22px;align-items:flex-start}.sgd-page-heading h1{font-size:27px}.sgd-page-heading p{font-size:13px}.sgd-footer{margin-top:30px}}
@media(max-width:430px){.sgd-main{padding-right:16px;padding-left:16px}.sgd-topbar{padding-right:12px;padding-left:12px}}
@media(prefers-reduced-motion:reduce){.sgd-app *,.sgd-app *::before,.sgd-app *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Search focus belongs to the visible field, never the bare input inside it.
   Keep the shared keyboard outline on all other controls. */
.sgd-app :is(.search-box, .sgcmd-search),
.sgd-app .sgj-search input {
  transition: border-color var(--sg-ease), box-shadow var(--sg-ease);
}
.sgd-app :is(.search-box, .sgcmd-search) input:is(:focus, :focus-visible) {
  outline: none;
  box-shadow: none;
}
.sgd-app :is(.search-box, .sgcmd-search):focus-within,
.sgd-app .sgj-search input:is(:focus, :focus-visible) {
  outline: none;
  border-color: var(--sg-muted);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sg-muted) 12%, transparent),
              0 3px 10px color-mix(in srgb, var(--sg-ink) 6%, transparent);
}
.sgd-app :is(.search-box, .sgcmd-search):focus-within svg {
  color: var(--sg-ink);
}
@media (forced-colors: active) {
  .sgd-app :is(.search-box, .sgcmd-search):focus-within,
  .sgd-app .sgj-search input:is(:focus, :focus-visible) {
    border-color: Highlight;
    outline: 2px solid Highlight;
    outline-offset: 2px;
    box-shadow: none;
  }
}

/* Secondary palette tokens are intentionally unset in day mode: app.css keeps
   its original colors through each token's fallback. */
:root { color-scheme: light; }
:root[data-sgs-theme="dusk"] {
  --sg-bg: #f0e5d3; --sg-panel: #fff6e9; --sg-ink: #393c31;
  --sg-muted: #655f51; --sg-line: #d9ccb7; --sg-teal: #3d6955;
  --sg-teal-dark: #30573f; --sg-sidebar: #333b31; --sg-copper: #855727; --sg-danger: #9c4737;
  --sg-surface: #fff6e9; --sg-soft: #f6eddd; --sg-raised: #e9ddc8;
  --sg-green-bg: #e5e3ce; --sg-warm-bg: #f3e3c9; --sg-red-bg: #f7e1d5; --sg-blue-bg: #e2e6e6;
  --sg-text: #393c31; --sg-secondary: #655f51; --sg-success-text: #346448;
  --sg-warm-text: #80521f; --sg-red-text: #9c4737; --sg-blue-text: #3d627d;
  --sg-border: #d9ccb7; --sg-border-strong: #a29b80; --sg-focus: #557f5d;
  --sg-primary-bg: #476c53; --sg-primary-hover: #385740; --sg-on-primary: #fff;
}
:root[data-sgs-theme="night"] {
  color-scheme: dark;
  --sg-bg: #132023; --sg-panel: #1c2a2c; --sg-ink: #e5ede7;
  --sg-muted: #adbdb7; --sg-line: #3d5050; --sg-teal: #9ad4c3;
  --sg-teal-dark: #b0dfcf; --sg-sidebar: #101c1f; --sg-copper: #e2b880; --sg-danger: #ffb5a2;
  --sg-surface: #1c2a2c; --sg-soft: #223234; --sg-raised: #2c3e3d;
  --sg-green-bg: #283f35; --sg-warm-bg: #3a3026; --sg-red-bg: #3b2928; --sg-blue-bg: #283541;
  --sg-text: #e5ede7; --sg-secondary: #adbdb7; --sg-success-text: #a1cfb0;
  --sg-warm-text: #e2b880; --sg-red-text: #ffb5a2; --sg-blue-text: #b5cee7;
  --sg-border: #3d5050; --sg-border-strong: #637f75; --sg-focus: #9ad4c3;
  --sg-primary-bg: #2e7868; --sg-primary-hover: #276858; --sg-on-primary: #fff;
}
.theme-switch {
  --switch-target: 32px;
  display: inline-flex; flex: none; align-items: center; vertical-align: middle; padding: 2px;
  border: 1px solid var(--sg-line); border-radius: 100px; background: var(--sg-soft, #eef2ed);
}
.theme-switch > button[data-theme] {
  display: grid; place-items: center; position: relative; box-sizing: border-box; flex: none;
  width: var(--switch-target); height: var(--switch-target); min-width: 0; min-height: 0;
  margin: 0; padding: 0; border: 1px solid transparent; border-radius: 50%;
  background: transparent; color: var(--sg-secondary, #596a6e); box-shadow: none; cursor: pointer;
}
.theme-switch svg { display: block; width: 17px; height: 17px; }
.theme-switch button span {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.theme-switch > button[data-theme]:not([aria-pressed="true"]):hover { color: var(--sg-ink); background: var(--sg-raised, #e4ebe3); }
.theme-switch > button[aria-pressed="true"] {
  background: var(--sg-panel); color: var(--sg-teal-dark); border-color: var(--sg-border-strong, #a9bcae);
  box-shadow: 0 1px 2px #10292317;
}
.theme-switch > button[data-theme]:focus-visible {
  z-index: 1; outline: 2px solid var(--sg-focus, #21756c); outline-offset: 1px;
}
@media (forced-colors: active) {
  .theme-switch > button[aria-pressed="true"] { border-color: Highlight; }
}
.btn.primary, .setup-step.complete .step-number {
  background: var(--sg-primary-bg, var(--sg-teal)); color: var(--sg-on-primary, white);
}
.btn.primary:hover { background: var(--sg-primary-hover, var(--sg-teal-dark)); }
html:is([data-sgs-theme="dusk"], [data-sgs-theme="night"]) :is(.sidebar,.sgd-sidebar) {
  background: var(--sg-sidebar);
}
html:is([data-sgs-theme="dusk"], [data-sgs-theme="night"]) input,
html:is([data-sgs-theme="dusk"], [data-sgs-theme="night"]) textarea {
  caret-color: var(--sg-ink); accent-color: var(--sg-teal);
}
html:is([data-sgs-theme="dusk"], [data-sgs-theme="night"]) ::selection {
  color: var(--sg-ink); background: var(--sg-green-bg);
}
/* Dashboard-scoped shared calendar colors; other SGCO screens do not load this sheet. */
html:is([data-sgs-theme="dusk"], [data-sgs-theme="night"]) :is(.sgco-jalali-segments, .sgco-jalali-segment__control, .sgco-jalali-picker, .sgco-jalali-picker__selectors select, .sgco-jalali-picker__arrow) {
  --jp-ink: var(--sg-ink); background: var(--sg-panel); color: var(--sg-ink); border-color: var(--sg-line);
}
html:is([data-sgs-theme="dusk"], [data-sgs-theme="night"]) :is(.sgco-jalali-segment__label, .sgco-jalali-picker__heading, .sgco-jalali-picker__weekday, .sgco-jalali-picker__close, .sgco-jalali-picker__done, .sgco-jalali-picker__day.is-other-month) { color: var(--sg-muted); }
html:is([data-sgs-theme="dusk"], [data-sgs-theme="night"]) :is(.sgco-jalali-segment, .sgco-jalali-picker__footer) { border-color: var(--sg-line); }
html:is([data-sgs-theme="dusk"], [data-sgs-theme="night"]) :is(.sgco-jalali-toggle, .sgco-jalali-picker__today) { background: var(--sg-green-bg); color: var(--sg-teal); border-color: var(--sg-border-strong); }
html:is([data-sgs-theme="dusk"], [data-sgs-theme="night"]) :is(.sgco-jalali-picker button:hover, .sgco-jalali-toggle:hover) { background: var(--sg-raised); }
html:is([data-sgs-theme="dusk"], [data-sgs-theme="night"]) .sgco-jalali-picker__day.is-selected { background: var(--sg-primary-bg); color: var(--sg-on-primary); }
html:is([data-sgs-theme="dusk"], [data-sgs-theme="night"]) :is(.sgco-jalali-error, .sgco-jalali-segment__control[aria-invalid="true"]) { color: var(--sg-danger); }
@media (max-width: 1100px) { :is(.topbar-end,.sgd-topbar-end) { gap: 8px; } :is(.today-label,.sgd-today) { display: none; } }
@media (max-width: 760px) {
  :is(.topbar,.sgd-topbar) { gap: 6px; }
  :is(.topbar-end,.sgd-topbar-end) { gap: 4px; flex-shrink: 0; }
  :is(.breadcrumb,.sgd-breadcrumb) { flex: 1; gap: 5px; overflow: hidden; }
  :is(.breadcrumb,.sgd-breadcrumb) :is(.breadcrumb-product,.sgd-product-name), :is(.breadcrumb,.sgd-breadcrumb) :is(.slash,.sgd-slash) { display: none; }
  .theme-switch { --switch-target: 44px; }
}
@media (pointer: coarse) { .theme-switch { --switch-target: 44px; } }
@media (max-width: 360px) { :is(.breadcrumb,.sgd-breadcrumb) strong { font-size: 11px; } :is(.topbar,.sgd-topbar) { padding-inline: 8px; } }
