html,
body {
    height: 100%;
    background-color: #fff;
}

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 0 0 60px;
    position: relative;
    box-sizing: border-box;
}

.wrap > .container {
    padding: 10px 15px 20px;
}

.container {
    max-width: 1546px;
    padding: 0 90px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

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

a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after { content: "\e151"; }
a.desc:after { content: "\e152"; }
.sort-numerical a.asc:after { content: "\e153"; }
.sort-numerical a.desc:after { content: "\e154"; }
.sort-ordinal a.asc:after { content: "\e155"; }
.sort-ordinal a.desc:after { content: "\e156"; }

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

.grid-view .filters input,
.grid-view .filters select {
    min-width: 50px;
}

.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;
}

.nav li > form > button.logout {
    padding: 15px;
    border: none;
    background-color: transparent;
    color: #ffffff;
    line-height: 30px;
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    background-color: #1a4a9d !important;
    color: #ffffff !important;
}

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

.breadcrumb {
    background-color: #f5f5f5;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.footer {
    position: relative;
    padding: 0;
    height: 60px;
}

.footer a {
    color: #ffffff !important;
    text-decoration: none;
}

.footer a:hover {
    color: #ffdd57 !important;
}


.footer .footer-bottom-band {
    height: 60px;
    background-color: #0f2b61;
    color: #ffffff;
    position: relative;
    margin-top: 0;
    border-top: 1px solid #ddd;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}


.footer .footer-logo {
    position: absolute;
    width: 70px;
    height: auto;
    left: 50%;
    top: 0;
    transform: translate(-50%, -40%);
    z-index: 10;
}

.footer .footer-bottom-band .footer-content {
    position: relative;
    z-index: 5;
    width: 100%;
}
.footer .footer-bottom-band .footer-content p {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .footer .footer-logo {
        width: 50px;
        transform: translate(-50%, -40%);
    }

    .footer .footer-bottom-band {
        height: 60px;
        padding: 0 15px;
    }

    .footer .footer-bottom-band .footer-content {
        text-align: center;
        width: 100%;
    }
    .footer .footer-bottom-band .footer-content p {
        float: none !important;
        display: block;
        margin: 0;
    }
}

.top-bar {
    background-color: #ffffff;
    height: 86px;
    padding: 10px 0;
    box-sizing: border-box;
    margin: 0;
    border: none;
    overflow: hidden;
}

.top-bar .container {
    height: 100%;
    display: flex;
    align-items: center;
}

.top-bar .top-bar-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
}

.top-bar .logo-link {
    display: block;
    line-height: 0;
}

.top-bar .logo-image {
    max-height: calc(86px - 20px);
    width: auto;
    display: block;
    margin: 0;
}

.navbar-custom.navbar {
    background-color: #0f2b61 !important;
    min-height: 60px;
    height: 60px;
    margin: 0;
    border: none;
    border-radius: 0;
    position: relative;
}

.navbar-custom .navbar-brand-custom {
    padding: 0;
    height: 60px;
    display: none !important;
    align-items: center;
    vertical-align: middle;
}

.navbar-custom .logo-small {
    width: auto;
    margin: 0;
    display: none !important;
    vertical-align: middle;
    max-height: 40px;
}

.navbar-custom .navbar-nav > li > a {
    padding: 0 15px;
    height: 60px;
    line-height: 60px;
    color: #ffffff !important;
}

.navbar-custom .navbar-nav > li > a:hover,
.navbar-custom .navbar-nav > li > a:focus {
    background-color: #1a4a9d !important;
    color: #ffffff !important;
}

.navbar-custom .navbar-nav > .active > a,
.navbar-custom .navbar-nav > .active > a:hover,
.navbar-custom .navbar-nav > .active > a:focus {
    background-color: #0b214a !important;
    color: #ffffff !important;
}

.navbar-custom .navbar-toggle {
    margin-top: calc((60px - 34px) / 2);
    margin-bottom: calc((60px - 34px) / 2);
    border-color: #ffffff !important;
    margin-right: 15px;
}

.navbar-custom .navbar-toggle .icon-bar {
    background-color: #ffffff !important;
}

.navbar-custom .navbar-toggle:hover,
.navbar-custom .navbar-toggle:focus {
    background-color: #1a4a9d !important;
}

.navbar-custom .container {
    position: relative;
}

