/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

h1 {
    max-width: 15em;
    margin-bottom: 30px;
    font-size: 3rem;
    color: #0b0c0c;
    font-weight: 700;
    margin-top: 0;
    display: block;
}

body {
    font-size: 1.1rem;
    line-height: 1.2;
    color: #0b0c0c;
    font-family: sans-serif;
    font-weight: 400;
    margin: 0px;
}

main {
    padding: 30px;
    padding-right: 0;
    padding-bottom: 50px;
    max-width: 50em;
}

.app-header a { 
    color: #fff;
    text-decoration: none;
}

.app-header a:hover { 
    text-decoration: underline;
    font-weight: 600;
    text-underline-offset: .15em
}

.app-header a:visited { 
    color: #fff;
}

.app-header {
    display: flex;
    flex-wrap: wrap;
    padding-left: 30px;
    color: #fff;
    background: #a05;
    border-bottom: 8px solid #805;
}

.header-text {
    flex-grow: 1;
    font-size: 1.5rem;
    line-height: 1.5;
    font-weight: 600;
    color: #fff;
}

.header-user-info {
    padding-top: 0.3rem;
    padding-right: 30px;
    font-size: 1.2rem;
    line-height: 1.5;
    font-weight: 400;
    color: #fff;
}

.header-user-info a {
    text-decoration-thickness: max(1px, .0625rem);
    text-underline-offset: .15em;
    text-decoration: underline;
}

.app-split-pane {
    display: flex;
}

.app-messages {
    border: 1px gold solid;
    border-radius: 8px;
    background: #ffffed;
}

.app-messages p {
    margin: 0.5rem;
}

@media (max-width: 40.0525em) {
    main {
        padding: 20px;
    }


    .app-split-pane__nav  {
        display: none;
    }

    th, td {
        padding: 0px 10px 0px 0;
        text-align: left;
        vertical-align: top;
    }
}

.app-split-pane__nav {
    flex: 0 0 auto;
    width: 12em;
}

.app-split-pane__nav ul {
    list-style-type: none;
    margin: 0 0 20px;
    padding: 0;
}

.app-split-pane__nav li {
    padding-top: 5px;
    padding-bottom: 5px;
    margin-bottom: 5px;
}

.app-split-pane__nav a {
    text-decoration: none;
}

/* Links */

a { 
    color: #1d70b8;
    text-decoration-thickness: max(1px, .0625rem);
    text-underline-offset: .15em;
}

a:hover {
    text-decoration: underline;
    text-decoration-thickness: max(3px, .1875rem, .12em)
}

a:visited { 
    color: #1d70b8;
}

/* Tables */
th {
    font-weight: 700px;
    border-bottom: 1px solid #b1b4b6;
}

@media (min-width: 40.0525em) {
    th, td {
        padding: 5px 20px 5px 0;
        text-align: left;
        vertical-align: top;
    }
}

table.property-table td:nth-child(1) {
    font-weight: 600;
    text-align: right;
}

/* Home page */
div.home-progress-container {
    display: flex;
    flex-wrap: wrap;
    margin-left: 24px;
}

div.home-progress-grid {
    display:grid;
    gap: 1px 1px;
    grid-template-columns: repeat(12,20px);
    grid-template-rows: repeat(8,20px)
}

div.home-progress-grid-cell {
    height: 20px;
    width: 20px;
}

div.home-progress-grid-cell svg {
    height: 20px;
    width: 20px;
}

div.home-progress-grid-cell svg rect {
    height: 20px;
    width: 20px;
    stroke-width: 0.5;
    stroke: #777;
}

div.home-progress-legend-item {
    height: 24px;
    padding-left: 10px;
}

.category-A svg rect {fill: #39B449; }
.category-A-unseen svg rect { fill: #E4F6E6; }
.category-B svg rect {fill: #3B4F42; }
.category-B-unseen svg rect { fill: #C8D6CD; }
.category-D svg rect {fill: #FECB03; }
.category-D-unseen svg rect { fill: #FFF5D0; }
.category-F svg rect {fill: #00A88F; }
.category-F-unseen svg rect { fill: #E1F5F2; }
.category-L svg rect {fill: #00ADEF; }
.category-L-unseen svg rect { fill: #DFF6FF; }
.category-M svg rect {fill: #CF171E; }
.category-M-unseen svg rect { fill: #FAD2D4; }
.category-S svg rect {fill: #004A95; }
.category-S-unseen svg rect { fill: #98BADD; }
.category-Ø svg rect {fill: #A2228E; }
.category-Ø-unseen svg rect { fill: #E4CBE0; }
