﻿/* ===== Fixed breadcrumb header ===== */

#breadcrumb-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dcdcdc;
    z-index: 1000;
    padding: 10px 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Inner breadcrumb styling */
.breadcrumb {
    margin: 0;
    font-size: 15px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.breadcrumb-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

    .breadcrumb-link:hover {
        text-decoration: underline;
    }

.breadcrumb-separator {
    margin: 0 8px;
    color: #6c757d;
}

.breadcrumb-current {
    color: #495057;
    font-weight: 600;
}

/* Add padding to body so content isn't hidden behind the fixed header */
body {
    padding-top: 50px;
}

/* === BEGIN: GraphQuery additions === */
:root {
  --gq-border: #e5e7eb;
  --gq-bg: #ffffff;
  --gq-muted: #6b7280;
}

.tabs { 
  display: flex; 
  gap: 8px; 
  margin: 8px 0; 
  border-bottom: 1px solid var(--gq-border);
}

.tab-btn {
  all: unset;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px 6px 0 0;
  border: 1px solid transparent;
  font-weight: 600;
  color: #111827;
}

.tab-btn.active {
  background: var(--gq-bg);
  border-color: var(--gq-border);
  border-bottom-color: var(--gq-bg);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Graph container sizing (reuses existing GraphSession conventions if any) */
#cy.cy-container, .cy-container {
  width: 100%;
  height: calc(100vh - 240px);
  min-height: 360px;
  border: 1px solid var(--gq-border);
  border-radius: 8px;
  box-sizing: border-box;
  background: #fff;
}

/* Table */
.table-wrap { 
  overflow: auto; 
  border: 1px solid var(--gq-border); 
  border-radius: 8px; 
  background: #fff;
}

table.data { 
  border-collapse: collapse; 
  width: 100%; 
  font: 13px/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Inter,Arial,sans-serif; 
}

table.data th, table.data td { 
  border: 1px solid var(--gq-border); 
  padding: 6px 8px; 
  white-space: nowrap; 
}

table.data th { 
  background: #f9fafb; 
  text-align: left; 
  position: sticky; 
  top: 0; 
  z-index: 1;
}

.status-band.error { 
  color: #b91c1c; 
}

.breadcrumb { 
  display: flex; align-items: center; gap: 6px; color: var(--gq-muted); 
  font: 12px/1.2 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Inter,Arial,sans-serif;
}
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-separator { color: var(--gq-muted); }
.breadcrumb-current { color: #111827; }
/* === END: GraphQuery additions === */
