/* Ana Sayfa */
.hm-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  gap: 22px;
  align-items: center;
  padding: 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, #138a4b 0%, #0e6b3a 100%);
  color: #fff;
  margin-bottom: 18px;
}
.hm-hello small { display: block; opacity: .8; font-size: 13px; font-weight: 700; }
.hm-hello h2 { margin: 6px 0 4px; font-size: 28px; }
.hm-hello p { margin: 0; opacity: .85; }
.hm-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.hm-actions button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  border: 0; border-radius: 14px; padding: 14px;
  background: rgba(255, 255, 255, .12); color: #fff; text-align: left;
  cursor: pointer; transition: background .15s ease, transform .15s ease;
}
.hm-actions button:hover { background: rgba(255, 255, 255, .22); transform: translateY(-1px); }
.hm-actions i {
  font-style: normal; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; background: #fff; color: var(--green);
  font-weight: 900; margin-bottom: 6px;
}
.hm-actions b { font-size: 15px; }
.hm-actions small { opacity: .8; font-size: 12px; line-height: 1.3; }

.hm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.hm-stat {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; min-width: 0;
}
.hm-stat small { display: block; color: var(--muted); font-weight: 700; font-size: 12px; margin-bottom: 6px; }
.hm-stat strong { display: block; font-size: 26px; }
.hm-stat strong em { font-style: normal; font-size: 14px; color: var(--muted); }
.hm-stat > span { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.hm-in strong { color: var(--green); }
.hm-out strong { color: var(--red); }
.hm-link { cursor: pointer; }
.hm-link:hover { border-color: var(--green); }
.hm-link > span { color: var(--green); font-weight: 700; }
.hm-fresh { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hm-fresh em { display: block; font-style: normal; font-size: 12px; color: var(--muted); }
.hm-fresh strong { font-size: 19px; }

.hm-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; }
.hm-card { padding: 4px 0 8px; }
.hm-card-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px 8px; }
.hm-card-head h3 { margin: 0; font-size: 16px; }
.hm-more { border: 0; background: none; color: var(--green); font-weight: 800; cursor: pointer; font-size: 13px; }
.hm-list { list-style: none; margin: 0; padding: 0 8px; }
.hm-list li { display: flex; align-items: center; gap: 12px; padding: 10px; border-bottom: 1px solid #f0f3f1; }
.hm-list li:last-child { border-bottom: 0; }
.hm-badge { flex: 0 0 auto; font-size: 10px; font-weight: 900; border-radius: 999px; padding: 4px 8px; }
.hm-badge.in { background: var(--green2); color: var(--green); }
.hm-badge.out { background: #fdecec; color: var(--red); }
.hm-li-main { flex: 1; min-width: 0; }
.hm-li-main b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-li-main small { color: var(--muted); font-size: 12px; }
.hm-list strong { font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hm-bars { list-style: none; margin: 0; padding: 4px 18px 8px; }
.hm-bars li { margin-bottom: 14px; }
.hm-bar-label { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 6px; }
.hm-bar-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-bar { height: 8px; border-radius: 4px; background: #eef2ef; overflow: hidden; }
.hm-bar i { display: block; height: 100%; border-radius: 4px; background: var(--red); }
.hm-empty { padding: 22px 18px; color: var(--muted); text-align: center; font-size: 14px; }

@media (max-width: 1150px) {
  .hm-hero { grid-template-columns: minmax(0, 1fr); }
  .hm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .hm-hero { padding: 18px; border-radius: 16px; }
  .hm-hello h2 { font-size: 23px; }
  .hm-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-grid { grid-template-columns: minmax(0, 1fr); }
  .hm-stat strong { font-size: 22px; }
}
@media (max-width: 420px) {
  .hm-stats { grid-template-columns: minmax(0, 1fr); }
}
.hm-actions button[hidden] { display: none; }
