/* アクセスログ点検 — page-specific styles. Builds on styles.css variables and
   reuses publish-check.css for the drop zone, pills and finding cards so the
   receipt looks like the other browser-only lane. */

.lc-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.55);
}
.lc-options label {
  display: grid;
  gap: 4px;
  font-size: 0.82rem;
}
.lc-options input {
  width: 7em;
  height: 38px;
  padding: 0 10px;
}
.lc-options select {
  height: 38px;
  padding: 0 8px;
}
.lc-options button {
  height: 38px;
  padding: 0 14px;
}
.lc-options .lc-opt-note {
  flex-basis: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.lc-receipt {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.lc-tile {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--panel);
}
.lc-tile-n {
  font-size: 1.6rem;
  font-weight: 850;
  line-height: 1.1;
}
.lc-tile-l {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}
.lc-tile-warn { border-color: var(--warn); }
.lc-tile-warn .lc-tile-n { color: var(--warn); }
.lc-tile-info { border-color: var(--unknown); }
.lc-tile-info .lc-tile-n { color: var(--unknown); }
.lc-tile-ok .lc-tile-n { color: var(--pass); }
/* Matching could not run at all: never green, never a number that reads as "0 hits". */
.lc-tile-unchecked { border-color: var(--fail); background: rgba(0, 0, 0, 0.03); }
.lc-tile-unchecked .lc-tile-n { color: var(--fail); font-size: 1.25rem; }
.lc-pill-unchecked { color: #fff; background: var(--fail); }
.lc-ioc-retry {
  margin: -6px 0 12px;
  height: 34px;
  padding: 0 12px;
}
.lc-ioc-failed { color: var(--fail); }
.lc-notices { margin-bottom: 4px; }

.lc-inline-disclaimer {
  margin-top: 12px;
}
.lc-inline-disclaimer strong { color: var(--fail); }

.lc-h3 {
  margin: 22px 0 8px;
  font-size: 1.05rem;
}

.lc-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.lc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  margin-top: 8px;
}
/* Grid items default to min-width:auto, which lets a wide table's min-content
   width climb up through .pc-finding -> .lc-panel -> .pc-results -> .workspace
   and push the whole page past the viewport on a phone. Break that chain so
   the table scrolls inside .lc-table-wrap instead. */
.pc-results,
.lc-panel,
.pc-finding,
.lc-grid2 > * {
  min-width: 0;
}
.lc-table th,
.lc-table td {
  border-bottom: 1px solid var(--line);
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.lc-table th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}
.lc-table td.lc-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.lc-grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.lc-unreadable code {
  font-size: 0.82em;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
  overflow-wrap: anywhere;
}
.lc-ok { color: var(--accent-ink); }

.lc-summary {
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.lc-formats {
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.lc-formats code {
  font-size: 0.86em;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
}

@media (max-width: 820px) {
  .lc-receipt {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* On a phone the tables scroll sideways inside .lc-table-wrap; cells must
     not fold a date or a format name into one character per line. */
  .lc-table th,
  .lc-table td {
    white-space: nowrap;
  }
  .lc-grid2 {
    grid-template-columns: 1fr;
  }
}
