* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Ubuntu, Arial, Helvetica, sans-serif;
}

main {
    width: 95%;
}

.general-info table {
    text-align: left;
}

.general-info table td {
    padding: 2px 2px 2px 30px;
}

.center {
    margin: auto;
    padding: 10px;
}

/* Header bar related */
.header {
    color: white;
    overflow: hidden;
    background-color: #333;
    padding: 0px 10px;
}

.header a, .header a:visited {
    float: left;
    color: white;
    text-align: center;
    padding: 20px 12px 20px 12px;
    text-decoration: none;
    font-size: 18px;
    line-height: 25px;
}

.header a.logo {
    color: white;
    background-color: #E95420;
    font-size: 25px;
    font-weight: bold;
}

.header a.logo:hover {
    color: white;
    text-decoration: none;
    /* $color-brand */
    background-color: #E95420;
}

.header a:hover {
    background-color: #2b2b2b;
    color: white;
    text-decoration: underline;
}

.header a.active {
    /* $color-brand */
    background-color: #E95420;
    color: white;
}

.header-right {
    color: white;
    float: right;
}

/* Apply row highlighting and other styles to filter-table divs */
.filter-table table tr:hover {
    background-color: lightgrey;
}

.filter-table table {
    table-layout: auto;
}

.filter-table table th {
    background-color: #333333;
    color: white;
    text-align: left;
    text-decoration: underline;
}

.filter-table table td {
    text-align: left;
}

.p-navigation__nav {
    overflow: visible !important;
}

/* Heading row with a trailing action button (e.g. copy job YAML) */
.section-heading-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Tab row variant: keep the action button on the tab baseline and let the
   tab list's bottom border span the whole row. */
.p-tabs__list-with-action {
    align-items: flex-end;
}

.p-tabs__list-with-action .p-tabs__list {
    flex: 1 1 auto;
    margin-bottom: 0;
}

.p-tabs__list-with-action > .p-button--base {
    flex: 0 0 auto;
    margin-bottom: 0.5rem;
    white-space: nowrap;
}

/* Caps the height of all code snippet blocks, either numbered or
   unnumbered and enables horizontal scroll. */
[class*="p-code-snippet__block"] {
    max-height: 600px;
    scroll-behavior: auto;
}

/* Tag input filter: a search field + Add button on one row, 
   with chips wrapping freely beneath so they don't disturb the row above. */
.tag-input-group {
    display: flex;
    gap: 2rem;
    margin-bottom: .5rem;
}

.tag-input {
    flex: 1 1 0;
    min-width: 0;
}

.tag-input__clear-all {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.875rem;
    color: var(--vf-color-link, #0066cc);
    white-space: nowrap;
    cursor: pointer;
}

.tag-input__clear-all:hover {
    text-decoration: underline;
}

.tag-input__row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.tag-input__field {
    flex: 1 1 auto;
}

.tag-input__chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tag-input__chips:empty {
    margin-top: 0;
}

