html {
    font-size: 16px;
    font-family: Roboto, sans-serif;
}

body {
    margin: 0;
    padding: .5em;
}

h1, h2 {
    margin: 0;
    padding: .25em;
}

/* Layout */
header {
    position: sticky;
    top: 0;
}

.siteHeader {
    padding: 1em;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
    margin-bottom: .25em;
}

.stickyTop {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.stickyBottom {
    position: sticky;
    bottom: 0;
    background: white;
}

.bottomFooter {
    height: 2em;
    padding: .5em;
    position: fixed;
    bottom: 0;
    opacity: 0.25;
    margin-left: -.5em;
    pointer-events: none;
    width: 100%;
    box-sizing: border-box;
}

.bottomFooter small {
    float: right;
}

/* Grid layouts */
.grid {
    display: grid;
    gap: 0.5em;
}

.grid-narrow {
    display: grid;
    gap: 0.5em;
    max-width: 500px;
}

.container-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5em;
}

.container-2col13 {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: .5em;
}

/* Fieldsets */
fieldset {
    border: 1px solid #ddd;
    margin-bottom: .5em;
}

legend {
    float: none;
    margin-bottom: auto;
    width: auto;
    font-size: inherit;
    font-weight: bold;
    padding: .25em .5em;
    color: #333;
    border: 1px solid #ddd;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
    margin-bottom: 1em;
}

table th, table td {
    padding: .5em;
    text-align: left;
    border: 1px solid #ddd;
}

table tr:hover {
    background-color: #f3f3f3;
}

.sticky-table thead {
    position: sticky;
    top: 50px;
    background-color: #ddd;
    z-index: 10;
}

/* Forms */
.form-input {
    display: block;
    width: 100%;
}

.form-actions {
    margin-top: 0.5em;
}

/* Status box (permissions, output panels) */
.status-box {
    padding: 0.5em;
    border: 1px solid #ddd;
    margin-bottom: 1em;
    background: #f8f9fa;
}

/* Output/pre panels */
.output-panel {
    background: #f8f9fa;
    padding: 0.5em;
    border: 1px solid #ddd;
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
    margin: 0.5em 0;
}

/* Dialog/modal */
dialog {
    min-width: 400px;
    max-width: 600px;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 1.5em;
}

dialog h3 {
    margin-top: 0;
}

/* Wizard */
.stepDot {
    padding: 0.25em 0.5em;
    border: 1px solid #ddd;
    cursor: pointer;
}

.stepDot.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.stepDot.done {
    background: #d4edda;
    border-color: #c3e6cb;
}

/* Status colors */
.status_Running, .status_Started {
    color: #28a745;
}

.status_Stopped {
    color: #dc3545;
}

/* Utility */
.hidden {
    display: none;
}

.border {
    border: 1px solid #ddd;
    padding: .5em;
}

.prodPath {
    direction: rtl;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.simpleUl {
    padding: 0;
    margin: 0;
    list-style: none;
}

.simpleUl li {
    padding: .25em;
}

.today:after {
    content: "[ Today ]";
}

/* Service action buttons */
.serviceActionForm input[type=submit] {
    padding: .35em;
    border-radius: .2em;
    border-right: 2px solid gray;
    border-bottom: 2px solid gray;
}

.serviceActionForm input[type=submit].danger {
    border-right: 2px solid red;
    border-bottom: 2px solid red;
}

.serviceActionForm input[type=submit].danger:active {
    border: 2px solid red;
}

/* Delete button */
.delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
}

.delete-btn:hover {
    transform: scale(1.2);
}

/* Tabs */
.tabs {
    margin: 0;
    padding: .5em 0 0 0;
}

.tabs li {
    display: inline-block;
}

.tabs li a {
    display: block;
    padding: .5em;
    border-bottom: 1px solid white;
    border-top: 1px solid #ddd;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

.tabs li a:hover {
    background-color: gray;
}

.tabs li .active {
    background-color: lightgoldenrodyellow;
}

/* Config input tabs */
.confInput:first-of-type {
    display: block;
}

.confInput:not(:target) {
    display: none;
}

.confInput:target {
    display: block;
}

.confInput {
    padding-top: 20em;
    margin-top: -20em;
}

.confInput input, .confInput select {
    display: inline-block;
    width: 100%;
}
