﻿.input-wrapper {
    position: relative;
    border-radius: 5px;
    min-height: 40px;
    border: 1px solid rgb(192,192,192);
    font-size: 1rem;
    line-height: 1rem;
    width: calc(100% - 5px);
    z-index: 1;
    background-color: transparent;
    margin-top: 5px;
    margin-right: 5px;
    margin-bottom: 5px;
    direction: ltr;
}
.input-wrapper.encapsulated {
    border-radius: 0 5px 5px 0;
    border-left: none;
}
    .input-wrapper.no-border {
        border: none;
    }

    .input-wrapper.invalid {
        background-color: rgba(185,29,71, 0.3);
    }

.label-wrapper.expired {
    background-color: rgba(185,29,71, 0.3);
    color: rgba(185,29,71, 1);
    border: 2px solid rgba(185,29,71, 1);
    font-weight: bold;
}

.input-wrapper.is-disabled {
    background-color: rgba(192,192,192, 0.3);
}

.input-wrapper textarea {
    border-radius: 5px;
}

.input-wrapper.with-title {
    width: calc(100% - 145px);
    margin-left: 140px;
}

    .input-wrapper.with-title.with-calendar-button {
        width: calc(100% - 200px);
        margin-left: 140px;
        display: inline-block;
        vertical-align: top;
    }


.input-wrapper.small {
    display: inline-block;
    width: 100px;
    vertical-align: middle;
}

.input-wrapper.with-title.small {
    display: inline-block;
    width: calc(100% - 60px);
    margin-left: 60px;
    vertical-align: middle;
}
.input-wrapper.encapsulated.with-title.small::after {
    border: 1px solid rgb(192,192,192);
    border-right: none;
    border-radius: 5px 0 0 5px;
    text-align: center;
    background-color: var(--theme-colour);
    color: rgb(255,255,255);
    min-height: 40px;
    top: -2px;
    bottom: -2px;
}
.input-wrapper.medium, .label-wrapper.medium {
    display: inline-block;
    width: 200px;
    vertical-align: middle;
}

.input-wrapper.large {
    display: inline-block;
    width: 300px;
    vertical-align: middle;
}

.input-wrapper.with-title.medium, .label-wrapper.with-title.medium {
    display: inline-block;
    width: calc(100% - 245px);
    margin-left: 240px;
    vertical-align: middle;
}

.input-wrapper.with-title.large {
    display: inline-block;
    width: calc(100% - 345px);
    margin-left: 340px;
    vertical-align: middle;
}

.input-wrapper.with-title.tick-box-400 {
    display: inline-block;
    width: calc(100% - 400px);
    margin-left: 405px;
    vertical-align: middle;
    max-width: 40px;
}

.input-wrapper.with-title.tick-box-250 {
    display: inline-block;
    width: calc(100% - 250px);
    margin-left: 255px;
    vertical-align: middle;
    max-width: 40px;
}

.input-wrapper.with-title::after {
    position: absolute;
    font-size: 1rem;
    line-height: 2.35rem;
    content: attr(data-label);
    top: 0;
    left: -140px;
    height: auto;
    font-weight: 600;
    width: 140px;
    white-space: normal;
    overflow: hidden;
    word-break: break-word;
}

.input-wrapper.with-title.medium::after, .label-wrapper.with-title.medium::after {
    width: 240px;
    left: -240px;
}

.input-wrapper.with-title.large::after {
    width: 340px;
    left: -340px;
}

.input-wrapper.with-title.tick-box-400::after {
    width: 400px;
    left: -400px;
}

.input-wrapper.with-title.tick-box-250::after {
    width: 250px;
    left: -255px;
}

.input-wrapper.with-title.small::after {
    width: 60px;
    left: -60px;
}

.input-wrapper:focus-within {
    border-color: rgb(128, 128, 128);
}

input {
    position: absolute;
    top: 0;
    left: 5px;
    width: calc(100% - 25px);
    bottom: 0;
    background-color: transparent;
    border: none;
    font-size: 1rem;
    line-height: 1rem;
    z-index: 1;
}

    input:disabled {
        background-color: transparent;
    }

