/* Lots and requests lists, cards, admin pages, forms. Part of the site style sheet: the files load in number order and the order must not change. */
/* Lots and requests lists: header band, card grid, chips (owner 2026-10-03: pages dressed in the style of the home page). */
.pagehead {
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.82) 0%,
      rgba(255, 255, 255, 0.4) 32%,
      rgba(255, 255, 255, 0) 60%
    ),
    url('/app/img/lots-head.webp') center 62% / cover no-repeat,
    #0b1f4d;
  color: #0b1f4d;
  border-radius: 18px;
  padding: 34px 24px;
  margin-bottom: 12px;
}
.pagehead h1 {
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: 0.04em;
  font-size: clamp(1.6rem, 5vw, 2.3rem);
  margin: 0;
}
.pagehead p {
  margin: 6px 0 0;
  opacity: 0.88;
}
.lotgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.lotgrid .card {
  margin-bottom: 0;
}
.lot {
  border-radius: 14px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}
.lot:hover,
.lot:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(20, 55, 127, 0.16);
  transform: translateY(-2px);
  outline: none;
}
.lot .meta span {
  background: #eef3fb;
  color: #35507a;
  border-radius: 999px;
  padding: 3px 10px;
}
.lot-open {
  margin-top: 12px;
  padding: 10px;
  text-align: center;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}
@media (min-width: 720px) {
  .lotgrid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Owner 2026-11-17: without the LWG logo, «Только с LWG» stands on the centre line of «Сбросить». */
.filter-tools {
  align-items: center;
  justify-content: space-between;
}
.filter-lwg {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 600;
}
.filter-lwg .check {
  margin: 0;
}
.filter-lwg[hidden] {
  display: none;
}

/* Lot and request card: header band, specs left, price and contact right (owner 2026-10-03). */
.detailhead {
  padding: 26px 24px;
}
.detailhead h1 {
  font-size: clamp(1.4rem, 4.5vw, 2rem);
}
.detailhead .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  opacity: 1;
}
.detailhead .chips span {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(11, 31, 77, 0.25);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.9rem;
}
.detailgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}
.detailgrid .card {
  margin-bottom: 0;
  border-radius: 14px;
}
.detailgrid .reveal {
  border-radius: 14px;
}
.detailgrid .reveal .btn {
  width: 100%;
  padding: 12px 16px;
  font-size: 1.05rem;
}
@media (min-width: 820px) {
  .detailgrid {
    grid-template-columns: 1.2fr 1fr;
  }
  .detailgrid {
    align-items: stretch;
  }
  .sidecol {
    grid-template-rows: auto 1fr;
  }
  .processwrap {
    min-height: 220px;
  }
}
.sidecol {
  display: grid;
  gap: 12px;
}
.processwrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.processpic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.95;
}
@media (min-width: 820px) {
  .processwrap {
    aspect-ratio: auto;
    min-height: 220px;
  }
}

.detailhead {
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.82) 0%,
      rgba(255, 255, 255, 0.4) 32%,
      rgba(255, 255, 255, 0) 60%
    ),
    url('/app/img/detail-head.webp') center / cover no-repeat,
    #0b1f4d;
  padding: 34px 24px;
}

.pagehead .headbtn {
  display: inline-block;
  margin-top: 16px;
  background: #14377f;
  color: #fff;
  font-weight: 700;
}
.pagehead .headbtn:hover {
  background: #1b4aa6;
}
.actions .toolbar {
  margin: 0;
}
.actions .toolbar .btn {
  flex: 1 1 100%;
  text-align: center;
}

.formcard {
  border-radius: 14px;
  padding: 20px;
}
@media (max-width: 560px) {
  .formcard {
    padding: 16px;
  }
}

