/* Constrain the admin login logo size without affecting other images. */
.login-box .login-logo img,
.login-logo img {
    max-width: 220px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.submit-row {
    align-items: stretch;
    display: flex !important;
    flex-direction: column;
    gap: 8px;
}

.submit-row input[type="submit"],
.submit-row a {
    border: 0 !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    color: #fff !important;
    display: block !important;
    font-weight: 600;
    line-height: 1.25;
    margin: 0 !important;
    padding: 9px 12px !important;
    text-align: center;
    text-decoration: none !important;
    width: 100% !important;
}

.submit-row input.admin-submit-save,
.submit-row input[name="_save"],
.submit-row input[name="_addanother"],
.submit-row input[name="_continue"],
.submit-row input[name="_saveasnew"] {
    background: #1faa55 !important;
}

.submit-row input.admin-submit-save:hover,
.submit-row input[name="_save"]:hover,
.submit-row input[name="_addanother"]:hover,
.submit-row input[name="_continue"]:hover,
.submit-row input[name="_saveasnew"]:hover {
    background: #188743 !important;
}

.submit-row a.admin-submit-back {
    background: #f59f00 !important;
}

.submit-row a.admin-submit-back:hover {
    background: #d98200 !important;
}

.submit-row a.deletelink,
.submit-row a.admin-submit-delete {
    background: #dc3545 !important;
}

.submit-row a.deletelink:hover,
.submit-row a.admin-submit-delete:hover {
    background: #bd2130 !important;
}

.object-tools a.historylink,
.object-tools a[href$="/history/"],
.submit-row a.historylink,
.submit-row a[href$="/history/"] {
    background: #ffc107 !important;
    color: #212529 !important;
}

.object-tools a.historylink:hover,
.object-tools a[href$="/history/"]:hover,
.submit-row a.historylink:hover,
.submit-row a[href$="/history/"]:hover {
    background: #e0a800 !important;
    color: #212529 !important;
}
