.excel-tabs {
    max-width: 100%;
    overflow-x: auto;
    padding: 10px;
    box-sizing: border-box;
}

.excel-tab-buttons {
    display: flex;
    flex-wrap: wrap; /* will override on mobile */
    gap: 15px;
    margin-bottom: 10px;
    overflow-x: auto;
}

.excel-tab-btn {
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid #ccc;
    background: #f7f7f7;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 5px;
    transition: background 0.3s;
}

.excel-tab-btn.active {
    background: #0073aa;
    color: #fff;
}

.excel-tab-content {
    display: none;
    overflow-x: auto;
}

.excel-tab-content.active {
    display: block;
}

.excel-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    padding-bottom: 0; /* will override on mobile */
}

.excel-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.excel-table td {
    border: 1px solid #ccc;
    padding: 6px;
    word-break: break-word;
    white-space: normal; /* allow wrapping by default */
    text-align: left;
    vertical-align: top;
}

#export-pdf {
    margin: 15px 0;
    background: #0073aa;
    color: #fff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    width: auto;
}

#export-pdf:hover {
    background: #005177;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .excel-table-wrapper {
    padding-bottom: 10px; /* breathing space */
  }

  .excel-table {
    min-width: 700px; /* keeps horizontal scroll */
    width: 100%;
    table-layout: fixed; /* helps control cell width */
  }


  .excel-tab-btn {
    font-size: 12px;
    padding: 10px 12px;
  }

  .excel-table td {
    font-size: 12px;
    padding: 8px;
    white-space: normal;      /* Allow wrapping text */
    word-break: break-word;   /* Break long words */
    overflow: visible;        /* Let text flow naturally */
    text-overflow: unset;     /* Disable ellipsis */
    max-width: 140px;         /* Limit max cell width to encourage wrapping */
  }

  #export-pdf {
    width: 100%;
    font-size: 16px;
    padding: 14px;
  }
}
.excel-tabs-instruction {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
} 