/* pz-status noticeboard: shared rules extracted from Main/Server/Records/Supplies/Admin.dc.html */

body {
  margin: 0;
  background: #5a4634;
  font-family: 'Special Elite', 'Courier New', monospace;
  color: #2b2419;
  font-size: 14px;
  line-height: 1.45;
}

body.admin { background: #3f3a34; }

a { color: #8a2f1f; }
a:hover { color: #5e1f13; }

.board {
  box-sizing: border-box;
  padding: 40px 48px;
  background-image: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.06) 0 2px, transparent 2px 38px);
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-height: 100vh;
}

body.admin .board {
  background-image: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0 2px, transparent 2px 38px);
}

.header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.card {
  background: #f3ead6;
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.35);
  padding: 18px 20px;
  position: relative;
}

.pin {
  position: absolute;
  top: -9px;
  left: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #b8322a;
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.3);
}

.pin.blue { background: #3a6b8a; }
.pin.green { background: #4a7a3a; }
.pin.dim { background: #8a7f6c; }

.hand {
  font-family: 'Caveat', 'Segoe Script', cursive;
}

.row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed #b9ab8d;
  padding: 4px 0;
  gap: 8px;
}

.row:last-child { border-bottom: 0; }

.h {
  font-size: 18px;
  margin-bottom: 8px;
  border-bottom: 2px solid #2b2419;
  padding-bottom: 4px;
}

.nav {
  display: flex;
  gap: 28px;
  font-size: 16px;
  padding-bottom: 10px;
  flex-wrap: wrap;
}

.nav a {
  color: #f3ead6;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.nav a.on { border-bottom-color: #f3ead6; }

.stamp {
  display: inline-block;
  border: 3px double #4a7a3a;
  color: #4a7a3a;
  padding: 2px 10px;
  font-size: 16px;
  letter-spacing: 2px;
  transform: rotate(-6deg);
}

.stamp.off { border-color: #8a7f6c; color: #8a7f6c; }
.stamp.staff { border-color: #b8322a; color: #b8322a; }

.tape {
  position: absolute;
  top: -10px;
  width: 70px;
  height: 20px;
  background: rgba(100%, 96%, 78%, 0.6); /* cream tape colour, written as percentages so it doesn't read as an x, y coordinate pair */
  transform: rotate(-3deg);
}

table { border-collapse: collapse; width: 100%; }

th {
  text-align: left;
  font-weight: 400;
  color: #6a5a45;
  padding: 4px 6px;
  border-bottom: 2px solid #2b2419;
  font-size: 12px;
}

td { padding: 5px 6px; border-bottom: 1px dashed #b9ab8d; }
td.n { text-align: right; }

.hm {
  display: grid;
  grid-template-columns: 48px repeat(24, minmax(0, 1fr));
  gap: 2px;
}

.hm div { height: 16px; }
.hm .lab { color: #6a5a45; font-size: 12px; line-height: 16px; }

.mod {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed #b9ab8d;
  align-items: flex-start;
}

.mod:last-child { border-bottom: 0; }

/* a mod whose Workshop version is newer than the copy the server loaded */
.mod.pending {
  background: #e7d9b8;
  margin: 0 -8px;
  padding: 8px;
}

.thumb {
  width: 56px;
  height: 56px;
  background: #d9c39a;
  flex-shrink: 0;
  border: 1px solid #b9ab8d;
  object-fit: cover;
  display: block;
}

.tag {
  display: inline-block;
  border: 1px solid #6a5a45;
  color: #6a5a45;
  font-size: 11px;
  padding: 0 6px;
  margin-right: 4px;
}

.mono {
  font-size: 12px;
  color: #6a5a45;
  white-space: pre-wrap;
}

.bar { height: 10px; background: #d9c39a; position: relative; }
.bar span { position: absolute; left: 0; top: 0; bottom: 0; background: #8a6f4d; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; align-items: start; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; align-items: start; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; align-items: start; }
.grid-records { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: start; }
.grid-supplies { display: grid; grid-template-columns: 1fr 1fr 0.7fr; gap: 36px; align-items: start; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }

.footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.footer .hand { color: #f3ead6; font-size: 22px; opacity: 0.85; }

.weekbar { display: flex; gap: 4px; align-items: flex-end; height: 56px; margin-top: 6px; }
.weekbar div { flex-grow: 1; background: #8a6f4d; }
.weekbar div.peak { background: #8a2f1f; }
.weeklabels { display: flex; justify-content: space-between; color: #6a5a45; font-size: 12px; }

.stack { display: flex; flex-direction: column; gap: 36px; }

.details-form { margin-top: 10px; }
.details-form summary { cursor: pointer; color: #8a2f1f; }
.details-form label { display: block; margin-top: 6px; font-size: 12px; color: #6a5a45; }
.details-form input {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 14px;
  padding: 4px 6px;
  border: 1px solid #b9ab8d;
  background: #fffaf0;
}
.details-form button {
  margin-top: 10px;
  font-family: inherit;
  font-size: 14px;
  padding: 4px 14px;
  background: #2b2419;
  color: #f3ead6;
  border: 0;
  cursor: pointer;
}
.request-msg { margin-top: 8px; font-size: 13px; }
.request-msg.err { color: #8a2f1f; }
.request-msg.ok { color: #4a7a3a; }

@media (max-width: 720px) {
  .board { padding: 20px 18px; gap: 20px; }
  .header { flex-direction: column; align-items: flex-start; }
  .nav { flex-wrap: wrap; gap: 16px; }
  .grid-3, .grid-2, .grid-4, .grid-records, .grid-supplies {
    grid-template-columns: 1fr;
  }
  .span-2, .span-3 { grid-column: span 1; }
  .stack { gap: 20px; }
}
