/* SAM Showroom CRM — global styles. Screen-specific styles live with each screen. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:#F3F5FA;color:#0B1230;font-family:'Plus Jakarta Sans','Noto Sans Devanagari',system-ui,sans-serif;font-feature-settings:"tnum";-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow-x:hidden}
*{box-sizing:border-box}
a{color:#3B5BFF;text-decoration:none}a:hover{color:#2E4BE6}
button,input,select,textarea{font:inherit}
img,svg{max-width:100%}
:focus-visible{outline:3px solid rgba(59,91,255,.45);outline-offset:2px;border-radius:8px}
.dc-host{min-height:100vh;min-height:100dvh}
.dc-root{max-width:100%}
.dc-root.dc-m{overflow:hidden}
/* inputs on phones: 16px stops iOS zoom-in */
@media (max-width:1023px){.dc-m input,.dc-m textarea,.dc-m select{font-size:16px!important}}

/* ---------- desktop screen on tablet / phone: sidebar becomes a drawer ---------- */
.m-bar,.m-shade{display:none}
@media (max-width:1023px){
  .dc-d.dc-root{display:block!important}
  .dc-d > .dc-nav{position:fixed!important;z-index:60;top:0;left:0;bottom:0;width:272px!important;max-width:84vw;flex:none!important;overflow-y:auto;transform:translateX(-105%);transition:transform .35s cubic-bezier(.2,.8,.2,1);box-shadow:0 30px 60px rgba(10,16,40,.5)}
  .drawer-open .dc-d > .dc-nav{transform:none}
  .m-bar{display:flex;align-items:center;gap:12px;position:sticky;top:0;z-index:50;height:58px;padding:0 14px;padding-top:env(safe-area-inset-top);background:#0A1028;color:#fff;border-bottom:1px solid rgba(255,255,255,.06)}
  .m-burger{width:42px;height:42px;border-radius:13px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.07);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}
  .m-logo{height:26px;width:auto}
  .m-title{margin-left:auto;font-size:13px;font-weight:700;color:#9AA4C6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:45vw}
  .m-shade{display:block;position:fixed;inset:0;z-index:55;background:rgba(10,16,40,.55);backdrop-filter:blur(2px);opacity:0;pointer-events:none;transition:opacity .3s}
  .drawer-open .m-shade{opacity:1;pointer-events:auto}
  .drawer-open body{overflow:hidden}
  /* main column takes the full width; tighten big side paddings */
  .dc-d > main,.dc-d > div:not(.dc-nav){width:100%!important;max-width:100%!important;min-width:0!important}
  .dc-d main > div[style*="padding:26px 36px"],.dc-d main > div[style*="padding:0 36px"]{padding-left:16px!important;padding-right:16px!important}
}
/* wide tables never clip: they scroll inside their own card */
.dc-d table{max-width:100%}
@media (max-width:1023px){
  .dc-d section:has(> table),.dc-d div:has(> table){overflow-x:auto!important;-webkit-overflow-scrolling:touch}
  .dc-d table{min-width:640px}
  .dc-d .tbl{min-width:0}
}

/* ---------- phone-only screen opened on a computer: shown as a centred app column ---------- */
@media (min-width:1024px){
  html.only-m body{background:radial-gradient(1200px 600px at 50% -10%,rgba(59,91,255,.35),transparent 60%),#0A1028}
  html.only-m .dc-host{max-width:440px;margin:0 auto;box-shadow:0 40px 90px rgba(0,0,0,.45)}
}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{.m-bar,.m-shade,.dc-nav{display:none!important}}
/* step indicators: numbers only on small phones */
@media (max-width:640px){.step-label{display:none}}
/* settings tabs: one active */
.stab.on{background:#F3F5FA!important;color:#0B1230!important}
.stab:not(.on):hover{color:#fff!important;background:rgba(255,255,255,.06)}
