/**
 * app3 — ศูนย์รวมรายงาน (hub แบบไทล์ · โทนน้ำเงินมาตรฐาน)
 */
.std-reports-page {
  background:
    radial-gradient(1100px 420px at 6% -8%, rgba(13, 110, 253, 0.12), transparent 55%),
    radial-gradient(900px 380px at 100% 0%, rgba(14, 165, 233, 0.08), transparent 50%),
    linear-gradient(180deg, #eef4ff 0%, #f8fafc 40%, #eef2f7 100%) !important;
}

.std-reports-page .std-page-title {
  font-family: "Sarabun", sans-serif !important;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 700;
  color: #0f172a !important;
  letter-spacing: -0.02em;
  margin: 1.1rem 0 1.2rem !important;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.std-reports-page .std-page-title i {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #3b82f6, #1d4ed8);
  color: #fff !important;
  font-size: 1rem;
  box-shadow: 0 10px 22px rgba(29, 78, 216, 0.28);
}

.std-period-card {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 1.15rem !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06) !important;
}

.std-reports-page .dash-card {
  border-radius: 1rem !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.rpt-sec {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 1.6rem 0 0.9rem;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}
.rpt-sec::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #cbd5e1, transparent);
}
.rpt-sec-ico {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #2563eb;
  font-size: 0.85rem;
}

.rpt-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}
@media (max-width: 991.98px) {
  .rpt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .rpt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
}

.rpt-tile {
  appearance: none;
  border: 1px solid transparent;
  background: #fff;
  border-radius: 1.1rem;
  padding: 1.05rem 0.8rem 0.95rem;
  min-height: 9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
  width: 100%;
  font-family: "Sarabun", sans-serif;
}
.rpt-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.11);
  border-color: var(--tone, #93c5fd);
}
.rpt-tile-ico {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
  background: var(--soft, #dbeafe);
  color: var(--tone, #2563eb);
}
.rpt-tile-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin: 0 0 0.4rem;
}
.rpt-tile-desc {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.35;
  margin: 0 0 0.55rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rpt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: center;
  margin-top: auto;
}
.rpt-tags span {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--soft, #eff6ff);
  color: var(--tone, #1d4ed8);
}

.rpt-tile.t-payslip { --tone: #2563eb; --soft: #dbeafe; }
.rpt-tile.t-internal { --tone: #059669; --soft: #d1fae5; }
.rpt-tile.t-bank { --tone: #0284c7; --soft: #e0f2fe; }
.rpt-tile.t-sso { --tone: #d97706; --soft: #fef3c7; }
.rpt-tile.t-fund { --tone: #16a34a; --soft: #dcfce7; }
.rpt-tile.t-tax { --tone: #e11d48; --soft: #ffe4e6; }
.rpt-tile.t-acct { --tone: #475569; --soft: #e2e8f0; }
.rpt-tile.t-year { --tone: #4f46e5; --soft: #e0e7ff; }
.rpt-tile.t-emp { --tone: #0891b2; --soft: #cffafe; }
.rpt-tile.t-perf { --tone: #be185d; --soft: #fce7f3; }

.rpt-tile.rpt-wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  text-align: left;
  min-height: 6.2rem;
  padding: 1rem 1.15rem;
  gap: 0.9rem;
}
.rpt-tile.rpt-wide .rpt-tile-ico { margin-bottom: 0; flex-shrink: 0; }
.rpt-tile.rpt-wide .rpt-tile-copy { flex: 1; min-width: 0; }
.rpt-tile.rpt-wide .rpt-tags { justify-content: flex-start; }
@media (max-width: 575.98px) {
  .rpt-tile.rpt-wide { grid-column: span 2; }
}
