:root {
    --primary-dark: #891c57;
    --primary-mid: #c396a6;
    --primary-light: #f7eff6;
    --secondary-dark: #b3b3b3;
    --secondary-mid: #d2d2d1;
    --secondary-light: #f7eff6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    color: #000;
}

body {
    font-family: Arial Narrow, Arial, sans-serif;
}

footer {
    grid-area: footer;
    padding-top: 20px;
    padding-bottom: 10px;
}

.content {
    margin: 30px;
}

.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.field-column a {
    display: flex;
    text-decoration: none;
    color: inherit;
    justify-content: space-between;
    align-items: center;
}

.required {
    color: red;
}

button {
    color: #fff;
    background-color: #000;
    border: none;
    text-transform: uppercase;
    height: auto;
    padding: 3px;
    width: 150px;
}

.button-small {
    color: #fff;
    background-color: #000;
    border: none;
    text-transform: uppercase;
    height: auto;
    padding: 3px 15px;
    width: max-content;
    text-decoration: none;
}

.button-large {
    color: #fff;
    background-color: #000;
    border: none;
    text-transform: uppercase;
    height: auto;
    padding: 3px;
    width: 175px;
    padding: 5px;
    text-decoration: none;
}

.notification-icon-wrapper {
    width: 10%;
    height: auto;
    display: inline-block;
    cursor: pointer;
}

.add-button {
    margin-top: 15px;
    margin-right: 3px;
    justify-self: end;
    color: #fff;
    background-color: #000;
    height: auto;
    border: none;
    padding: 3px;
    text-transform: uppercase;
    text-decoration: none;
}

.delete-button {
    width: initial;
}

.tileset {
    width: min-content;
    margin: 20px auto;
    display: grid;
    grid-template-columns: repeat(3, min-content);
    grid-auto-rows: min-content;
    row-gap: 20px;
    column-gap: 20px;
}

.tile {
    background-color: #FFFFFF;
    width: 250px;
    height: 250px;
    padding: 20px;
    border: 1px solid #E8E8E8;
    color: inherit;
    text-decoration: none;
}

.search-header {
    grid-area: header;
}

.search-box {
    grid-area: search-bar;
}

.notification-icon-wrapper {
    grid-area: notification-icon;
    margin-right: 2em;
    justify-self: end;
}

    .notification-icon-wrapper img {
        max-height: 2.5em;
    }

.add-button-wrapper {
    grid-area: add-button;
    justify-self: end;
    margin-top: 12px;
}

.search {
    display: grid;
    grid-template-columns: 0.5fr 1fr auto;
    padding-top: 15px;
    margin-bottom: 10px;
    grid-template-areas:
        "header . ."
        "search-bar notification-icon add-button";
}

    .search form {
        display: flex;
        flex-direction: row;
        grid-column-start: 1;
        border: 1px solid grey;
        background-color: #fff;
        padding: 2px;
        height: 35px;
    }

    .search input[type=text] {
        flex-grow: 2;
        border: none;
        width: 300px !important;
    }

        .search input[type=text]:focus {
            outline: none;
        }

    .search .clearSearch {
        background-position: right 5px center;
        background-size: 14px;
        background-color: #fff;
        color: #000;
        width: 25px;
        margin-top: 2px;
        margin-right: 5px;
        cursor: pointer;
    }

    .search input[type=submit] {
        background: url("../icons/search.svg") no-repeat;
        background-position: right 5px center;
        background-size: 14px;
        background-color: #fff;
        width: 25px;
        margin-top: 2px;
        margin-right: 5px;
        cursor: pointer;
        border: 0px;
    }

.errorMessage {
    margin-left: 20px;
}

table.primary {
    border-collapse: collapse;
    table-layout: fixed;
}

table.fill {
    width: 100%;
}

.column-small {
    width: 50px;
}

table.primary th, table.primary td {
    border: 1px solid #fff;
    padding: 8px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden
}

table.primary thead tr {
    background-color: var(--primary-dark);
    color: #fff;
    font-weight: normal;
    text-align: left;
    padding: 3px 6px;
}

table.primary tbody tr {
    background-color: var(--secondary-mid);
}

    table.primary tbody tr:nth-child(even) {
        background-color: #fff;
    }



table.secondary {
    border-collapse: collapse;
}

    table.secondary th, table.secondary td {
        border: 1px solid var(--secondary-dark);
        padding: 8px;
    }

    table.secondary thead tr {
        background-color: #768281;
        color: #fff;
        font-weight: normal;
        text-align: left;
        padding: 3px 6px;
    }

    table.secondary tbody tr {
        background-color: #fff;
    }

