﻿/*
* Notice: This source file was originally developed by Automatik IT, to make development of new projects more efficient, internally and externally for various clients.
* The functionality in this file is provided in source form instead of as a binary (NuGet Package etc.) to allow clients of Automatik IT to make changes on their own.
* Clients of Automatik IT have the right to modify this file and have ownership of the changes they make.
* Exclusive ownership of the original source file is not granted, as it's used in various projects for the sake of efficiency.
*/


.ListControl {
    max-height: 100%;
    max-width: 1440px;
    background-color: #fff;
    /* https://moduscreate.com/blog/how-to-fix-overflow-issues-in-css-flex-layouts/ */
    min-height: 0;

    margin: 24px 0 0 24px;
}

    .ListControl header {
        flex-shrink: 0;
    }


/* Remove left and right margin on small screens */
@media screen and (max-width: 1024px) {

    .ListControl {
        margin-left: 0;
        margin-right: 0;
        margin-top: 0;
    }
}



        .ListControl header h4 abbr {
            font-size: 90%;
            color: rgba(0,0,0,.6);
            
            margin-left: 8px;
        }


        .ListControl header h4 abbr:before {
            content: '(';
            
        }


            .ListControl header h4 abbr:after {
                content: ')';
            }


    .ListControl .Body p {
        margin-left: 17px;
        margin-right: 17px;
    }

    /* Highlight rows when moving over them */

    .ListControl tbody tr {
        transition: background-color 0.2s;
    }

        .ListControl tbody tr:hover,
        .ListControl tbody tr:focus-within {
            background-color: rgba(0,0,0,.035)
        }

    .ListControl table {
        width: 100%;
    }


    .ListControl th,
    .ListControl td {
        padding-left: 8px;
        padding-right: 8px;
        cursor: pointer;
    }

	/* Helps DataTables calculations */
    .ListControl td {
		height: 78px;
    }

        .ListControl th:first-child,
        .ListControl td:first-child {
            /*
            padding-left: 0;
            */
            padding-left: 18px;
        }


        .ListControl th:last-child,
        .ListControl td:last-child {
            padding-right: 18px;
        }

    .ListControl footer {
        display: none;
    }

/*
.table > thead > tr > th,
.table > thead > tr > td,
.table > tbody > tr > th,
.table > tbody > tr > td,
.table > tfoot > tr > th,
.table > tfoot > tr > td {
    border-color: rgba(51, 51, 51, 0.20);
}
        */
/* Style the Datatable used by the ListControl */
/*
.dataTable {
    margin-right: -80px;
}
*/
.paginate_button {
    padding: 0 4px 0 4px;
}


.dt-button {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.45098) !important;
    border: none !important;
    box-shadow: none !important;
    color: #FFF !important;
    font-size: 12px !important;
}


    .dt-button > span {
        /*
        color: rgba(255, 255, 255, 0.45098) !important;
        */
        color: #000;
    }

/*
.DTTT .btn>span:after {
  font-family: "Glyphicons Halflings";
  content: "\e080";
}
*/


.ListControl .Filter {
    position: absolute;
    top: 12px;
    right: 290px;
    right: 293px;
}

    .ListControl .Filter > label > input {
        height: 28px;
    }


.DTTT_container {
    position: absolute !important;
    top: 12px;
    right: 186px;
}

.dt-button {
    padding: 1px 4px !important;
}

a.DTTT_button_xls > span > span {
    background-color: #1F7244;
    color: #BBB !important;
    border-top-right-radius: 4px;
}

a.DTTT_button_pdf > span > span {
    background-color: #CF1312;
    color: #BBB !important;
    border-top-right-radius: 4px;
}

.CreateButton {
    margin-right: 8px;
}


.ListControl th {
    text-align: left;
    white-space: nowrap;
    font-weight: normal;
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: 1px;
    color: rgba(0,0,0,.92);
}

    .ListControl th:hover {
        color: rgba(0,0,0,1);
    }
	

.dt-column-header {
    display: flex;             /* layout children in a row */
    align-items: center;       /* vertical center */
    gap: 1px;                  /* space between elements */
    white-space: nowrap;       /* prevent wrapping */
}


.Numeric .dt-column-header {
	justify-content: flex-end;
}



    .ListControl .filterButton:hover {
        color: rgba(0,0,0,.4);
    }
	
	
.ListControl td {
    padding-top: 18px;
    padding-bottom: 18px;
    /*max-width: 340px;*/
    
}

.ListControl.ComplianceStep td {
    padding-top: 0;
    padding-bottom: 0;
}

.ListControl .ComplianceStep {
    padding-top: 8px;
    padding-bottom: 8px;
    width: 100%;
}

/*
.ListControl th:nth-child(1),
.ListControl td:nth-child(1) {
    padding-left: 17px !important;
}
*/


/* Domain object HTML (often items in the first column in lists) */

