/**
 * app3.1 - reports hub styles (loaded from reports.html)
 */
.fnb-reports-page {
  background:
    radial-gradient(1200px 480px at 8% -10%, rgba(190, 24, 93, 0.14), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(14, 165, 233, 0.1), transparent 50%),
    linear-gradient(180deg, #fff1f2 0%, #f8fafc 38%, #eef2f7 100%) !important;
}

.fnb-reports-page .fnb-page-title {
  font-family: "Prompt", "Sarabun", sans-serif !important;
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  font-weight: 700;
  color: #0f172a !important;
  letter-spacing: -0.03em;
  margin: 1.25rem 0 1.35rem !important;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.fnb-reports-page .fnb-page-title i {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #DB2777, #9D174D);
  color: #fff !important;
  font-size: 1.05rem;
  box-shadow: 0 10px 22px rgba(190, 24, 93, 0.35);
}

.fnb-period-card {
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 1.25rem !important;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07) !important;
}

.fnb-reports-page .dash-card {
  border-radius: 1.1rem !important;
  border: none !important;
  color: #fff;
  padding: 1.1rem 1.2rem;
  position: relative;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.fnb-reports-page .dash-card.bg-success {
  background: linear-gradient(135deg, #10b981, #047857) !important;
}
.fnb-reports-page .dash-card.bg-danger {
  background: linear-gradient(135deg, #fb7185, #be123c) !important;
}
.fnb-reports-page .dash-card.bg-primary {
  background: linear-gradient(135deg, #F472B6, #BE185D) !important;
}
.fnb-reports-page .dash-card h3 {
  font-family: "Prompt", "Sarabun", sans-serif !important;
  font-weight: 700;
  margin: 0.4rem 0 0;
  font-size: 1.5rem;
}
.fnb-reports-page .dash-icon {
  position: absolute;
  right: 0.9rem;
  top: 0.7rem;
  font-size: 2.4rem;
  opacity: 0.2;
}

.rpt-sec {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 1.85rem 0 1rem;
  font-family: "Prompt", "Sarabun", sans-serif !important;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}
.rpt-sec::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #cbd5e1, transparent);
}
.rpt-sec-ico {
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #BE185D;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

/* --- Icon-first tile grid --- */
.rpt-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

@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.75rem; }
}

.rpt-tile {
  appearance: none;
  border: 1px solid transparent;
  background: #fff;
  border-radius: 1.2rem;
  padding: 1.15rem 0.85rem 1rem;
  min-height: 9.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s ease,
    border-color 0.22s ease;
  position: relative;
  overflow: hidden;
  width: 100%;
  font-family: "Sarabun", sans-serif;
}

.rpt-tile::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 70%;
  background: radial-gradient(circle at 50% 0%, var(--glow, rgba(190, 24, 93, 0.12)), transparent 70%);
  pointer-events: none;
}

.rpt-tile:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  border-color: var(--tone, #fda4af);
}

.rpt-tile:active {
  transform: translateY(-2px);
}

.rpt-tile-ico {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 0.75rem;
  background: var(--soft, #fff1f2);
  color: var(--tone, #BE185D);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  transition: transform 0.22s ease;
  position: relative;
  z-index: 1;
}

.rpt-tile:hover .rpt-tile-ico {
  transform: scale(1.08) rotate(-3deg);
}

.rpt-tile-title {
  font-family: "Prompt", "Sarabun", sans-serif !important;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin: 0 0 0.45rem;
  position: relative;
  z-index: 1;
  letter-spacing: -0.02em;
}

.rpt-tile-desc {
  display: none;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.35;
  margin: 0 0 0.5rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .rpt-tile-desc { display: block; }
}

.rpt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: center;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.rpt-tags span {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: var(--soft, #f1f5f9);
  color: var(--tone, #475569);
}

/* tones */
.rpt-tile.t-payslip { --tone: #2563eb; --soft: #dbeafe; --glow: rgba(37, 99, 235, 0.16); }
.rpt-tile.t-internal { --tone: #059669; --soft: #d1fae5; --glow: rgba(5, 150, 105, 0.16); }
.rpt-tile.t-clean { --tone: #0f766e; --soft: #ccfbf1; --glow: rgba(15, 118, 110, 0.16); }
.rpt-tile.t-bank { --tone: #0284c7; --soft: #e0f2fe; --glow: rgba(2, 132, 199, 0.16); }
.rpt-tile.t-sso { --tone: #d97706; --soft: #fef3c7; --glow: rgba(217, 119, 6, 0.16); }
.rpt-tile.t-fund { --tone: #16a34a; --soft: #dcfce7; --glow: rgba(22, 163, 74, 0.16); }
.rpt-tile.t-tax { --tone: #e11d48; --soft: #ffe4e6; --glow: rgba(225, 29, 72, 0.14); }
.rpt-tile.t-acct { --tone: #475569; --soft: #e2e8f0; --glow: rgba(71, 85, 105, 0.14); }
.rpt-tile.t-year { --tone: #BE185D; --soft: #ffe4e6; --glow: rgba(190, 24, 93, 0.16); }
.rpt-tile.t-emp { --tone: #0891b2; --soft: #cffafe; --glow: rgba(8, 145, 178, 0.16); }

/* featured wider tiles (optional) */
.rpt-tile.rpt-wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  text-align: left;
  min-height: 6.5rem;
  padding: 1.1rem 1.25rem;
  gap: 1rem;
}
.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-tile-desc { display: block; }
.rpt-tile.rpt-wide .rpt-tags { justify-content: flex-start; }

@media (max-width: 575.98px) {
  .rpt-tile.rpt-wide { grid-column: span 2; }
  .rpt-tile {
    min-height: 8.2rem;
    padding: 1rem 0.65rem 0.85rem;
  }
  .rpt-tile-ico {
    width: 3.1rem;
    height: 3.1rem;
    font-size: 1.25rem;
  }
  .rpt-tile-title { font-size: 0.82rem; }
}

#bankFormatModal .d-grid .btn,
#yearModal .d-grid .btn {
  text-align: left;
  padding: 0.85rem 1.1rem;
  border-radius: 0.85rem !important;
  font-weight: 600;
}

#bankFormatModal .modal-header,
#individualModal .modal-header,
#kt20Modal .modal-header,
#pvdFundModal .modal-header,
#newHireResignModal .modal-header,
#previewModal .modal-header {
  background: linear-gradient(90deg, #9D174D 0%, #BE185D 55%, #DB2777 100%) !important;
  color: #fff !important;
  border-bottom: none;
}

