:root {
  --accent: #487eb4;
  --accent-light: #e3f0e9;
  --border: #d0d7de;
  --header-bg: #f6f8fa;
  --sel: #fff3bf;
  --font-mono: "Courier New", Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  color: #1f2328;
  background: #fff;
}

.app-header {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
}
.app-header h1 { margin: 0; font-size: 22px; }
.app-header .subtitle { opacity: 0.85; font-size: 13px; }
.upload-box { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.upload-box input[type="file"] { background: #fff; color: #1f2328; border-radius: 4px; padding: 3px; font-size: 13px; width: 400px }

.btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
}
    .btn.primary {
        background: #c8c6c4;
        border-color: #151515;
        font-weight: normal;
    }
.btn:disabled { opacity: 0.5; cursor: default; }
.status { font-size: 13px; min-width: 120px; }

.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 6px 12px 0;
  border-bottom: 2px solid var(--accent);
  background: var(--header-bg);
}
.tab {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  background: #eaeef2;
  cursor: pointer;
  font-size: 14px;
}
.tab.active { background: var(--accent); color: #fff; font-weight: bold; }
.tab.unknown { font-style: italic; }

.content { padding: 14px 18px 40px; }
.placeholder { color: #57606a; padding: 40px; text-align: center; }

h2.section { margin: 18px 0 6px; font-size: 17px; color: var(--accent); }
.file-line { font-weight: bold; font-size: 15px; margin-bottom: 8px; }
.warnings { background: #fff8e1; border: 1px solid #f5c211; border-radius: 6px; padding: 8px 12px; margin: 8px 0; font-size: 13px; }

/* generic data tables */
table.grid {
  border-collapse: collapse;
  font-size: 13.5px;
  margin-bottom: 10px;
}
table.grid th, table.grid td {
  border: 1px solid var(--border);
  padding: 3px 9px;
  text-align: left;
  vertical-align: top;
}
table.grid th { background: var(--accent-light); font-weight: bold; white-space: nowrap; }
table.grid tr.header-row td { font-weight: bold; background: var(--header-bg); }
table.grid td.mono { font-family: var(--font-mono); font-size: 12.5px; }
table.grid td.num { text-align: right; }
table.grid tr.clickable { cursor: pointer; }
table.grid tr.clickable:hover { background: #f0f6ff; }
table.grid tr.selected { background: var(--sel) !important; outline: 2px solid #f08c00; }

.summary-columns { display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.summary-columns > div { min-width: 330px; }
.kv-table td:first-child { font-weight: 600; white-space: nowrap; }
.kv-table td.unit { color: #57606a; font-size: 12px; }

.pass { color: #1a7f37; font-weight: bold; }
.fail { color: #cf222e; font-weight: bold; }

.chart-panel {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  margin: 8px 0 16px;
  max-width: 1100px;
  height: 460px;
}
.chart-toolbar { position: absolute; top: 8px; right: 12px; z-index: 5; display: flex; gap: 6px; }
.chart-toolbar .btn { font-size: 12px; padding: 3px 10px; }
.chart-hint { font-size: 12px; color: #57606a; margin: 2px 0 10px; }

.notes { font-size: 13px; color: #57606a; }
.load-more { margin: 6px 0 14px; }

.defs-block h3 { margin: 16px 0 4px; color: var(--accent); }
.defs-select { margin: 8px 0; padding: 5px; font-size: 14px; }
