html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}:focus{outline:0}ins{text-decoration:none}del{text-decoration:line-through}table{border-collapse:collapse;border-spacing:0}

body {
    background: #ffffff url('images/BodyBG.png') repeat-x top left;
    font-size: .75em;
    font-family: Arial, Helvetica, Sans-Serif;
    color: #444444;
}

a {
    color: #FC6703;
    text-decoration: underline;
    font-weight: bold;
}
a:hover {
    color: #ff9622;
}

.table-list {
    margin-bottom: 50px;
}

h1, h2, h3, h4, h5, h6 {
    color: #444444;
    margin: 20px 0 10px 0;
    clear: both;
}
h1 {
    font-size: 2em;
    color: #ff9622;
}
h2 {
    font-size: 1.5em;
}
h3 {
    font-size: 1.2em;
}
h4 {
    font-size: 1.1em;
}
h5, h6 {
    font-size: 1em;
}

.page {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

#title {
    color: #ffffff;
    float: left;
    background: linear-gradient(to bottom, #d4d4d4, #eeeeee);
    border-radius: 0 0 8px 8px;
    border-bottom: 3px solid #ff9622;
}
#title h1 a {
    color: #444444;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}
#title h1 {
    color: #444444;
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    padding: 22px 20px 30px 20px;
    background: none;
}

#logindisplay {
    color: #ffffff;
    text-align: right;
    font-weight: bold;
    padding-top: 10px;
}
#logindisplay a:link, #logindisplay a:visited {
    color: #ffffff;
    text-decoration: none;
}
#logindisplay a:hover {
    text-decoration: underline;
}

#menucontainer {
    margin-top: 61px;
}
#menucontainer > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0;
    float: left;
    font-size: 120%;
    border-width: 0 5px 0 5px;
    text-transform: uppercase;
}
#menucontainer ul li a {
    display: block;
    padding: 11px 21px;
    color: #fff;
    font-family: "Lucida Sans", "Century Gothic", "Franklin Gothic Book", "Franklin Gothic", helvetica, arial, verdana, sans;
    font-weight: bold;
    text-decoration: none;
}
#menucontainer ul li a:hover {
    color: #ffd6a8;
    background: transparent;
}
#menucontainer ul li.has-dropdown {
    position: relative;
}
#menucontainer ul li.has-dropdown > a {
    cursor: default;
}
#menucontainer ul li.has-dropdown ul.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    flex-direction: column;
    background-color: #ff9622;
    border: none;
    border-width: 0;
    min-width: 140px;
    z-index: 100;
    padding: 0;
    margin: 0;
    float: none;
    font-size: 100%;
}
#menucontainer ul li.has-dropdown:hover ul.dropdown {
    display: flex;
}
#menucontainer ul li.has-dropdown ul.dropdown li {
    background-color: #ff9622;
}
#menucontainer ul li.has-dropdown ul.dropdown li a {
    padding: 8px 18px;
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 0.9em;
    color: #fff;
    background-color: #ff9622;
}
#menucontainer ul li.has-dropdown ul.dropdown li a:hover {
    background-color: #FC6703;
    color: #fff;
}

#main {
    margin-top: 100px;
    margin-bottom: 30px;
    padding: 10px 30px 15px 30px;
}

#footer {
    position: fixed;
    bottom: 0;
    left: 0;
    color: #cccccc;
    padding: 11px 0;
    text-align: center;
    font-size: 11px;
    width: 100%;
    background: #ffffff url('images/BodyBG.png') repeat-x top left;
}

