
/*
 * Add / Edit Forms.
 */

/*
 *------------------------------------------------------------
 * Form Title Bar
 *------------------------------------------------------------
 */

.bm__form__title-bar {
    display: flex;
    width: 100%;
    background-color: var(--form-title-bg);
    padding: 0.8rem;
    border-bottom: 0px solid var(--form-title-bordercolor);
}

.bm__form__title-bar h1 {
    font-family: var(--form-title-font-family);
    text-align: left;
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    line-height: 24px;

    position: relative;
    top: 50%;
    transform: translate(0%, -60%);

    color: var(--form-title-textcolor);
}

.bm__form__title-bar__close {
    display: flex;
    margin-left: auto;
    margin-right: 0;
}

.bm__form__title-bar__close img {
    width: 25px;
    height: 25px;
    opacity: 0.7;
}

.bm__form__title-bar__close img:hover {
    opacity: 1;
}

.bm__form__title-bar__bottom-border {
    display: flex;
    width: 100%;
    padding: 0rem 0.8rem;
}

.bm__form__title-bar__bottom-border span {
    width: 100%;
    height: 1px;
    background: var(--form-title-bordercolor);
}

/*
 *------------------------------------------------------------
 * Form Footer
 *------------------------------------------------------------
 */

.bm__form__footer {
    display: flex;
    padding-top: 0;
    padding-left: 3rem;
    padding-bottom: 1rem;
}

.bm__form__footer p {
    font-family: var(--form-footer-font-family);
    font-style: normal;
    font-weight: 400;
    font-size: 15px;
    color: var(--form-footer-textcolor);
}


/*
 *------------------------------------------------------------
 * Form Buttons 
 *------------------------------------------------------------
 */
.bm__form__button-topbar,
.bm__form__button-bar {
    display: flex;
    width: 100%;
    background-color: /*var(--form-buttons-bg)*/ none;
    /*border-bottom: 1px solid var(--form-title-bordercolor);*/
    padding: 1rem;
}

.bm__form__button-topbar input[type=button],
.bm__form__button-bar input[type=button] {
    margin-left: 0px;
    margin-right: 20px;
    width: 122px;
    height: 41px;
    font-family: var(--form-button-font-family);
    font-style: normal;
    font-weight: 500;
    font-size: 18px;
    line-height: 18px;
    color: var(--form-button-textcolor);
    background: var(--form-button-bg);
    border: 1px solid var(--form-button-bordercolor);
    cursor: pointer;
    border-radius: 5px;
}

.bm__form__button-topbar input[type=button]:hover,
.bm__form__button-bar input[type=button]:hover {
    border: 1px solid var(--form-button-bordercolor-hover);
    background: var(--form-button-bg-hover);
    color: var(--form-button-textcolor-hover);
    border-radius: 5px;
}

.bm__form__button-topbar__buttons {
    width: 100%;
}

.bm__form__button-topbar__filter-icon {
    display: none;
}


.bm__form-background {
    display: flex;
    flex-direction: column;
    background-color: #424242;
    /*background: radial-gradient(77.59% 77.59% at 19.76% 22.41%, #9e9e9e 0%, #5e5e5e 78.72%);*/
    padding: 0;
}


.bm__form {
    display: flex;
    position: relative;
    z-index: 1;
    flex-direction: column;
    width: 100%;
    min-height: var(--page-min-height);
    align-self: center;
    align-items: flex-start;
    opacity: 1;
    
    
    border: none;
    background-color: var(--form-color-bg);
    
    
    /*box-shadow: 10px 10px 5px var(--form-shadow);*/
}

.bm__form__bgimg {
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    /*background: url('/budman-logo.png') no-repeat bottom+10px right+10px;*/
    
    opacity: 0.1;
}

.bm__form__layout {
    display: flex;
    padding: 1rem 4rem;
    flex-direction: row;
}

.bm__form__layout h1 {
    padding-top: 2rem;
    align-items: center;
    font-family: var(--form-groupheader-font-family);
    font-size: 20px;
    line-height: 20px;
    font-weight: 600;
    color: var(--form-groupheader-textcolor);
    margin-left: -2rem;
}

.bm__form__layout td {
    padding: 7px;
    flex-direction: row;
}


.bm__form__layout p {
    padding: 0px;
    margin: 0px;
    font-family: var(--form-error-font-family);
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    color: var(--form-error-textcolor);
}

.bm__form__layout label {
    font-family: var(--form-fieldlabel-font-family);
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 18px;
    color: var(--form-fieldlabel-textcolor);
}

.bm__form__layout span {
    font-family: var(--form-fieldlabel-font-family);
    font-style: normal;
    font-weight: 600;
    font-size: 18px;
    line-height: 18px;
    color: var(--form-fieldvalue-textcolor);
}

.bm__form__layout input[type=text],input[type=text-short],input[type=number],input[type=password],input[type=datetime-local],select,option {
    width: 332px;
    height: 35px;
    top: 458px;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--form-textbox-bordercolor);

    font-family: var(--form-textbox-font-family);
    font-style: normal;
    font-weight: 500;
    font-size: 18px;
    color: var(--form-textbox-textcolor);
    padding: 5px;
}

