/*Moodle 2.8.5, UMA CV4.0, improved css rules
 by *egc, 2017, 2023, 2025

Only:
 - More compact grades
 - Fix vertical scroll appearing in onetopic (pestañas) appearance
*/


/*UGT: User grades, teacher's view*/

    /* Mark cell with overridden grades even
       in even rows */
    td.even.overridden { 
        background-color: bisque !important;
    }


    /* Do not apply to overridden cells */
    table#user-grades .r1, 
    .path-grade-report-grader table tr.even td.cell:not(.overridden), 
    .path-grade-report-grader table tr.even th {
    background-color: rgb(220, 220, 222);
    color: rgb(10, 10, 20);
    }

    
    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 ;
    }

/* One topic fix: remove vertical scroll when tabs are placed vertically */
/*#region-main {*/
#region-main:has(.onetopic) {
	overflow-x: unset;
	/* overflow-y: visible; */
	/* background-color: #fff;*/
}
