
/* Utilities and Helpers */
.bodyback { background-color: var(--BODYBACKGROUND); }
.inputcolor { background-color: var(--INPUTBACKGROUND); }
.inputsecondarycolor { background-color: var(--INPUTSECONDARY); }
.themeprimary { background-color: var(--THEMEPRIMARY); }
.themesecondary { background-color: var(--THEMESECONDARY); }
.sidebarbackground { background-color: var(--SIDEBARBACKGROUND); }
.menuborderbackground { background-color: var(--MENUBORDER); }
.lighttext { color: var(--LIGHTTEXT); }
.linkcolor { color: var(--LINKCOLOR); }
.basefont {
    font-size: calc(var(--FONTSIZE) * 1px);
    font-family: var(--FONTFAMILY);
    color: var(--TEXTCOLOR);
}

/* Moderne Border Styles */
.menuborder {
    border: 1px solid var(--MENUBORDER);
    border-radius: 4px;
}
.border {
    border: 1px solid var(--BORDERCOLOR);
    border-radius: 4px;
}
.bordershadow {
    border: 1px solid var(--BORDERCOLOR);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
    padding: 15px;
    border-radius: 8px;
}

/* Base Element Styles */
body {
    background-color: var(--BODYBACKGROUND);
    font-size: calc(var(--FONTSIZE) * 1px);
    font-family: var(--FONTFAMILY);
    color: var(--TEXTCOLOR);
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

body.bodypopup, body.bodyiframe {
    background-color: var(--BODYBACKGROUND);
    font-size: calc(var(--FONTSIZE) * 1px);
    font-family: var(--FONTFAMILY);
    color: var(--TEXTCOLOR);
    padding: 0;
    margin: 0;
}

a {
    color: var(--LINKCOLOR);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--LINKCOLOR);
    opacity: 0.85;
    text-decoration: underline;
}

a, img { border: none; outline: none; }

table {
    font-size: calc(var(--FONTSIZE) * 1px);
    font-family: var(--FONTFAMILY);
    color: var(--TEXTCOLOR);
}

hr {
    background-color: var(--BORDERCOLOR);
    border-width: 0;
    color: var(--BORDERCOLOR);
    height: 1px;
    line-height: 0;
    text-align: center;
    width: 80%;
    margin: 25px auto;
    clear: both;
}

/* Moderne Form Elements */
input, select, textarea {
    font-size: calc(var(--FONTSIZE) * 1px);
    font-family: var(--FONTFAMILY);
    background-color: var(--INPUTBACKGROUND);
    border: 1px solid var(--BORDERCOLOR);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 10px 12px;
    border-radius: 6px;
    transition: all 0.25s ease;
    color: var(--TEXTCOLOR);
    width: auto;
    box-sizing: border-box;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--THEMEPRIMARY);
    box-shadow: 0 0 0 3px rgba(54, 155, 201, 0.15);
}

input.light {
    font-size: calc(var(--FONTSIZE) * 1px);
    font-family: var(--FONTFAMILY);
    background-color: #f8f8f8;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    padding: 10px 16px;
    color: #555;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-weight: normal;
    min-width: 110px;
    text-align: center;
}

