@media (min-width: 768px) and (max-width: 991px){ /* leave it full width for medium screens */
.container {
    width: auto;
}
}
@media (min-width: 768px){
.col-sm-left-ltrrtl {
    float: left;
}
.col-sm-right-ltrrtl {
    float: right;
}
}
@media (max-width: 767px){
.row .col-sm-left-ltrrtl {
    width: 100%;
}
.row .col-sm-right-ltrrtl {
    width: 100%;
}
}

@media (min-width: 601px){
.col-xssm-left-ltrrtl {
    float: left;
}
.col-xssm-right-ltrrtl {
    float: right;
}
}
@media (max-width: 600px){
.row .col-xssm-left-ltrrtl {
    width: 100%;
}
.row .col-xssm-right-ltrrtl {
    width: 100%;
}
}

/* Used to make horiz scroll instead of shrink on mobile screens if some element is doesn't fit;
   No longer used here! because it cancels the position:sticky of page/module menus; but better use it for the respective worksheet or content that is wide with class .widescroll */
@media (max-width: 600px) {
.widescroll /*.container2*/ { overflow-x: auto; }
}

body { padding-top: 50px; }
body.body-variant1 { padding-top: 65px; }
@media print {
    body.body-variant0 { padding-top: 0 !important; }
    body { font-size: 12px; }
    a:link:after, a:visited:after {
        content: "";
    }
    h1,.h1{font-size:26px;}
    h2,.h2{font-size:20px;}
    h3,.h3{font-size:15px;}
    h4,.h4{font-size:13px;}
}

/* .navbar-toggle is originally higher than one row of text, so it won't center; and also to make it less high with 10 px total */
@media (max-width: 991px) {
body { padding-top: 40px; }
body.body-variant1 { padding-top: 55px; }
.navbar-fixed-top {
    min-height: 40px;
}
.navbar-fixed-top .navbar-nav {
    margin-top: 0;
    margin-bottom: 0;
}
.navbar-fixed-top .navbar-toggle {
    margin: 5px 15px 5px 5px;
    padding: 7px 8px 7px 8px;
}
.navbar-fixed-top .navbar-brand, .navbar-fixed-top .navbar-nav>li>a {
    padding-top: 10px;
    padding-bottom: 10px;
}
/* fix for lang dropdown when present in a nav-right always visible i.e. outside header and collapse... */
.loggedout .navbar-nav .open.dropdown-last .dropdown-menu {
    position: absolute;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,.15);
    left: auto;
    right: 0;
}
}
/* overwrite bootstrap default, too much spacing between navbar menus */
.notpublicpage .navbar-fixed-top .nav>li>a { padding-left: 10px; padding-right: 10px; }

.navbar-brand{ height:auto; }

@media print {
.body-variant1 .navbar { display: block; }
.body-variant1 .navbar-fixed-top { position: absolute; }
}

/* nav-tabs that show lines around tabs; and less size/space */
.nav-tabs-bordered>li>a,
.nav-tabs>li>a.nav-tab-bordered {
    border-top: 1px solid #dddddd;
    border-left: 1px solid #dddddd;
    border-right: 1px solid #dddddd;
    font-size: 0.9em;
    padding: 10px 10px;
}

.wrap-normal {
    white-space: normal;
}

.navbar-brand {
    font-size: 100%;
}

.navbar-brand a:hover,
.navbar-brand a:focus {
  text-decoration: none;
}

#help-column img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    border: 5px solid #ddd;
    border-radius: 6px;
    /*zoom: 0.8;*/ transform: scale(0.8);
    -moz-transform: scale(0.8);
}

/* Round a bit more, buttons and panels, but not under panel-group */
.btn, .panel, .alert { border-radius: 15px; }
.panel-heading { border-top-left-radius: 15px; border-top-right-radius: 15px; }
.panel-heading:not(:has(+ div.panel-body)) { border-bottom-left-radius: 15px; border-bottom-right-radius: 15px; }
.panel-group .panel { border-radius: 4px; }
.panel-group .panel-heading { border-top-left-radius: 3px; border-top-right-radius: 3px; }
.panel-group .panel-heading:not(:has(+ div.panel-body)) { border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; }

/* Leave these display classes here even if also in general; needed on public page menu and also to be applied AFTER bootstrap */
.block_important {
    display: block !important;
}
.inline-block_important {
    display: inline-block !important;
}
.width-auto {
    width: auto;
}

input[type="file"].form-control {
    height: auto; /* bug in Firefox */
}
.input-xs {
    font-size: 13px;
    line-height: 1.5;
    padding: 1px 5px;
    height: auto !important;    
}
table.dataTable {
    border-top: 1px solid #dddddd;
    border-bottom: 1px solid #dddddd;
}
.dataTables_length label, .dataTables_filter label, .dataTables_info {
    font-weight: normal;
    font-style: italic;
}
.dataTables_length, .dataTables_info {
    padding-left: 1em;
    float: right !important;
}
.dataTables_filter input {
    width: 10em;
    font-size: 0.9em;
    margin-left: 2px;
    -webkit-appearance: textfield; /* correction of oldstyle look */
}
.paging_full_numbers a.paginate_button {
    background-color: transparent !important;
}

