html {
    position: relative;
    min-height: 100%;
}
header {
}
main {
}
footer,
.footer-container {
}
.footer-container {
    padding: 0;
}
.back-to-top {
    position: fixed;
    right: 5px;
    z-index: 10000;
}
.form-group:last-child {
    margin-bottom:0;
}
.navbar-dark .navbar-toggler {
    color: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
}
.mg-navbar .mg-user .dropdown-menu {
    right:0;
    left:auto;
}
.mg-nav-button {
	padding-bottom: 0;
    padding-left: 0;
    padding-top: 0;
}
.mg-nav-links .mg-nav-links-all {
    display:none;
}
.fullscreen {
    display: block;
    z-index: 9999;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    overflow: auto;
}
.bootstrap-select>.dropdown-toggle.bs-placeholder,
.bootstrap-select>.dropdown-toggle.bs-placeholder:active,
.bootstrap-select>.dropdown-toggle.bs-placeholder:focus,
.bootstrap-select>.dropdown-toggle.bs-placeholder:hover {
    color: inherit;
    background-color: #fff;
    border-color: #ced4da;
}
#mg-mode-selector::after,
#mg-training-selector::after {
    margin-left: 0;
}
#mg-mode-selector .excerpt {
    display: block;
    float:left;
    white-space: nowrap;
    overflow: hidden;
}
.mg-training .excerpt {
    display: block;
    float:left;
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mg-training-select-menu,
.mg-mg-select-menu {
    width:360px;
    left:auto;
    right:-110px;
    top:120%;
}
.mg-user {
    margin: auto;
}
.mg-user-menu {
    position: relative;
}
.mg-user-menu:hover {
    border: none;
    outline: none;
    text-decoration: none;
}
.mg-user-avatar {
    margin-right:8px;
}
.mg_msg_count,
.mg_mypage_msg_count {
    font-size:0.66rem;
}
.mg-user-menu .mg_msg_count {
    position: absolute;
    top:-8px;
    left:22px;
    font-size:0.55rem;
}
.mg-user-menu .mg_mypage_msg_count {
    position: absolute;
    top:-6px;
    right:-8px;
}
.mg-page-title {
    border-bottom: 1px solid;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.mg-table {
    width:100%;
}
hr.solid {
    border-top-width: 1px;
    border-top-style: solid;
}
hr.double {
    border-top-width: 3px;
    border-top-style: double;
}
hr.dashed {
    border-top-width: 1px;
    border-top-style: dashed;
}
hr.dotted {
    border-top-width: 1px;
    border-top-style: dotted;
}
table.dataTable thead th {
    border:none;
}
table.dataTable .btn {
    /*font-size:0.8rem;*/
    padding-top:.4rem;
    padding-bottom:.4rem;
}
table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control,
table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control {
    padding-left: 40px;
}
table.dataTable.dtr-inline.collapsed.table-sm>tbody>tr>td:first-child:before,
table.dataTable.dtr-inline.collapsed.table-sm>tbody>tr>th:first-child:before {
    top:30%;
    padding:5px;
    left: 1px;
}
div.table-responsive>div.dataTables_wrapper>div.row>div[class^="col-"]:first-child {
    padding-right: 0;
}
div.dataTables_wrapper div.dataTables_info {
    text-align: left;
}
div.dataTables_wrapper div.dataTables_paginate {
    text-align: right;
}
div.dataTables_wrapper div.dataTables_filter label input {
    max-width:140px;
}
table.dataTable tbody td {
    vertical-align: middle;
}
div.dataTables_wrapper>div.row {
    margin: 0;
}
div.dataTables_wrapper>div.row>div[class^="col-"]:first-child {
    padding-right: 0;
}
div.dataTables_wrapper>div.row>div[class^="col-"]:first-child {
    padding-left: 0;
}
table.dataTable tbody tr.selected a,
table.dataTable tbody th.selected a,
table.dataTable tbody td.selected a {
    color: inherit;
}
.tags-input-group {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    margin-bottom: 0;
}
.tagify {
    line-height: inherit !important;
}
.tagify .tagify__tag__removeBtn {
    color:#fff !important;
    font: 20px/1 Arial !important;
    margin-right: 6px !important;
    margin-left: -2px !important;
    width: 20px !important;
    height: 20px !important;
}
.tagify__input{
    display: none !important;
}
.form-control::placeholder{
    color: #cccccc;
}
.mg-item-title-abbreviation {
    font-size:125%;
}
.mg-toast {
    position: fixed;
    bottom: 10px;
    min-width: 220px;
    right: 20px;
    z-index: 10000;
}
.mg-toast .toast-header {
}
.mg-toast .toast-header .toast-header-left {
}
.mg-toast .toast-header .toast-header-right {
}
.mg_BEP_ratio_title {
    display:none;
}
#mg_BEP_ratio {
    position: fixed;
    /* right: 0; */
    bottom: 38px;
    left: 0;
    z-index: 1040;
    border-top: 1px solid #ccc;
}
#mg_BEP_ratio button {
    opacity:1;
}
@media screen and (max-width: 1199px) {
    .mg-training .excerpt {
        width: 120px;
    }
}
@media screen and (max-width: 991px) {
    .mg-nav-title {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .modal {
        padding-left:0 !important;
        padding-right:0 !important;
    }
    .modal-fluid {
        max-width: inherit;
        width: 96%;
        /*margin-left: 15px;*/
    }
}
@media screen and (max-width: 767px) {
    #mg-mode-selector, #mg-training-selector {
        padding-left:3px;
        padding-right:3px;
    }
    #mg-mode-selector .excerpt {
        width: 17px;
    }
    .mg-training .excerpt {
        width: 80px;
    }
    .mg-nav-title {
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    div.dataTables_wrapper div.dataTables_length {
        text-align: left;
    }
    div.dataTables_wrapper div.dataTables_filter {
        text-align: right;
    }
    .mg-user-menu-name {
        display:none;
    }
}
@media screen and (max-width: 575px) {
    .mg-nav-title {
        display: none;
    }
    .mg-nav-links a {
        display: none;
    }
    .mg-nav-links .mg-nav-links-all {
        display: inline-block;
    }
    .mg-page-title {
        font-size:1.25rem;
    }
    div.dataTables_wrapper div.dataTables_info {
        text-align: center;
    }
    div.dataTables_wrapper div.dataTables_paginate {
        text-align: center;
    }
    /*
    .mg-term-item-title {
        display: none;
    }
    */
}
@media (min-width: 576px) {
    .modal-dialog {
        margin-top: 0.75rem;
    }
}