:root {
    font-family:"Helvetica Neue",Arial,sans-serif;
    color:#2d4050;
    background:#b5cae0;
    font-size:14px;
}
* {
    box-sizing:border-box;
}
body {
    margin:0;
}
a {
    color:#234d79;
}
nav {
    display:flex;
    align-items:center;
    gap:0;
    background:#2c3e50;
    min-height:59px;
    padding:0 15px;
    border-radius:0 0 4px 4px;
}
nav>a,summary {
    color:#fff;
    text-decoration:none;
    padding:20px 15px;
    display:block;
    cursor:pointer;
}
nav>a:hover,summary:hover {
    background:#1a2732;
}
.menu {
    position:relative;
}
.menu>div {
    position:absolute;
    top:100%;
    left:0;
    min-width:230px;
    z-index:10;
    background:#2c3e50;
    padding:8px;
}
.menu a {
    display:block;
    color:#fff;
    padding:12px;
}
.logout {
    margin-left:auto;
}
.logout button {
    margin:0;
    background:transparent;
    border:1px solid #90a1b0;
}
main {
    padding:45px 15px;
    max-width:1800px;
    margin:auto;
}
h1 {
    font-weight:400;
    font-size:38px;
    margin:16px 0 30px;
}
h2 {
    font-size:16px;
    margin:28px 0 10px;
}
label {
    display:block;
    font-weight:600;
    margin:8px 0;
}
select,input {
    font:inherit;
    color:#34495e;
    border:1px solid #ccd6dc;
    border-radius:3px;
    background:white;
    padding:7px 10px;
    min-height:34px;
    max-width:100%;
}
select {
    width:100%;
}
input {
    width:100%;
}
button {
    font:inherit;
    cursor:pointer;
    background:#2c3e50;
    color:white;
    border:0;
    border-radius:3px;
    padding:12px 18px;
    margin:15px 0 10px;
}
button:hover {
    background:#172734;
}
button:disabled {
    opacity:.5;
    cursor:not-allowed;
}
.primary {
    background:#3498db;
}
.parameters {
    display:grid;
    grid-template-columns:120px 1fr;
    gap:12px;
    background:#f8f9fa;
    padding:10px;
}
.parameters table {
    margin:0;
}
.queue-layout {
    display:grid;
    grid-template-columns:minmax(0,3fr) minmax(210px,1fr);
    gap:30px;
}
.queue-layout section {
    min-width:0;
}
aside form+form {
    border-top:1px solid #e6edf3;
    margin-top:30px;
    padding-top:30px;
}
table {
    width:100%;
    border-collapse:collapse;
    font-size:13px;
    margin:0;
}
td,th {
    border:1px solid #dce5ed;
    padding:7px 6px;
    text-align:left;
    vertical-align:middle;
    overflow-wrap:anywhere;
}
th {
    font-weight:600;
    vertical-align:bottom;
}
tbody tr:nth-child(odd) {
    background:#f8f9fa;
}
tbody tr:hover {
    background:#e9f0f6;
}
.table-scroll {
    overflow-x:auto;
    margin:10px 0;
}
.empty {
    text-align:center;
    padding:40px!important;
    color:#526575;
}
.message {
    background:#e5f5ea;
    border:1px solid #57a478;
    padding:12px;
    margin:15px 0;
}
.error {
    background:#fff0ee;
    border-color:#d97167;
}
.login {
    max-width:450px;
}
.interval {
    display:flex;
    align-items:end;
    flex-wrap:wrap;
    gap:18px;
}
.interval>div {
    min-width:180px;
}
.interval button {
    margin:0 0 1px;
}
.grid-tools {
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    margin-top:20px;
}
.grid-tools select {
    width:auto;
}
.grid-tools button {
    margin:0;
    padding:8px 14px;
}
.grid-tools label {
    margin:0;
}
.filters input {
    min-width:85px;
    margin-top:4px;
    padding:5px;
}
.filters select {
    font-size:11px;
    padding:4px;
    min-height:26px;
}
.grid th {
    min-width:100px;
}
.column-width {
    min-width:85px;
    max-width:600px;
    resize:horizontal;
    overflow:auto;
    padding-bottom:5px;
}
.column-width a {
    display:block;
}
.grid-hint {
    font-size:12px;
    opacity:.8;
}
.pagination {
    display:flex;
    flex-wrap:wrap;
    background:transparent;
    padding:5px 0;
    min-height:0;
    gap:4px;
}
.pagination a {
    padding:8px 12px;
    background:#fff;
    color:#234d79;
    border:1px solid #dce5ed;
}
.pagination a[aria-current] {
    background:#2c3e50;
    color:#fff;
}
.smart {
    background:#465672;
    color:#fff;
}
.smart main {
    max-width:none;
    padding:22px 28px;
}
.smart h1 {
    font-size:24px;
}
.smart h2 {
    font-size:18px;
}
.smart nav {
    background:#596980;
}
.smart a {
    color:#b9f1ec;
}
.smart button {
    background:#91e8df;
    color:#213e43;
}
.smart select,.smart input {
    background:#465672;
    border-color:#72829c;
    color:white;
}
.smart td,.smart th {
    border-color:#596980;
}
.smart tbody tr:nth-child(odd) {
    background:transparent;
}
.smart tbody tr:hover {
    background:#3e4c65;
}
.smart .empty {
    color:#bec7d5;
}
.smart .total {
    font-weight:700;
    background:#3e4c65!important;
}
.smart .pagination a {
    background:#596980;
    color:#fff;
    border-color:#72829c;
}
.limit-ok {
    color:#238b18;
}
.smart .limit-ok {
    color:#8de57c;
}
.limit-exceeded {
    color:#c32322;
}
.smart .limit-exceeded {
    color:#ff9797;
}
.skip {
    position:absolute;
    left:-10000px;
}
.skip:focus {
    left:10px;
    top:10px;
    background:white;
    padding:10px;
    z-index:100;
}
small {
    margin-left:3px;
}
.grid {
    table-layout:auto;
}
.grid th[draggable] {
    cursor:move;
}
:focus-visible {
    outline:3px solid #157bc0;
    outline-offset:2px;
}
@media(max-width:900px) {
    .queue-layout {
        grid-template-columns:1fr;
    }
    aside {
        display:flex;
        gap:25px;
        flex-wrap:wrap;
    }
    aside form {
        flex:1;
        min-width:200px;
    }
    aside form+form {
        border:0;
        margin:0;
        padding:0;
    }
    main {
        padding-top:25px;
    }
    .parameters {
        grid-template-columns:1fr;
    }
    h1 {
        font-size:30px;
    }
    nav {
        flex-wrap:wrap;
    }
    .smart main {
        padding:20px 15px;
    }
}