input.light:hover {
    background-color: #f0f0f0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

input.dark {
    font-size: calc(var(--FONTSIZE) * 1px);
    font-family: var(--FONTFAMILY);
    background-color: var(--THEMEPRIMARY);
    border-radius: 6px;
    padding: 10px 16px;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    font-weight: 500;
    min-width: 110px;
    text-align: center;
}

input.dark:hover {
    background-color: var(--THEMEPRIMARY);
    filter: brightness(92%);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

input:disabled, select:disabled, textarea:disabled {
    opacity: 0.65;
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* Moderne Layout Structure */
div.main {
    background-color: #ffffff;
    margin: 0 auto;
    margin-top: 20px;
    margin-bottom: 20px;
    width: 950px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

div.popupmain {
    background-color: #ffffff;
    width: 100%;
    padding: 0;
    margin: 0;
}

div.iframemain {
    background-color: #ffffff;
    width: 100%;
    padding: 0;
    margin: 0;
}

/* Moderne Header Styles */
div.header {
    display: table;
    width: 100%;
    height: 90px;
    background-color: white;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

div.popupheader {
    display: table;
    width: 100%;
    height: 30px;
    background-color: white;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

div.iframeheader { display: none; }

div.headerlogo {
    display: table-cell;
    padding: 15px;
    padding-top: 12px;
    vertical-align: middle;
}

img.logo, img.popuplogo {
    height: 60px;
    vertical-align: middle;
    transition: all 0.3s ease;
}

div.headername, div.popupheadername {
    display: table-cell;
    width: 100%;
    padding-left: 15px;
    vertical-align: middle;
    font-size: 1.8em;
    font-weight: 500;
    color: #333;
}

.logocontainer {
    float: right;
    text-align: center;
    line-height: 140%;
    padding: 8px;
    padding-right: 18px;
    font-size: 12px;
}

/* Moderne Menu Styles */
div.mainmenu, div.popupmainmenu {
    min-height: 56px;
    background-color: var(--THEMEPRIMARY);
    width: 100%;
    position: relative;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

div.mainmenuinner, div.popupmainmenuinner {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

div.menupadder {
    padding-top: 10px;
    height: 100%;
}

div.menutable {
    display: table;
    height: 36px;
}

div.menuspacer {
    display: table-cell;
    width: 5px;
}

div.menuspacer:first-child {
    display: table-cell;
    width: 15px;
}

div.menuitem, div.menuitemactive, div.menuitemhover {
    font-size: 14px;
    display: table-cell;
    cursor: pointer;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 4px 4px 0 0;
    transition: all 0.25s ease;
}


div.menuitem {
    background-color: transparent;
}


div.childmenu div.menuitem {
    z-index: 10000;
    background-color: var(--THEMESECONDARY);
}


div.menuitemactive {
    background-color: rgba(255, 255, 255, 0.15);
    border-bottom: 3px solid white;
}

div.menuitem:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom: 3px solid rgba(255, 255, 255, 0.5);
}

div.menuitem > div, div.menuitemhover > div {
    padding: 9px 16px;
    color: white;
    font-weight: 400;
    letter-spacing: 0.3px;
}

div.menuitemactive > div {
    color: white;
    padding: 9px 16px;
    font-weight: 500;
}

div.menuitem a {
    color: white;
    text-decoration: none;
    transition: color 0.25s;
}

div.menuitemactive a {
    color: white;
    text-decoration: none;
}

div.logoutdiv {
    position: absolute;
    top: 0;
    right: 0;
    height: 56px;
    padding: 0 18px;
    display: flex;
    align-items: center;
}

div.logoutdiv > div {
    background-color: white;
    padding: 8px 16px;
    border-radius: 6px;
    color: var(--THEMEPRIMARY);
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    white-space: nowrap;
    transition: all 0.25s ease;
}

div.logoutdiv > div:hover {
    background-color: #f8f8f8;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

div.logoutdiv > div img {
    margin-left: 8px;
    height: 16px;
    vertical-align: text-bottom;
}

div.logindiv { font-size: 12px; float: right; padding: 6px; color: white; padding-bottom: 0px; text-align: center; }
div.logindiv > div { float: right; margin: 3px; margin-left: 5px; background-color: white; cursor: pointer; padding: 5px; -webkit-border-radius: 4px; border-radius: 4px; color: #333333; }


div.mobiletoggle {
    display: none;
    padding: 10px 15px;
    text-align: right;
}

/* Moderne Content Styles */
div.contentdiv {
    width: 100%;
    padding: 0;
    margin: 0;
}

div.contenttable {
    display: table;
    table-layout: fixed;
    width: 100%;
    margin: 0;
    padding: 0;
}

div.contentcell {
    display: table-cell;
    padding: 0;
    margin: 0;
    background-color: white;
    vertical-align: top;
    overflow-x: hidden;
}

div.contenthead {
    width: 100%;
    height: auto;
    min-height: 70px;
    background: linear-gradient(to bottom, #ffffff, #f7f7f7);
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

div.contenthead > div {
    padding: 18px 25px;
    font-size: 1.7em;
    font-weight: 300;
    color: #333;
}

div.contentbody {
    padding: 25px;
    padding-top: 15px;
}

div.contentbody img {
    max-width: 100%;
    height: auto;
}

div.contentpadding {
    padding: 25px;
}

/* Moderne Text and Table Styles */
div.text {
    margin: 0 0 20px 0;
    line-height: 1.6;
}

div.fulltable {
    display: table;
    width: 100%;
    margin-bottom: 25px;
}

div.tablerow {
    display: table-row;
}

div.halfcell {
    display: table-cell;
    width: 50%;
    vertical-align: top;
    padding: 0 15px;
}

div.halfcell:first-child {
    padding-left: 0;
}

div.halfcell:last-child {
    padding-right: 0;
}

/* Moderne Content Box Styles */
div.contentbox {
    margin: 0 0 30px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    overflow: hidden;
    background-color: white;
    transition: box-shadow 0.3s ease;
}

div.contentbox:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

div.contentheader, div.contentboxsub:first-child {
    width: 100%;
    height: auto;
    min-height: 48px;
    background-color: var(--THEMESECONDARY);
    background-image: none;
    border: none;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
}

div.contentheader > div, div.contentboxsub:first-child > div {
    color: var(--LIGHTTEXT);
    font-size: 1.15em;
    padding: 14px 20px;
    font-weight: 500;
}

div.contentboxmain {
    width: 100%;
    border: 1px solid var(--BORDERCOLOR);
    border-top: none;
    background-color: white;
    padding: 20px;
    box-sizing: border-box;
}

div.contentboxsub {
    width: 100%;
    border: 1px solid var(--BORDERCOLOR);
    border-top: none;
    background-color: var(--INPUTSECONDARY);
    border-right: 1px solid var(--BORDERCOLOR);
}

div.contentboxsub > div {
    color: #444;
    padding: 12px 20px;
    font-weight: 500;
}

/* Moderne Form Layout */
div.formname {
    display: table-cell;
    padding: 12px 18px;
    text-align: right;
    vertical-align: middle;
    font-weight: 500;
    color: #444;
    width: 40%;
}

div.forminput {
    display: table-cell;
    padding: 12px 10px;
    vertical-align: middle;
}

div.formbuttonbar {
    text-align: right;
    padding: 25px 10px 5px;
}

/* Moderne Sidebar Styles */
div.sidebarcell, div.sidebarcellleft, div.sidebarcellright {
    overflow-x: hidden;
    display: table-cell;
    padding: 0;
    margin: 0;
    width: 280px;
    background-color: var(--SIDEBARBACKGROUND);
    vertical-align: top;
}

div.sidebarcell { border-left: 1px solid rgba(0,0,0,0.05); }
div.sidebarcellleft { border-right: 1px solid rgba(0,0,0,0.05); }
div.sidebarcellright { border-left: 1px solid rgba(0,0,0,0.05); }

div.sidebarcellleft > div, div.sidebarcellright > div {
    padding: 25px;
    padding-top: 15px;
}

div.sidebarbox {
    clear: both;
    margin: 0 0 25px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    overflow: hidden;
    background-color: white;
    transition: box-shadow 0.3s ease;
}

div.sidebarbox:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

div.sidebarboxhead {
    width: 100%;
    height: auto;
    min-height: 48px;
    background-color: var(--THEMESECONDARY);
    background-image: none;
    border: none;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
}

div.sidebarboxhead > div {
    color: var(--LIGHTTEXT);
    font-size: 1.15em;
    padding: 14px 20px;
    font-weight: 500;
}

div.sidebarboxnav {
    width: 100%;
    border: 1px solid var(--BORDERCOLOR);
    border-top: none;
    background-color: white;
    border-radius: 0 0 10px 10px;
}

div.sidebarboxnavitem {
    padding: 13px 18px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.25s;
}

div.sidebarboxnavitem:last-child {
    border-bottom: none;
}

div.sidebarboxnavitem:hover {
    background-color: rgba(0,0,0,0.02);
}

div.sidebarboxnavitem img {
    padding-right: 10px;
    opacity: 0.7;
    vertical-align: middle;
}

div.sidebarboxnavitem > a {
    color: var(--TEXTCOLOR);
    text-decoration: none;
    display: block;
}

div.sidebarboxmain {
    clear: both;
    width: 100%;
    border: 1px solid var(--BORDERCOLOR);
    border-top: none;
    background-color: #fafafa;
    overflow: hidden;
    border-radius: 0 0 10px 10px;
    padding: 18px;
    box-sizing: border-box;
}

div.sidetext {
    padding: 6px;
    line-height: 1.6;
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
}

/* Moderne Data Tables */
table.data {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin: 15px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    overflow: hidden;
    background-color: white;
}

table.data thead:first-child td {
    height: auto;
    min-height: 48px;
    font-size: 1.15em;
    background-color: var(--THEMESECONDARY);
    background-image: none;
    color: var(--LIGHTTEXT);
    text-align: left;
    padding: 14px 20px;
    font-weight: 500;
    border: none;
}

table.data thead td {
    background-color: #f7f7f7;
    border: none;
    border-bottom: 1px solid #eee;
    padding: 13px 18px;
    font-weight: 500;
    text-align: left;
    color: #444;
}

table.data tbody td {
    background-color: #ffffff;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 13px 18px;
}

table.data tbody tr:last-child td {
    border-bottom: none;
}

table.data tbody tr:hover td {
    background-color: rgba(0,0,0,0.01);
}

/* Moderne Footer */
div.footer, div.popupfooter {
    height: auto;
    min-height: 60px;
    width: 100%;
    background-color: var(--SIDEBARBACKGROUND);
    border-top: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    align-items: center;
    border-radius: 0 0 10px 10px;
}

div.iframefooter { display: none; }

div.footerleft {
    padding: 0 25px;
    color: var(--LINKCOLOR);
    flex: 1;
    line-height: 60px;
}

div.footerright {
    padding: 0 25px;
    color: var(--LINKCOLOR);
    line-height: 60px;
}

/* Moderne Utility Classes */
div.loader {
    margin: 40px;
    text-align: center;
    font-weight: 500;
    color: #666;
}

.errormessage {
    text-align: center;
    color: #e53935;
    padding: 15px;
    margin: 15px 0;
    background-color: rgba(229, 57, 53, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(229, 57, 53, 0.1);
}

.errormessage:empty { display: none; }

.okmessage {
    margin: 15px 0;
    text-align: center;
    font-weight: 500;
    color: #43a047;
    padding: 15px;
    background-color: rgba(67, 160, 71, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(67, 160, 71, 0.1);
}

.hidden { display: none; }
div.stdmargin { margin: 25px; }

/* Moderne Dialog Overlay */
#darkoverlay {
    display: none;
    position: fixed;
    z-index: 800;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

#dialogdiv {
    display: none;
    position: fixed;
    z-index: 801;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

#dialogdiv .dialoginner {
    position: relative;
    text-align: left;
    overflow: hidden;
    padding: 0;
    font-size: 14px;
    margin: 100px auto 0;
    background: white;
    width: 700px;
    height: auto;
    max-height: 80vh;
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    max-width: 95%;
}

#dialogdiv .close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    z-index: 100;
    opacity: 0.7;
    transition: opacity 0.25s;
}

#dialogdiv .close img {
    width: 100%;
    height: 100%;
}

#dialogdiv .close:hover {
    opacity: 1;
}

#dialogdiv .dialogcontent {
    max-height: calc(80vh - 100px);
    overflow-y: auto;
    padding: 25px;
}

.dialogfootertext {
    float: left;
    padding: 18px;
    text-align: left;
}

.buttonrow {
    float: right;
    padding: 12px;
    text-align: right;
}

#dialogdiv .footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    text-align: right;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Moderne Auth Buttons */
.btn-auth, .btn-auth:visited {
    position: relative;
    display: inline-block;
    height: 24px;
    padding: 0 1.2em;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin: 6px 0;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    line-height: 24px;
    white-space: nowrap;
    cursor: pointer;
    color: #222;
    background: #fff;
    box-sizing: content-box;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.btn-auth:hover, .btn-auth:focus, .btn-auth:active {
    color: #222;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.btn-auth:before {
    content: "";
    float: left;
    width: 24px;
    height: 24px;
    background: url(../images/auth-icons.png) no-repeat 99px 99px;
}

.btn-auth.large {
    height: 40px;
    line-height: 40px;
    font-size: 15px;
    border-radius: 8px;
    margin: 8px 0;
}

.btn-auth.large:before {
    width: 40px;
    height: 40px;
}

.btn-auth::-moz-focus-inner { border: 0; padding: 0; }

/* Facebook Button */
.btn-facebook, .btn-facebook:visited {
    border-color: #3b5998;
    color: #fff;
    background-color: #4267B2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.12);
}

.btn-facebook:hover, .btn-facebook:focus {
    color: #fff;
    background-color: #365899;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.btn-facebook:active {
    color: #fff;
    background: #3b5998;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.btn-facebook:before {
    border-right: 1px solid rgba(255,255,255,0.2);
    margin: 0 1em 0 -1em;
    background-position: 0 0;
}

.btn-facebook.large:before { background-position: 0 -22px; }

/* Google Button */
.btn-google, .btn-google:visited {
    border: none;
    color: #fff;
    background: #4285F4;
    box-shadow: 0 2px 4px rgba(0,0,0,0.12);
}

.btn-google:hover, .btn-google:focus, .btn-google:active {
    color: #fff;
    background-color: #3367D6;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.btn-google:active {
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn-google:before {
    margin: 0 1em 0 -1em;
    background-position: -88px 0;
    background-color: white;
    border-radius: 2px 0 0 2px;
}

.btn-google.large:before { background-position: -144px -22px; }

/* Moderne Cookie Consent Banner */
#mscwbox {
    border: none !important;
    background: rgba(40,40,40,0.95) !important;
    box-shadow: 0 -8px 20px rgba(0,0,0,0.2);
    color: #fff;
    position: fixed;
    width: 100%;
    z-index: 2147483647;
    min-height: 50px;
    bottom: 0;
    opacity: 1 !important;
    padding: 20px 0;
}

#mscwout {
    max-width: 1200px;
    margin: 0 auto;
}

#mscwbox a {
    color: var(--THEMESECONDARY);
    text-decoration: underline;
}

#mscwbtn {
    margin-left: 20px;
    background-color: var(--THEMEPRIMARY);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-weight: 500;
}

#mscwbtn:hover {
    background-color: var(--THEMEPRIMARY);
    filter: brightness(92%);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    transform: translateY(-1px);
}

/* Login Dialog Styles */
#logindialog, #forgotdialog {
    padding: 20px;
}

.logintextdiv {
    margin-bottom: 25px;
    line-height: 1.6;
}

.logincredentials {
    margin-bottom: 25px;
}

.loginmfadialog {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

#securitycode {
    letter-spacing: 3px;
    text-align: center;
}

.verifyerror {
    color: #e53935;
    font-weight: 500;
}

#loginthirdparty {
    margin-top: 25px;
    padding: 20px 15px;
    border-top: 1px solid #eee;
}


.ckprimarybox { background: #0d2d62; color: white;  padding: 20px; position: relative;}
.cksecondarybox { background: #b80924; color: white; padding: 20px; position: relative; }
.ckdarkbox { background: #555555; color: white; padding: 20px; position: relative;}
.cklightbox { background: #DDDDDD; color: black; padding: 20px; position: relative; }


/* Responsive Styles */
@media screen and (max-width: 950px) {
    div.main {
        width: 100%;
        margin: 0;
        border-radius: 0;
    }
}

@media screen and (max-width: 768px) {
    div.headerlogo {
        padding: 12px 15px;
    }

    div.headername, div.popupheadername {
        padding: 8px 15px;
        font-size: 1.5em;
    }

    .logocontainer {
        padding: 6px 15px;
        font-size: 11px;
    }

    div.contenthead > div {
        padding: 15px 20px;
        font-size: 1.5em;
    }

    div.contentbody {
        padding: 20px;
    }

    div.contentpadding {
        padding: 20px;
    }

    div.formname {
        width: 35%;
    }

    div.footerleft, div.footerright {
        padding: 0 20px;
        line-height: 50px;
    }

    div.mainmenuinner {
        width: calc(100% - 100px);
    }
}

@media screen and (max-width: 700px) {
    body {
        font-size: calc((var(--FONTSIZE) - 1) * 1px);
    }

    div.header {
        height: auto;
        display: block;
        padding: 15px 0;
    }

    div.headerlogo {
        display: block;
        width: 100%;
        text-align: center;
        padding: 15px 15px 5px;
    }

    div.headername, div.popupheadername {
        display: block;
        width: 100%;
        text-align: center;
        padding: 5px 15px 15px;
    }

    .logocontainer {
        float: none;
        width: 100%;
        text-align: center;
        padding: 10px 15px 5px;
    }

    div.mobiletoggle {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 15px;
    }

    div.logoutdiv {
        position: absolute;
        top: 8px;
        right: 15px;
        height: 40px;
    }

    div.logoutdiv > div {
        padding: 8px 12px;
        font-size: 13px;
    }

    div.mainmenuinner {
        display: none;
        width: 100%;
    }

    div.mainmenuinneractive {
        display: block;
    }

    div.menupadder {
        padding-top: 5px;
        padding-bottom: 10px;
    }

    div.menutable {
        display: block;
        width: 100%;
        height: auto;
    }

    div.menuitem, div.menuitemactive {
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        border-radius: 0;
    }

    div.menuitem:last-child, div.menuitemactive:last-child {
        border-bottom: none;
    }

    div.menuitem > div, div.menuitemactive > div {
        padding: 12px 15px;
    }

    div.sidebarcellright {
        display: block;
        width: 100%;
        border: none;
        border-top: 1px solid rgba(0,0,0,0.05);
    }

    div.contentcell {
        display: block;
        width: 100%;
    }

    div.halfcell {
        display: block;
        width: 100%;
        padding: 0;
    }

    div.halfcell:not(:first-child) {
        margin-top: 25px;
    }

    div.responsivetable {
        display: block;
    }

    div.responsivetable div.tablerow {
        display: block;
        margin-bottom: 15px;
    }

    div.responsivetable div.formname {
        display: block;
        width: 100%;
        text-align: left !important;
        padding: 6px 0;
    }

    div.responsivetable div.forminput {
        display: block;
        width: 100%;
        padding: 6px 0;
    }

    div.formbuttonbar {
        text-align: center;
    }

    table.data {
        display: block;
        overflow-x: auto;
    }

    #dialogdiv .dialoginner {
        margin-top: 60px;
        max-height: 85vh;
        left: 2.5% !important;
        width: 95% !important;
        margin-left: 0 !important;
    }

    #dialogdiv .dialogcontent {
        max-height: calc(85vh - 120px);
    }

    .btn-login-small { display: inline-block; }
    .btn-login-large { margin-bottom: 80px !important; }

    input.memberusername, input.memberpassword, input.memberusernameforgot {
        width: 100%;
    }

    #mscwbox .mscwin {
        flex-direction: column;
        align-items: center;
    }

    #mscwbox #mscwbtn {
        margin-top: 15px;
        margin-left: 0;
    }

    div.forminput input, div.forminput select, div.forminput textarea {
        width: 100%;
    }

    #dialogdiv .footer {
        flex-direction: column;
        padding-bottom: 15px;
    }

    .dialogfootertext {
        width: 100%;
        text-align: center;
        padding: 15px 15px 5px;
    }

    .buttonrow {
        width: 100%;
        text-align: center;
        padding: 10px 15px;
    }
}

/* Print Styles */
@media print {
    div.main {
        box-shadow: none;
        width: 100%;
        margin: 0;
    }

    div.header, div.mainmenu, div.footer, div.sidebarcell,
    div.sidebarcellleft, div.sidebarcellright {
        display: none !important;
    }

    div.contentcell {
        display: block;
        width: 100%;
    }

    div.contentbody {
        padding: 0;
    }

    div.formbuttonbar, input.light, input.dark {
        display: none;
    }

    div.contentbox, div.sidebarbox, table.data {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    a {
        color: #333 !important;
        text-decoration: none !important;
    }
}

.eventbigrow td { background: white !important; border-bottom: 1px solid #C2C8CF; padding: 20px; }
@media screen and (max-width: 600px) {
    .eventbigrow td { display: block; width: 100% !important; }
    .eventbigrow td:first-child {  border-bottom: none !important; }
    .eventbigrow td:first-child div{ width: 300px !important; height: 200px !important; }
}