/* 
    Created on : Sep 11, 2019, 9:44:00 AM
    Help will be the replacement for the current trainingcontent page.
    Author     : bgoodrich
*/


/** ****** PRINTING **********  **/
@media print {
    
    body {
        display: block;
        height: unset;
    }
    
    #header,
    #t4l_build,
    .widget.searchbox,
    .panel.folders,
    .material-icons.help-print,
    .hd > :first-child {
        display: none;
    }
    
    .hd {
        background-color: transparent;
        border-bottom: 0;
    }
    
    h3,
    article.panel.content,
    section.panel.content {
        display:block;        
    }
    
    .hd h3.print-title {display: inline;}
    .hd h3#h3-title {margin-left: 10px;}
    
    article.panel.content,
    section.panel.content {
        padding-left:4px;
    }
    
}
/** ****** END PRINTING ******  **/

strong {
    font-weight: 500;
    font-family: 'Roboto', verdana, sans-serif;
}

video {
    width:100%;
    max-width:500px;
}

iframe {
    max-width:500px;
    aspect-ratio: 4/3;
}

iframe.book {
    aspect-ratio: 16/9;
}

img {
    max-width:500px;
}

.page-help h1 {
    margin-left:20px;
    font-size: 1.5em;
}

h3 {margin-left:20px;}

h3.print-title {display: none;}

.nostudents,
.loggedin.student .nostudents {
    display: none;
}

.loggedin .nostudents {
    display: block;
}

.material-icons.help-print {
    font-size: 24px;
    color: var(--primary-color-dark);
    margin-left:auto;
    padding: 4px;
}

.embedded button.material-icons.help-print {
    display: none;
}

.bd > .fixed-width {
    border-right: 1px solid var(--middlegrey);
    width: 300px;
}

section.panel.folders section.topics > ul > li.active {
    background-color: var(--white);
    height: unset;
}

section.panel.folders > section.topics > ul > li.active > div:first-child {
    background-color: var(--primary-color-light);
}

section.panel .topics {
    background-color: var(--white);
    overflow-y: auto;
    flex: 1;
}

section.panel .bottom {
    border-top: 1px solid var(--middlegrey);
    padding: 10px;
    background: var(--white);
    display: flex;
    align-items: center;
}

article.panel.content,
section.panel.content {
    padding:12px 30px;
    background-color:#ffffff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
}

:not(button).link {
    color:#4574B4;
    cursor:pointer;
    display:flex;
    flex-direction: row;
}

.link:hover {
    background-color:#E9E9E9;
}

#ul-folders > li > .flexrow > .material-icons {
    margin:-3px 8px 0 0;
}

section.panel.folders > section.middle > ul > li.active {
    background-color: #FFF;
    height:unset;
}

section.panel.folders > section.middle > ul > li svg {
    margin-right:10px;
}

section.panel.folders > section.middle > ul > li.active > div:first-child {
    background-color:#a8e3ff;
}

/**  tutorial list in the left panel  **/
section.panel.folders > section.middle > ul > li.tutorial.link > .name,
section.panel.folders > section.middle > ul > li.tutorial.link > .steps {
    align-self:flex-start;
    box-sizing:border-box;
    width:100%;
}

#ul-tutorials li.tutorial div:before {
    content:url(/images/themes/1/icon_help_book.svg);
    margin-right: 5px;
    position: relative;
    top: 1px;
}
/**  end tutorial list in the left panel  **/


/**  document list in the left panel  **/

.bd > .fixed li:hover, .bd > .fixed-width li:hover {
    background:transparent;
}

.bd > .fixed-width li {
    display:flex;
    flex-direction:column;
    justify-content: center;
    align-items:initial;
    border-radius:0;
    height:unset;
    padding:0;
    margin:4px 0;
}

.bd > .fixed-width li ul li{
    height: 44px;
    border-radius: 20px;
    width: 100%;
    box-sizing: border-box;
    padding-left: 14px;
    overflow: unset;
    text-overflow: unset;
    white-space: normal;
}

.bd > .fixed-width li div {
    align-items:center;
}

.bd > .fixed-width li div:hover,
.bd > .fixed-width li ul li:hover,
.bd > .fixed-width li ul li.active,
.bd > .fixed-width li ul li.active:hover{
    background-color: #e8e8e8;
}

