/* Estils compartits pel panell i el portal. */

/* ---- Identitat corporativa (www.tecnocat.com, tema Odoo) ----
   Taronja #FF5C00 (principal), antracita #404242 (navegació i text), crema
   #F4EFEB (fons), tipografia Stack Sans Text. El taronja només es fa servir per
   a la interfície (botons, accents), mai per a dades: els colors dels estats de
   màquina són els de més avall. Com a text sobre fons clar el taronja no té
   prou contrast (3,1:1): els enllaços fan servir un taronja més fosc. */
:root {
  --tc-orange: #FF5C00;
  --tc-orange-hover: #E65300;
  --tc-orange-active: #CC4A00;
  --tc-orange-text: #B84100;     /* enllaços: 5,3:1 sobre blanc, 4,7:1 sobre crema */
  --tc-anthracite: #404242;
  --tc-anthracite-dark: #22272B;
  --tc-cream: #F4EFEB;

  --bs-primary: var(--tc-orange);
  --bs-primary-rgb: 255, 92, 0;
  --bs-body-font-family: "Stack Sans Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-color: var(--tc-anthracite);
  --bs-body-color-rgb: 64, 66, 66;
  --bs-body-bg: var(--tc-cream);
  --bs-link-color: var(--tc-orange-text);
  --bs-link-color-rgb: 184, 65, 0;
  --bs-link-hover-color: #8F3300;
  --bs-link-hover-color-rgb: 143, 51, 0;
  --bs-focus-ring-color: rgba(255, 92, 0, .25);
  --bs-border-radius-lg: .75rem;
}
body.tc-body { background: var(--tc-cream); }
h1, h2, h3, h4, h5, h6 { font-weight: 500; color: var(--tc-anthracite); }

