/*Moodle 2.8.5, UMA CV4.0, improved css rules
 by *egc, 29/mar/2017
*/

.label div.activityinstance{
    /*visibility:collapse !important;*/
}

img.iconlarge {
    height: 16px !important;
    width: 16px  !important;
    vertical-align: middle !important;
    }
    
.sitetopic .section li.activity, .course-content .section li.activity {
    padding: 0px !important;
   }

li.activity {
    /*Separación entre los li de las actividades*/
    margin-bottom: 3pt ! important;
   }

h1, h2, h3 {
    margin: 1px 0px !important;
    } 
    
/*ul.section div div.no-overflow div.no-overflow p{
    margin-bottom: 6pt !important;
}*/

/*li.section.main p{
    margin-bottom: 5pt;
}*/


/*UGT: User grades, teacher's view*/
    table#user-grades .r1, 
    .path-grade-report-grader table tr.even td.cell, 
    .path-grade-report-grader table tr.even th {
    background-color: rgb(220, 220, 222) !important;
    color: rgb(10, 10, 20) !important;
    }  
    
    table#user-grades tr.odd th {
    background-color: rgb(220, 220, 227) !important;
    color: rgb(10, 10, 20) !important;
    }
    
    table#user-grades .catlevel0, .catlevel1, .catlevel2, .catlevel3, 
    .catlevel4, .catlevel5,  .catlevel6,  .catlevel7,  
    .catlevel8,  .catlevel9,  .catlevel10{
    background-color: rgb(220, 220, 222) !important;
    color: rgb(10, 10, 20) !important;  
    border-bottom: 1px solid rgb(0, 0, 0);  
    }
    
    table#user-grades th#studentheader,
    table#user-grades th.useremail,
    table#user-grades th.catlevel1,
    table#user-grades th.catlevel2,
    table#user-grades th.catlevel3,
    table#user-grades th.catlevel4,
    table#user-grades th.catlevel5,
    table#user-grades th.catlevel6,
    table#user-grades th.catlevel7,
    table#user-grades th.catlevel8,
    table#user-grades th.catlevel9,
    table#user-grades th.catlevel10
    {
    background-color: rgb(220, 220, 222) !important;
    color: rgb(10, 10, 20) !important; 
    border-bottom: 1px solid rgb(0, 0, 0);
    }
    
    table#user-grades tr.heading th.categoryitem, 
    table#user-grades .topleft td, 
    table#user-grades tr.heading th.courseitem {
    background-color: rgb(220, 220, 222) !important;
    color: rgb(10, 10, 20) !important;
    border-bottom: 1px solid rgb(0, 0, 0);
    }


    /*.flexible th a {
    color: rgb(10,10,20) !important;
    }*/
    
    .path-grade-report-grader .gradeparent {
    overflow: visible !important;
    }
    
    
    /*titulos de las actividades, poner nowrap si queremos una sola fila o
    normal para que se rompan los espacios*/
    .path-grade-report-grader .flexible th.catlevel1 a,
    .path-grade-report-grader .flexible th.catlevel2 a,
    .path-grade-report-grader .flexible th.catlevel3 a,
    .path-grade-report-grader .flexible th.catlevel4 a,
    .path-grade-report-grader .flexible th.catlevel5 a,
    .path-grade-report-grader .flexible th.catlevel6 a{
    
       white-space: nowrap !important;
    }
    .path-grade-report-grader .gradeparent .cell {
        white-space: pre-wrap !important;
    }
    
    table#user-grades th.user {
    /*Nombre de usuarios*/
    text-align: left !important;
    white-space: nowrap !important;
    }
    
    /*Selected row in user grade table*/
    table#user-grades tr.odd td.hmarked,
    table#user-grades td.even td.hmarked,
    table#user-grades td.hmarked {
       background-color: rgb(250,250,155) !important;
    }
    

    
    table#user-grades th.useremail{
    /*Hide email column*/
    /*overflow: hidden;
    width: 0%;
    visibility:collapse;
    display: none !important;*/ 
    /*Actually, display:none make the column dissapear*/
    /*Unfortunately, header row has a colspan*/

    /*Dirty trick: make font unreadable to collapse and no padding*/
    font-size: 0pt;
    padding:0pt;
    background-color: rgb(220, 220, 222) !important;
    color: rgb(10, 10, 20) !important;
    border-bottom: 0px solid rgb(0, 0, 0);
    }

/*UG: User grades, student's view*/
    #report-main-content .region-content table{
    width: 80% !important ;
    }


/*Quizzes ...*/

/*@-moz-document regexp(".*cv\\.uma\\.es/question/edit.php.*")*/