fieldset {
    margin: 2em 0 1em 0;
    padding: 1em;
    border: 1px solid #ff9622;
}
legend {
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    background: #ff9622;
    padding: 5px 10px;
}
fieldset p {
    margin: 10px 12px 2px 10px;
}
fieldset label {
    display: block;
    font-weight: bold;
    margin: 5px 0 3px 0;
}
fieldset label.inline {
    display: inline;
}
input[type="text"], input[type="email"], input[type="password"] {
    width: 200px;
    border: 1px solid #cccccc;
    color: #333333;
    padding: 4px;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus {
    background-color: #ffd09d;
    border: 1px solid #ff9622;
}
input[type="submit"] {
    background: #ff9622;
    color: #ffffff;
    border: 1px solid #cc7a1b;
    padding: 5px 15px;
    font-weight: bold;
    cursor: pointer;
}
input[type="submit"]:hover {
    background: #FC6703;
}

.editor-label {
    margin: 10px 0 3px 0;
}
.editor-label label {
    font-weight: bold;
}
.editor-field {
    margin-bottom: 5px;
}
.editor-field input[type="text"],
.editor-field input[type="email"],
.editor-field input[type="password"] {
    width: 200px;
}

table {
    border: solid 1px #cccccc;
    width: 100%;
}
table td, table th {
    padding: 5px;
    border: solid 1px #cccccc;
}
table thead td, table th {
    padding: 5px;
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
    color: #ffffff;
    background-color: #ff9622;
    border: solid 1px #cccccc;
}
table thead {
    font-size: 1.2em;
    font-weight: bold;
}
table th {
    background-color: #444444;
    text-transform: capitalize;
}
table tr.row-alternate {
    background-color: #E4E4E4;
}

.clear {
    clear: both;
}
.error {
    color: #ff0000;
}
.field-validation-error {
    color: #ff0000;
}
.input-validation-error {
    border: 1px solid #ff0000;
    background-color: #ffeeee;
}
.validation-summary-errors {
    padding: 10px 10px 10px 35px;
    margin: 10px 0;
    border: 1px solid #dfdfdf;
    color: #ff0000;
    font-weight: bold;
    background: #fcf9ce;
}
.validation-summary-errors ul {
    list-style: disc;
    margin: 0 0 0 15px;
}
.errorMessage, .warningMessage, .infoMessage {
    padding: 10px 10px 10px 15px;
    margin: 5px 0;
    border: 1px solid #DFDFDF;
    color: #333333;
    font-weight: bold;
}
.errorMessage {
    background: #fcf9ce;
    border-left: 4px solid #ff0000;
}
.warningMessage {
    background: #fcf9ce;
    border-left: 4px solid #ff9622;
}
.infoMessage {
    background: #fcf9ce;
    border-left: 4px solid #4488ff;
}

.float-left {
    float: left;
}
.float-right {
    float: right;
}

code, blockquote {
    padding: 10px;
    text-align: left;
    display: block;
    overflow: auto;
    background: #fafafa;
    border: 1px solid #f2f2f2;
    border-left: 3px solid #ff9622;
}
code {
    font: 500 1em/1.5em 'Lucida Console', 'courier new', monospace;
}
blockquote {
    font: bold 1.2em/1.5em 'Trebuchet MS', Tahoma, sans-serif;
    color: #666666;
}

fieldset.filter-fieldset {
    width: 300px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

/* Downloads page */
div.productContainer {
    float: left;
    width: 340px;
    min-height: 320px;
    margin-right: 20px;
}
div.productLogo {
    text-align: center;
    height: 220px;
}
.version-row {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}
.version-row a {
    display: inline-block;
    min-width: 300px;
}
.expand-arrow {
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s;
    display: inline-block;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}
.expand-arrow.expanded {
    transform: rotate(180deg);
}
.previous-versions {
    display: none;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 5px;
    margin-bottom: 10px;
}
.previous-versions.show {
    display: block;
}
.previous-versions ul {
    margin: 0;
    padding-left: 20px;
    list-style-position: inside;
}
.previous-versions li {
    margin: 5px 0;
}

/* Mobile hamburger toggle */
.mobile-menu-toggle {
    display: none;
    background: #ff9622;
    color: #fff;
    border: none;
    font-size: 1.4em;
    font-weight: bold;
    padding: 10px 16px;
    cursor: pointer;
    width: 100%;
    text-align: left;
    text-transform: uppercase;
    font-family: "Lucida Sans", "Century Gothic", "Franklin Gothic Book", "Franklin Gothic", helvetica, arial, verdana, sans;
}
.mobile-menu-toggle:hover {
    background: #FC6703;
}

/* =============================================
   Responsive Design — Tablet (max-width: 768px)
   ============================================= */
@media (max-width: 768px) {
    .page {
        width: 100%;
        padding: 0;
    }

    /* Header: stack vertically */
    #title {
        float: none;
        display: inline-block;
        text-align: left;
        background: #e8e8e8;
        border-radius: 0 0 8px 8px;
        border-bottom: 3px solid #ff9622;
        margin: 0 8px;
    }
    #title h1 {
        padding: 14px 12px 10px;
        background: none;
    }

    #logindisplay {
        float: none;
        text-align: left;
        padding: 6px 12px;
        font-size: 0.95em;
    }

    /* Nav: collapsible hamburger */
    .mobile-menu-toggle {
        display: block;
    }
    #menucontainer {
        margin-top: 0;
        float: none;
        width: 100%;
    }
    #menucontainer > ul {
        display: none;
        flex-direction: column;
        float: none;
        border-width: 0;
        font-size: 110%;
    }
    #menucontainer > ul.menu-open {
        display: flex;
    }
    #menucontainer ul li {
        width: 100%;
    }
    #menucontainer ul li a {
        padding: 12px 18px;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        background-color: #ff9622;
    }
    #menucontainer ul li.has-dropdown ul.dropdown {
        position: relative;
        display: flex;
        width: 100%;
    }
    #menucontainer ul li.has-dropdown ul.dropdown li a {
        padding: 11px 18px 11px 36px;
        background-color: #e88520;
        white-space: normal;
        border-bottom: 1px solid rgba(255,255,255,0.15);
        font-size: 0.9em;
    }

    /* Main content */
    #main {
        margin-top: 12px;
        margin-bottom: 50px;
        padding: 8px 12px 50px 12px;
    }

    h2 {
        font-size: 1.3em;
        margin: 12px 0 8px 0;
    }

    /* Forms */
    fieldset.filter-fieldset {
        width: auto;
        max-width: 100%;
        box-sizing: border-box;
    }
    fieldset {
        margin: 1em 0;
        padding: 0.8em;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"] {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Tables → Card layout */
    .table-responsive {
        width: 100%;
        overflow: visible;
    }
    table {
        border: none;
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }
    table thead {
        display: block;
        width: 100%;
        margin-bottom: 4px;
    }
    table thead tr {
        display: block;
        padding: 0;
        border: none;
        background: none;
        margin-bottom: 0;
        border-radius: 0;
    }
    table thead td {
        display: block;
        width: 100%;
        box-sizing: border-box;
        text-align: left;
        padding: 8px 12px;
        font-size: 1.1em;
        border: none;
        border-radius: 4px 4px 0 0;
    }
    /* Hide the column header row */
    table tr.column-headers {
        display: none;
    }
    /* Data rows → cards */
    table tbody {
        display: block;
    }
    table tr {
        display: block;
        border: 1px solid #ddd;
        border-radius: 4px;
        margin-bottom: 10px;
        padding: 8px 12px;
        background: #fff;
    }
    table tr.row-alternate {
        background-color: #fafafa;
    }
    table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 0;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        text-align: right;
        font-size: 0.95em;
    }
    table td:last-child {
        border-bottom: none;
    }
    table td::before {
        content: attr(data-label);
        font-weight: bold;
        text-transform: capitalize;
        color: #444;
        text-align: left;
        flex-shrink: 0;
        margin-right: 12px;
        font-size: 0.9em;
    }
    /* Action rows (check all, kill selected) — full width, no label */
    table tr.action-row {
        padding: 6px 12px;
        border: none;
        margin-bottom: 4px;
        background: none;
    }
    table tr.action-row td {
        display: block;
        text-align: left;
        justify-content: flex-start;
    }
    table tr.action-row td::before {
        content: none;
    }

    /* Downloads page */
    div.productContainer {
        float: none;
        width: auto;
        min-height: 0;
        margin: 0 0 20px 0;
    }
    .version-row a {
        min-width: 0;
        flex: 1;
    }

    /* Footer */
    #footer {
        font-size: 10px;
        padding: 8px 0;
    }
}

/* =============================================
   Responsive Design — Phone (max-width: 480px)
   ============================================= */
@media (max-width: 480px) {
    #title h1,
    #title h1 a {
        font-size: 18px;
    }
    #title h1 {
        padding: 10px 8px 8px;
    }

    #logindisplay {
        font-size: 0.85em;
        padding: 4px 8px;
    }

    #main {
        padding: 6px 8px 50px 8px;
    }

    table td {
        font-size: 0.88em;
        padding: 5px 0;
    }
    table td::before {
        font-size: 0.85em;
    }
}