/* botons en forma de càpsula, com al web; dins de grups i camps, rectes */
.btn { --bs-btn-border-radius: 999px; --bs-btn-font-weight: 700; }
.input-group > .btn, .btn-group > .btn { --bs-btn-border-radius: var(--bs-border-radius); }
.btn-primary {
  --bs-btn-bg: var(--tc-orange); --bs-btn-border-color: var(--tc-orange); --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--tc-orange-hover); --bs-btn-hover-border-color: var(--tc-orange-hover); --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--tc-orange-active); --bs-btn-active-border-color: var(--tc-orange-active); --bs-btn-active-color: #fff;
  --bs-btn-disabled-bg: var(--tc-orange); --bs-btn-disabled-border-color: var(--tc-orange);
  --bs-btn-focus-shadow-rgb: 255, 92, 0;
}
.btn-outline-primary {
  --bs-btn-color: var(--tc-orange-text); --bs-btn-border-color: var(--tc-orange);
  --bs-btn-hover-bg: var(--tc-orange); --bs-btn-hover-border-color: var(--tc-orange); --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--tc-orange-active); --bs-btn-active-border-color: var(--tc-orange-active); --bs-btn-active-color: #fff;
  --bs-btn-focus-shadow-rgb: 255, 92, 0;
}
.form-control:focus, .form-select:focus { border-color: #FF9D66; box-shadow: 0 0 0 .25rem rgba(255, 92, 0, .2); }
.form-check-input:checked { background-color: var(--tc-orange); border-color: var(--tc-orange); }

/* barra superior: antracita amb el logotip (que té el text en blanc) */
.tc-navbar { background: var(--tc-anthracite); }
.tc-navbar .tc-logo { height: 36px; width: auto; display: block; }
.tc-navbar .tc-area { color: #fff; opacity: .85; font-weight: 500; border-left: 1px solid rgba(255, 255, 255, .3); padding-left: .75rem; margin-left: .75rem; }
.tc-navbar .navbar-text, .tc-navbar .link-light { color: rgba(255, 255, 255, .9); }

/* menú lateral del panell i pestanyes */
@media (min-width: 768px) { .sidebar { position: sticky; top: 1rem; } }
.sidebar .nav-link { color: var(--tc-anthracite); border-radius: 999px; font-weight: 500; }
.sidebar .nav-link:hover { background: rgba(64, 66, 66, .08); }
.sidebar .nav-link.active { background: var(--tc-orange); color: #fff; }
.nav-tabs .nav-link { color: var(--tc-anthracite); }
.nav-tabs .nav-link.active { color: var(--tc-anthracite); font-weight: 700; border-bottom: 3px solid var(--tc-orange); }

/* finestres emergents dels formularis d'alta (<dialog>, static/app.js) */
dialog.tc-dialog {
  border: 0; border-radius: var(--bs-border-radius-lg); padding: 0;
  width: min(32rem, calc(100vw - 2rem)); color: var(--tc-anthracite);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, .25);
}
dialog.tc-dialog::backdrop { background: rgba(34, 39, 43, .55); }
dialog.tc-dialog .tc-dialog-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.25rem; border-bottom: 1px solid rgba(64, 66, 66, .12);
}
dialog.tc-dialog .tc-dialog-header h5 { margin: 0; }
dialog.tc-dialog .tc-dialog-body { padding: 1.25rem; }
dialog.tc-dialog .tc-dialog-footer {
  display: flex; justify-content: flex-end; gap: .5rem;
  padding: 1rem 1.25rem; border-top: 1px solid rgba(64, 66, 66, .12); background: #FAF7F5;
  border-radius: 0 0 var(--bs-border-radius-lg) var(--bs-border-radius-lg);
}

/* targetes blanques sobre el fons crema, com les seccions del web */
.card { --bs-card-border-color: rgba(64, 66, 66, .12); --bs-card-border-radius: var(--bs-border-radius-lg); }
.card-header { background: #fff; font-weight: 500; }
.table { --bs-table-bg: #fff; }
.table-light { --bs-table-bg: #FAF7F5; --bs-table-color: var(--tc-anthracite); }

/* Colors dels estats de màquina (secció 5 de decisions.md). Els mateixos valors
   que daily_view.STATE_COLORS; validats per a daltonisme (vegeu decisions.md). */
.st-PRODUCTION { background-color: #198754; }
.st-IDLE       { background-color: #9aa1a5; }   /* sense activitat dins d'un torn */
.st-WAITING    { background-color: #eda100; }
.st-ERROR      { background-color: #dc3545; }
.st-MANUAL     { background-color: #0d6efd; }
.st-PRODUCTION-border { border-color: #198754 !important; }
.st-WAITING-border    { border-color: #eda100 !important; }
.st-ERROR-border      { border-color: #dc3545 !important; }
.st-MANUAL-border     { border-color: #0d6efd !important; }

.legend-dot { display: inline-block; width: .75rem; height: .75rem; border-radius: 50%; margin-right: .25rem; vertical-align: -.05rem; }
.legend-rect { display: inline-block; width: .75rem; height: .75rem; border-radius: 2px; margin-right: .25rem; vertical-align: -.05rem; }

td.nowrap, th.nowrap { white-space: nowrap; }
.table-filters th { font-weight: normal; padding-top: .25rem; padding-bottom: .5rem; min-width: 6rem; }
.kpi .value { font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---- gràfics de tendències (static/trend_charts.js) ---- */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: #e1e0d9; stroke-width: 1; }
.chart .baseline { stroke: #c3c2b7; stroke-width: 1; }
.chart .tick { fill: #898781; font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .label { fill: #52514e; font-size: 11px; font-weight: 600; }
.chart .col { cursor: default; outline: none; }
.chart .col .hit { fill: transparent; }
.chart .col:hover .hit, .chart .col:focus .hit { fill: rgba(0, 0, 0, .05); }
.chart-tooltip {
  position: absolute; pointer-events: none; z-index: 10; min-width: 11rem;
  background: #fff; border: 1px solid #dee2e6; border-radius: .375rem;
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .12); padding: .5rem .625rem; font-size: .8125rem;
}
.chart-tooltip .t-title { color: #52514e; margin-bottom: .25rem; }
.chart-tooltip .t-row { display: flex; align-items: center; gap: .5rem; }
.chart-tooltip .t-key { width: .75rem; height: 2px; flex: none; }
.chart-tooltip .t-value { font-weight: 600; color: #0b0b0b; margin-left: auto; font-variant-numeric: tabular-nums; }
.chart-tooltip .t-name { color: #52514e; }

/* Avís de canvis d'estructura (static/live.js) */
.tc-live-changed {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  max-width: 26rem;
  margin-left: auto;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .6rem .75rem .6rem 1rem;
  background: var(--tc-anthracite, #404242);
  color: #fff;
  border-radius: .5rem;
  box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .2);
}

/* Vista diària: temps per estat (anell) i capçaleres de lot a la llista de peces */
.tc-pie { flex: none; }
.tc-pie path { stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.tc-pie path:hover { opacity: .85; }
.tc-pie-value { font-size: 22px; font-weight: 700; fill: #212529; dominant-baseline: middle; }
.tc-pie-label { font-size: 11px; fill: #6c757d; }
.tc-pie-legend li + li { margin-top: .35rem; }
.tc-lot > td { background: var(--tc-cream, #F4EFEB) !important; font-size: .85rem; border-top: 2px solid #dee2e6; }

/* Calendari de la vista diària (static/calendar.js): dies amb dades en negreta i fons taronja clar */
.tc-cal { position: relative; }
.tc-cal-pop {
  position: absolute; top: calc(100% + .25rem); left: 0; z-index: 1060;
  width: 17.5rem; padding: .5rem .6rem .6rem; background: #fff;
  border: 1px solid #dee2e6; border-radius: .5rem; box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .15);
}
.tc-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .25rem; }
.tc-cal-head .btn { text-decoration: none; color: var(--tc-anthracite, #404242); }
.tc-cal-head .btn:disabled { opacity: .25; }
.tc-cal-title { font-weight: 700; }
.tc-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.tc-cal-wd { font-size: .7rem; color: #6c757d; text-transform: uppercase; padding: .15rem 0; }
.tc-cal-day { display: block; padding: .3rem 0; border-radius: .35rem; font-size: .85rem; line-height: 1.2; }
.tc-cal-day.no-data { color: #b8bec4; }
button.tc-cal-day { width: 100%; border: 0; background: none; font: inherit; }
.tc-cal-day.pickable { color: #6c757d; }
.tc-cal-day.pickable:hover, .tc-cal-day.pickable:focus { background: #e9ecef; outline: none; }
button.tc-cal-day.has-data { background: #ffe7d6; }
button.tc-cal-day.selected { background: var(--tc-orange, #FF5C00); color: #fff; }
.tc-cal-day.has-data { font-weight: 700; color: #212529; background: #ffe7d6; text-decoration: none; }
.tc-cal-day.has-data:hover, .tc-cal-day.has-data:focus { background: #ffc9a3; outline: none; }
.tc-cal-day.has-data:focus-visible { box-shadow: 0 0 0 2px var(--tc-orange, #FF5C00); }
.tc-cal-day.selected { background: var(--tc-orange, #FF5C00); color: #fff; }
.tc-cal-day.selected:hover, .tc-cal-day.selected:focus { background: var(--tc-orange-hover, #E65300); color: #fff; }
.tc-cal-day.today { box-shadow: inset 0 0 0 1.5px #6c757d; }
.tc-cal-legend { margin-top: .4rem; font-size: .75rem; color: #6c757d; }
.tc-cal-swatch { display: inline-block; width: .8rem; height: .8rem; border-radius: .2rem; background: #ffe7d6; vertical-align: -.1rem; }

/* Estat del magatzem (taula dinàmica) */
.tc-pivot td a { color: inherit; text-decoration: none; }
.tc-pivot td a:hover { color: var(--tc-orange-text, #B84100); text-decoration: underline; }
.tc-pivot tr.tc-pivot-group > td { background: var(--tc-cream, #F4EFEB); font-weight: 600; }
.tc-pivot tr.tc-pivot-sub > td:first-child { padding-left: 1.5rem; }

/* Moviments dels magatzems: gràfic de barres apilades (SVG) i barres de proporció */
.tc-bars { width: 100%; height: 260px; display: block; }
.tc-bars rect { stroke: #fff; stroke-width: 1; vector-effect: non-scaling-stroke; }
.tc-bars g:hover rect { opacity: .85; }
.tc-bars .tc-grid { stroke: #e9ecef; stroke-width: 1; vector-effect: non-scaling-stroke; }
.tc-bars .tc-axis { font-size: 11px; fill: #6c757d; }
.tc-share { height: .5rem; background: #e9ecef; border-radius: .25rem; overflow: hidden; }
.tc-share span { display: block; height: 100%; background: #6c757d; }

/* Evolució de l'estoc: franges invisibles per veure el valor de cada període */
.tc-areas .tc-band { fill: transparent; stroke: none; }
.tc-areas .tc-band:hover { fill: rgba(0, 0, 0, .06); }

/* ---- informes del magatzem: estoc a la carta, producció, vistes desades ---- */
.tc-label { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6c757d; }
.tc-label-fixed { min-width: 4.5rem; }
/* filtres actius: etiquetes que es treuen amb la × */
.tc-tag { display: inline-flex; align-items: center; gap: .4rem; background: var(--tc-anthracite); color: #fff; border-radius: 999px; padding: .15rem .25rem .15rem .75rem; font-size: .85rem; }
.tc-tag a { display: inline-flex; align-items: center; justify-content: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: rgba(255, 255, 255, .2); color: #fff; text-decoration: none; }
.tc-tag a:hover { background: var(--tc-orange); color: #fff; }
/* noms clicables per filtrar (llegendes, files i columnes de les taules) */
a.tc-filterable { color: inherit; text-decoration: none; }
a.tc-filterable:hover { color: var(--tc-orange-text); text-decoration: underline; }
.tc-bars a rect { cursor: pointer; }
/* vistes: punts de partida i vistes desades */
.tc-view { display: inline-flex; align-items: center; border: 1px solid var(--tc-anthracite); border-radius: 999px; background: #fff; font-size: .85rem; font-weight: 700; color: var(--tc-anthracite); text-decoration: none; padding: .2rem .8rem; }
a.tc-view:hover, .tc-view a:hover { color: var(--tc-orange-text); }
.tc-view.mine { border-style: dashed; padding-right: .25rem; }
.tc-view a { color: inherit; text-decoration: none; }
.tc-view.on { background: var(--tc-anthracite); color: #fff; }
.tc-view.on a, a.tc-view.on:hover, .tc-view.on a:hover { color: #fff; }
.tc-view-mail { padding: 0 .3rem; font-weight: 400; opacity: .7; }
.tc-view-mail:hover { opacity: 1; }
.tc-schedule-edit td { border-top: 0; }
.tc-view-del { border: 0; background: none; color: inherit; opacity: .6; padding: 0 .35rem; font-size: 1rem; line-height: 1; }
.tc-view-del:hover { opacity: 1; color: var(--tc-orange); }
/* columnes de l'estoc: es marquen, s'ordenen amb les fletxes o arrossegant */
.tc-cols { display: flex; flex-wrap: wrap; gap: .4rem; }
.tc-colchip { display: inline-flex; align-items: center; gap: .1rem; border: 1px solid #e3ddd7; border-radius: .5rem; background: #fff; padding: .1rem .3rem; font-size: .88rem; }
.tc-colchip.on { border-color: #FFC299; background: #FFF0E6; }
.tc-colchip.off { color: #6c757d; }
.tc-colchip.drag-over { outline: 2px dashed var(--tc-orange); }
.tc-colchip.dragging { opacity: .4; }
.tc-colchip label { display: inline-flex; align-items: center; gap: .3rem; cursor: pointer; padding: .1rem .25rem; font-weight: 500; margin: 0; }
.tc-colchip input { accent-color: var(--tc-orange); margin: 0; }
/* caselles sense marcar visibles sobre la targeta blanca (el fons per defecte és el crema de la pàgina) */
[data-columns-form] .form-check-input:not(:checked) { background-color: #fff; border-color: #9aa0a6; }
.tc-colchip .grip { cursor: grab; color: #6c757d; padding: 0 .15rem; font-size: .75rem; letter-spacing: -2px; }
.tc-colchip .n { font-size: .7rem; font-weight: 700; color: var(--tc-orange-text); min-width: .8rem; text-align: center; }
.tc-colchip .mv { color: #6c757d; text-decoration: none; padding: 0 .2rem; font-size: .7rem; border-radius: .25rem; }
.tc-colchip a.mv:hover { background: #e9ecef; color: var(--tc-anthracite); }
.tc-colchip .mv.off { opacity: .25; }
/* la taula de l'estoc */
.tc-stock-scroll { max-height: 75vh; }
.tc-stock thead th { position: sticky; top: 0; z-index: 1; white-space: nowrap; }
.tc-stock td { white-space: nowrap; }
.tc-stock td.tc-rep a { color: #b7b2ad; }
.tc-stock tr.tc-subtotal td { background: var(--tc-cream); font-weight: 700; }
.tc-stock tr.tc-total td { background: var(--tc-anthracite); color: #fff; font-weight: 700; }
.tc-stock td.tc-recount span { display: inline-block; width: 5.5rem; height: 1.2rem; border: 1px solid #c9c3bd; border-radius: .25rem; vertical-align: middle; }
/* producció: botons de franja, línia i mesura */
.tc-pill { display: inline-block; border: 1px solid var(--tc-anthracite); border-radius: 999px; padding: .2rem .8rem; font-size: .85rem; font-weight: 700; color: var(--tc-anthracite); background: #fff; text-decoration: none; }
.tc-pill:hover { border-color: var(--tc-orange); color: var(--tc-anthracite); }
.tc-pill.on { background: var(--tc-anthracite); color: #fff; }
.tc-compare { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid #FFC299; background: #FFF0E6; color: var(--tc-orange-text); border-radius: 999px; padding: .2rem .8rem; font-size: .85rem; font-weight: 700; text-decoration: none; }
.tc-compare:hover { border-color: var(--tc-orange); color: var(--tc-orange-text); }
.tc-compare .box { display: inline-flex; align-items: center; justify-content: center; width: 1rem; height: 1rem; border: 1.5px solid var(--tc-orange); border-radius: .2rem; background: #fff; font-size: .75rem; line-height: 1; }
.tc-compare.on .box { background: var(--tc-orange); color: #fff; }
/* gràfic de línies de producció */
.tc-line-swatch { display: inline-block; width: 1.1rem; height: 3px; border-radius: 2px; vertical-align: middle; }
.tc-line-swatch.dash { background-image: linear-gradient(90deg, #6c757d 60%, transparent 0); background-size: 6px 3px; }
.tc-lines-wrap { position: relative; }
.tc-lines { width: 100%; height: auto; display: block; }
.tc-lines .tc-grid { stroke: #e9ecef; stroke-width: 1; }
.tc-lines .tc-axis { font-size: 12px; fill: #6c757d; }
.tc-lines .tc-avg-label { font-size: 12px; font-weight: 700; }
.tc-lines .tc-cross { stroke: #a9a39d; stroke-width: 1; }
.tc-line-tip { position: absolute; top: .5rem; pointer-events: none; background: var(--tc-anthracite-dark, #22272B); color: #fff; font-size: .8rem; border-radius: .5rem; padding: .4rem .6rem; white-space: nowrap; z-index: 5; }
.tc-line-tip .row { display: flex; align-items: center; gap: .4rem; }

/* ---- manual d'usuari (Ajuda) ---- */
.tc-manual { max-width: 52rem; }
.tc-manual h4 { scroll-margin-top: 1rem; padding-bottom: .3rem; border-bottom: 2px solid var(--tc-orange); }
.tc-manual h5 { scroll-margin-top: 1rem; color: var(--tc-orange-text); }
.tc-manual p, .tc-manual li { line-height: 1.6; }
.tc-manual-toc { position: sticky; top: 1rem; }
.tc-manual-fig { margin: 1rem 0 1.5rem; }
.tc-manual-fig img { max-width: 100%; height: auto; border: 1px solid #e3ddd7; border-radius: .5rem; box-shadow: 0 .25rem 1rem rgba(34, 39, 43, .08); }
.tc-manual-fig figcaption { font-size: .82rem; color: #6c757d; text-align: center; margin-top: .4rem; }

/* ---- horaris de treball (work_schedule.html) ---- */
:root { --ws-c0: #6f42c1; --ws-c1: #0f8a8a; --ws-c2: #8a5a00; --ws-c3: #c2185b; }   /* identitat de cada torn */
.ws-c0 { background: var(--ws-c0); } .ws-c1 { background: var(--ws-c1); }
.ws-c2 { background: var(--ws-c2); } .ws-c3 { background: var(--ws-c3); }
.ws-dot { display: inline-block; width: .75rem; height: .75rem; border-radius: 50%; margin-right: .35rem; flex: 0 0 auto; }
.ws-shifts .ws-name { width: 7rem; }
.ws-shifts .ws-time { width: 6.5rem; }
.ws-bar { position: relative; height: 1.4rem; background: #eef0f1; border-radius: .3rem; overflow: hidden; min-width: 14rem; }
.ws-bar .ws-blk { position: absolute; top: 0; bottom: 0; opacity: .85; }
.ws-bar .ws-pz { position: absolute; top: 0; bottom: 0;
                 background: repeating-linear-gradient(-45deg, rgba(255,255,255,.85) 0 3px, transparent 3px 6px); }
.ws-axis { position: relative; height: 1rem; font-size: .7rem; color: #6c757d; min-width: 14rem; font-weight: 400; }
.ws-axis span { position: absolute; transform: translateX(-50%); }
.ws-axis span:first-child { transform: none; }
.ws-axis span:last-child { transform: translateX(-100%); }
.tc-note { background: #fff7e6; border-left: 4px solid var(--tc-orange); padding: .6rem .9rem; border-radius: .4rem; }

.ws-months { display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: 1rem; }
.ws-month h6 { font-size: .9rem; margin: 0 0 .3rem; }
.ws-month table { width: 100%; table-layout: fixed; font-size: .8rem; text-align: center; }
.ws-month th { color: #6c757d; font-weight: 500; }
.ws-month td { padding: 1px; }
.ws-day { display: block; width: 100%; border: 0; border-radius: .3rem; padding: .18rem 0; background: transparent; color: inherit; }
.ws-day.off { color: #9a9a9a; }
.ws-day.work { background: #fff; }
.ws-day.holiday { background: #f8d7da; color: #842029; font-weight: 700; }
.ws-day.special { background: #e2d9f3; color: #432874; font-weight: 700; }
.ws-day.today { outline: 2px solid var(--tc-orange); outline-offset: -2px; }
.ws-day.sel { background: var(--tc-anthracite); color: #fff; }
.ws-day:focus-visible { outline: 2px solid var(--tc-orange-text); outline-offset: 1px; }
.ws-legend span { display: inline-flex; align-items: center; gap: .3rem; margin-right: 1rem; }
.ws-key { width: 1rem; height: 1rem; border-radius: .25rem; display: inline-block; }
.ws-key.work { background: #fff; border: 1px solid #ddd; } .ws-key.holiday { background: #f8d7da; } .ws-key.special { background: #e2d9f3; }
.ws-badge-special { background: #6f42c1; color: #fff; }
.ws-selection { position: sticky; bottom: .5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
                background: #fff; border: 1px solid #ddd; border-radius: .5rem; padding: .4rem .7rem; box-shadow: 0 2px 6px rgba(0,0,0,.08); }

/* ---- semàfor dels objectius (objectives.LEVELS): sempre amb icona i text ---- */
.tc-level { display: inline-flex; align-items: center; gap: .25rem; font-weight: 700; white-space: nowrap; }
.lv-up { color: #146c43; }
.lv-near { color: #8a6100; }
.lv-low { color: #b35100; }
.lv-verylow { color: #b02a37; }
.ws-shifts .ws-pauses { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; min-width: 15rem; }
.ws-shifts .ws-pause { display: flex; align-items: center; gap: .25rem; }
.tc-qr svg { display: block; width: 14rem; max-width: 100%; height: auto; }   /* l'SVG porta viewBox: s'escala sencer */
