html body {
    background-color: #eef0f1;
    word-wrap: break-word;
    hyphens: manual;
}

/* useful for debugging */
/*
*{
    outline: 1px solid red !important;
}
*/

.post-name a, .post-name a:hover {
    color: #000000 !important;
    font-size: 18px;
    font-weight: 400;
}


.container {
    max-width: 1500px !important;
    width: calc(100% - 4.5rem) !important;
}

.btn-group-xs > .btn, .btn-xs {
    padding  : .25rem .4rem !important;
    font-size  : .875rem !important;
    line-height  : .5 !important;
    border-radius : .2rem !important;
}

.bg-steel {
    background-color: #5f788a;
}

/* Logo stuff */
.navbar-brand {
    align-items: center;
}

.content-section {
	background: #ffffff;
	padding: 12px 10px;
    /*overflow: auto;*/
    /* override row margin */
    margin-right: 0px !important;
    margin-left: 0px !important;
}

td .rounded-circle {
    vertical-align: middle;
}

.img-col {
    padding-left: 0px !important;
    padding-right: 0px !important;
}

.pin-section {
	background: #ffffff;
}

.profile-section {
	background: #ffffff !important;
	padding: 20px 30px !important;
}

.icon-img {
    margin-right: 10px;
}

.ck-content p {
}

.ck-content {
    overflow-x: auto;
}

figure.image {
    margin: 0 0 1rem;
}

.ck-content table {
    table-layout: fixed;
}

.ck-content img:hover {
    cursor: pointer;
}

.ck-content img {
    max-width: 564px !important;
    width: 100% !important;
    max-height: 581px !important;
    height: 100% !important;
}

.mention-custom-item:active {
    background-color: #cfcfcf !important;
}

.ck-button.ck-on, .mention-custom-item:hover {
    background-color: #cfcfcf !important;
}

.mention-item-displayname {
    font-weight: bold !important;
    font-size: 13.5px !important;
}


#ui-action td {
    transition: background-color 0.2s ease;
}

#ui-action tbody tr:hover {
    background-color: #e1e3e4;
    cursor: pointer;
}

.profile-questions {
    font-weight: normal;
    font-family: sans-serif;
}

/* causing issues with collapse and hover in admin sidebar
.show {
    display: table-row;
}
*/

#profileImg:hover {
    opacity: 0.7;
    cursor: pointer;
}

#filterList:hover {
    opacity: 0.7;
    cursor: pointer;
}

#calendar-container {
    background-color: #ffffff;
    padding: 20px;
    margin-bottom: 30px;
}
/*for 'today' color in fullcalendarjs*/
.fc-day-today {
    background-color: #fff !important;
    border: 5px solid blue;
    box-shadow: 0 0 10px blue;
}
.fc-event {
    cursor: pointer;
}

/* for calendar leave information */
.chart-pie {
  position: relative;
  height: 15rem;
  width: 100%;
}

@media (max-width: 768px) {
  .brand-logo{
      max-width: 150px !important;
  }
}

@media (min-width: 768px) {
  .chart-pie {
    height: calc(20rem - 43px) !important;
  }
}


/* admin Dashboard */
.dash-category a, 
.dash-category a:hover, 
.dash-category a:focus, 
.dash-category a:active, 
.dash-cateogry a:link {
      text-decoration: none !important;
      color: inherit !important;
}

#bulk_actions {
    display: none;
}		

/*https://stackoverflow.com/questions/3163615/how-to-scroll-an-html-page-to-a-given-anchor?answertab=modifieddesc#tab-top*/
/*https://stackoverflow.com/questions/31863582/automatically-scroll-to-a-div-when-flask-returns-rendered-template*/
/*https://stackoverflow.com/questions/24665602/scrollintoview-scrolls-just-too-far*/

/* scroll-behavior commented out to be more like stackoverflow UI design for user answers*/
/*{scroll-behavior: smooth;}*/

.comment {
        scroll-margin-top: 110px;
  /*    Adds margin to the top/bottom of the viewport
        scroll-margin-block-start: 110px;
        scroll-margin-block-end: 110px;
        */
}

.highlighted-comment {
    animation: highlight-fade 3s; 
    animation-timing-function: ease;
    animation-delay: 0s;
    animation-iteration-count: 1;
    animation-direction: normal;
    animation-fill-mode: none;
    animation-play-state: running;
}

@keyframes highlight-fade {
    from { background-color: #FFF59D; }
}

/* see https://stackoverflow.com/questions/46559354/how-to-set-the-height-of-ckeditor-5-classic-editor */

.posts-width {
    max-width: 800px !important;
}

/* for table row link to comments, posts, notifications */
[data-href] {
    cursor: pointer;
}

tr {
	border-bottom: 1px solid #e3e3e3;
}

td, th {
    vertical-align: middle !important;
}

.table-wrapper {
    overflow-x: scroll;
}

.table-hover td, th {
    padding: 12px;
}
.table-hover > tbody > tr:hover {
    -moz-box-shadow: inset 0 0 100px 100px rgba(255, 255, 255, 0.1);
    -webkit-box-shadow: inset 0 0 100px 100px rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 100px 100px rgba(255, 255, 255, 0.1);
}

.trimmed-cover {
    height: 100%; 
}

.nav-tabs .authorise-badge {
    position: relative;
    top: -1px;
}

.badge {
    top: -2px !important;
}

/* NAVBAR STUFF */

.flex-grow-1 {
    min-width: 0;
}


#admin-content-wrapper {
    flex-grow: 1;
    min-height: 0;            /* Allows it to shrink properly in flex */
    overflow: visible;        /* or auto if you want scroll when needed */
    box-sizing: border-box;
}

#sidebar {
    position: fixed;
    top: 80px;
    left: 0;
    height: calc(100vh - 80px);
    width: 250px;
    position: sticky;
    z-index: 1029;
    overflow-y: auto;
    background-color: #323d4e;
}

#sidebar .nav-link {
    color: #b8c2ca;
    font-weight: bold;
}

#sidebar .nav-link:hover {
    color: #fff;
    background-color: #27313e;
}

#sidebar .nav-link.disabled {
    color: #fff;
    background-color: #525c6a !important;
}

.sidebar-toggle {
    border: none;
    background: transparent;
    font-size: 1.5rem;
}

.sidebar-submenu {
    border-left: 2px solid #ccc;
    margin-left: 1.45rem;
}

@media (max-width: 767.98px) {
    #sidebar {
        position: fixed;
        top: 80px;
        left: -250px;
        width: 250px;
        transition: left 0.3s ease;
        z-index: 1029;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
        overflow-y: auto;            /* Enable vertical scroll */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }


    #admin-content-wrapper {
        margin-left: 0
    }

    #sidebar.active {
        left: 0;
    }

    .overlay {
        display: none; /* hidden by default */
        position: fixed;
        top 56px;
        left: 0;
        width: 100%;
        height: calc(100vh - 56px);
        background: rgba(0,0,0,0.5);
        z-index: 1028;
        overflow-y: auto;
    }

    .overlay.active {
        display: block;
    }
}
