/* ERP DESIGN SYSTEM v1 (04-12-2026, his brief: "One ERP. One Design System … Premium. Compact. Professional. Responsive.")
   LOOK ONLY – sizes, spacing and how things wrap. No colour of a module, no action, no check is changed here.
   Part 1 – the tokens: THE SAME BLOCK, letter for letter, in every module (rclerp, rcl-portal, rcl-hr, rcl-store, rcl-engineering,
   rcl-purchase; the app: lib/core/ds.dart). test/design.test.js refuses a block that differs. A new page uses these –
   never a number of its own for spacing, a button's height, an input's height or a card's padding. */
/* DS-TOKENS-BEGIN */
:root{
  --ds-1:4px;--ds-2:8px;--ds-3:12px;--ds-4:16px;--ds-5:20px;--ds-6:24px;--ds-8:32px;      /* the spacing scale */
  --ds-page:14px;--ds-card:13px;--ds-gap:10px;                                              /* a phone */
  --ds-ctl:44px;--ds-ctl-sm:40px;--ds-ctl-pad:14px;                                         /* a finger: 44 */
  --ds-r-card:14px;--ds-r-ctl:10px;
  --ds-fs:15px;--ds-fs-sm:13px;--ds-fs-h1:20px;--ds-fs-h2:16px;--ds-fs-kpi:22px;
  --ds-cell-y:9px;--ds-cell-x:12px;
}
@media(min-width:600px){:root{--ds-page:18px;--ds-card:15px;--ds-gap:14px}}               /* a tablet, an unfolded phone */
@media(min-width:1001px){:root{--ds-page:22px;--ds-card:18px;--ds-gap:14px;--ds-fs-h1:22px;--ds-fs-kpi:24px}}      /* a computer */
@media(min-width:1001px) and (hover:hover) and (pointer:fine){:root{--ds-ctl:38px;--ds-ctl-sm:32px;--ds-cell-y:8px;--ds-fs:14.5px}}      /* a mouse: compact */
/* DS-TOKENS-END */

/* Part 2: HR – the pages' own names for the same things */
html body.in .pri,html body.in .sec,html body.in .danger{height:var(--ds-ctl);padding:0 var(--ds-ctl-pad);font-size:var(--ds-fs);border-radius:var(--ds-r-ctl)}
html body.in .sm{height:var(--ds-ctl-sm);font-size:var(--ds-fs-sm)}
html body.in td.go .sm,html body.in td .sm.ghost{font-size:var(--ds-fs-sm)}
html body.in .tools{gap:var(--ds-2);margin-bottom:var(--ds-3)}
html body.in .tools input,html body.in .tools select,html body.in .box .grid input,html body.in .box .grid select{height:var(--ds-ctl);border-radius:var(--ds-r-ctl);font-size:var(--ds-fs)}
html body.in table{font-size:var(--ds-fs)}
html body.in table:not(.mus):not(.mz):not(.dz-who) td{padding-top:var(--ds-cell-y);padding-bottom:var(--ds-cell-y)}
html body.in table:not(.mus):not(.mz):not(.dz-who) th{padding-top:var(--ds-2);padding-bottom:var(--ds-2)}
html body.in .dz-card,html body.in .wfx-card{padding:var(--ds-card);border-radius:var(--ds-r-card)}
html body.in .dz-card h3{padding-bottom:var(--ds-2);margin-bottom:var(--ds-2)}
html body.in .dk-r{gap:var(--ds-gap);margin-bottom:var(--ds-gap)}
html body.in .none,html body.in .fd-none{padding:var(--ds-5) var(--ds-4);font-size:var(--ds-fs)}
html body.in .chips{gap:var(--ds-gap);margin-bottom:var(--ds-3)}
html body.in .chip{padding:var(--ds-3) var(--ds-card);border-radius:var(--ds-r-card)}
html body.in .chip b{font-size:var(--ds-fs-kpi);line-height:1.2}
/* the dashboard: the greeting and the four counts are as tall as what is in them */
html body.in .st-hero{padding:var(--ds-card);min-height:0;gap:var(--ds-3)}
html body.in .st-htop h2{font-size:var(--ds-fs-h1);margin:var(--ds-1) 0 var(--ds-2)}
html body.in .st-htop p{margin-top:var(--ds-2);font-size:var(--ds-fs)}
html body.in .st-hk{gap:var(--ds-2);padding-top:var(--ds-3)}
html body.in .st-hk button{padding:var(--ds-2) var(--ds-3)}
html body.in .st-hk b{font-size:var(--ds-fs-kpi);line-height:1.2}
html body.in .st-quick{padding:var(--ds-3) var(--ds-card);margin-bottom:var(--ds-gap)}
html body.in .st-quick h3{margin-bottom:var(--ds-2)}
html body.in .st-q{gap:var(--ds-gap)}
html body.in .st-q button{padding:var(--ds-3)}
html body.in .st-q i{width:34px;height:34px;margin-bottom:var(--ds-2)}
html body.in .st-q b{font-size:var(--ds-fs)}
html body.in .st-q small{min-height:0}
@media(min-width:1281px){      /* a wide screen: the picture beside the words – one short row */
  html body.in .st-q button{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:var(--ds-3);align-items:center;padding:var(--ds-2) var(--ds-3)}
  html body.in .st-q i{grid-row:1 / span 2;margin:0}
  html body.in .st-q b{align-self:end}
  html body.in .st-q small{margin:0;align-self:start}
}
html body.in .st-roll svg{width:132px;height:132px;margin:var(--ds-1) auto var(--ds-2)}
html body.in .dk-c{padding:var(--ds-2) var(--ds-3);border-radius:var(--ds-r-card)}
html body.in .dk-c b{font-size:var(--ds-fs-kpi)}
html body.in .box{min-width:0;max-width:100%}
html body.in .ph-split > *,html body.in .dk-r > *,html body.in .dz-col > *{min-width:0}
html body.in td.none,html body.in td[colspan].none{white-space:normal}
/* dialogs and the form in steps */
html body.in .sheet{padding:var(--ds-card);border-radius:var(--ds-r-card);max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain}
html body.in .fm-main{padding:var(--ds-card)}
html body.in #dlg_form h2{font-size:var(--ds-fs-h1)}
html body.in .dlg :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]),select){height:var(--ds-ctl);min-height:0;border-radius:var(--ds-r-ctl);font-size:var(--ds-fs)}
/* a phone and an unfolded phone: nothing wider than the screen */
@media(max-width:760px){
  html body.in .st-q{grid-template-columns:1fr 1fr}
  html body.in .st-hk{grid-template-columns:1fr 1fr}
  html body.in .box{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
  html body.in .tools > *{min-width:0;max-width:100%}
  html body.in .tools input,html body.in .tools select{flex:1 1 150px}
}
@media(max-width:359px){html body.in .st-q,html body.in .st-hk{grid-template-columns:1fr}}
