
span {
  display: inline-block;
}

.inventory-table {
  width: 100%;
  table-layout: fixed;
}

/* Column widths */
.col-title   { width: 36%; }
.col-author  { width: 22%; }
.col-category{ width: 16%; }
.col-status  { width: 12%; }
.col-rating  { width: 14%; }

th {
	font-weight: var(--weight-semibold);
}

table th,
table td {
  padding: 18px 3px;   
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
	position: relative;
}

.inventory-table {
  min-width: 750px; 
  border-collapse: collapse;
}

@media (max-width: 768px) {
	.table-scroll::after {
	  content: "← swipe →";
	  position: sticky;
	  right: 10px;
	  bottom: 6px;
	  font-size: 0.75rem;
	  opacity: 0.6;
	  pointer-events: none;
	}
}
/* ========================================================================
   Table Row Status Coloring
   ======================================================================== */

tr.to-read {
  background-color: var(--accent-color-dteal);
}

tr.read {
  background-color: var(--accent-color-lteal);
}

tr.in-progress {
  background-color: var(--accent-color-ateal);
}

/* ========================================================================
   Status Pill Styling
   ======================================================================== */

.status {
  width: 95%;
  padding: 2px;
  border: 1px dotted black;
  border-radius: 10px;
	font-size: .8rem;
}

tr.to-read .status {
  background-image: linear-gradient(white, var(--accent-color-dteal));
}

tr.read .status {
  background-image: linear-gradient(white, var(--accent-color-lteal));
}

tr.in-progress .status {
  background-image: linear-gradient(white, var(--accent-color-ateal));
}

/* ========================================================================
   Rating Dots
   ======================================================================== */

.rate {
  height: 80%;
  width: 90%;
  padding: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Individual rating dots */
.rate > span {
  font-size: 1.4rem;
  color: white;
  line-height: 1;
}

/* star shape */
.rate > span::before {
  content: "★";
}

/* ========================================================================
   Rating Levels
   ======================================================================== */

.rate.three > span {
  color: var(--accent-color-gold);
}

.rate.two > span:nth-child(-n + 2),
.rate.one > span:first-child {
  color: var(--accent-color-gold);
}