/* project-cards.css – prosjektkort (felles for Trykktesting, Kloridprøver og Karbonatisering)
 * Lastes etter tjenestens egen stil, slik at kortene ser like ut i alle tre. Bruker fargevariablene fra tjenestens stilark
 * (--line, --soft, --soft2, --ochre, --green-d, --ink, --text, --gray, --dark, --link). */
.dtools { display: flex; gap: 8px; }
.dtools .search { width: 300px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 20px; align-items: start; }
.pcard { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--pc, var(--ochre)); border-radius: 6px; display: flex; flex-direction: column; transition: box-shadow .15s; }
.pcard:hover { box-shadow: 0 6px 22px rgba(31,31,31,.08); }

/* Hode */
.pch { display: flex; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; cursor: pointer; border-radius: 6px 6px 0 0; transition: background .12s; }
.pch:hover { background: var(--soft2); }
.pch:hover h3 { text-decoration: underline; text-decoration-color: var(--gray); text-underline-offset: 3px; }
.pct { min-width: 0; }
.pct .pnum { display: inline-block; font-size: 11.5px; letter-spacing: .5px; color: #6b6b6e; background: var(--soft); border-radius: 3px; padding: 2px 7px; margin: 0 0 6px; font-variant-numeric: tabular-nums; }
.pch h3 { margin: 0 0 3px; font-size: 19px; font-weight: 500; color: var(--ink); line-height: 1.25; }
.pcl { font-size: 13px; color: #77777a; }
.pca { display: flex; gap: 2px; opacity: .45; transition: opacity .15s; align-self: flex-start; }
.pcard:hover .pca { opacity: 1; }
.pcard .ib { width: 30px; height: 30px; border: 0; background: transparent; border-radius: 4px; cursor: pointer; color: #55555a; font-size: 15px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.pcard .ib:hover { background: var(--soft); color: var(--ink); }
.pct .lockchip { display: flex; margin-top: 6px; width: max-content; }

/* Seksjoner: tjenestens serier og «Ellers i prosjektet» */
.psec { padding: 4px 12px 10px; }
.psec + .psec { border-top: 1px solid var(--line); padding-top: 12px; }
.ptl { display: flex; justify-content: space-between; align-items: center; font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: #77777a; padding: 0 8px 7px; border-bottom: 1px solid var(--line); }
.ptl .ptn { min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px; background: var(--soft); color: var(--ink); font-size: 11px; letter-spacing: 0; display: inline-flex; align-items: center; justify-content: center; }
.pempty { margin: 10px 8px 4px; font-size: 13px; color: #77777a; line-height: 1.45; }

.pcard .trow { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.pcard .trow:last-child { border-bottom: 0; }
.pcard .tlink { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 11px 8px; text-decoration: none; color: var(--text); border-radius: 4px; }
.pcard .trow:hover .tlink { background: var(--soft2); }
.pcard .tdot { flex: 0 0 10px; height: 10px; border-radius: 50%; background: var(--gray); }
.pcard .tdot.s-work { background: var(--ochre); }
.pcard .tdot.s-done { background: var(--green-d); }
.pcard .tname { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pcard .tname b { font-weight: 500; font-size: 15px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .tname small { font-size: 12.5px; color: #77777a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .tst { flex: none; font-size: 11.5px; padding: 2px 8px; border-radius: 10px; background: var(--soft); color: #55555a; white-space: nowrap; }
.pcard .tst.s-work { background: #f6edc6; color: #6b5310; }
.pcard .tst.s-done { background: #e6f3d4; color: #3d5f22; }
.pcard .tarr { color: var(--gray); font-size: 18px; flex: none; }
.pcard .tact { display: flex; opacity: 0; transition: opacity .12s; }
.pcard .trow:hover .tact, .pcard .tact.show { opacity: 1; }
.pcard .tact.show { padding-right: 8px; }
.pcard .tact .ib { width: 26px; height: 26px; font-size: 13px; }

.pother .orow { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 4px; text-decoration: none; color: var(--text); font-size: 13px; }
.pother .orow:hover { background: var(--soft2); }
.pother .orow b { font-weight: 500; color: var(--ink); min-width: 118px; }
.pother .orow span:not(.tarr) { flex: 1; color: #6b6b6e; }
.pother .orow .tarr { font-size: 16px; }

/* Bunn */
.pcf { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px 16px; margin-top: auto; border-top: 1px solid var(--line); }
.pcf .plink { font-size: 13px; color: var(--link); text-decoration: none; white-space: nowrap; }
.pcf .plink:hover { text-decoration: underline; }

/* Nytt prosjekt, uten prosjekt, låst */
.pnew { border: 1px dashed #bdbab2; border-top: 1px dashed #bdbab2; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 40px 24px; cursor: pointer; font: inherit; color: var(--text); min-height: 220px; background: transparent; }
.pnew:hover { border-color: var(--dark); background: #fff; }
.pnew .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--ochre); display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--ink); margin-bottom: 6px; }
.pnew b { font-size: 17px; font-weight: 500; color: var(--ink); }
.pnew span:last-child { font-size: 13px; color: #77777a; max-width: 300px; }
.ploose { --pc: var(--gray); }
.pch.nohover { cursor: default; } .pch.nohover:hover { background: none; } .pch.nohover:hover h3 { text-decoration: none; }
.pcard.locked { border-top-color: var(--dark); background: var(--soft2); }
.pcard.locked .pch { cursor: default; } .pcard.locked .pch:hover { background: none; } .pcard.locked .pch:hover h3 { text-decoration: none; }
.plocked { display: flex; gap: 12px; align-items: flex-start; padding: 4px 20px 20px; font-size: 13px; color: #6b6b6e; }
.plocked .lockic { width: 26px; height: 26px; flex: none; color: var(--gray); }

@media (max-width: 640px) {
  .pgrid { grid-template-columns: 1fr; } .dtools { flex-wrap: wrap; } .dtools .search { width: 100%; }
  .pcard .tact { opacity: 1; } .pcf { flex-wrap: wrap; }
}
