/* Permisos per perfil (access.js): the strip of a page only to read, Usuaris (the requests, the people, the profile and
   the areas of a person in its dialog) and «El teu accés». */
.access-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 10px 14px;
  border: 1px solid #d6e2ea;
  border-radius: 10px;
  background: #f2f7fb;
  color: #2b4a5e;
  font-size: 14px;
}
.access-strip b {
  font-weight: 700;
}
html.dark .access-strip {
  background: #17232d;
  border-color: #2b3c4a;
  color: #c7dbe8;
}
.access-level {
  border: 0;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.access-level legend {
  padding: 0;
  margin-bottom: 6px;
}
.access-level label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
}
.access-level input[type="radio"] {
  width: auto;
  margin: 0;
  accent-color: var(--green);
}
.access-areas {
  margin: 6px 0 12px;
}
.access-areas summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 0;
}
.access-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  white-space: normal;
}
.access-table th {
  text-align: left;
  font-weight: 400;
  padding: 8px 12px 8px 0;
  vertical-align: top;
  background: transparent;
  letter-spacing: 0;
  color: inherit;
  font-size: 14px;
}
.access-table th b {
  display: block;
  font-weight: 600;
}
.access-table th small {
  display: block;
  color: #6b7781;
  font-size: 12px;
  line-height: 1.4;
}
.access-table td {
  padding: 8px 0;
  vertical-align: middle;
  white-space: nowrap;
  text-align: right;
  border-top: 0;
}
.access-table tr + tr th,
.access-table tr + tr td {
  border-top: 1px solid #e7ecef;
}
.access-table tr.is-changed th b::after {
  content: " · ajustat";
  color: #a46b06;
  font-weight: 600;
  font-size: 12px;
}
.access-table select {
  width: auto;
  min-width: 130px;
  margin: 0;
  padding: 7px 10px;
  font-size: 14px;
}
.access-table.own td {
  padding-left: 10px;
}
.panel .access-table.own {
  margin: 0;
}
.panel .access-table.own th {
  padding-left: 23px;
}
.panel .access-table.own td:last-child {
  padding-right: 23px;
}
/* «Sense accés», and what of it this person still reads through another area (access.js: alsoReadsNiu) */
.access-table td small.access-also {
  display: block;
  max-width: 17em;
  margin: 4px 0 0 auto;
  white-space: normal;
  color: #6b7781;
  font-size: 12px;
  line-height: 1.35;
}
html.dark .access-table th small,
html.dark .access-table td small.access-also {
  color: #94a3b8;
}
html.dark .access-table tr + tr th,
html.dark .access-table tr + tr td {
  border-color: #243140;
}
.user-extra {
  color: #a46b06;
}
html.dark .user-extra {
  color: #f6c867;
}
.access-requests .document-row {
  align-items: center;
}
.access-remove {
  margin: 14px 0 0;
}
/* «Retirar l’accés al projecte» is the red button of style.css and theme.css (.button.danger: white on red; Daniel,
   2026-10-26: red text on red could not be read) */
@media (max-width: 620px) {
  .access-table td {
    white-space: normal;
  }
  .access-table select {
    min-width: 0;
    width: 100%;
  }
}
/* Comptes, prova i només lectura (ronda 2, server/plans.py): the strip of a project only read (amber: it is not about
   this person's permissions) and the state of the account in El meu espai */
.frozen-strip {
  background: #fdf6e7;
  border-color: #efd9a6;
  color: #694906;
}
html.dark .frozen-strip {
  background: #2a2312;
  border-color: #4d3e1b;
  color: #f1d9a0;
}
.plan-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}
/* «Pot aprovar el muntatge i els VFX» (Permisos → Ajustar; Daniel, 2026-10-28) */
.access-right {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 8px 0 14px;
  font-size: 14px;
}
.access-right input {
  width: auto;
  margin: 3px 0 0;
  accent-color: var(--green);
}
.access-right small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
/* Equip (sections/team.js; Daniel, 2026-10-28): the phone and the e-mail of each one («Equip · contactes»), «Editar» for
   Producció, and «Contactes»: the external ones and the locations' */