table tr.clickable {
    cursor: pointer;
}

input[type=text],
input[type=search],
input[type=tel],
input[type=email],
input[type=password],
input[type=number],
input[type=date],
input[type=datetime],
input[type=datetime-local],
select {
    display: block;
    height: 30px;
    padding: 0.4rem;
    border: 1px solid #ccc;
    background-color: #FFFFFF;
}

.center {
    text-align: center;
}

.left {
    text-align: left;
}

.right {
    text-align: right;
}

dialog {
    top: 30px;
    width: 600px;
    margin: auto;
    /*padding: 20px;*/
    border-radius: 3px;
    border: 1px solid var(--primary-mid);
}

    dialog ul {
        margin-left: 30px;
        padding: 10px;
    }

    dialog::backdrop {
        background-color: rgba(0,0,0,0.6);
    }

    dialog .title {
        color: var(--primary-dark);
    }



.caret {
    display: inline-block;
    border: 8px solid transparent;
}

    .caret.down {
        border-top-color: #fff;
        margin-top: 6px;
    }


    .caret.up {
        border-bottom-color: #fff;
        margin-bottom: 6px;
    }

.uppercase {
    text-transform: uppercase;
}

.row-opened {
    text-align: center;
    font-size: 20px;
    text-decoration: none;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

    .row-opened img {
        height: 20px;
    }

.row-closed {
    text-align: center;
    font-size: 20px;
    text-decoration: none;
}

    .row-closed img {
        width: 20px;
    }

.row-locked {
    width: 20px;
}

.form-fields {
    display: flex;
    flex-wrap: wrap;
}

    .form-fields > * {
        margin: 0 10px 10px 0;
    }

.form-field {
    display: block;
    width: 350px;
}

    .form-field input[type=text],
    .form-field input[type=tel] {
        width: 100%;
    }

    .form-field ul {
        background-color: #ffffff;
        border: 1px solid #000;
        overflow-y: scroll;
        height: 200px;
    }

details {
    border: 1px solid #aaa;
    border-radius: 4px;
    padding: .5em .5em 0;
}

summary {
    font-weight: bold;
    margin: -.5em -.5em 0;
    padding: .5em;
}

details[open] {
    padding: .5em;
}

    details[open] summary {
        border-bottom: 1px solid #aaa;
        margin-bottom: .5em;
    }

.breadcrumb {
    padding: 10px 0;
    list-style: none;
}

    .breadcrumb li {
        display: inline;
        font-size: 18px;
    }

        .breadcrumb li + li:before {
            padding: 8px;
            color: black;
            content: "\003e";
        }

ul.breadcrumb li a {
    color: #000000;
    text-decoration: none;
}

    ul.breadcrumb li a:hover {
        color: var(--primary-dark);
        text-decoration: underline;
    }

.pagination {
    padding-top: 15px;
    padding-right: 3px;
    text-align: right;
}

    .pagination a {
        text-decoration: none;
        text-align: center;
        color: #000;
        padding: 3px 6px;
    }

    .pagination button {
        text-decoration: none;
        text-align: center;
        background-color: #ffffff;
        width: 25px;
        color: #000;
        padding: 3px 6px;
        cursor: pointer;
    }

    .pagination .selected {
        border: 1px solid #000000;
        text-align: center;
        color: #000;
        padding: 3px 6px;
    }

dialog {
    height: auto;
    font-size: 20px;
}

    dialog p {
        padding: 20px;
    }

.dialog-close {
    font-size: 20px;
    color: #000000;
    position: absolute;
    top: 0;
    right: 0;
    margin: 10px;
    margin-top: 0px;
    cursor: pointer;
}

.dialog-errors {
    padding: 20px;
}

.dialog-button {
    font-size: 18px;
    width: 160px;
    height: 35px;
    margin: 10px;
}

.advisory {
    background: #da2c6f;
    text-align: center;
    border-radius: .4em;
    height: 40px;
    color: #ffffff;
}

.hidden {
    display: none;
}

.icon-xsmall {
    width: 20px;
    height: 20px;
}

.status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 5px;
    width: fit-content;
}

.status-cell {
    padding: 2px;
    width: auto;
}

.status-link {
    text-decoration: none;
}

.status-text {
    vertical-align: top;
}
