/* The Tofu House newborn checklist — styles apply only to this plugin's tables. */
.tofu-newborn-table-wrap {
  --tofu-ink: #24352f;
  --tofu-subtle: #5a6d66;
  --tofu-line: #dce5df;
  --tofu-header: #eef4ef;
  --tofu-row: #f9fbf9;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 1.15rem 0 2.15rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--tofu-line);
  border-radius: 12px;
  background: #fff;
}
.tofu-newborn-table-wrap:focus-visible { outline: 3px solid #529678; outline-offset: 3px; }
.tofu-newborn-table-wrap .tofu-newborn-table {
  box-sizing: border-box;
  margin: 0 !important;
  width: 100% !important;
  min-width: 760px;
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  table-layout: fixed;
  font-size: 0.91rem;
  line-height: 1.5;
  color: var(--tofu-ink);
  background: #fff;
}
.tofu-newborn-table .tofu-col-item { width: 19%; }
.tofu-newborn-table .tofu-col-brand { width: 18%; }
.tofu-newborn-table .tofu-col-quantity { width: 15%; }
.tofu-newborn-table .tofu-col-priority { width: 13%; }
.tofu-newborn-table .tofu-col-take { width: 35%; }
.tofu-newborn-table-wrap .tofu-newborn-table thead th {
  padding: 13px 14px !important;
  border: 0 !important;
  border-bottom: 2px solid var(--tofu-line) !important;
  background: var(--tofu-header) !important;
  color: var(--tofu-ink) !important;
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.45;
  text-align: left;
  vertical-align: top;
}
.tofu-newborn-table-wrap .tofu-newborn-table tbody td,
.tofu-newborn-table-wrap .tofu-newborn-table tbody th {
  padding: 13px 14px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--tofu-line) !important;
  background: #fff !important;
  color: var(--tofu-ink) !important;
  vertical-align: top;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.tofu-newborn-table-wrap .tofu-newborn-table tbody th { font-weight: 700; }
.tofu-newborn-table-wrap .tofu-newborn-table tbody tr:nth-child(even) > * { background: var(--tofu-row) !important; }
.tofu-newborn-table-wrap .tofu-newborn-table tbody tr:last-child > * { border-bottom: 0 !important; }
.tofu-newborn-table-wrap .tofu-newborn-empty { color: #879690; }
.tofu-newborn-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.tofu-newborn-group { margin: 1.75rem 0 2.5rem; }
@media (max-width: 680px) {
  .tofu-newborn-table-wrap { overflow: visible; border: 0; border-radius: 0; background: transparent; }
  .tofu-newborn-table-wrap .tofu-newborn-table,
  .tofu-newborn-table-wrap .tofu-newborn-table tbody,
  .tofu-newborn-table-wrap .tofu-newborn-table tr,
  .tofu-newborn-table-wrap .tofu-newborn-table tbody td,
  .tofu-newborn-table-wrap .tofu-newborn-table tbody th { display: block; min-width: 0; width: 100%; box-sizing: border-box; }
  .tofu-newborn-table-wrap .tofu-newborn-table { background: transparent !important; }
  .tofu-newborn-table-wrap .tofu-newborn-table colgroup { display: none; }
  /* The header remains in accessible HTML but is visually clipped. */
  .tofu-newborn-table-wrap .tofu-newborn-table thead {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }
  .tofu-newborn-table-wrap .tofu-newborn-table tbody tr {
    margin: 0 0 13px;
    border: 1px solid var(--tofu-line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
  }
  .tofu-newborn-table-wrap .tofu-newborn-table tbody tr:nth-child(even) > * { background: #fff !important; }
  .tofu-newborn-table-wrap .tofu-newborn-table tbody th.tofu-newborn-item {
    padding: 14px 16px !important;
    background: var(--tofu-header) !important;
    border-bottom: 1px solid var(--tofu-line) !important;
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.4;
  }
  .tofu-newborn-table-wrap .tofu-newborn-table tbody td {
    display: grid;
    grid-template-columns: minmax(105px, 36%) minmax(0,1fr);
    column-gap: 11px;
    padding: 10px 16px !important;
    line-height: 1.5;
    border-bottom: 1px solid #edf1ee !important;
    font-size: 0.93rem;
  }
  .tofu-newborn-table-wrap .tofu-newborn-table tbody td::before {
    content: attr(data-label);
    display: block;
    color: var(--tofu-subtle);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.008em;
    line-height: 1.4;
  }
  .tofu-newborn-table-wrap .tofu-newborn-table tbody td[data-field="take"] {
    background: #fafcfb !important;
    padding-top: 12px !important;
    padding-bottom: 13px !important;
    border-bottom: 0 !important;
  }
  .tofu-newborn-table-wrap .tofu-newborn-table tbody tr > *:last-child { border-bottom: 0 !important; }
}
@media (max-width: 350px) {
  .tofu-newborn-table-wrap .tofu-newborn-table tbody td { display: block; }
  .tofu-newborn-table-wrap .tofu-newborn-table tbody td::before { margin-bottom: 4px; }
}
@media print {
  .tofu-newborn-table-wrap { overflow: visible; border: 1px solid #ddd; }
  .tofu-newborn-table-wrap .tofu-newborn-table { min-width: 0; font-size: 9pt; }
  .tofu-newborn-table-wrap .tofu-newborn-table tbody tr { break-inside: avoid; }
}
