/* Staff audit sheet: keeps the management H5's warm, compact mobile visual language. */
.web-sheet .audit-intro {
  display: block;
  margin: -4px 0 12px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 18px;
}
.web-sheet .audit-filters {
  margin: 0 0 12px;
  padding: 11px;
  border: 1px solid #f1e8df;
  border-radius: 12px;
  background: #fffaf7;
}
.web-sheet .audit-filter-row {
  display: flex;
  gap: 8px;
  margin: 0 0 8px;
}
.web-sheet .audit-filter-label,
.web-sheet .audit-date-field {
  display: block;
  color: #65736e;
  font-size: 11px;
  line-height: 18px;
}
.web-sheet .audit-filter-label { margin-bottom: 5px; }
.web-sheet .audit-date-field { flex: 1; min-width: 0; }
.web-sheet .audit-date-field .form-input { margin-top: 5px; }
.web-sheet .audit-filter-row:last-child { margin-bottom: 0; }
.web-sheet .audit-filter-row .form-input { min-width: 0; margin: 0; }
.web-sheet .audit-filter-row .audit-date { flex: 1; }
.web-sheet .audit-filter-actions {
  display: flex;
  gap: 8px;
}
.web-sheet .audit-filter-actions button {
  flex: 1;
  min-width: 0;
  height: 38px;
  margin: 0;
  border-radius: 9px;
  font-size: 12px;
}
.web-sheet .audit-filter-actions .audit-search {
  color: #fff;
  background: var(--brand);
  font-weight: 700;
}
.web-sheet .audit-filter-actions .audit-reset {
  color: var(--brand);
  background: var(--brand-soft);
}
.web-sheet .audit-filter-error {
  margin: 8px 0 0;
  color: #b33f31;
  font-size: 11px;
  line-height: 18px;
}
.web-sheet .audit-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 2px 8px;
  color: var(--text-muted);
  font-size: 11px;
}
.web-sheet .audit-summary strong { color: var(--brand); font-weight: 700; }
.web-sheet .audit-list { margin: 0; }
.web-sheet .audit-item {
  margin: 8px 0;
  padding: 12px;
  border: 1px solid #f2ece5;
  border-radius: 12px;
  background: #fff;
}
.web-sheet .audit-item:first-child { margin-top: 0; }
.web-sheet .audit-item-head {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.web-sheet .audit-item-badge {
  flex: 0 0 auto;
  min-width: 26px;
  height: 26px;
  border-radius: 8px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 13px;
  line-height: 26px;
  text-align: center;
}
.web-sheet .audit-item-main { flex: 1; min-width: 0; }
.web-sheet .audit-item-title {
  display: block;
  color: #20332e;
  font-size: 13px;
  font-weight: 700;
  line-height: 19px;
  overflow-wrap: anywhere;
}
.web-sheet .audit-item-meta {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 17px;
  overflow-wrap: anywhere;
}
.web-sheet .audit-item-toggle {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 4px 0 4px 8px;
  color: var(--brand);
  background: transparent;
  font-size: 11px;
  line-height: 24px;
}
.web-sheet .audit-item-detail {
  margin: 10px 0 0 35px;
  padding: 9px 10px;
  border-radius: 8px;
  color: #65736e;
  background: #faf7f3;
  font-size: 12px;
  line-height: 19px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.web-sheet .audit-empty {
  padding: 26px 10px;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
}
.web-sheet .audit-pager {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.web-sheet .audit-pager .audit-page-button {
  flex: 1;
  min-width: 0;
  height: 38px;
  margin: 0;
  border-radius: 9px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 12px;
}
.web-sheet .audit-pager .audit-page-button[disabled] {
  color: #bdb8b2;
  background: #f0ece7;
}
.web-sheet .audit-page-label {
  flex: 0 0 auto;
  min-width: 60px;
  color: var(--text-muted);
  font-size: 11px;
  text-align: center;
}
.web-sheet .audit-close { margin-top: 10px; }
.client-home-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 12px 15px;
  color: #20332e;
  text-decoration: none;
  font-size: 13px;
}
.client-home-link:focus-visible,
.web-sheet .audit-item-toggle:focus-visible,
.web-sheet .audit-filter-actions button:focus-visible,
.web-sheet .audit-page-button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.web-login .login-help a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 6px 12px;
  border-radius: 9px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-weight: 600;
  text-decoration: none;
}
@media (max-width: 350px) {
  .web-sheet .audit-filter-row { display: block; }
  .web-sheet .audit-filter-row .form-input { width: 100%; margin-bottom: 8px; }
  .web-sheet .audit-filter-row .form-input:last-child { margin-bottom: 0; }
  .web-sheet .audit-date-field + .audit-date-field { margin-top: 8px; }
}
