.hidden { display: none !important; }

body.logged-out #wrapper {
  display: none !important;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f8f9fc 0%, #eaecf4 100%);
  padding: 1rem;
}

.login-card {
  width: 100%;
  max-width: 420px;
  border-radius: 0.6rem;
}

.summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
}

.summary .card {
  border-left: 0.25rem solid #4e73df;
  border-radius: 0.35rem;
  padding: 0.85rem 1rem;
  min-height: 84px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 0.15rem 0.45rem rgba(58, 59, 69, 0.08);
}

.summary .label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #858796;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.summary .value {
  font-size: 1.5rem;
  color: #3a3b45;
  font-weight: 800;
  line-height: 1;
}

#resultRaw, #rowDetail {
  background: #f8f9fc;
  border: 1px solid #e3e6f0;
  border-radius: 0.35rem;
  padding: 1rem;
  max-height: 420px;
  overflow: auto;
  white-space: pre-wrap;
}

.modal.show {
  display: block;
  background: rgba(0, 0, 0, 0.45);
}

#rowDetailPretty .mini-card {
  border: 1px solid #e3e6f0;
  border-radius: 0.35rem;
  background: #fff;
  padding: 0.65rem 0.75rem;
}

#rowDetailPretty .mini-label {
  color: #858796;
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

#rowDetailPretty .mini-value {
  font-size: 0.82rem;
  font-weight: 600;
  color: #3a3b45;
  word-break: break-word;
}

.chart {
  display: grid;
  gap: 0.5rem;
}

.chart-row {
  display: grid;
  grid-template-columns: 110px 1fr 90px;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.chart-bar-wrap {
  height: 12px;
  border-radius: 999px;
  background: #eaecf4;
  overflow: hidden;
}

.chart-bar {
  height: 100%;
  background: linear-gradient(90deg, #36b9cc, #1cc88a);
}

#tabNav .btn {
  border-radius: 0.35rem;
  justify-content: flex-start;
  font-size: 0.8rem;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

#tabNav .btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
}

body {
  font-size: 0.88rem;
}

.table {
  font-size: 0.78rem;
}

.table th,
.table td {
  padding: 0.42rem 0.5rem;
  white-space: nowrap;
}

#resultTable thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8f9fc;
}

#resultTable thead th:first-child,
#resultTable tbody td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fff;
}

.form-control,
.btn,
.form-check-label {
  font-size: 0.78rem;
}

.include-pii-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 31px;
}

#includePii {
  margin: 0;
  width: 14px;
  height: 14px;
  accent-color: #4e73df;
  position: static;
}

label[for="includePii"] {
  margin: 0;
  line-height: 1;
  font-size: 0.78rem;
  color: #5a5c69;
}

.card-header h6 {
  font-size: 0.88rem;
}

.toast-msg {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  background: #1cc88a;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.2);
}

.toast-msg.error {
  background: #e74a3b;
}