.team-names,
.team-contacts {
  margin-bottom: 24px;
}
.team-contacts {
  margin-top: 24px;
}
.team-name > div,
.team-contact > div {
  flex: 1;
  min-width: 0;
}
.team-name > div > span,
.team-contact > div > span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.team-contact > div > small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.team-reach {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13px;
}
.team-reach .reach-link {
  color: var(--green);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.team-reach .reach-link:hover {
  text-decoration: underline;
}
html.dark .team-reach .reach-link {
  color: #8fd3a3;
}
.team-contacts .panel-head .row-buttons {
  flex-shrink: 0;
}
.team-contact-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 6px 0 0 !important;
}
/* «Arxivar» a la fitxa i «Veure arxivats» a Equip (R1: forms/person.js, sections/team.js) */
.person-archive-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
#dialog-body .person-archive-tools .field-hint {
  flex: 1 1 260px;
  margin: 0;
}
.person-archived-note {
  margin-bottom: 14px;
}
.team-archived-toggle {
  margin-left: auto;
}
.team-archived .row-buttons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
/* «Fitxa» next to the name; why it cannot be removed, below (Daniel, 2026-10-30) */
.team-archived-who {
  display: flex;
  align-items: center;
  gap: 12px;
}
.team-archived-who > div {
  min-width: 0;
}
.team-archived-who > div > span,
.team-archived-holds {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
/* who is archived and still to be paid (decisió del Daniel, proves amb agents, ronda 5) */
.team-archived-owed {
  display: block;
  font-size: 13px;
  color: var(--ink);
  margin-top: 6px;
}
.team-archived-owed select {
  display: inline-block;
  width: auto;
  min-width: 0;
  min-height: 0;
  margin: 4px 0 0 4px;
  padding: 4px 28px 4px 10px;
  font-size: 13px;
}
@media (max-width: 760px) {
  .team-archived {
    flex-wrap: wrap;
  }
  .team-archived-toggle {
    margin-left: 0;
  }
}
@media (max-width: 760px) {
  .team-name,
  .team-contact {
    flex-wrap: wrap;
  }
  .team-reach {
    width: 100%;
  }
  .team-reach .reach-link {
    padding: 6px 0;
  }
  .team-contacts .panel-head {
    flex-wrap: wrap;
  }
}
/* Acabar els permisos (Daniel, 2026-10-28): what a profile lets do, under its fields; a request answered on its card of the
   chat (chat.js: requestCardHTML); «No hi tens accés» (sections/closed.js); «Demanar que el convidin» in Equip */
.access-explain {
  margin: -4px 0 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f2f7fb;
  color: #34495a;
  font-size: 13px;
  line-height: 1.45;
}
html.dark .access-explain {
  background: #17232d;
  color: #c7dbe8;
}
.chat-card.request-card {
  cursor: default;
  align-items: flex-start;
}
.chat-card.request-card:hover {
  border-color: var(--line);
}
.request-card .chat-card-text {
  flex: 1;
}
.request-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.request-actions .link-button {
  margin-left: auto;
  font-size: 12px;
}
.request-said {
  color: var(--green);
  font-weight: 600;
}
.request-card.is-answered .request-said {
  color: var(--muted);
}
.closed-page .panel-body p {
  max-width: 46em;
  line-height: 1.55;
}
.closed-page .row-buttons {
  margin-top: 14px;
}
.closed-asked {
  color: #6b7781;
  font-size: 14px;
}
.team-name .link-button {
  display: block;
  margin-top: 4px;
  font-size: 13px;
}
/* «Pot»: «Aprovar» and «Fer vigent» of each area with versions (N6, decisió 13) */
.access-table thead th {
  font-size: 12px;
  color: #6b7781;
  padding-bottom: 4px;
}
.access-table.with-rights td:nth-child(2) {
  text-align: left;
  padding-right: 12px;
}
.access-table .access-can {
  text-align: left;
  white-space: nowrap;
}
.access-table .access-can label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 12px;
  font-size: 13px;
}
.access-table .access-can input:disabled + *,
.access-table .access-can label:has(input:disabled) {
  color: #9aa4ac;
}

/* «Un contacte d’un projecte» (El meu espai → Contactes nou) and «Des dels meus contactes» (Equip → Contactes del
   projecte): pick one to copy its name, e-mail and phone (ronda 9 de proves, a2-23) */
.contact-from-project {
  margin: 0 0 12px;
  padding: 8px 12px;
  border: 1px solid var(--line, #dfe5ea);
  border-radius: 8px;
}
.contact-from-project > summary {
  cursor: pointer;
  font-weight: 600;
}
.contact-from-project input[type="search"] {
  margin: 10px 0 6px;
}
.contact-from-list {
  max-height: 260px;
  overflow: auto;
}