.bm__form__layout input[type=text-short],input[type=number]  {
    width: 120px;
}

.bm__form__layout input[type=text]:hover,input[type=text-short]:hover,input[type=number]:hover,input[type=password],input[type=datetime-local]:hover,select:hover,option:hover {

    border: none;
    border-bottom: 1px solid var(--form-textbox-bordercolor);
    outline: none;
}

.bm__form__layout input[type=text]:focus,input[type=text-short]:focus,input[type=number]:focus,input[type=password]:focus,input[type=datetime-local]:focus,select:focus,option:focus {

    border: none;
    border-bottom: 2px solid var(--form-textbox-bordercolor);
    outline: none;
}


.bm__form__layout input[type=button] {
    margin-top: 25px;
    margin-left: 0px;
    margin-right: 20px;
    width: 122px;
    height: 41px;
    font-family: var(--form-button-font-family);
    font-style: normal;
    font-weight: 500;
    font-size: 18px;
    line-height: 18px;
    color: var(--form-button-textcolor);
    background: var(--form-button-bg);
    border: 1px solid var(--form-button-bordercolor);
    cursor: pointer;
    border-radius: 5px;
}

.bm__form__layout input[type=button]:hover {
    border: 1px solid var(--form-button-bordercolor-hover);
    color: var(--form-button-textcolor-hover);
    background: var(--form-button-bg-hover);
}


/*
 * List Forms.
 */

.bm__form__cards {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    width: 100%;
}

.bm__form__card {
    display: flex;
    padding: 1rem;
    width: 100%;
    border: 1px solid var(--form-card-bordercolor);
}

.bm__form__card input[type=checkbox] {
    display: flex;
    width: 20px;
    height: 20px;
    margin-top: 180%;
}

.bm__form__card__data {
    display: flex;
    width: 100%;
}

.bm__form__card:hover {
    border-radius: 0px;
    background-color: var(--form-card-bg-hover);
    border: 1px solid var(--form-card-bordercolor-hover);
    box-shadow: 0px 2px 5px var(--form-card-bg-hover-shadow);
    cursor: pointer;
}

.bm__form__card__data__item {
    display: flex;
    flex-direction: column;    
    padding: 0rem;
    width: 100%;
    position: relative;
}

.bm__form__card__data__buttons {
    display: none;
    flex-direction: row;
    margin-left: auto;
    margin-right: 0;
    padding: 0px;
}

.bm__form__card:hover .bm__form__card__data__buttons {
    display: flex;
}

.bm__form__card__data__buttons input[type=button] {
    margin-left: 0px;
    margin-right: 0px;
    margin: 4px;
    width: 112px;
    height: 34px;
    font-family: var(--form-button-font-family);
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 16px;
    color: var(--form-button-textcolor);
    background: var(--form-button-bg);
    border: 1px solid var(--form-button-bordercolor);
    cursor: pointer;
    border-radius: 4px;
    z-index: 3;
}

.bm__form__card__data__buttons input[type=button]:hover {
    border: 1px solid var(--form-button-bordercolor-hover);
    background: var(--form-button-bg-hover);
    color: var(--form-button-textcolor-hover);
}

.bm__form__card__title {
    padding: 5px;
}

.bm__form__card h1 {
    font-family: var(--form-cardtitle-font-family);
    font-style: normal;
    font-size: 20px;
    line-height: 20px;
    font-weight: 500;
    color: var(--form-fieldlabel-textcolor);
}

.bm__form__card__info {
    padding: 5px;
}

.bm__form__card p {
    font-family: var(--form-cardlabel-font-family);
    font-style: normal;
    font-size: 18px;
    line-height: 18px;
    font-weight: 400;
    color: var(--form-fieldlabel-textcolor);
}


/**
 * View Forms
 */



 /**
 * Media: Mobile Phone
 */
 @media screen and (max-width: 550px) {
 
    .bm__form__button-topbar__filter-icon {
        visibility: visible
    }

    .bm__form__card {
        padding-left: 0.5rem;
        border: 1px solid var(--form-card-bordercolor-mobile);
        margin-bottom: 0.5rem;
    }

    .bm__form__layout {
        padding: 1rem 1rem;
    }
    
    .bm__form__layout h1 {
        padding-top: 1rem;
        margin-left: 0rem;
    }
    

    .bm__form__layout td {
        display: flex;
        padding-top: 10px;
        flex-direction: column;
    }

    .bm__form__layout input[type=text],input[type=password] {
        width: 280px;
        height: 25px;
        padding: 0px;
    }

    .bm__form__card:hover .bm__form__card__data__buttons {
        display: none;
    }

    .bm__form__button-bar {
        display: flex;
        flex-direction: column;
    }

    .bm__form__button-topbar input[type=button],
    .bm__form__button-bar input[type=button] {
        margin-bottom: 10px;
    }

}