.input-wrapper textarea {
    resize: none;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 5px;
    padding: 5px;
    font-size: 1rem;
    font-family: Segoe UI,SegoeUI,"Helvetica Neue",Helvetica,Arial,sans-serif;
    background-color: rgb(255,255,255);
}

.label-wrapper {
    position: relative;
    min-height: 40px;
    font-size: 1rem;
    width: calc(100% - 5px);
    z-index: 1;
    background-color: transparent;
    margin-top: 5px;
    margin-right: 5px;
    margin-bottom: 5px;
    font-weight: 600;
    line-height: 2.35rem;
}
    .label-wrapper.text-right {
        text-align: right;
    }
    .label-wrapper.with-indent {
        padding-left: 20px;
    }
    .label-wrapper.with-stripe {
        color: rgb(255,255,255);
    }
.label-wrapper.invalid {
    color: red;
    font-weight: bold;
    font-size: 1rem;
}
    .label-wrapper.ellipsis {
        white-space: nowrap;
        -o-text-overflow: ellipsis;
        -ms-text-overflow: ellipsis;
        text-overflow: ellipsis;
        overflow: hidden;
    }

.label-wrapper.info-dot {
    border-radius: 50%;
    background-color: var(--theme-colour);
    color: rgb(255,255,255);
    text-align: center;
    height: 30px;
    width: 30px;
    min-height: 30px;
    margin-top: 7px !important;
    line-height: 1.8rem;
    font-size: 1.2rem;
}
    .label-wrapper.info-dot.red {
        background-color: rgb(185,29,71);
    }
    .label-wrapper.info-dot.orange {
        background-color: rgb(218,83,44);
    }
    .label-wrapper.info-dot.green {
        background-color: rgb(0,163,0);
    }

    .label-wrapper.with-title {
        width: calc(100% - 145px);
        margin-left: 140px;
    }

        .label-wrapper.with-title::after {
            position: absolute;
            height: 1rem;
            padding: 0 10px;
            content: attr(data-label);
            top: 0;
            left: -140px;
            height: 100%;
            font-weight: 600;
        }

    .label-wrapper.with-border {
        border-radius: 5px;
        border: 1px solid rgb(192,192,192);
        padding-left: 5px;
    }

    .label-wrapper.inline {
        width: 150px;
        display: inline-block;
        margin-right: 10px;
        white-space: nowrap;
        -o-text-overflow: ellipsis;
        -ms-text-overflow: ellipsis;
        text-overflow: ellipsis;
        overflow-x: hidden;
    }

.header-wrapper {
    position: relative;
    min-height: 40px;
    font-weight: bold;
    font-size: 1.05rem;
    line-height: 1rem;
    width: calc(100% - 5px);
    z-index: 1;
    background-color: transparent;
    margin-top: 5px;
    margin-right: 5px;
    margin-bottom: 5px;
    padding: 10px;
    border-bottom: solid 2px var(--theme-colour);
}
.body .input-wrapper, .body .label-wrapper, .body > button {
    margin-top: 2px;
    margin-bottom: 2px;
}
.input-wrapper.with-clear {
    width: calc(100% - 50px);
    display: inline-block;
}
.input-wrapper.clear {
    width: 35px;
    display: inline-block;
    vertical-align: top;
    border: none;
}
/*Staff Pay*/
.tick-box.expired {
    background-color: rgba(185,29,71, 0.1);
}
.tick-box.warning {
    background-color: rgba(218,83,44, 0.3);
}

.label-wrapper.warning {
    background-color: rgba(218,83,44, 0.3);
    color: rgba(218,83,44, 1);
    border: 2px solid rgba(218,83,44, 1);
    font-weight: bold;
}
.label-wrapper.expired.min, .label-wrapper.warning.min {
    padding-left: 10px;
    margin-right: 0;
    margin-left: 5px;
    border-radius: 5px;
    overflow: visible;
}
.label-wrapper.pay-overridden {
    color: rgb(185,29,71);
}