:root {
    --fje: #0062ae;
    --fje-fosc: #004a85;
    --fons: #f4f6f9;
    --vora: #e3e7ee;
    --text-suau: #5f6b7a;
}

html, body { min-height: 100%; }
body { margin: 0; font-family: Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 14px; background: var(--fons); color: #1f2933; }
.material-icons { font-size: 20px; vertical-align: middle; line-height: 1; }
.btn .material-icons { margin-top: -2px; }

/* Capçalera (coordinació) */
.capcalera { position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; gap: 16px; min-height: 60px; padding: 0 16px; background: var(--fje); color: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.15); }
.capcalera img { height: 34px; }
.titol-app { font-size: 18px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.titol-app span { font-weight: 300; font-size: 14px; opacity: .85; margin-left: 6px; }
.usuari-actual { margin-left: auto; font-size: 13px; opacity: .9; white-space: nowrap; }

.contingut { padding: 20px 24px 48px; max-width: 1500px; margin: 0 auto; }
.spinner-centre { display: flex; justify-content: center; margin: 48px 0; }
.barra { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.resum { color: var(--text-suau); }
.targeta { background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.08); padding: 24px; }
.targeta h2 { font-size: 16px; font-weight: 500; color: var(--fje); margin: 28px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--vora); }

/* Formulari públic d'empresa */
.formulari-public { max-width: 900px; }
.formulari-public h1 { font-size: 20px; font-weight: 500; color: var(--fje); margin: 16px 0; text-transform: uppercase; }
.logo-fp { max-width: 320px; width: 100%; height: auto; }
.parany { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lopd { margin-top: 28px; font-size: 11px; color: var(--text-suau); }

/* Llistat */
.cerca { max-width: 360px; }
.taula-embolcall { overflow-x: auto; background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.taula-sollicituds th { position: sticky; top: 0; background: #fff; white-space: nowrap; font-weight: 500; font-size: 13px; }
.taula-sollicituds th.ordenable { cursor: pointer; user-select: none; }
.taula-sollicituds td { white-space: nowrap; font-size: 13px; vertical-align: top; }
.taula-sollicituds td.llarga { white-space: normal; min-width: 280px; max-width: 420px; }
.taula-sollicituds tbody tr { cursor: pointer; }
.badge-estat { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; background: #eef1f5; }
.estat-por-gestionar .badge-estat { background: #fff6e5; color: #8a5300; }
.estat-abierta .badge-estat { background: #e8f1fb; color: var(--fje-fosc); }
.estat-finalizada .badge-estat { background: #edf7ee; color: #2e7d32; }
.estat-duplicada .badge-estat { background: #fdecec; color: #c62828; }
.columnes-menu { max-height: 360px; overflow-y: auto; }
.columnes-menu .dropdown-item { cursor: pointer; }

/* Fitxa */
.fitxa { max-width: 1100px; }

@media (max-width: 576px) {
    .contingut { padding: 16px 12px 40px; }
    .targeta { padding: 16px; }
    .titol-app span { display: none; }
    .cerca { max-width: none; }
}
