:root {
  --bg: #eef3f7;
  --surface: #ffffff;
  --surface-soft: #f7fafc;
  --line: #d9e3eb;
  --text: #102233;
  --muted: #6a7886;
  --blue: #1687d9;
  --blue-dark: #075a9b;
  --green: #12875d;
  --amber: #b76b00;
  --red: #c73535;
  --shadow: 0 16px 40px rgba(18, 41, 61, 0.08);
  font-family: "Inter", "Noto Sans Devanagari", "Nirmala UI", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

.reports-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  gap: 18px;
}

.reports-header,
.filter-band,
.preview-panel,
.report-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.reports-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-row img {
  width: 66px;
  height: 66px;
  object-fit: contain;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 27px;
}

.brand-row p,
.preview-heading p,
.report-card p,
label {
  color: var(--muted);
}

nav,
.preview-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

nav a,
button {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #ffffff;
  padding: 0 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.filter-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
}

input,
select {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  padding: 0 10px;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.report-card {
  min-height: 150px;
  padding: 14px;
  text-align: left;
  color: var(--text);
  cursor: pointer;
}

.report-card.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 135, 217, 0.14), var(--shadow);
}

.report-card strong {
  display: block;
  font-size: 16px;
  margin: 8px 0 6px;
}

.report-card span {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #e7f3ff;
  color: var(--blue-dark);
  font-weight: 900;
}

.preview-panel {
  padding: 16px;
}

.preview-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.preview-actions button {
  background: var(--surface-soft);
  color: var(--blue-dark);
  border: 1px solid var(--line);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 11px 9px;
  font-size: 13px;
}

th {
  background: #0d2234;
  color: #ffffff;
  font-size: 12px;
}

td:first-child {
  font-weight: 800;
}

@media (max-width: 1100px) {
  .report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-band {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .reports-shell {
    padding: 14px;
  }

  .reports-header,
  .preview-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-band,
  .report-grid {
    grid-template-columns: 1fr;
  }
}