.DomainObjectHtml {
    display: flex;
}


    /* Icon */
    .DomainObjectHtml > span:first-child {
        /*min-width: 54px;*/
        min-width: 42px;
        justify-content: center;
        position: relative;
        display: flex;
        flex-direction: column;
    }


    .DomainObjectHtml > span > span {
        display: block;
        max-width: 240px;
    }

        .DomainObjectHtml > span > span > * {
            text-overflow: ellipsis;
            display: block;
            overflow: hidden;
        }



/* Text */
.DomainObjectHtml.SingleRow > span:nth-child(2) {
    /*
        line-height: 45px;
        */
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    /*white-space: nowrap;*/
}

    /* Text */
    .DomainObjectHtml.DoubleRow > span:nth-child(2) {
        margin-left: 10px;
        /* Center name, website vertically */
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

/* Bold the first name */
/*
    .DomainObjectHtml.DoubleRow > span > span:nth-child(1) {
        font-weight: bold;
    }
    */

.ListControl tr > td:first-child .DomainObjectHtml.SingleRow > span:nth-child(2) > span:first-child {
    font-weight: 700;
}

.ListControl tr > td:first-child .DomainObjectHtml.DoubleRow > span:nth-child(2) > span:first-child {
    font-weight: 700;
}


/* Smart icons */
.ListControl .DomainObjectHtml .Icon.Logo,
.select2-results .DomainObjectHtml .Icon.Logo,
.form-control-static .Icon.Logo,
.account-picture .DomainObjectHtml .Icon.Logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: solid 1px #ddd;
    background: #fff no-repeat left;
    /*
    background-size: contain;
    background-position: 4px 50%;
    */
    /*
    background-position: 4px;
    */
    background-position: left center;
    /*
    background-size: auto 38px;
*/
    background-size: cover;
}


.ListControl td .Icon,
.DomainObjectHtml .Icon {
    font-size: 42px;
	display: flex;
    align-items: center; /* vertical center */
    justify-content: center; /* horizontal center */
    width: 42px;
    height: 42px;
}


/* Show for instance multiple categories (domain object HTML) after another in a TD */

    .ListControl .Multiple .DomainObjectHtml {
        display: inline-flex;
    }

    .ListControl .Multiple a {
        text-decoration: none;
        color: inherit;
    }


.ListControl th.sorting,
.ListControl th.sorting_asc,
.ListControl th.sorting_desc {
    cursor: pointer;
}

.ListControl .dataTables_paginate {
    margin-top: 28px;
    margin-left: -18px;
    margin-bottom: -8px;
    position: absolute;
    bottom: 0;
}

    .ListControl .dataTables_paginate a {
        cursor: pointer;
    }

    .ListControl .dataTables_paginate .Icon {
        font-size: 40px;
        vertical-align: middle;
        margin-bottom: 2px;
    }


.ListControl .filterButton {
    color: rgba(0,0,0,.2);
    margin-left: 4px;
    font-size: 13px;
    cursor: pointer;
}


.ListControl.OrganizationTaskCategory td a,
.ListControl.Task td a,
.DomainObjectHtml.Task td a {
    color: inherit;
    font-weight: normal;
    white-space: normal;
    /*max-width: 260px;*/
    display: block;
    line-height: 160%;
    text-decoration: none;
}


.ListControl th.Numeric,
.ListControl td.Numeric {
    text-align: right;
}

.ListControl th.Boolean,
.ListControl td.Boolean,
.ListControl th.Action,
.ListControl td.Action {
    text-align: center;
}


.ListControl td.Date {
    white-space: nowrap;
}




/* GDPR list */
.ListControl.ComplianceStep .Body {
    padding-left: 78px;
    padding-right: 78px;
}

#AutomatikIT_DpoSaas_Domain_ComplianceStep-1Table {
    max-width: 800px;
}


/* Right column in GDPR list */
/* ENABLE */
/*
.Status {
    display: inline-block;
    position: absolute;
    width: 200px;
    height: auto;
    background-color: #FFF;
    padding: 18px;
    border: 8px solid #555;
    margin-top: -152px;
    border-radius: 18px;
}

    .Status:before {
        content: ' ';
        position: absolute;
        width: 0;
        height: 0;
        left: 30px;
        right: auto;
        top: auto;
        bottom: -40px;
        border: 20px solid;
        border-color: #555 transparent transparent #555;
    }

    .Status:after {
        content: ' ';
        position: absolute;
        width: 0;
        height: 0;
        left: 38px;
        right: auto;
        top: auto;
        bottom: -20px;
        border: 12px solid;
        border-color: #FFF transparent transparent #FFF;
    }


    .Status > a {
        color: #000 !important;
    }
*/


#LoggedEventReadPartialTable td {
    position: relative;
}

#LoggedEventReadPartialTable th {
    padding-bottom: 6px;
}


