﻿/* Base */
.layout-wrapper {
    color: #333;
    font-size: .75rem;
    line-height: 1.5em;
}

a { color: #9f0000; }

table {
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    width: 100%;
}

table th,
table td {
    border: 1px solid #ccc;
    padding: 8px 12px;
    text-align: left;
    vertical-align: middle;
}

table th {
    background-color: #f2f2f2;
    font-weight: 600;
    text-align: center;
}

table tr { background-color: #ffffff; }


/* Helpers */
.border-top { border-top: 1px solid #1d1d1f; }

.custom-btn {
    background: #007bff;
    border: 0;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-size: .85rem;
    font-weight: bold;
    padding: .5rem 1rem;
}
.custom-btn:hover { color: #fff; }

.d-block { display: block !important; }

.grid { display: grid; }
.grid[data-cols='2'] { grid-template-columns: 1fr 1fr; }
.grid[data-cols='3'] { grid-template-columns: 1fr 1fr 1fr; }

.hyperlink {
    color: #007bff;
    cursor: pointer;
}
.hyperlink:hover { color: #9F0000; }

.link-pdf {
    display: block;
    text-align: center;
}

.truncate-5-lines {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message {
    margin-block: .5rem;
    padding: .5rem;
    text-align: center;
}
.message--error { background-color: red; }
.message--info { background-color: orange; }

.m-0 { margin: 0 !important; }

.mb-1 { margin-bottom: 1rem !important; }
.mb-2 { margin-bottom: 2rem !important; }
.mb-3 { margin-bottom: 3rem !important; }

.ml-1 { margin-left: 1rem !important; }

.mr-1 { margin-right: 1rem !important; }

.mt-1 { margin-top: 1rem !important; }
.mt-2 { margin-top: 2rem !important; }
.mt-3 { margin-top: 3rem !important; }

.mx-1 { margin-inline: 1rem !important; }

.my-1 { margin-block: 1rem !important; }
.my-2 { margin-block: 2rem !important; }
.my-3 { margin-block: 3rem !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 1rem !important; }

.pt-1 { padding-top: 1rem !important; }
.pt-2 { padding-top: 2rem !important; }
.pt-3 { padding-top: 3rem !important; }

.py-1 { padding-block: 1rem !important; }

.text-center { text-align: center; }
.text-right { text-align: right; }


/* Section */
.section { margin-top: 2rem; }

.section-with-border {
    border-top: 1px solid #1d1d1f;
    padding-top: 2rem;
}

.section-title {
    font-weight: 600;
    margin-bottom: .65rem;
}

.section-subtitle { margin-block: .65rem; }


/* Filter search */
.filter-search {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.filter-search .filter-search-fields {
    gap: .5rem;
    margin-block: .5rem;
}

.filter-search .filter-search-fields .filter-search-field > input,
.filter-search .filter-search-fields .filter-search-field > select {
    border: 1px solid darkgray;
    border-radius: 4px;
    display: block;
    font-size: .85rem;
    margin-top: .25rem;
    max-width: 100%;
    padding: .25rem .5rem;
    width: 100%;
}


/* Modal */
.modal {
    background-color: rgb(0, 0, 0, 35%);
    display: none;
    inset: 0;
    place-content: center;
    position: fixed;
    z-index: 10;
}
.modal.active { display: grid; }

.modal .modal-dialog {
    background-color: #fff;
    margin-inline: auto;
    width: 500px;
}

.modal .modal-dialog .modal-content {
    padding: 1rem;
}

.modal .modal-dialog .modal-content .modal-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding-bottom: 1rem;
}

.modal .modal-dialog .modal-content .modal-header .modal-close,
.modal .modal-dialog .modal-content .modal-header .modal-close > span {
    background: transparent;
    border: 0;
    font-size: 1.35rem;
    margin: 0 !important;
    padding: 0 !important;
}

.modal .modal-dialog .modal-content .modal-body-details { border-top: 1px solid #1d1d1f; }

.modal .modal-dialog .modal-content .modal-body-documents > table,
.modal .modal-dialog .modal-content .modal-body-documents > table thead,
.modal .modal-dialog .modal-content .modal-body-documents > table th,
.modal .modal-dialog .modal-content .modal-body-documents > table td {
    background-color: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

.modal .modal-dialog .modal-content .modal-body-documents > table > thead {
    display: block;
    margin-bottom: .25rem;
}

.modal .modal-dialog .modal-content .modal-body-documents > table > tbody {
    display: block;
    max-height: 250px;
    overflow-y: scroll;
}

.modal .modal-dialog .modal-content .modal-body-documents > table tr {
    align-items: center;
    border-top: 1px solid ghostwhite;
    margin-top: .65rem;
    padding-top: .65rem;
}
.modal .modal-dialog .modal-content .modal-body-documents > table > tbody > tr {
    align-items: center;
    border-top: 1px solid ghostwhite;
    margin-top: .65rem;
    padding-top: .25rem;
}


/* Accordion */
.accordion {
    border: 1px solid #ddd;
    border-radius: 4px;
}

.accordion > summary {
    background-color: #f9f9f9;
    cursor: pointer;
    font-weight: bold;
    list-style-type: "+ ";
    padding: 12px;
    text-transform: uppercase;
}