/* no rotate icon in OC menu - have to rewrite all navigation item in every module */
.icon-no-rotate {
    transform: scale(1) !important;
}

/*align icon in menù */
.menu-admin a.btn span,
.menu-admin button.accordion-button span {
    display: inline-block;
}

.menu-admin a.btn span.icon,
.menu-admin button.accordion-button span.icon {
    height: auto;
}

/* OC list content items, add content item dropdown behind list */
.action-bar {
    z-index: 1;
}

.with-checkbox {
    z-index: 0;
}

/* validation summary */
.validation-summary-valid,
.field-validation-valid {
    display: none;
}

.validation-summary-errors {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='hsl(350deg, 60%, 50%)' d='M11.5 14.2V5.7h1.2v8.5zm-.1 4.1h1.2v-1.8h-1.2zM22 7.9v8.3L16.1 22H7.9L2 16.2V7.9L7.9 2h8.2zm-1 .4L15.7 3H8.3L3 8.3v7.5L8.3 21h7.4l5.3-5.2z'%3E%3C/path%3E%3C/svg%3E");
    background-position: 20px 16px;
    background-repeat: no-repeat;
    background-size: 32px 32px;
    border-left: 8px solid hsl(350deg, 60%, 50%);

    position: relative;
    padding: 1rem 1rem;
    margin-bottom: 1rem;
    border-top: 1px solid #5d7083;
    border-bottom: 1px solid #5d7083;
    border-right: 1px solid #5d7083;
    padding-left: 4em;
    background-color: #fff;
    border-radius: 0;
    color: #1a1a1a;
}

.validation-summary-errors ul {
    margin: 0;
}

/* MediaFields: validation messages */
.field-feedback {
    margin-left: .5rem;
    width: 100%;
    margin-top: .25rem;
    font-size: .75rem;
}

/* BagPart improved: validation messages */
.feedback-container .form-feedback {
    margin-left: 0;
    margin-bottom: .5rem;
    margin-top: 0;
}

/* input type=number fix */
.input-number .just-validate-success-field ~ .input-group-text.align-buttons,
.input-number .is-invalid ~ .input-group-text.align-buttons
{
    right: 30px !important;
}

/* input-group - fix icon little than field */ 
.input-group .input-group-text { 
    height: 2.5rem; 
}

/* form-group - margin bottom as form-group */
.mb-form-group {
    margin-bottom: 3rem;
}

/* list content type badge */
.ta-badge {
    background-color: grey;
    color: white;
}

.ta-badge a {
    color: white;
}

/* form - use p like a label */
.label {
    background-color: rgba(0, 0, 0, 0);
    font-weight: 600;
    line-height: calc(2.5rem - 1px);
    font-size: .777rem;
    cursor: text;
    color: #1a1a1a;
    display: block;
    max-width: 100%;
    width: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 0.5rem;
}

/* form - select more visible */
select.form-select {
    border-width: 1px;
}

/* form- background position valid not over select symbol */
.form-control.just-validate-success-field {
    background-position: bottom 50% right 1% !important;
}

/* form - make checkbox visible in OrchardCore interfaces*/
.form-check>[type="checkbox"].form-check-input {
    position: absolute;
    opacity: 0;
    left: 9px;
    top: 9px;
    margin-left: 0;
    margin-top: 0;
}

.form-check>[type="checkbox"].form-check-input~.form-check-label {
    padding-left: 2rem
}

.form-check [type=checkbox]:checked~.form-check-label::after {
    border-color: #06c;
    background-color: #06c;
    z-index: 0;
}

.form-check [type=checkbox]:not(:checked)~.form-check-label::after {
    background-color: rgba(0, 0, 0, 0);
    border-color: #5b6f82;
    z-index: 0;
}

.form-check [type=checkbox]~.form-check-label::after {
    border-radius: 4px;
    height: 20px;
    width: 20px;
    margin: 4px;
    top: 0;
}

.form-check [type=checkbox]~.form-check-label::after,
.form-check [type=checkbox]~.form-check-label::before {
    content: "";
    left: 0;
    position: absolute;
    transition: .2s ease-out;
    z-index: 1;
    border-style: solid;
    border-width: 2px;
}

.form-check [type=checkbox]:not(:checked)~.form-check-label::before {
    width: 0;
    height: 0;
    border-color: rgba(0, 0, 0, 0);
    left: 6px;
    top: 10px;
}

.form-check [type=checkbox]:checked~.form-check-label::before {
    top: 4px;
    left: 1px;
    width: 8px;
    height: 13px;
    border-style: solid;
    border-width: 2px;
    border-color: rgba(0, 0, 0, 0) #fff #fff rgba(0, 0, 0, 0);
    transform: rotate(40deg);
    backface-visibility: hidden;
    transform-origin: 100% 100%;
    opacity: .8;
}
.form-check [type=checkbox]~.form-check-label::after, .form-check [type=checkbox]~.form-check-label::before {
    content: "";
    left: 0;
    position: absolute;
    transition: .2s ease-out;
    z-index: 1;
    border-style: solid;
    border-width: 2px;
}
.form-check [type=checkbox]~.form-check-label::before {
    top: 0;
    width: 17px;
    height: 17px;
    border: 1px solid #e6e9f2;
    border-radius: 1px;
    margin: 2px 4px;
    transform: rotateZ(37deg);
    transform-origin: 100% 100%;
}
.form-check [type=checkbox]~.form-check-label::after, .form-check [type=checkbox]~.form-check-label::before {
    content: "";
    left: 0;
    position: absolute;
    transition: .2s ease-out;
    z-index: 1;
    border-style: solid;
    border-width: 2px;
}

/* form - make radio more near p.label */
.form-check {
    margin-top: 0.375rem;
    margin-bottom: 0;
}

/* backend content type and part: improve readability */
.dashed::before {
    content: " - ";
}

.hint {
    font-weight: 600;
    margin-top: 0.25rem;
    font-size: 0.777rem;
}

.fs-5-5 {
    font-size: 1.15rem;
}

/* media modal */
.media-container-middle .alert-info {
    background-image: none;
}

[dir]:root .visibility-buttons {
    margin-top: initial !important;
}

[dir]:root .visibility-buttons a {
    border-radius: 0px !important;
}

.folder-actions a.btn {
    border-radius: 0px;
}

[dir]:root ol.media-items-grid li .inline-media-button.delete-button {
    margin-right: 3.5rem !important;
}

/* no uppercase text in footer */
.it-footer-main h4 a {
    text-transform: inherit !important;
    font-size: 1.555rem !important;
}

.it-footer-main a {
    color: #fff;
}

/* icon */
.icon-sm-padded {
    padding: 4px;
}

.icon-in-btn {
    height:1.2em;
}

.card.card-no-after:after {
    margin:0;
}

/* bagpart - invalid item */
.widget-template {
    & :has(input.is-invalid) {
      background-color: lightyellow;
    }
}
