﻿/* Variables
================================== */

/* Tables
================================== */
.Rtable {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    margin: 0 0 3em 0;
    padding: 0;
}

.Rtable-cell {
    box-sizing: border-box;
    flex-grow: 1;
    width: 100%;
    padding: 8px;
    overflow: hidden;
    list-style: none;
    background: rgba(112, 128, 144, 0.2);
}

    .Rtable-cell > h1,
    .Rtable-cell > h2,
    .Rtable-cell > h3,
    .Rtable-cell > h4,
    .Rtable-cell > h5,
    .Rtable-cell > h6 {
        margin: 0;
    }

    .Rtable-cell.firstColumn {
        border-left: 1px solid #ddd;
    }

    .Rtable-cell.lastColumn {
        border-right: 1px solid #ddd;
        justify-content: flex-end;
    }

    .Rtable-cell.evenRow {
        background-color: #f9f9f9;
    }

/* Table column sizing
================================== */
.Rtable--2cols > .Rtable-cell {
    width: 50%;
}

.Rtable--3cols > .Rtable-cell {
    width: 33.33%;
}

.Rtable--4cols > .Rtable-cell {
    width: 25%;
}

.Rtable--5cols > .Rtable-cell {
    width: 20%;
}

.Rtable--6cols > .Rtable-cell {
    width: 16.6%;
}
/* Page styling
================================== */
@font-face {
    font-family: 'Josefin Sans';
    font-style: normal;
    font-weight: 400;
    src: local('Josefin Sans Regular'), local('JosefinSans-Regular'), url(https://fonts.gstatic.com/s/josefinsans/v13/Qw3aZQNVED7rKGKxtqIqX5EUDXx9.ttf) format('truetype');
}

@font-face {
    font-family: 'Josefin Sans';
    font-style: normal;
    font-weight: 700;
    src: local('Josefin Sans Bold'), local('JosefinSans-Bold'), url(https://fonts.gstatic.com/s/josefinsans/v13/Qw3FZQNVED7rKGKxtqIqX5Ectllte10k.ttf) format('truetype');
}
/*
html {
    height: 100%;
    background-color: #EEE;
}

body {
    box-sizing: border-box;
    min-height: 100%;
    margin: 0 auto;
    padding: 2em;
    max-width: 800px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.2em;
    background-color: white;
    border: double 3px #DDD;
    border-top: none;
    border-bottom: none;
}
    */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
}

h3 {
    font-size: 1.2em;
}

h4 {
    font-size: 1em;
}

strong {
    color: #434d57;
}

.pager.customPaging tr {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.pager.customPaging td {
    margin: 10px 0px;
}

/* Apply styles
================================== */
.Rtable {
    position: relative;
    top: 3px;
    left: 3px;
}

.Rtable-cell {
    background-color: white;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
}

.Rtable-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.Rtable-row {
    display: flex;
    width: 100%;
}

/* Cell styles
================================== */
.Rtable-cell--dark {
    border-color: #ddd;
    color: white;
}

    .Rtable-cell--dark > h1,
    .Rtable-cell--dark > h2,
    .Rtable-cell--dark > h3,
    .Rtable-cell--dark > h4,
    .Rtable-cell--dark > h5,
    .Rtable-cell--dark > h6 {
        color: white;
    }

.Rtable-cell--medium {
    background-color: #b8c0c8;
    border-color: #a9b3bc;
}

.Rtable-cell--light {
    background-color: white;
    border-color: #e2e6e9;
}

.Rtable-cell--highlight {
    background-color: lightgreen;
    border-color: #64e764;
}

.Rtable-cell--alert {
    background-color: darkorange;
    border-color: #cc7000;
    color: white;
}

    .Rtable-cell--alert > h1,
    .Rtable-cell--alert > h2,
    .Rtable-cell--alert > h3,
    .Rtable-cell--alert > h4,
    .Rtable-cell--alert > h5,
    .Rtable-cell--alert > h6 {
        color: white;
    }

.Rtable-cell--head {
    background-color: slategray;
    color: white;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;

}

    .Rtable-cell--head > h1,
    .Rtable-cell--head > h2,
    .Rtable-cell--head > h3,
    .Rtable-cell--head > h4,
    .Rtable-cell--head > h5,
    .Rtable-cell--head > h6,
    .Rtable-cell--head > p {
        color: white;
        font-size: 14px;
        font-weight: 700;
    }

        .Rtable-cell--head > p {
            margin: 0;
        }


        .Rtable-cell--head.invis {
            display: none;
        }

.Rtable-cell--foot {
    background-color: #b8c0c8;
    border-color: #ddd;
}

.Rtable-cell .btn {
    padding: 6px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
    margin-left: 10px;
}

.Rtable-cell .btn i {
    margin-top: 0px;
}

.Rtable-cell .btn-table {
    white-space: normal;
}

/* Responsive
==================================== */
@media all and (max-width: 990px) {


    
}

@media all and (max-width: 768px) {

    .purchases .Rtable-group,
    .catalogue .Rtable-group {
        flex-direction: row;
        margin-bottom: 15px;
    }

    .purchases .Rtable-row,
    .catalogue .Rtable-row {
        flex-direction: column;
        border-top: 1px solid #ddd;
        width: 60%;
    }

    .purchases div.Rtable-row:first-child,
    .catalogue div.Rtable-row:first-child {
        width: 40%;
    }

    .purchases .Rtable-cell,
    .catalogue .Rtable-cell {
        border-bottom: 1px solid #ddd;
        border-right: 1px solid #ddd;
        height: 60px;
    }

       .purchases .Rtable-cell .btn,
       .catalogue .Rtable-cell .btn {
            height: 100%;
            width: 100%;
            padding: 10px 0px;
        }


        .purchases .Rtable-cell.firstColumn,
        .catalogue .Rtable-cell.firstColumn {
            border-left: none;
        }

        .purchases .Rtable-cell.lastColumn,
        .catalogue .Rtable-cell.lastColumn {
            border-right: 1px solid #ddd;
        }

    .purchases .Rtable-cell--head,
    .catalogue .Rtable-cell--head {
        border-left: 1px solid #ddd;
        border-bottom: 1px solid #ddd;
        border-right: 1px solid #ddd;
        border-top: none;
    }

        .purchases .Rtable-cell--head.invis,
        .catalogue .Rtable-cell--head.invis {
            display: flex;
        }

        .purchases .Rtable-cell--head.firstColumn,
        .catalogue .Rtable-cell--head.firstColumn {
            border-left: 1px solid #ddd;
        }

    .purchases .Rtable-cell.evenRow,
    .catalogue .Rtable-cell.evenRow {
        background-color: #fff;
    }
}

@media all and (max-width: 500px) {
    .Rtable--collapse {
        display: block;
    }

        .Rtable--collapse > .Rtable-cell {
            width: 100% !important;
        }

        .Rtable--collapse > .Rtable-cell--foot {
            margin-bottom: 1em;
        }

    .Rtable-group {
        flex-direction: row;
        margin-bottom: 15px;
    }

    .Rtable-row {
        flex-direction: column;
        border-top: 1px solid #ddd;
        width: 60%;
    }

    div.Rtable-row:first-child {
        width: 40%;
    }

    .Rtable-cell {
        border-bottom: 1px solid #ddd;
        border-right: 1px solid #ddd;
        height: 60px;
    }


        .Rtable-cell .btn {
            height: 100%;
            width: 100%;
            padding: 10px 5px;
        }


        .Rtable-cell.firstColumn {
            border-left: none;
        }

        .Rtable-cell.lastColumn {
            border-right: 1px solid #ddd;
        }

    .Rtable-cell--head {
        border-left: 1px solid #ddd;
        border-bottom: 1px solid #ddd;
        border-right: 1px solid #ddd;
        border-top: none;
    }

        .Rtable-cell--head.invis {
            display: flex;
        }

        .Rtable-cell--head.firstColumn {
            border-left: 1px solid #ddd;
        }


    .Rtable-cell.evenRow {
        background-color: #fff;
    }

    
    .certificates .Rtable-group,
    .resources .Rtable-group {
        flex-direction: row;
        margin-bottom: 15px;
    }

    .certificates .Rtable-row,
    .resources .Rtable-row {
        flex-direction: column;
        border-top: 1px solid #ddd;
        width: 60%;
    }

    .certificates div.Rtable-row:first-child,
    .resources div.Rtable-row:first-child {
        width: 40%;
    }

    .certificates .Rtable-cell,
    .resources .Rtable-cell {
        border-bottom: 1px solid #ddd;
        border-right: 1px solid #ddd;
        height: 60px;
    }

        .certificates .Rtable-cell span,
        .resources .Rtable-cell span {
            width: 100%;
        }

        .certificates .Rtable-cell .btn,
        .resources .Rtable-cell .btn {
            height: 100%;
            width: 100%;
        }

        .certificates .Rtable-cell.firstColumn,
        .resources .Rtable-cell.firstColumn {
            border-left: none;
        }

        .certificates .Rtable-cell.lastColumn,
        .resources .Rtable-cell.lastColumn {
            border-right: 1px solid #ddd;
        }

    .certificates .Rtable-cell--head,
    .resources .Rtable-cell--head {
        border-left: 1px solid #ddd;
        border-bottom: 1px solid #ddd;
        border-right: 1px solid #ddd;
        border-top: none;
    }

        .certificates .Rtable-cell--head.invis,
        .resources .Rtable-cell--head.invis {
            display: flex;
        }

        .certificates .Rtable-cell--head.firstColumn,
        .resources .Rtable-cell--head.firstColumn {
            border-left: 1px solid #ddd;
        }


    .certificates .Rtable-cell.evenRow,
    .resources .Rtable-cell.evenRoww {
        background-color: #fff;
    }
}

@media all and (max-width: 336px) {
    .purchases .Rtable-cell.lastColumn {
        height: 80px;
    }
}

.no-flexbox .Rtable {
    display: block;
}

    .no-flexbox .Rtable > .Rtable-cell {
        width: 100%;
    }

    .no-flexbox .Rtable > .Rtable-cell--foot {
        margin-bottom: 1em;
    }