.bd > .fixed-width li div.helptopic {
    margin:0 10px;
}

.bd > .fixed-width li ul {
    margin-left:20px;
}

.bd > .fixed li:hover, .bd > .fixed-width li div span {
    flex:1;
}

.bd > .fixed-width li.topic div svg.svg_icon {
    height:32px;
    width:32px;
    fill:var(--darkgrey);
}

.bd > .fixed-width li.topic div svg.svg_icon.folder {
    height:32px;
    width:32px;
    fill:var(--primary-color);
    margin-right:10px;
}

.bd > .fixed-width li.topic div.name.topic {
    flex:1;
    margin-right:5px;
}

.bd > .fixed-width li.topic div svg.svg_icon.arrowup {
    display:none;
}

.bd > .fixed-width li.topic.active div svg.svg_icon.arrowup {
    display:inline-block;
}

.bd > .fixed-width li.topic.active div svg.svg_icon.arrowdown {
    display:none;
}

section.panel.folders > section.middle > ul.documents > li {    
    margin-bottom:12px;
    white-space: normal;
}

section.panel.folders > section.middle > ul.documents > li > * {
    align-self:flex-start;
}

section.panel.folders > section.middle > ul.documents > li > img {
    margin-right:12px;
}

section.panel.folders > section.middle > ul.documents > li > button {
    margin-left:auto;
}

section.panel.folders > section.middle > ul > li .description {
    font-weight:normal;
    white-space: normal;
}

section.panel .helpful.bottom {
    margin-top:20px;
    padding-top:20px;
}

section.panel .helpful.bottom .initial{
    align-items:center;
}

section.panel .helpful.bottom .initial *{
    margin-right:15px;
}

section.panel .helpful.bottom .suggestion{
    width: 100%;
}

section.panel .helpful.bottom .suggestion label{
    margin-top: 15px;
    margin-bottom: 5px;
}

section.panel .helpful.bottom .suggestion textarea{
    width: 100%;
    max-width: 500px;
    padding: 8px;
    margin-bottom: 10px;
}

section.panel .helpful.bottom .suggestion button{
    margin-left:0;
}

section.panel .helpful.bottom button.primary:not(.new) {
    width: fit-content;
    flex: unset;
}
/**  end document list in the left panel  **/

section.welcome .back-holder {
    display:none;
}

section .back-holder {
    margin-left: 10px;
}

/** intro right panel **/

.page-help .bd h1 {
    flex: unset;
    margin: 20px 0;
    padding:0;
}

/**  content in right panel  **/
.panel.content.fill .content {
    line-height:1.5em;
    padding-bottom:48px;
    max-width: 1000px;
}

.panel.content.fill .content img{
    max-width: 100%;
}

.panel.content.fill .description {
    margin-bottom:2em;
    padding-top:1em;
    max-width: 1000px;
}

.panel.content.fill > .search.results > h4 {
    background-color: #F5F5F5;
    border:1px solid #E0E0E0;
    box-sizing: border-box;
    display:block;
    font-size:1em;
    height:34px;
    line-height:28px;
    margin:4px 0;
    padding: 4px;
}


.panel.content.fill > .search.results > ul {
    margin:12px 0;
    padding-left:12px;
}

.panel.content.fill > .search.results > ul > li {
    min-height:34px;
    line-height:34px;
    margin:4px 0;
    padding-left:4px;
}

.panel.content.fill > .search.results > ul > li > .link {
    display:flex;    
    flex:0 0 34px;
    width:auto;
}

.panel.content.fill > .search.results > ul > li > :last-child {
    border-bottom: none;
    display: flex;
    line-height: 1.3em; 
    margin-bottom:4px;
    min-height: 2em;
    padding: 0;
}

/**  end content in right panel  **/

/** welcome **/

section.welcome .help-print {
    display:none;
}

section.welcome h1 {
    text-align:center;
}

.holder.search {
    margin: 0 auto;
}

.help-welcome {
    width: 95%;
    max-width: 1100px;
}

.help-welcome h1 {
    margin: 20px 0;
    padding:0;
    font-size:1.5em;
}

.help-welcome h3 {
    margin: 30px 0 15px;
}