#LoggedEventReadPartialTable td:first-child {
    /*color: rgb(60, 171, 219);*/
    padding-left: 36px;
    /*text-align: right;*/
    /* color: #AAA; */
}

        #LoggedEventReadPartialTable td:first-child:before {
            content: '';
            position: absolute;
            width: 1px;
            /* background-color: rgba(60, 171, 219, .5); */
            background-color: rgba(0, 0, 0, .3);
            top: 0;
            bottom: 0;
            left: 22px;
            margin-left: -3px;
        }

        /* The circles on the timeline */
        #LoggedEventReadPartialTable td:first-child:not([colspan]):after {
            content: '';
            position: absolute;
            width: 7px;
            height: 7px;
            left: 15px;
            background-color: white;
            border: 1px solid rgba(0, 0, 0, .3);
            top: calc(50% - 6px);
            border-radius: 50%;
            z-index: 1;
        }



/* Make the body have no padding to allow side to side rows */
.WindowControl.ListControl .Body {
    padding-left: 0;
    padding-right: 0;
    max-height: calc(100vh - 284px);
}



@media screen and (max-width: 1024px) {

    .WindowControl.ListControl .Body {
        max-height: calc(100vh - 110px) !important;
    }
}

/* Show property names with a blue border */
.ListControl.OrganizationTaskCategory i,
.ListControl.Task td:first-child i:not(.Icon) {
    border: 1px solid #DDD;
    font-style: normal;
    padding: 3px 7px 5px;
    color: #2c9adc;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
}


/* Keep property names short in the dashboard */
/*
.ListControl.OrganizationTaskCategory i {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
}
*/

/* Row grouping */

table.dataTable tr.dtrg-group td {
    /* background-color: #f6f6f6; */
    /*border-bottom: 1px solid #777;*/
    padding-top: 28px;
    padding-bottom: 0px;
}

table.dataTable tr.dtrg-group:first-child td {
    padding-top: 16px;
}


/* Don't highlight grouping row when hovering */
table.dataTable tr.dtrg-group:hover {
    background-color: transparent;
}

/* Show normal cursor when hovering grouping row */
table.dataTable tr.dtrg-group td:hover {
    cursor: initial;
}

/* Show a bit less padding on task rows */
.ListControl.Task tr:not(.dtrg-group) td {
    padding-top: 10px;
    padding-bottom: 10px;
}

    .ListControl.Task tr:not(.dtrg-group) td:first-child {
        padding-left: 54px;
    }

    /* CSS-icon */

    /*
        .ListControl.Task tr:not(.dtrg-group) td:first-child .DomainObjectHtml > span:first-child {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }


        .ListControl.Task tr:not(.dtrg-group) td:first-child .Icon {
            border: 1px solid rgba(0,0,0,.2);
            border-radius: 50%;
            width: 28px;
            height: 28px;
        }
        */
        .ListControl.Task tr:not(.dtrg-group) td:first-child .Icon {
            font-size: 32px;
            color: #51a151;
        }

        .ListControl.Task tr:not(.dtrg-group) td:first-child .DomainObjectHtml > span:first-child svg {
            height: 28px;
            
        }


/* Max width for users */
.DomainObjectHtml.DoubleRow.User > span:nth-child(2) {

    max-width: 200px;
}




#ProcessingActivityReadPartial tr.dtrg-group > td {
    font-weight: bold;
    font-size: 18px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(0,0,0,.2);
}

    #ProcessingActivityReadPartial tr.dtrg-group > td .DomainObjectHtml > span:first-child {
        display: none;
    }

    #ProcessingActivityReadPartial tr.dtrg-group > td .DomainObjectHtml > span:nth-child(2) {
        margin-left: 0;
    }


#NewsItemReadPartial header,
#NewsItemReadPartial thead {
    display: none;
}



/* Hide icon for business function in the processing list */
#ProcessingActivityReadPartial .BusinessFunction > span:first-child {
    display: none;
}

#ProcessingActivityReadPartial .BusinessFunction > span:nth-child(2) {
    margin-left: 0;
}


.ListControl .Button {
    background-color: transparent;
    color: #000 !important;
    border: 1px solid rgba(0,0,0,.8);
    font-size: 16px;
}

    .ListControl .Button:hover {
        background-color: #009edd;
        color: #FFF !important;
    }


.ListControl .Button.Download {
    border: none;
    padding: 2px;
}

        /* For small screens */
        @media screen and (max-width: 1024px) {

            .ListControl header {
                border-bottom: 1px solid rgba(0,0,0,.4);
                padding-top: 18px !important;
                padding-bottom: 10px !important;
            }
        }


/* Reponsive data table (+/- button rows that don't fit) */

/* Overrides to vertical align +/- button to middle */
table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control:before, table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control:before {
    top: auto !important;
    border: 1px solid white !important;
    margin-top: auto !important;
}

/* Hide header inside the scrolling body */
.dt-scroll-body thead {
    visibility: collapse;
}

/* Hide paging controls */
.dt-paging {
    display: none !important;
}

.dts_label {
    display: none;
}

/*
td.overridden {
    font-weight: normal;
}

td.overridden::before {
    font-family: 'Pe-icon-7-stroke';
    content: "\e69b";
    margin-right: 6px;
    vertical-align: middle;
    font-size: 1.5rem;
	color: #24a1b7;
	position: relative;
	font-size: 42px;
}
*/