#admin-users-table, #admin-contacts-table, #admin-chats-table {
    margin-bottom: 0.6em; 
}

#nav-public, #nav-program {
    margin-bottom: 25px;
}
#nav-public .glyphicon, #nav-program .glyphicon {
    font-size: 0.8em;
    display: table-cell;
    vertical-align: middle;
    width: 1%;
}
#nav-public .menu-text, #nav-program .menu-text {
    display: table-cell;
    vertical-align: middle;
    padding-left: 3px;
    padding-right: 7px;
}
#nav-public .menu-item a, #nav-program .menu-item a {
    font-weight: normal;
    font-size: 1.1em;
    text-align: right;
    border-radius: 0px 10px 10px 0px;
    padding-right: 8px;
}
#nav-public .menu-active a, #nav-program .menu-active a {
    font-style: italic;
}

.unread, .unread td, .unread h1, .unread h2, .unread h3, .unread h4 {
    /*background-color: #ddffdd;*/
    font-weight: bold;
}

.table-worksheets th {
    font-weight: normal;
    font-style: italic;
}
.td_transparent {
    border-top: 0px !important;
    border-bottom: 0px !important;
    background-color: transparent !important;
}
.table-worksheets .td_transparent {
    width: 3em;
}

.panel-with-table { /* otherwise a wide non-responsive table inside panel exceeds and OVERRIDES panel margin lines on smaller devices */
    display: table;
    width: 100%;
}

/* if content wider than predefined modal width, it will go over borders strangely */
.modal-dialog{
    display: table;
}
/* Sometimes we have some external floating buttons on the right but on same row as tabs */
@media (max-width: 767px){
.nav-tabs {
    clear: both;
}
}

@media (max-width: 767px) {
.invisible-xs {
    visibility: hidden;
}
.table-cell-xs {
    display: table-cell;
}
}

@media (min-width: 768px) {
.navbar>.container .navbar-brand2 {
    margin-left: 0;
}
.text-sm-right { text-align: right; }
.nowrap-sm { white-space: nowrap; }

#public-pages-body h1:first-child,
#public-pages-body h2:first-child,
#public-pages-body h3:first-child {
    margin-top: 0;
    padding-top: 0;
}
.table-cell-xs {
    display: none !important;
}
}

@media (min-width: 992px) {
.row-table {
    display: table;
    width: 100%;
    margin-bottom: 5px;
}
.col-table {
    float: none;
    display: table-cell;
    vertical-align: top;
}
.col-table .panel {
    width: 100%;
    height: 100%;
    display: inline-block;
    margin-bottom: 5px;
}
.col-table .panel-heading, .col-table .panel-body {
    padding: 5px 10px 5px 10px;
}
}

/* the list of modules with images */
.divModuleListContainer {
    width: 90%;
    margin: auto
}
.divModuleListContainer .imgModule {
    width: 75%;
    margin: 10px;
    border-radius: 15px;
    box-shadow: 7px 7px 5px 0px rgba(150, 170, 170, 0.75);
}
.divTitleModule, .divModuleListContainer .progress_bar {
    width: 75%;
    margin:auto;
}

@media (min-width: 992px) {
    .col-xssm-10-2 .divTitleModule { font-size: 1.05em; }
}
.imgModuleEdit {
    width: 4em;
    border-radius: 5px;
    box-shadow: 5px 5px 3px 0px rgba(150, 170, 170, 0.75);
    margin-right: 1em;
}
/* / the list of modules with images */

.startmenu .list-group-item ul{
    list-style: none;
    padding: 2px;
    margin-left: 2em;
}
.startmenu .list-group-item li a{
    font-size: 0.95em;
    padding: 2px 10px 2px 2px;
}
#divStartpage .divInlineImpSite { display: inline !important; }

.navbar-warning {
    background-color: #e5e5e5 !important;
    background: #e5e5e5 !important;
}
/* fix for bootstrap blockquote, which has larger font etc. */
blockquote, blockquote p{font-size:inherit;line-height:inherit;}

.btn.disabled, .btn[disabled], fieldset[disabled] .btn {
    pointer-events: none;
}
a.btn-info, a.btn-success, a.btn-danger {
    color: #ffffff !important;
}

@media (max-width: 767px){
#nav-public, #nav-program {
    background: #ffffff; /* useful only when opening menu from sticky state on small screens */
}
.breadcrumb-chapter li.active{ /* hide the current chapter, it is already shown underneath at least once in the menu option */
    display: none;
}
}
.nav-container {
    position: sticky;
    top: 50px;
    z-index: 999;
}
@media (min-width: 992px) {
.nav-container { top: 75px; }
}
.anchor-shifted {
    scroll-margin-top: 53px; /* to anchor past header e.g. in program */
}

.form-control { padding: 6px 6px 6px 6px; }
