/* ============================================================
   BookedUp · Dashboard — Base (reset + tipografía)
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* El atributo `hidden` SIEMPRE oculta. Sin esto, cualquier clase con display
   propio (.btn es flex, .usuario-menu__item es block…) lo anula: la hoja de
   autor pisa a la del navegador y el elemento se PINTA aunque el JS lo haya
   puesto hidden (bug real: «Instalar la app» salía estando instalada porque
   .btn ganaba al hidden). Sustituye a los parches `.x[hidden]{display:none}`
   que iban apareciendo sueltos por el CSS. */
[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--fuente);
  font-size: var(--txt-md);
  font-weight: var(--peso-normal);
  line-height: 1.5;
  color: var(--texto);
  background: var(--fondo-app);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

/* Datos tabulares en monoespaciada (horas, duraciones) */
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* Icono SVG genérico (referenciado con <use>) */
.ico {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.ico--sm {
  width: 13px;
  height: 13px;
}

.oculto {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* Oculta por completo (filtros, conmutadores) */
.no-mostrar {
  display: none !important;
}

/* ============================================================
   Barra de scroll discreta y con el tema (sustituye la nativa,
   ancha y clara, que destacaba demasiado sobre el panel oscuro).
   ============================================================ */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--borde-fuerte) transparent;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--borde-fuerte);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--texto-tenue); }
::-webkit-scrollbar-corner { background: transparent; }
