main > .container,
main > .container-fluid {
    padding: 70px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

/* Реестр проектов B24 */
.b24-project-index {
    max-width: 100%;
    overflow-x: hidden;
}

/* Сотрудники B24 */
.b24-employee-index {
    max-width: 100%;
    overflow-x: hidden;
}

.b24-employee-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.b24-employee-table-wrap .table {
    width: 100%;
    min-width: 1200px;
}

.b24-project-cards {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.b24-project-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    background-color: #f8f9fa;
}

.b24-project-card__title {
    font-weight: 600;
    line-height: 1.3;
}

.b24-project-card__status {
    flex-shrink: 0;
}

.b24-project-card__meta {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
    gap: 0.35rem 1rem;
    margin: 0;
}

.b24-project-card__meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.b24-project-card__meta-item dt {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #6c757d;
}

.b24-project-card__meta-item dd {
    margin: 0;
    font-size: 0.875rem;
    word-break: break-word;
}

.b24-project-card__finance {
    padding-top: 0.5rem;
    border-top: 1px solid var(--bs-border-color, #dee2e6);
}

.b24-project-card__finance-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
    margin-bottom: 0.25rem;
}

.b24-project-card__finance-row:last-child {
    margin-bottom: 0;
}

.b24-project-card__finance-label {
    font-weight: 600;
    min-width: 3.5rem;
}

.b24-project-card__hint {
    cursor: help;
    border-bottom: 1px dotted currentColor;
}

.b24-project-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    background-color: #fff;
}

.b24-project-cards__pager {
    margin-top: 0.5rem;
}

@media (min-width: 992px) {
    .b24-project-cards {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .b24-project-card {
        display: flex;
        flex-direction: column;
        margin-bottom: 0 !important;
        height: 100%;
    }

    .b24-project-card .card-body {
        flex: 1 1 auto;
    }

    .b24-project-card__actions {
        margin-top: auto;
    }
}

.b24-project-registry-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 0.375rem;
    background: #fff;
}

.b24-project-registry-scroll .grid-view {
    min-width: min-content;
}

.b24-project-registry-scroll .summary,
.b24-project-registry-scroll .pagination {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0;
}

.b24-project-registry-scroll .table {
    margin-bottom: 0;
    width: max-content;
    min-width: 100%;
}

.b24-project-registry-scroll .table th,
.b24-project-registry-scroll .table td {
    white-space: nowrap;
    vertical-align: middle;
}

.b24-project-registry-scroll .table th:first-child,
.b24-project-registry-scroll .table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 11rem;
    max-width: 16rem;
    white-space: normal;
    word-break: break-word;
    box-shadow: 4px 0 8px -4px rgba(0, 0, 0, 0.1);
}

.b24-project-registry-scroll thead th:first-child {
    z-index: 4;
    background-color: var(--bs-table-bg, #fff);
}

.b24-project-registry-scroll tbody td:first-child {
    background-color: var(--bs-table-bg, #fff);
}

.b24-project-registry-scroll .table-striped > tbody > tr:nth-of-type(odd) > td:first-child {
    background-color: var(--bs-table-striped-bg, #f8f9fa);
}

.b24-project-registry-scroll .action-column {
    white-space: normal;
    min-width: 9.5rem;
    max-width: 11rem;
}

.b24-project-registry-scroll .action-column .btn {
    display: inline-block;
    margin: 0.1rem;
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
    line-height: 1.2;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.form-group {
    margin-bottom: 1rem;
}