﻿a.browse-records {
    float: right;
    margin-top: 1em;
}

div.alt-section {
    margin: 1em 0;
    padding: 1em;
    clear: both;
    background-color: #EFEFEF;
}

div.alt-section h3 {
    margin-top: 0;
}

table.numbered-table {
    border-collapse: collapse;
}

/*This weird padding/margin only in place to allow contained links to fill the td*/
table.numbered-table tr:hover {
    background: #fdfdfd;
}

table.numbered-table tr.collection-row td {
    vertical-align: top;
    height: 100%;
    overflow: hidden;
}
/*This height and overflow only in place to allow contained links to fill the td*/
table.numbered-table caption {
    font-family: 'Bitter', serif;
    font-weight: 400;
    font-size: 1.8em;
    line-height: 125%;
    margin: 10px 0 10px 0;
    z-index: 2;
    text-align: left;
}

table.numbered-table th {
    text-align: left;
    font-weight: normal;
}

table.numbered-table td, table.numbered-table th {
    padding: 1em 0.5em;
}

table.numbered-table td {
    font-size: 0.9em;
    text-align: left;
}

table.numbered-table td.center {
    text-align: center;
}

table.numbered-table td div.cell-wrap {
    overflow: hidden;
}

table.numbered-table td.number span {
    font-size: 1.5em;
    border-radius: 50%;
    background: #efefef;
    width: 40px;
    height: 40px;
    display: block;
    text-align: center;
    line-height: 220%;
}

table.numbered-table thead tr {
    background: #efefef;
}

table.numbered-table tbody tr {
    border-bottom: 1px solid #efefef;
}

table.numbered-table tbody tr:last-child {
    border-bottom: none;
}

a.read-more {
    float: right;
    padding-right: 15px;
}

/* record creator browse*/
img.group-icon {
    display: block;
    float: left;
    margin-right: 1em;
}

ul#browseResults li {
    clear: left;
}

ul#browseResults li span {
    display: block;
}

/* 
Max width before this PARTICULAR table gets nasty
This query will take effect for any screen smaller than 760px
and also iPads specifically.
*/
@media only screen and (max-width: 760px) {
    /* Force table to not be like tables anymore */
    table.numbered-table, table.numbered-table thead, table.numbered-table tbody, table.numbered-table th, table.numbered-table td, table.numbered-table tr {
        display: block;
    }
    /* Hide table headers (but not display: none;, for accessibility) */
    table.numbered-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    table.numbered-table tbody tr {
        border: 1px solid #efefef;
        border-bottom: none;
        margin-bottom: 1em;
    }

    table.numbered-table td {
        border: none;
        border-bottom: 1px solid #efefef;
        position: relative;
        padding-left: 50%;
        text-align: left;
        empty-cells: show;
    }

    table.numbered-table td.center {
        text-align: left;
    }

    table.numbered-table td:before {
        position: absolute;
        top: 1em;
        left: 0.5em;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
        text-overflow: ellipsis;
        overflow: hidden;
    }

    table.numbered-table td:last-child {
        margin-bottom: 0;
    }

    table.numbered-table td.number:before {
        top: 2em;
    }

    table.numbered-table td.number:after {
        content: '.';
        visibility: hidden;
    }
    /*
	Label the data
	*/
    table#collections td:nth-of-type(1):before {
        content: "Collection No.";
    }

    table#collections td:nth-of-type(2):before {
        content: "Description";
    }

    table#collections td:nth-of-type(3):before {
        content: "Held by";
    }

    table#collections td:nth-of-type(4):before {
        content: "Reference";
    }

    table#collections td:nth-of-type(5):before {
        content: "Further information";
    }

    table#collections td:nth-of-type(6):before {
        content: "Other references";
    }

    table#relatedAuthorities td:nth-of-type(1):before {
        content: "No.";
    }

    table#relatedAuthorities td:nth-of-type(2):before {
        content: "Name";
    }

    table#collectionsrelatedAuthorities td:nth-of-type(3):before {
        content: "Description of relationship";
    }

    table#relatedAuthorities td:nth-of-type(4):before {
        content: "Dates";
    }

    table#relatedAuthorities td:nth-of-type(5):before {
        content: "Category of relationship";
    }

    table#collections td.nra-ref {
        min-height: 2em;
    }
}

@media only screen and (min-width: 760px) {
    div.grid-within-grid-two-thirds-item {
        width: 66%;
        margin: 0 2% 10px 0;
    }
}
