/******************************************************************************/ 
/* Top-level tab CONTAINER (Workspace / Help)                                 */
/******************************************************************************/ 
.top-tab-panel { 
  /* draw the box for the content ONLY (no line above the tabs) */ 
  border: 1px solid var(--border, #dfe3e8); 
  border-top: none; /* ⬅ remove border above tabs */ 
  border-radius: 0 0px 10px 10px; /* ⬅ no rounding on the top-left edge */ 
  background: #fff; 
  margin-top: 0; /* flush with tab strip */ 
  position: relative; 
  z-index: 1; /* sits under the tab buttons */
} 

/* keep the tabs visually attached to the panel */ 
.top-tabs { 
  position: relative; 
  z-index: 2; 
  margin-bottom: 1px; 
  border-bottom: 1px solid var(--border, #dfe3e8); 
}

/* tab buttons (Workspace / Help) */ 
.top-tab { 
  font-size: 14px; /* ⬅ set consistent text size */
}

/* if your tabs have rounded bottoms when selected, keep them squared so they blend */ 
.top-tab[aria-selected="true"] { 
  border-bottom-left-radius: 0; 
  border-bottom-right-radius: 0; 
}

/******************************************************************************/ 
/* Inner function panels (Filter/Edit/Delete/Create etc.)                      */
/******************************************************************************/ 
.tab-panel { 
  display: none; 
  margin-top: 8px; 
  padding: 12px; 
  border: 1px solid var(--border, #dfe3e8); 
  border-radius: 8px; 
  background: #fafafa; 
  width: 100%; 
} 
.tab-panel.active { display: block; }

/* Form rows */
.button-row { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 8px; 
  margin-top: 6px; 
} 
.button-row input,
.button-row button { 
  flex: 1; 
  min-width: 120px; 
}

/* Edit panels */
#wordEditPanel select,
#wordEditPanel input[type="text"],
#excelEditPanel select,
#excelEditPanel input[type="text"] { 
  width: 100%; 
  margin-top: 4px; 
}

/* Fix for input width issue (ensures proper width in both environments) */
#excelNewFileInput {
  width: 100%;            /* Ensure the input takes up the full width */
  box-sizing: border-box; /* Include padding and borders in width calculation */
  margin-top: 4px;        /* Adjust margin for spacing */
}
#wordNewFileInput {
  width: 100%;            /* Ensure the input takes up the full width */
  box-sizing: border-box; /* Include padding and borders in width calculation */
  margin-top: 4px;        /* Adjust margin for spacing */
}

/* Create Link panel: stack input & button */
#createLinkPanel .button-row { 
  flex-direction: column; 
  gap: 8px; 
  width: 100%; 
} 
#createLinkPanel .button-row input, 
#createLinkPanel .button-row button { 
  flex: 0 0 auto; 
  width: 100%; 
  min-width: 0; 
}

/******************************************************************************/ 
/* More panel buttons: white → dark green on hover                             */
/******************************************************************************/ 

#excelMorePanel button { 
  background: #ffffff !important; /* white fill */ 
  color: var(--brand) !important; /* green text */ 
  border: 1.5px solid var(--brand) !important; 
  border-radius: 10px !important; 
  padding: 6px 12px !important; /* smaller height */ 
  font-size: 14px !important; 
  font-weight: 600 !important; 
  line-height: 1.3 !important; 
}

/* Hover: dark green fill + white text */ 
#excelMorePanel button:hover { 
  background: var(--brand-dark) !important; /* dark green fill */ 
  color: #ffffff !important; /* white text */ 
  border-color: var(--brand-dark) !important; /* border matches fill */
}

#wordMorePanel button { 
  background: #ffffff !important; /* white fill */ 
  color: var(--brand) !important; /* green text */ 
  border: 1.5px solid var(--brand) !important; 
  border-radius: 10px !important; 
  padding: 6px 12px !important; /* smaller height */ 
  font-size: 14px !important; 
  font-weight: 600 !important; 
  line-height: 1.3 !important; 
}

/* Hover: dark green fill + white text */ 
#wordMorePanel button:hover { 
  background: var(--brand-dark) !important; /* dark green fill */ 
  color: #ffffff !important; /* white text */ 
  border-color: var(--brand-dark) !important; /* border matches fill */
}
