  /* KPI Cards — uses page-kpi-* classes from base.css */

  /* ---- Table styling (table-wrap base from design-system.css) ---- */

  .asset-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
  }

  .asset-table th {
    background: #f0f4fb;
    font-weight: 600;
    color: #0d47a1;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 0.6rem 0.75rem;
    border-bottom: 2px solid #e3ecfa;
    text-align: left;
    white-space: nowrap;
  }

  .asset-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid #e8edf5;
    vertical-align: middle;
  }

  .asset-table tr:last-child td { border-bottom: none; }

  .asset-table .asset-row {
    cursor: pointer;
    transition: background 0.12s;
  }

  .asset-table .asset-row:hover td { background: #f0f4fb; }

  /* Pencil row styling */
  .asset-row.pencil-row td {
    background: #f9f9f9;
    border-left: none;
  }
  .asset-row.pencil-row {
    border-left: 3px dashed #bbb;
    opacity: 0.85;
  }
  .asset-row.pencil-row:hover td { background: #f3f3f3; }

  /* Progress bar */
  .progress-wrap {
    width: 100%;
    min-width: 80px;
    height: 8px;
    background: #e8edf5;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
  }

  .progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
  }

  .progress-fill.real {
    background: linear-gradient(90deg, #1565c0, #42a5f5);
  }

  .progress-fill.pencil {
    background: repeating-linear-gradient(
      45deg,
      #ccc,
      #ccc 4px,
      #e0e0e0 4px,
      #e0e0e0 8px
    );
  }

  .progress-pct {
    font-size: 0.72rem;
    color: #888;
    margin-top: 2px;
  }

  /* Badges (base .badge from design-system.css) */
  .badge-pencil  { background: #f5f5f5; color: #888; }
  .badge-booked  { background: #e8f5e9; color: #2e7d32; }
  .badge-planned { background: #f5f5f5; color: #888; }

  /* Icons inline */
  .icon-inline {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    margin-right: 3px;
  }

  /* ---- Detail row (accordion) ---- */
  .detail-row { display: none; }
  .detail-row.open { display: table-row; }

  .detail-row td {
    padding: 0;
    background: #fafbfe;
  }

  .detail-inner {
    padding: 1rem 1.5rem;
    border-left: 3px solid #1565c0;
    margin: 0.5rem 0.75rem;
    border-radius: 0 6px 6px 0;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
  }

  .detail-inner.pencil-detail {
    border-left-color: #bbb;
  }

  .detail-inner h3 {
    font-size: 0.92rem;
    font-weight: 600;
    color: #0d47a1;
    margin-bottom: 0.75rem;
  }

  .entries-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
  }

  .entries-table th {
    background: #f0f4fb;
    font-weight: 600;
    color: #0d47a1;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 0.45rem 0.6rem;
    border-bottom: 1px solid #e3ecfa;
    text-align: left;
  }

  .entries-table td {
    padding: 0.4rem 0.6rem;
    border-bottom: 1px solid #f0f2f5;
  }

  .entries-table tr:last-child td { border-bottom: none; }

  /* ---- Monthly chart ---- */
  .chart-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 1.5rem;
    width: 100%;
    max-width: 960px;
    margin-bottom: 1.5rem;
  }

  .chart-card h2 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #0d47a1;
    border-bottom: 2px solid #e3ecfa;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
  }

  .chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    height: 220px;
    padding-top: 1rem;
  }

  .bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
  }

  .bar-amount {
    font-size: 0.68rem;
    color: #0d47a1;
    font-weight: 600;
    margin-bottom: 0.2rem;
    white-space: nowrap;
  }

  .bar-stack {
    width: 100%;
    max-width: 55px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
  }

  .bar-real {
    background: linear-gradient(180deg, #1565c0, #0d47a1);
    border-radius: 4px 4px 0 0;
    min-height: 0;
    transition: height 0.5s ease;
  }

  .bar-planned {
    background: repeating-linear-gradient(
      45deg,
      #b0bec5,
      #b0bec5 3px,
      #cfd8dc 3px,
      #cfd8dc 6px
    );
    min-height: 0;
    transition: height 0.5s ease;
  }

  .bar-planned:first-child { border-radius: 4px 4px 0 0; }

  .bar-label {
    font-size: 0.72rem;
    color: #555;
    margin-top: 0.4rem;
    text-align: center;
  }

  .chart-legend {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.75rem;
    font-size: 0.78rem;
    color: #555;
  }

  .legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }

  .legend-swatch {
    width: 14px;
    height: 10px;
    border-radius: 2px;
  }

  .legend-swatch.real { background: linear-gradient(90deg, #1565c0, #0d47a1); }
  .legend-swatch.planned {
    background: repeating-linear-gradient(
      45deg,
      #b0bec5,
      #b0bec5 2px,
      #cfd8dc 2px,
      #cfd8dc 4px
    );
  }

  /* ---- Summary footer ---- */
  .summary-footer {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 1.5rem 2rem;
    width: 100%;
    max-width: 960px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
  }

  .summary-footer h2 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #0d47a1;
    border-bottom: 2px solid #e3ecfa;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
  }

  .summary-line {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    border-bottom: 1px solid #f0f2f5;
  }

  .summary-line:last-child { border-bottom: none; }

  .summary-line .sum-label { color: #555; font-weight: 500; }
  .summary-line .sum-value { font-weight: 600; color: #1a1a2e; }
  .summary-line .sum-note { font-size: 0.8rem; color: #888; margin-left: 0.5rem; }

  /* empty-state: base from design-system.css */

  .text-right { text-align: right; }
  .text-center { text-align: center; }

  /* ---- Loading ---- */
  .loading-msg {
    text-align: center;
    padding: 2rem;
    color: #888;
    font-size: 0.9rem;
  }

  /* ---- Responsive ---- */
  @media (max-width: 768px) {
    .kpi-row { grid-template-columns: 1fr; }
  }