/*QE: Question edition*/
    #categoryquestions .questionname {
    width: 70% !important;
    }    
    
    #page-mod-quiz-edit div.question div.content .questionname, 
    .categoryquestionscontainer #categoryquestions .questionname,
    .categoryquestionscontainer #categoryquestions .questiontext {
    white-space: normal !important;
    overflow: auto !important;
    position: relative;
    max-width: 70% !important;
    }
    
    th.creatorname, 
    td.creatorname,
    th.modifiername, 
    td.modifiername {
    visibility: hidden !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    }
    
    #categoryquestions th 
    {
    background-color: rgb(236, 235, 235) !important;
    color: rgb(0,0,5) !important;
    }
    
     #categoryquestions tr.r1 th 
    {
    background-color: rgb(227, 227, 227) !important;
    }
    
    
    #page-mod-quiz-edit ul.slots li.section li.activity .activityinstance {
    display: block !important;
    position: initial !important;
    }
    
    #page-mod-quiz-edit ul.slots .activityinstance span.instancename {
        white-space: normal !important;
       text-overflow: unset !important;;
       overflow: visible !important;;
       word-break: normal !important;;
       display: initial !important;;
    }


/*@-moz-document regexp(".*cv\\.uma\\.es/mod/quiz/edit.php.*")*/

/*QZE: Quizz edition*/
    #page-mod-quiz-edit div.question div.content 
    {
    max-width: 90% !important;
    }
    
    
    
    #page-mod-quiz-edit ul.slots .activityinstance span.instancename {
        white-space: normal     !important;
        text-overflow: initial   !important;
        overflow: visible      !important;
        display: inline-table   !important;
    }
    

    
    #page-mod-quiz-edit ul.slots li.section li.activity .activityinstance {
        display: block;
        position: relative;      !important
    }
    
    /*Columna de categorías (preguntas
    disponibles*/
    #page-mod-quiz-edit #categoryquestions .questionname
    {
    white-space: normal !important;
    overflow: visible !important;
    width: 30% !important;
    }
    
    #page-mod-quiz-edit #categoryquestions .questiontext
    {
    white-space: normal !important;
    overflow: visible !important;
    width: 30% !important;
    }
    
    #page-mod-quiz-edit #categoryquestions .questionnametext
    {
    padding: 5pt !important;
    }
    
    /*Columna del contenido del quiz
    */
    #quizcontentsblock .questionname{
    white-space: normal !important;
    overflow: visible !important;
    width: 30% !important;
    }
    
    #quizcontentsblock .questiontext{
    white-space: normal !important;
    overflow: visible !important;
    width: 40% !important;
    }
    
    table#categoryquestions td, 
    #page-mod-quiz-edit table#categoryquestions th {
    white-space: nowrap !important;
    }
    
    #page-mod-quiz-edit table#categoryquestions th {
    background-color: rgb(245, 245, 245) !important;
    color: rgb(0,0,5) !important;
    }
    
    #page-mod-quiz-edit table#categoryquestions tr.r1 th {
    background-color: rgb(230, 230, 230) !important;
    }

    /*Quiz content on the right*/
    #page-mod-quiz-edit div.quizcontents {
    float: left; 
    width: 60% !important; /*This width and the next one must sum up 100%*/
    display: block;
    clear: left;
    }

    /*Question bank on the left*/
    .questionbankwindow.block {
    /*This width and the previous one must sum up 100%*/    
    width: 40% !important;  
    float: right;
    display: block;
    }
    
/*@-moz-document regexp(".*cv\\.uma\\.es/mod/quiz/report.php.*")*/   
/*QUR: Quiz users' report*/

   table#attempts .c3{
    /*Hide email*/
    width: 0% !important;
    visibility:collapse !important;
    display: none !important; 
   }

   /*This supersedes UG rule above*/
   #page-mod-quiz-report table#attempts {
     width: 100% !important;
   }
   
   form#attemptsform table,
   form#attemptsform div {
     overflow: visible !important;
   }
   
   table#attempts  td.cell.c2{
    white-space: nowrap !important;
   } 
   
   div#report-main-content div#tablecontainer{
      margin-bottom:1cm;
   }

/*@-moz-document regexp(".*cv\\.uma\\.es/mod/quiz/attermpt.php.*")*/
/*QA: Quiz attempt (student's view of the questionnaire)*/
    .que .formulation,
    .que div.formulation{
    /*Sustitucion del background celestito por defecto del cv4.0 por 
     * un color mas neutral*/
    background: none repeat scroll 0% 0% rgb(215, 219, 219);
    border:1px solid;
    }

    table.quizreviewsummary th.cell{
    /*no se ve las cabeceras de la tabla sumario*/
    background-color: rgb(240, 240, 245) !important;
    color: rgb(0,0,5) !important;
    }

/*@-moz-document regexp(".*cv\\.uma\\.es/mod/assign/view.php.*action=grading.*")*/   
/*AR: Assignment report*/

    div.gradingtable th.email,
    div.gradingtable td.email{
    /*Dirty trick: make font unreadable to collapse and no padding*/
    font-size: 0pt;
    padding:0pt;
    width: 0pt;
    color: rgb(10, 10, 20);
    }
    
    div.gradingtable th.c0{
    font-size: 1pt; /*Unreadable font for first column "Select" to save space*/
    }
    
    body#page-mod-assign-view div#page-content,
    body#page-mod-assign-view div#region-main,
    body#page-mod-assign-view div#region-main div,
    body#page-mod-assign-view table{
     overflow: visible !important;
    }
 
    body#page-mod-assign-view  th.header.c2,
    body#page-mod-assign-view  td.cell.c2{
    white-space: nowrap !important;
    }
    
