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

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

.footer > .container, .footer > .container-fluid {
    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;
}

.grid-view th,
.grid-view td:last-child {
    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;
}

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

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

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

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

/* style breadcrumb widget as in previous bootstrap versions */
.breadcrumb {
    background-color: var(--bs-gray-200);
    border-radius: .25rem;
    padding: .75rem 1rem;
}

.breadcrumb-item > a
{
    text-decoration: none;
}

/* Tailwind-верстка из Blade использует эту утилиту на хедере */
.header-radial-gradient {
    background: radial-gradient(farthest-corner at top 130% left 45%, #182f22 0, #193123 3.63%, #1e3728 15.78%, #244230 27.42%, #2d503b 38.86%, #376046 50.11%, #477a56 60.07%);
}

/* Панель быстрых ссылок в админку (фронт): одна строка + горизонтальный скролл на узких экранах */
.frontend-admin-toolbar {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-bottom: 12px;
    padding: 10px 16px;
    box-sizing: border-box;
    background: #111827;
    color: #e5e7eb;
    border-top: 2px solid #22c55e;
    border-bottom: 1px solid #374151;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    font: 700 13px/1.2 'Segoe UI', Tahoma, Arial, sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.frontend-admin-toolbar__track {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    width: max-content;
}

.frontend-admin-toolbar__link {
    flex: 0 0 auto;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    color: #f9fafb !important;
    text-decoration: none !important;
    padding: 6px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
}

.frontend-admin-toolbar__link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
}

/* Мобильное меню: как на production, но fixed поверх контента (overflow у предка ломает absolute) */
@media (max-width: 767.98px) {
    .site-header-scroll {
        overflow: visible;
    }

    body.mobile-menu-open {
        overflow: hidden;
    }

    body.mobile-menu-open::before {
        content: '';
        position: fixed;
        inset: 0;
        z-index: 10040;
        background: rgba(0, 0, 0, 0.5);
    }

    #header-menu.flex {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        width: min(85vw, 20rem) !important;
        height: 100vh !important;
        max-height: 100vh !important;
        z-index: 10050 !important;
        flex-direction: column !important;
        align-items: stretch !important;
        margin: 0 !important;
        padding-top: 5rem !important;
        overflow-y: auto !important;
        background: #182f22 !important;
        color: #f9fafb !important;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.35);
    }

    #header-menu.flex a {
        color: #f9fafb;
    }

    .tham {
        position: relative;
        z-index: 10060;
    }
}