.help-topics {
    display:grid;
    grid-gap:20px;
    grid-template-columns: 1fr 1fr 1fr;
    margin-left: 5px;
}

.help-item {
    border: 1px solid var(--middlegrey);
    border-radius: 6px;
    padding: 8px;
    cursor:pointer;
}

.help-item.popular {
    background: #f3faff;
}

.help-item h4 {
    display: flex;
    align-items: center;
    font-weight: 500;
    margin-bottom:5px;
    font-size: 1em;
}

.help-item h4 svg {
    margin-right: 8px;
    border-radius: 10px;
    fill: var(--grey);
    height: 35px;
    width: 35px;
    padding: 5px;
}

.help-item h4 svg.green {
    background-color: #ddf9da;
}

.help-item h4 svg.talkie {
    fill: var(--primary-purple);
}

.help-item h4 svg.dictation {
    fill: var(--primary-green);
}

.help-item h4 svg.embed {
    fill: var(--primary-orange-dark);
}

.help-item h4 svg.inspect {
    fill: var(--primary-dark-green);
}

.help-item h4 svg.assignments {
    fill: var(--primary-red);
}

.help-item h4 svg.showcase {
    fill: var(--primary-color-dark);
}

.help-item h4 svg.privacy {
    background-color: var(--primary-color-dark);
}

.help-item h4 svg.wx101 {
    background-color: var(--primary-orange-dark);
}

.help-item h4 svg.lessons {
    background-color: var(--primary-green-dark);
}

.help-item h4 span {
    flex:1;
}

.help-topics.other .help-item:hover {
    background:var(--primary-color-light);
}

.help-topics.other h4 {
    flex-direction:column;
    text-align: center;
}

.help-topics.other h4 svg{
    margin:20px 0;
    fill:var(--white);
}

/** end welcome **/

/** help request form **/

.modal-content.help-form {
    height:90%;
}

.modal-content.help-form .modal-body {
    flex:1;
    display: flex;
    flex-direction: column;
    padding: 20px 30px;
    box-sizing: border-box;
}

.modal-content.help-form .modal-body label {
    margin: 12px 0 6px 0;
}

.modal-content.help-form .modal-body form{
    flex:1;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.modal-content.help-form .modal-body form .description{
    flex:1;
}

.modal-content.help-form .modal-body form .description textarea{
    flex: 1;
    overflow-y: scroll;
    resize: none;
}

.modal-content.help-confirm .modal-body p {
    margin:20px;
}

/** end help request form **/

@media (max-width: 599px) {
    
    .hd.flex.container.flexrow {
        height: initial;
        padding: 10px 15px;
        box-sizing: border-box;
        flex-direction: column;
        align-items: flex-start;
    }
    .hd > .widget.searchbox {
        position: absolute;
        top: 7px;
        right: 0px;
        width: 70%;
    } 
    .hd h1 {
        margin: 0;
        padding: 0;
    }
    .bd .panel.fixed-width {
        display: none;
    }
    
    button.help-print {
        display:none;
    }
    
    .bd article.panel.content,
    .bd section.panel.content {
        padding: 10px 15px;
    }
}

@media (max-width: 950px) {
    .help-topics {
        grid-template-columns: 1fr 1fr;
    }
}

/** HELP EDITOR **/

body.page-helpeditor {
    margin:0;
    display: flex;
    height: 100vh;
    max-height: -webkit-fill-available;
    flex-grow: 1;
}

body.page-helpeditor .keywords {
    display: none;
}

.page-helpeditor #catlist_options {
    padding: 2px 10px;
    box-sizing: border-box;
    border-right: 1px solid lightgrey;
    border-bottom: 1px solid lightgrey;
}

.page-helpeditor #catlist_options div {
    display: flex;
    margin-bottom: 2px;
    align-items: center;
}

.page-helpeditor label {
    width: 86px;
    font-size: .9em;
}

.page-helpeditor label.date {
    width: 100px;
}

.page-helpeditor textarea,
.page-helpeditor input[type="text"]{
    flex:1;
    font-family: 'Roboto', Verdana, Arial, sans-serif;
    font-size: 12pt;
    border:1px solid lightgrey;
}

.page-helpeditor .resp-table-row.body #topic_html {
    font-family: Courier, serif;
}

.page-helpeditor select {
    flex: 1;
    height: 24px;
}