@media (max-width: 767px) {

    .top-bar.hidden-xs {
        display: none !important;
    }
    .container {
        width: 100% !important;
        max-width: none !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .container > .navbar-header,
    .container-fluid > .navbar-header,
    .container > .navbar-collapse,
    .container-fluid > .navbar-collapse {
        margin-left: 0;
        margin-right: 0;
    }

    .navbar-custom.navbar {
        min-height: 86px;
        height: 86px;
        background-color: #ffffff !important;
        border-bottom: 1px solid #e7e7e7;
    }

    .navbar-custom .navbar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: 86px;
        float: none;
        padding-left: 0;
        padding-right: 0;
    }

    .navbar-custom .navbar-brand-custom {
        order: -1;
        display: flex !important;
        align-items: center !important;
        height: 86px;
        padding: 0;
        margin-right: 0;
        margin-left: 10px;
        vertical-align: initial;
    }

    .navbar-custom .navbar-brand-custom .logo-small {
        display: inline-block !important;
        max-height: calc(86px - 30px);
        width: auto;
        margin: 0;
        vertical-align: initial;
    }

    .navbar-custom .navbar-toggle {
        order: 1;
        margin-top: calc((86px - 34px) / 2);
        margin-bottom: calc((86px - 34px) / 2);
        border-color: #0f2b61 !important;
        margin-right: 0;
        margin-left: 10px;
        display: block;
        float: none;
    }
    .navbar-custom .navbar-toggle .icon-bar {
        background-color: #0f2b61 !important;
    }
    .navbar-custom .navbar-toggle:hover,
    .navbar-custom .navbar-toggle:focus {
        background-color: #f0f0f0 !important;
    }

    .navbar-custom .navbar-collapse.collapse,
    .navbar-custom .navbar-collapse.in {
        border-top: 1px solid #e7e7e7;
        margin: 0;
        box-shadow: none;
        background-color: #ffffff;
        max-height: none;
    }

    .navbar-custom .navbar-nav {
        margin: 0;
    }

    .navbar-custom .navbar-nav > li > a {
        line-height: 20px;
        height: auto;
        padding: 10px 15px;
        color: #0f2b61 !important;
        border-bottom: 1px solid #f0f0f0;
    }
    .navbar-custom .navbar-nav > li:last-child > a {
        border-bottom: none;
    }
    .navbar-custom .navbar-nav > li > a:hover,
    .navbar-custom .navbar-nav > li > a:focus {
        background-color: #f0f0f0 !important;
        color: #0f2b61 !important;
    }
    .navbar-custom .navbar-nav > .active > a,
    .navbar-custom .navbar-nav > .active > a:hover,
    .navbar-custom .navbar-nav > .active > a:focus {
        background-color: #e7e7e7 !important;
        color: #0f2b61 !important;
    }

    .nav li > form > button.logout {
        display: block;
        text-align: left;
        width: 100%;
        padding: 10px 15px;
        color: #0f2b61 !important;
        background-color: transparent;
        line-height: 20px;
        border: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .navbar-custom .navbar-nav > li:last-child > form > button.logout {
        border-bottom: none;
    }
    .nav li > form > button.logout:hover,
    .nav li > form > button.logout:focus {
        background-color: #f0f0f0 !important;
        color: #0f2b61 !important;
        text-decoration: none;
    }

    .footer .footer-logo {
        width: 40px;
    }
    .footer .footer-bottom-band .footer-content {
        line-height: normal;
        padding-top: 25px;
        text-align: center;
    }
    .footer .footer-bottom-band .footer-content p {
        float: none !important;
        display: block;
        margin: 5px 0;
    }
}


.quick-actions {
    display: flex;
    flex-wrap: wrap; /* Позволяет элементам переноситься на новую строку */
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}
.action-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: #333;
    width: 300px;
    min-width: 200px;
}
.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
@media (max-width: 768px) {
    .quick-actions {
        flex-direction: column; /* Элементы друг под другом */
        align-items: center; /* Центрирование (опционально) */
    }
}
@media (max-width: 768px) {
    .action-card {
        width: 80%; /* Шире на маленьких экранах */
    }
}

.label-top-aligned .form-group label {
    display: inline-block;
    min-height: 40px; /* выровнять по input */
    margin-bottom: 5px;
}