/*
 Theme Name:   mentor (Divi Child)
 Theme URI:    
 Description:  Mentor based on Divi Theme by Elegant Themes
 Author:       
 Author URI:   
 Template:     Divi
 Version:      1.0.0
 Text Domain:  divi-child
*/


/* get rid of a strange vertical bar */
@media (min-width: 981px) {
    #main-content .container:before {
        content: "";
        position: absolute;
        top: 0;
        height: 100%;
        width: 0px;
        background-color: transparent;
    }
}

/* add some space around the main area for the protege case screen */
body.single-protege_case #et-main-area { margin:20px; }

.hello { font-size:14pt; font-weight:bold; }
body.page-slug-protege-landing-page .hello { font-size:17pt; line-height:55px; }
.nametag { font-weight:bold; }

body.single-protege_case #content[role=main] { margin:10px 40px }
@media only screen and (max-width:414px) {
    body.single-protege_case #content[role=main]  { margin:0px 0px!important; }
    .gadget-panel.left { width:100%; max-width:414px; }
    .gadget-panel.right { width:100%; max-width:414px; }
    .mouth-graphic div.tooth { height:33px!important; width:12px!important; }
    .mouth-graphic div.toothnum { height:12px!important; width:12px!important; font-size:5pt;}
    .mouth-table .mouth-row { height:inherit; }
}

.personal-information-disclaimer { border:2px solid red; padding:5px 10px;margin:15px; font-family:sans-serif; }
.general-page-information-bar { border:2px solid green; padding:5px 10px;margin:15px; font-family:sans-serif; margin-top:10px;}

.message-box { background-color:darkgreen; max-width:320px; margin:20px 0px; padding:5px 10px; color:white; font-weight:bold; }
.message-box.error { background-color:burgundy; }

/* hide special fields from the new entry display */
body.page-template-template-add-protege-case div.acf-field.hide-from-new {display:none;}
body.page-template-template-add-protege-case div.acf-field.hide-from-draft {display:none;}

/* hide special fields from the draft (editing) display */
body.protege-case-draft div.acf-field.hide-from-draft { display:none; }

/* hide list of mentors on the mentor-admin screen */
body.role-mentor-admin #mentor-discussion-mentor-list { display:none; }

#mentor-discussion-mentor-list h3 { color:#00274c!important; }

/* secondary menu tweaks */
li.dashboard-link { font-weight:bold; }
li.menu-item.yellow { color:  rgb(255, 203, 5); }


/* generic for discussion */
div.protege-display-discussion-title { font-weight:bold;   width:100%; border:1px solid white; background-color:#00274c; color:white; text-align: center; font-weight:bold; font-size:120%;}
div.protege-display-discussion-label { font-weight:bold;   width:310px; text-align: center; }
div.protege-display-discussion-label.protege { border:1px solid white; background-color:#414141; color:white;}
div.protege-display-discussion-label.mentor  { border:1px solid white; background-color:#111111; color:white;}

div.protege-display-discussion-descriptions-and-images-container {  }
div.protege-display-discussion-description {   padding:3px; text-align: left; color:black;}
div.protege-display-discussion-image  {   border:1px solid #00274c;  padding:1px; }
div.protege-display-discussion-image img {   width:318px; height:auto; }
div.protege-display-single-discussion-description-and-image-container { border:3px solid darkgrey; padding:2px }
div.text-discussion {}

/* internal discussion */
div.protege-display-internal-discussion-title { font-weight:bold;   width:100%px; border:1px solid white; background-color:#00274c; color:white; text-align: center; font-weight:bold; font-size:120%;}
div.protege-display-internal-discussion-mentor { float:left; font-weight: bold; padding-right:10px; color:blue;}
div.protege-display-internal-discussion-description { float:left;  padding-right:10px;}
div.protege-display-internal-discussion-epochstamp { float:left; font-size:9pt; color:red; }
input[name='patient_case_internal_discussion_text'] { width:100%; max-width:414px; }
div#mentor-to-mentor-discussion-title { font-size:18pt; color:black; font-weight:bold;margin:20px 0px 10px 0px }
div#mentor-to-mentor-discussion { border:2px solid #00274c;padding:20px;  border-radius:15px 15px; }

/* external discussion */
div.protege-display-external-discussion-title { font-weight:bold;   width:100%; max-width:414px; border:1px solid white; background-color:#00274c; color:white; text-align: center; font-weight:bold; font-size:120%;}
div.protege-display-external-discussion-mentor { float:left; font-weight: bold; padding-right:10px; color:blue;}
div.protege-display-external-discussion-description { float:left;  padding-right:10px;}
div.protege-display-external-discussion-epochstamp { float:left; font-size:9pt; color:red; }
input[name='patient_case_discussion_text'] { width:100%; max-width:414px; }
div#protege-to-mentor-discussion-title { font-size:18pt; color:black; font-weight:bold;margin:20px 0px 10px 0px }
div#protege-to-mentor-discussion { border:2px solid #00274c;padding:20px;  border-radius:15px 15px; }
div.mentor-external-message-submit input[type=submit]:hover { opacity:.5!important; cursor:pointer;}

/* sending case back to protege */
div#protege-to-mentor-discussion-sendback-button { border:1px solid #00274c; padding:1px 3px; display:inline-block;font-size:10pt;margin-bottom:10px; color:black;}
div#protege-to-mentor-discussion-sendback-button:hover { opacity:.5; cursor:pointer;} 

/* treatment plan tool */
div#treatment-plan-tool-title { font-size:18pt; color:black; font-weight:bold;margin:20px 0px 5px 0px; }
div#treatment-plan-tool { border:2px solid #00274c;padding:20px;  border-radius:20px 20px 20px 20px; }

/* for protege join */
div#full-terms-box { 
    background-color:linen!important; 
    height: 200px!important; 
    overflow-y: scroll!important; 
    border: 1px solid #ccc!important; 
    padding: 10px!important;
}

/* RCP registration form */
#rcp_agree_to_terms {  }
#rcp_user_license_state,
#rcp_user_license_year {
    font-family: inherit;
    height: 2.25rem;
    font-size: 1rem;
}

/* for required fields in patient data */
.acf-required-missing {
    border: 2px solid red !important;
    background-color:pink;
    padding: 5px;
}

.required-badge {
  color: red;
  font-weight: normal;
  margin-left: 5px;
}

/* for support form */
button.pum-close { background-color: #00274c!important; }
.pum-container .pum-content+.pum-close { font-weight:bold!important; font-size:20pt!important; }
form#gform_1 input[type=submit] { font-size: 20pt; opacity:.75; }
form#gform_1 input[type=submit]:hover { opacity:1; cursor:pointer; }
#top-menu li.launch-support-popup a { border:1px solid #FFCB05; background-color:#00274c;padding:8px 5px 10px 5px!important; border-radius: 5px; color:#FFCB05; }
#top-menu li.launch-support-popup a:hover { border:1px solid #00274c; background-color:#ffcb05;   color:#00274c; }