/* Admin pages: plain navy band without a photo, same family as the other pages (owner 2026-10-03). */
.pagehead.adminhead {
  color: #fff;
  background: linear-gradient(120deg, #0b1f4d 0%, #1b3f86 100%);
  padding: 22px 24px;
}
.pagehead.adminhead .regtotal {
  margin: 6px 0 0;
  font-size: 1.05rem;
  color: #dbe6ff;
}
.pagehead.adminhead .regtotal b {
  color: #fff;
  font-size: 1.25rem;
}
.admincard {
  max-width: 440px;
  margin: 24px auto;
  border-radius: 14px;
  padding: 24px;
}
.top .langsel {
  appearance: auto;
  width: auto;
  flex: none;
  padding: 4px 8px;
}

/* Lot and request forms: one centred column, captions and fields centred, no side picture (owner 2026-10-03). */
.formcol {
  max-width: 640px;
  margin: 0 auto;
}
.formcol .card,
.formcol .pickhint {
  margin-bottom: 12px;
  text-align: center;
}
.formcard {
  text-align: center;
}
.formcard label {
  display: block;
}
.formcard .row2,
.formcard .toolbar,
.formcard .chips {
  justify-content: center;
}
.formcard .combo,
.formcard #city,
.formcard #exactColor,
.formcard textarea {
  margin-inline: auto;
}
.formcard .err,
.formcard .formerr {
  text-align: center;
}
.formcol .pickhint {
  width: fit-content;
  margin-inline: auto;
}

/* Same look as the "Show password" checkbox above it: left aligned, regular weight, same box size. */
.rememberrow {
  display: flex;
  align-items: flex-start;
  font-weight: 400;
  margin: 10px 0;
  cursor: pointer;
}

/* Admin user list: block button (black text, red frame); a blocked user shows red text and a red frame. */
.blockbtn {
  background: #fff;
  color: #111;
  border: 2px solid #d62828;
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.blockbtn.on,
.blockedtext {
  color: #d62828;
}
.blockbtn[disabled] {
  opacity: 0.6;
}

/* Analytics drill-down: clickable country, city and person. */
.rowlink {
  background: none;
  border: 0;
  padding: 4px 0;
  font: inherit;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
}

/* Admin cabinet button in the public menu: yellow background so that it stands out. */
/* "Registration": its own colour (green, not the blue of Lots or the orange of Requests), heavier and larger text, glow (owner 2026-10-14). */
.pill.regpill,
.top .pill.regpill {
  background: #17803d;
  border-color: #17803d;
  color: #fff;
  font-weight: 800;
  font-size: 1.05em;
  letter-spacing: 0.01em;
  box-shadow:
    0 0 0 3px rgba(23, 128, 61, 0.25),
    0 0 14px rgba(23, 128, 61, 0.55);
}
.pill.adminpill {
  background: #ffd84a;
  border-color: #e0b400;
  color: #111;
  font-weight: 700;
}

/* Owner 2026-11-08: Reset left, the chosen product's picture in the middle, «Only LWG» right. */
.filter-tools {
  display: grid;
  /* Two equal halves around a middle strip for the picture: the button and the LWG box never reach it. */
  grid-template-columns: minmax(0, 1fr) 136px minmax(0, 1fr);
  gap: 8px;
  position: relative;
}
/* Owner 2026-11-08: the product picture stands in the middle of the filter card (on the phone, under the line between
   «Вид сырья» and «Двоение») and halfway between the fields above and the bottom of the card. The space under this
   row is 21px larger than the space above it, hence the extra 10.5px down. */
.filter-tools .filter-pic {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-50% + 10.5px));
}
.filter-tools .filter-side {
  display: flex;
}
.filter-tools .filter-side.right {
  grid-column: 3;
}
.filter-tools .filter-side.right {
  justify-content: flex-end;
}
.filter-tools .filter-pic .pic {
  width: 120px;
  height: auto;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
.filter-tools .filter-pic img {
  display: block;
  width: 120px;
  height: auto;
}
@media (max-width: 719px) {
  .filter-tools .filter-pic .pic,
  .filter-tools .filter-pic img {
    width: 56px;
  }
  .filter-tools {
    grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
    gap: 4px;
  }
  .filter-tools .filter-side .btn {
    padding: 8px 10px;
    font-size: 0.9rem;
    white-space: normal;
  }
  .filter-tools .filter-lwg .check {
    font-size: 0.85rem;
    text-align: center;
    white-space: nowrap;
  }
}
@media (max-width: 380px) {
  .filter-tools .filter-lwg .check {
    white-space: normal;
  }
  .filter-tools .filter-side .btn {
    padding: 8px 6px;
    font-size: 0.82rem;
  }
}

/* Owner 2026-11-17: without the LWG logo the Reset row is lower; with a product picture the row keeps room for it,
   so the picture stands with equal space above and below on a computer. */
@media (min-width: 720px) {
  .filter-tools:has(.filter-pic) {
    min-height: 72px;
  }
}

/* Owner 2026-11-17: «Только с LWG» is easy to see: green bold words in a light green box with a green border. */
.filter-lwg .check {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 47px;
  padding: 6px 14px;
  border: 2px solid #17803d;
  border-radius: 12px;
  background: #eaf7ee;
  color: #17803d;
  font-weight: 800;
  cursor: pointer;
}
.filter-lwg .check input {
  accent-color: #17803d;
  width: 18px;
  height: 18px;
  margin: 0 8px 0 0;
}
.filter-lwg .check:has(input:checked) {
  background: #17803d;
  color: #fff;
}
b.lwg {
  font-weight: 800;
}
@media (max-width: 719px) {
  .filter-tools .filter-lwg .check {
    min-height: 41px;
    padding: 4px 10px;
  }
}
