body {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #F2F2F7;
    margin: 0;
    padding: 15px;
  }
  
  .container {
    max-width: 1200px;
    margin: 20px auto;
    background-color: #FFFFFF;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  h1 {
    text-align: left;
    margin-top: 0;
  }
  h2 {
    text-align: left;
  }
  
  select {
    padding: 10px;
    font-size: 15px;
    /* margin: 20px 0; */
  }
  
  table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-top: 10px;
  }
  
  th, td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;
  }
  
  th {
    background: #f0f0f5;
  }
  
  tr:hover {
    background-color: #eef6ff;
    cursor: pointer;
  }
  
  tr.selected {
    background-color: #d8edff;
  }
  
  .hidden-row {
    display: none;
  }
  
  .grid-row {
    display: grid;
    gap: 20px;
    margin-top: 20px;
  }
  
  .row-1 { grid-template-columns: 1fr; }
  .row-3 { grid-template-columns: repeat(4, 1fr); }
  .row-6 { grid-template-columns: repeat(6, 1fr); }
  
  .card {
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #FAFAFA;
  }
  
  .card.full {
    grid-column: span 3;
    line-height: 1.6;

  }

  /* .card.full {
    grid-column: span 3;
    line-height: 1.6;
    max-height: 200px;         
    overflow-y: auto;
    padding-right: 8px; 
  } */
  
  
  .empty-state {
    margin-top: 20px;
    color: #999;
    font-style: italic;
  }
  
  .tag {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
  }
  
  .tag-on { background: #34C759; color: white; }
  .tag-behind { background: #FF3B30; color: white; }
  .tag-ahead { background: #007AFF; color: white; }
  .tag-missing { background: #D1D1D6; color: black; }
  

  .trend-bar {
    display: flex;
    width: 100%;
    height: 12px;
    border-radius: 4px;
    overflow: hidden;
    background: #e0e0e0;
  }
  
  .trend-bar div {
    height: 100%;
  }
  
  .trend-ahead {
    background-color: #007AFF; /* Blue */
  }
  
  .trend-on {
    background-color: #34C759; /* Green */
  }
  
  .trend-behind {
    background-color: #FF3B30; /* Red */
  }
  
  .edit-link {
    font-size: 0.9em;
    text-decoration: underline;
    color: #007bff;
  }
  

  #operationTrendChart {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 300px !important;
    max-height: 300px;
  }
  

  .tabs {
    margin: 10px 0 20px;
  }
  
  .tab {
    background: #eee;
    border: 1px solid #ccc;
    border-bottom: none;
    padding: 8px 16px;
    margin-right: 8px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 6px 6px 0 0;
  }
  
  .tab.active {
    background: white;
    border-bottom: 1px solid white;
    font-weight: bold;
  }
  
  .card.clickable {
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
  }
  
  .card.clickable:hover {
    border-color: #007aff;
  }
  
  .card.active {
    border-color: #007aff;
    background-color: #eaf3ff;
  }
  