main > .container {
    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;
}

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

/*
 * Product/Article "view" pages show rich-text (Quill) content raw inside a DetailView table.
 * Quill constrains images to the editor's own width via ".ql-editor img", which doesn't apply
 * here — without this, a photo uploaded at full resolution blows out the table layout.
 */
.detail-view img,
.detail-view video {
    max-width: 100%;
    height: auto;
}

/* Eye button on password inputs (common/assets/password-toggle) */
.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 2.75rem;
    background-image: none;
}

/* the input sits inside the wrapper, so Bootstrap's `.is-invalid ~ .invalid-feedback` doesn't reach the error */
.password-field:has(.is-invalid) ~ .invalid-feedback {
    display: block;
}

.password-field__toggle {
    position: absolute;
    top: 50%;
    right: .25rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--tblr-secondary);
    background: transparent;
    border: 0;
    border-radius: var(--tblr-border-radius);
    transform: translateY(-50%);
}

.password-field__toggle:hover,
.password-field__toggle[aria-pressed="true"] {
    color: var(--tblr-primary);
}

/* Иконки-кнопки действий в списках */
.btn-icon.btn-sm {
    padding: .375rem;
}

/* Детальная страница товара: основные данные — 60% справа */
@media (min-width: 992px) {
    .product-view__main {
        flex: 0 0 60%;
        max-width: 60%;
    }
}
