/* Senticia: reset, elemente de bază, accesibilitate (skip link, focus vizibil, sr-only) și utilitare.
   Transcris din customers/Senticia_Prototip.html, liniile 69 și 110. */

* {
  box-sizing: border-box;
}

[hidden] {
  display: none!important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button {
  color: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  background: none;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* #main primește focus programatic după login și la zonele stale: fără inelul albastru
   al browserului. Doar #main: meniurile și rândurile își păstrează conturul de tastatură. */
#main:focus {
  outline: none;
}

button:disabled {
  cursor: default;
}

.shell {
  width: min(1440px,calc(100% - 64px));
  margin: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  z-index: 100;
  background: var(--accent);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 8px;
}

.skip:focus {
  transform: translateY(0);
}

svg {
  display: block;
  flex-shrink: 0;
}

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sm {
  width: 15px;
  height: 15px;
}

.muted {
  color: var(--muted);
}

.positive {
  color: var(--positive);
}

.negative {
  color: var(--negative);
}

.num {
  font-variant-numeric: tabular-nums;
}

.no-motion * {
  transition: none!important;
}

/* Reduced motion: oprește tranzițiile și animațiile, inclusiv shimmer-ul din states.css.
   Partea pentru .entity-card:hover stă la finalul components.css, după regula de hover. */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *:before,
  *:after {
    transition: none!important;
    animation: none!important;
  }
}