.page-helpeditor .toolbar > :nth-child(3) {
    margin-left:auto;
}

.page-helpeditor .toolbar button {
    margin-right:10px;
}

.page-helpeditor button.secondary {
    cursor:pointer;
}

.page-helpeditor button.secondary[disabled="disabled"],
.page-helpeditor button.secondary[disabled]{
    cursor:initial;
    opacity:.5;
    pointer-events:none;
}

.page-helpeditor .bd .fixed-width {
    overflow:auto;
}

.page-helpeditor .bd > .fixed-width li {
    display:flex;
    white-space:unset;
}

#helplist_output {
    overflow: auto;
}

.page-helpeditor ul {
    list-style-type:none;
    padding: 0px;
    margin: 0px; 
    overflow: auto;
}

.page-helpeditor dl {
    padding: 5px 5px;
    border-bottom: 2px solid #ccc;
}

.page-helpeditor li {
    padding: 5px 5px;
    border-bottom: 1px solid #ccc;
}
.page-helpeditor li:last-child {
  border-bottom: none;
}
.page-helpeditor li:nth-child(even) {
  background: #f8f8f8;
}

.page-helpeditor .topic {
    font-weight:bold;
    margin-top:0;
    margin-left:5px;
}

.page-helpeditor .selected{
    color:blue;
    border-left:5px solid blue;
    font-weight: bold;
}

.page-helpeditor .box {
    display: flex;
}

.page-helpeditor .editable_div {
    border: 1px solid lightgrey;
    /* leave inline-blovk */
    display:inline-block; 
    overflow: auto;
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    flex:1;
}

.page-helpeditor .form-holder {
    display: flex;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
}

.page-helpeditor article.panel.content,
.page-helpeditor section.panel.content {
    overflow:hidden;
    padding: 8px 20px;
}

.page-helpeditor .resp-table-row.body {
    flex: 1;
    display: flex;
    overflow: auto;
    align-items: flex-start;
    flex-direction: column;
}

.page-helpeditor .resp-top {
    width: 100%;
    display: flex;
    flex-wrap:wrap;
}

.page-helpeditor .resp-table-column{
    flex:1;
    margin-right:20px;
}

.page-helpeditor .resp-table-row {
    min-height: 28px;
    display: flex;
    align-items: center;
}

body.page-helpeditor .resp-table-row.desc {
    align-items: unset;
}

body.page-helpeditor .resp-table-row.desc label{
    position: relative;
    top: 3px;
}

.page-helpeditor .resp-table-column.iddate{
    flex:unset;
}

.page-helpeditor .resp-table-column.iddate a{
    vertical-align:middle;
}

.page-helpeditor .resp-table-column.iddate svg{
    margin-left:5px;
    height:20px;
    width:20px;
    position:relative;
    top:1px;
}

.page-helpeditor .resp-table-column.checks{
    flex:unset;
    width:80px;
    border: 1px solid lightgrey;
    margin-right: 0;
    padding: 0 5px;
    background: #fafafa;
}

.page-helpeditor .resp-table-full{
    width:100%;
    border-top:1px solid lightgrey;
    margin-top:10px;
    padding: 10px 0;
}

.page-helpeditor .resp-table-header {
    display:flex;
    border-top:1px solid lightgrey;
    padding:5px 0;
}

.page-helpeditor .resp-table-header > :nth-child(2) {
    margin-left:auto;
}

.page-helpeditor .resp-main {
    display:flex;
    flex-direction:column;
    overflow: hidden;
    flex: 1;
}

.page-helpeditor button.editor {
    border:1px solid grey;
    background: #f1f1f1;
    border-radius:2px;
    padding:2px 4px;
    margin:0 2px;
    cursor:pointer;
}

.page-helpeditor button.editor[disabled] {
    opacity:.5;
    pointer-events:none;
    cursor:initial;
}

.page-helpeditor input::-webkit-calendar-picker-indicator {
    opacity: 100;
}

@media (max-width: 590px) {
    .toolbar #split-nav-left li {
        margin-right: 10px;
    }
    
    body:not(.loggedin) #t4l_primary {
        display: none;
    }
}

@media (orientation: portrait) {
    .bd > .fixed-width {
        width: 200px;
    }
}
