body{
    background: #edf3ff;
    font-family: "Inter", "Segoe UI", sans-serif;
    line-height: 1.45;
    text-rendering: optimizeLegibility;
}
body > div > div{
    display: flex;
    gap: 12px;
}
#controls button{
    background: white;
    border-color: #b9ceeb;
    box-shadow: 0 4px 14px rgba(0, 31, 91, 0.08);  
}
button{
  background: #ffffff;
  border: 1px solid ;
  border-radius: 10px;
  cursor: pointer;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 600;
  min-height: 36px;
  padding: 0 14px;
  transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;  
}

.dashboard-header {
    background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
    border: 1px solid #d8e1ee;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0, 31, 91, 0.06);
    display: grid;
    gap: 16px;
    padding: 24px;
}
body.authed .unauthed{
  display:none;
}

body.unauthed .authed{
  display:none;
}

.summary-table{
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid #d8e1ee;
  border-radius: 8px;
  overflow: hidden;
}
.summary-table th, .summary-table td{
  padding: 6px 12px;
  border-bottom: 1px solid #eef2f8;
  text-align: left;
}
.summary-table th{
  background: #f5f9ff;
}
.summary-table .amount{
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.note{
  color: #6a7787;
  font-size: 13px;
}

.period-bar{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.period-btn{
  font-size: 12px;
  font-weight: 500;
  min-height: 28px;
  padding: 0 10px;
  border-color: #c8d9ef;
  color: #4a6080;
}
.period-btn--active{
  background: #1a56a0;
  border-color: #1a56a0;
  color: #fff;
}
.period-sep{
  color: #c8d9ef;
  align-self: center;
  padding: 0 2px;
}
.period-input{
  border: 1px solid #c8d9ef;
  border-radius: 8px;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 12px;
  padding: 4px 8px;
  height: 28px;
  color: #4a6080;
}

#loading-lines{
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.loading{
  display: flex;
  align-items: center;
  gap: 10px;
  color: #4a6080;
  font-size: 14px;
  margin: 0;
}
.spinner{
  width: 16px;
  height: 16px;
  border: 2px solid #c8d9ef;
  border-top-color: #1a56a0;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin{
  to { transform: rotate(360deg); }
}

