:root {
    --bg: #0b1118;
    --panel: #121c27;
    --panel2: #182533;
    --border: #26394b;
    --text: #e7edf4;
    --muted: #8fa4b7;
    --accent: #32a9ff;
    --accent2: #54d3ff;
    --green: #36d399;
    --yellow: #f6c453;
    --red: #ff6677;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background:
       radial-gradient(circle at 85% 0%, #132b40 0, transparent 35%),
       var(--bg);
    color: var(--text);
    font-family: "Segoe UI", Arial, sans-serif;
    min-width: 0 !important;
}

body {
    min-height: 100vh;
}

/* HEADER */

#top {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    min-width: 0 !important;

    padding: 22px 30px 20px 30px;

    background:
        linear-gradient(135deg,#101c28,#172b3d) !important;

    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,.3);

    font-size: 14px;
    color: var(--muted);
}

#top img {
    max-height: 58px;
    max-width: 420px;
    object-fit: contain;
}

#top::after {
    content: "MULTIPROTOCOL DIGITAL VOICE REFLECTOR";
    display: block;
    margin: 9px 0 0 3px;
    color: var(--accent2);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

/* MENU */

#menubar {
    position: relative !important;
    top: auto !important;
    left: auto !important;

    width: 100% !important;
    height: auto !important;
    min-width: 0 !important;

    background: #0e1720 !important;
    border-bottom: 1px solid var(--border);

    padding: 9px 18px;
    overflow-x: auto;
}

#menu {
    float: none !important;
    height: auto !important;
    margin: 0 !important;
}

#menu table {
    border-collapse: separate;
    border-spacing: 6px 0;
}

.menulink,
.menulinkactive {

    display: inline-block;

    padding: 9px 14px !important;
    margin: 0 !important;

    border: 1px solid var(--border) !important;
    border-radius: 6px;

    background: var(--panel) !important;

    color: #cbd7e3 !important;

    font-size: 13px !important;
    font-weight: 600;
    text-decoration: none !important;

    transition: .15s;
}

.menulink:hover {
    background: #1a2a39 !important;
    border-color: #3c5971 !important;
}

.menulinkactive {
    background: var(--accent) !important;
    color: #06111b !important;
    border-color: var(--accent) !important;
}

/* CONTENT */

#content {
    position: relative !important;
    top: auto !important;
    left: auto !important;

    width: 100% !important;

    padding: 22px 24px 60px 24px;
}

/* TABLES */

.listingtable {

    border-collapse: separate;
    border-spacing: 0;

    margin: 10px auto 24px auto !important;

    background: var(--panel);

    border: 1px solid var(--border) !important;
    border-radius: 8px;

    overflow: hidden;

    box-shadow: 0 8px 22px rgba(0,0,0,.18);

    color: var(--text);

    font-size: 13px !important;
}

.listingtable th {

    height: 38px !important;

    background: #1b2a38 !important;
    background-image: none !important;

    color: #a9c6da;

    border-bottom: 1px solid var(--border);

    padding: 8px 10px;

    text-transform: uppercase;

    letter-spacing: .5px;

    font-size: 11px;

    font-weight: 700;
}

.listingtable td {

    padding: 8px 10px !important;

    color: #dbe5ed;

    border-bottom: 1px solid #1e3040;
}

.listingtable tr:last-child td {
    border-bottom: none;
}

.listingtable tr:hover td {
    background: #1b2b39 !important;
}

/* LINKS */

.pl,
.smalllink {
    color: #dbe7ef !important;
    text-decoration: none !important;
}

.pl:hover,
.smalllink:hover {
    color: var(--accent2) !important;
}

.listinglink {
    color: var(--accent) !important;
}

/* MODULE Y */

.listingtable th:last-child {
    position: relative;
}

.listingtable th:last-child,
.listingtable td:last-child {
    border-right: none;
}

/* FILTERS */

.FilterField {

    width: 160px !important;
    height: 34px !important;

    padding: 5px 10px !important;

    color: var(--text) !important;

    background: #0c141d !important;

    border: 1px solid var(--border) !important;

    border-radius: 5px;
}

.FilterSubmit {

    height: 34px !important;
    width: auto !important;

    padding: 5px 13px !important;

    background: var(--accent) !important;

    color: #06111b !important;

    border: none !important;

    border-radius: 5px;

    font-weight: 700;

    cursor: pointer;
}

/* ERROR */

.error {
    color: #ffb6bd !important;
    background: #331820 !important;
    border: 1px solid #6b2935;
    border-radius: 6px;
}

/* FOOTER */

#content > div:last-child a {
    color: var(--muted) !important;
}

/* TRANSMITTING INDICATOR */

img[src*="tx.gif"] {
    filter: drop-shadow(0 0 5px #36d399);
}

/* RESPONSIVE */

@media (max-width: 900px) {

    #top {
        padding: 16px;
    }

    #content {
        padding: 14px 8px 40px 8px;
        overflow-x: auto;
    }

    #content > table {
        width: 100%;
    }

    #content > table > tbody > tr {
        display: block;
    }

    #content > table > tbody > tr > td {
        display: block;
        padding-left: 0 !important;
    }

    .listingtable {
        font-size: 12px !important;
    }
}
