/* ============ multi-module views (Dashboard/Orders/Products/Customers/Settings) — dark layout-3 ============ */
.pageview { padding: 16px 22px 44px; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; padding: 18px 20px; box-shadow: 0 1px 2px rgba(0,0,0,.25); color: var(--text-primary); }
.card.wide { max-width: 980px; margin-bottom: 14px; }
.card h3 { font-size: 15px; margin-bottom: 12px; color: var(--text-primary); font-weight: 800; }
.muted { color: var(--text-muted); font-size: 13px; }

.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; max-width: 1100px; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; max-width: 1100px; margin-bottom: 14px; }
.metric { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; }
.metric .mt { font-size: 12.5px; color: var(--text-muted); font-weight: 700; }
.metric .mv { font-size: 24px; font-weight: 900; margin: 4px 0 2px; color: var(--text-primary); }
.metric .mp { font-size: 11.5px; font-weight: 800; }
.mp.up { color: var(--green); } .mp.down { color: var(--red); }
#trendSvg { width: 100%; height: 160px; }

.otable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.otable th { text-align: left; color: var(--text-muted); font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.otable td { padding: 9px 10px; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.otable tr:hover td { background: var(--bg-card-hover); }
.otable .empty { color: var(--text-muted); }
.st-badge { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.st-paid { color: var(--green); background: rgba(34,197,94,.12); }
.st-open { color: #1d6fc4; background: rgba(59,130,246,.1); }
.st-fail { color: var(--red); background: rgba(239,68,68,.12); }

.tasks { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tasks li { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--text-secondary); }
.tasks em { font-style: normal; color: var(--text-muted); font-size: 12px; }
.tasks li:before { content: "*"; color: var(--accent); margin-right: 8px; }

.prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; max-width: 1200px; }
.pcard { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.pcard .pimg { position: relative; height: 110px; display: grid; place-items: center; font-size: 40px; background: var(--bg-secondary); overflow: hidden; }
.pcard .pimg::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 40%;
  background: linear-gradient(to top, var(--bg-card) 0%, transparent 100%);
  pointer-events: none; z-index: 1;
}
.pcard .pimg img { position: relative; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.pcard .pb2 { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--border); }
.pcard .pn { font-weight: 800; font-size: 13.5px; line-height: 1.25; color: var(--text-primary); }
.pcard .pd { font-size: 11.5px; color: var(--text-muted); }
.pcard .pp { font-weight: 900; font-size: 15px; color: var(--accent); }
.pcard .ptags { display: flex; gap: 4px; flex-wrap: wrap; }
.ptag { font-size: 10px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; color: var(--text-muted); font-weight: 700; }
#prodSearch { margin: 14px 22px 4px; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--border); outline: none; width: min(340px, calc(100% - 44px)); background: var(--bg-card); color: var(--text-primary); }
#prodSearch:focus { border-color: var(--accent); }
.setrow { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; }
.setrow span { color: var(--text-muted); }
.setrow b { color: var(--text-primary); }
