﻿/* Basics*/

*, *:before, *:after {
    box-sizing: inherit;
}

html, body {
    padding: 0;
    margin: 0;
    font-family: "Trebuchet MS", Verdana, Helvetica, Sans-Serif;
    color: #232323;
    background-color: #fff;
    height: 100%;
    box-sizing: border-box;
}

header, footer, nav, section {
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.hidden {
    display: none;
}

.center {
    text-align: center;
}

.vmerror {
    margin-bottom: 5px;
    padding: 8px;
    font-size: 1.3em;
    border: 1px solid red;
    font-weight: bold;
    color: #ff0000;
}
.vminfo {
    margin-bottom: 15px;
    padding: 8px;
    font-size: 1.3em;
    border: 1px solid darkblue;
    font-weight: bold;
    color: darkblue;
}
.vmtitle {
    margin-top: 18px;
    font-size: 1.3em;
    font-weight: bold;
}
.vmtitleError {
    color: #FF0000;
}
.vmtitleInfo {
    color: darkblue;
}
/*------------ Shared Layout Rules ---------------*/
#MainContainer {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

#RenderSectionMain {
    flex-grow: 1;
    padding: 20px;
}

#MainContainer footer {
    color: #777777;
    text-align: center;
    width: 100%;
    font-size: 12px;
    padding-bottom: 10px;
}

#SpecialColor {
    font-Family: Arial, Helvetica, san-sarif;
    font-size: 29px;
    font-weight: bold;
    margin-top: -1.25em;
}

.darkGray {
    color: #222222;
    font-Family: Arial, Helvetica, san-sarif;
    font-size: 19px;
    font-weight: bold;
    margin-top: 0em;
    text-align: center;
}

#MainHeader {
    background: #555555;
}

#HeaderContent {
    margin: 0 auto;
    max-width: 1240px;
    min-height: 80px;
    color: #FFFFFF;
    display: flex;
    padding: 20px;
    justify-content: space-between;
}

#HeaderUserSection {
    align-self: flex-end;
}

#HeaderMenuArea a {
    display: inline-block;
    background: #666666;
    padding: 4px 10px;
    margin-right: 20px;
}
    #HeaderMenuArea a:hover {
        background: #888888;
    }

#MainContainer button, .ActionButton {
    border: 2px solid #333;
    background-color: mediumseagreen;
    border-radius: 16px;
    padding: 16px 6px;
    font-size: 1.6em;
    font-weight: bold;
    color: white;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    min-width: 220px;
    margin-bottom: 12px;
}

    #MainContainer button.YellowButton {
        background-color: #bab438;
    }

    #MainContainer button.RedButton {
        background-color: #ba5438;
    }

.NarrowSection {
    max-width: 500px;
    margin: 0 auto;
}

#checkboxContainer button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 4px;
    margin-right: 5px;
}

    #checkboxContainer button:hover {
        background-color: #0056b3;
    }


.InfoMessage {
    margin-bottom: 25px;
    background-color: #3CB371;
    padding: 8px;
    color: #FFFFFF;
    font-size: 1.2em;
    font-weight: bold;
    min-height: 100px;
}

.CenterInfoFlex {
    display: flex;
    justify-content: center;
    align-items: center;
}
.CenterInfo {
    display: flex;
    background: #DDEEEE;
    border-radius: 30px;
    padding: 22px;
    font-size: 1.2em;
    margin-right: 15px;
}
.CenterTitles {
    text-align: right;
    padding-right: 10px;
}
.CenterValues {
    text-align: left;
    padding-left: 10px;
    font-weight: bold;
}
#DeclineArea {
    background: #d9928d;
    border-radius: 30px;
    padding: 22px;
    font-size: 1.2em;
    margin-right: 15px;
}
#DeclineArea span {
    font-weight: bold;
}
#DeclineReason {
    border: 1px solid black;
    background: white;
    padding: 10px;
    width: 600px;
}
.backlink {
    font-size: 1.6em;
}

/* Styles for validation helpers
-----------------------------------------------------------*/
.field-validation-error {
    color: #ff0000;
}

.field-validation-valid, .validation-summary-valid {
    display: none;
}

.input-validation-error {
    border: 1px solid #ff0000;
    background-color: #ffeeee;
}

.validation-summary-errors, .error {
    font-weight: bold;
    color: #ff0000;
}

.ErrorMessage {
    background: darkred;
    margin: 8px 0;
    padding: 10px;
    color: white;
}

/*---- Login ----*/
#LoginForm {
    width: 300px;
    margin: 0 auto;
}

    #LoginForm label {
        font-size: 1.1em;
        font-weight: bold;
        display: inline-block;
        margin-top: 20px;
    }

    #LoginForm input {
        font-size: 1.1em;
        padding: 4px;
        width: 100%;
    }

        #LoginForm input[type=submit] {
            display: inline-block;
            margin-top: 10px;
            min-height: 36px;
        }


/*---- Coupon View ----------*/
#CreateCouponForm {
    padding: 10px;
}

/*---- Offer View ----------*/
#CreateOfferForm {
    padding: 10px;
}




/*----- Responsive Flex Form -----*/
div.FormSectionTitle {
    padding-left: 30px;
    padding-top: 12px;
    text-align: left;
    font-size: 1.1em;
}

div.RespFlexForm {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

div.RFFSection {
    background: #DEE;
    border-radius: 30px;
    padding: 20px;
    margin: 10px;
}

div.RFFHalfSection {
    max-width: 500px;
}

.RFFItem {
    text-align: left;
    flex: 1 1 500px;
    max-width: 500px;
    min-width: 200px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    font-size: 1.2em;
}

    .RFFItem > label {
        font-size: 0.9em;
        font-weight: bold;
    }
    
    .RFFItem input, .RFFItem select {
        font-size: 1em;
        padding: 4px;
        width: 100%;
    }
    .RFFItem input.DateInput {
        font-size: 1em;
        padding: 4px;
        width: 60%;
    }

span.FieldDesc {
    font-size: 0.8em;
}

span.FieldDescAlert {
    color: red;
    font-weight: bold;
    font-size: 0.8em;
}

span.RadioTitle {
    font-weight: bold;
}

span.RadioDesc {
    font-weight: bold;
}

/*-----  Index Coupon  ----------------*/
.FilterFlex {
    display: flex;
}

    .FilterFlex > input {
        align-self: flex-end;
    }

.FilterTitle {
    font-weight: bold;
    font-size: 1.1em;
}

.FilterRadioSection {
    margin-right: 30px;
}

.FilterCheckboxSection {
    margin-top: 35px;
    margin-right: 30px;
}

.FilterCheckboxItem {
    display: flex;
}

/*-----  Create Coupon Form -----*/
#CreateCouponFormArea {
    display: flex;
    flex-wrap: wrap;
}

/*-----  Create Offer Form -----*/
#CreateOfferFormArea {
    display: flex;
    flex-wrap: wrap;
}

#MainInputs {
    flex: 1 1 1000px;
}

#AffiliationInputs {
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

/*#CouponAggregatorInputs {
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
    text-align: left;
}
*/
.FlexGrow {
    flex: 1 1 auto;
}

#CreateCouponSubmit {
    border-radius: 30px;
    padding: 20px;
    margin: 10px;
    font-size: 1.7em;
}

#CreateOfferSubmit {
    border-radius: 30px;
    padding: 20px;
    margin: 10px;
    font-size: 1.7em;
}

.ClientArea {
    background: white;
    border: 1px solid #333;
    margin: 15px;
    padding: 10px;
    text-align: left;
}

.ScaledCheckbox > input[type=checkbox] {
    /* Double-sized Checkboxes */
    -ms-transform: scale(2); /* IE */
    -moz-transform: scale(2); /* FF */
    -webkit-transform: scale(2); /* Safari and Chrome */
    -o-transform: scale(2); /* Opera */
    padding: 50px;
}

.ScaledCheckbox {
    /* Checkbox text */
    font-size: 1.2em;
    display: inline;
    line-height: 30px;
}

.SubtleButton {
    border: 1px solid #333;
    background-color: mediumseagreen;
    border-radius: 16px;
    padding: 6px;
    font-size: 1em;
    color: white;
    cursor: pointer;
    min-width: 120px;
}

.ImageLookupContainer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
    .ImageLookupContainer .UpcLookupButton {
        font-size: 1.2em !important;
        height: 60px;
        margin-right: 10px;
    }
    .ImageLookupContainer .ImgPreviewArea {
        max-width: 150px;
        display: flex;
        flex-direction: column;
    }
        .ImageLookupContainer .ImgPreviewArea span {
            font-size: 0.8em;
        }
        .ImageLookupContainer .ImgPreviewArea img {
            max-height: 150px;
            max-width: 150px;
            object-fit: contain;
        }




#AllClients {
    margin-left: 20px;
}

#NoClients {
    margin: 0 10px;
}

.instructions {
    display: inline-block;
    margin: 20px;
    padding: 8px;
    font-size: 1.2em;
}

.clientGroupTitle {
    font-size: 1.1em;
}

.clientGroupNames {
    font-size: 1.1em;
    font-weight: bold;
}

/*--- Create Coupon Modal ---*/
/* 
    dark red: #b01e13
    light red: #ffb5b0
    dark gold: #c9ad0c
    light gold: #fff099
*/
#gs1modal, #syncModal {
    color: black;
}
.ErrorModal {
    background-image: linear-gradient(#ffb5b0, #ffffff);
    padding: 10px;
}
.WarningModal {
    background-image: linear-gradient(#fff099, #ffffff);
    padding: 10px;
}
.InfoModal {
    background-image: linear-gradient(#ddfcbb, #ffffff);
    padding: 10px;
}
.ErrorTitle {
    background: #b01e13;
    padding: 12px;
    font-size: 1.4em;
    color: white;
}
.WarningTitle {
    background: #c9ad0c;
    padding: 12px;
    font-size: 1.4em;
    color: white;
}
.InfoTitle {
    background: #74c90c;
    padding: 12px;
    font-size: 1.4em;
    color: white;
}
.ModalSubTitle {
    font-size: 1.2em;
}
.ErrorSectionBox {
    border: 1px solid #b01e13;
    margin-top: 10px;
    border-radius: 12px;
}
.WarningSectionBox {
    border: 1px solid #c9ad0c;
    margin: 8px 8px 0 8px;
    border-radius: 12px;
}
.InfoSectionBox {
    border: 1px solid #74c90c;
    margin: 8px 8px 0 8px;
    border-radius: 12px;
}
.ErrorSectionTitle {
    background: #b01e13;
    display: block;
    padding: 4px;
    color: white;
    font-weight: bold;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
.WarningSectionTitle {
    background: #c9ad0c;
    display: block;
    padding: 4px;
    color: white;
    font-weight: bold;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
.InfoSectionTitle {
    background: #74c90c;
    display: block;
    padding: 4px;
    color: white;
    font-weight: bold;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
.ModalSectionData {
    padding: 4px;
}

/*--- Coupon Approval ---*/
#reasonText {
    width: 100%;
    height: 270px;
}

/*--- Admin Menu ---*/
#AdminMenu a {
    display: inline-block;
    font-size: 1.4em;
    color: darkblue;
    border: 1px solid darkblue;
    padding: 8px 12px;
    background-image: linear-gradient(0deg, #88a4c3 0%, #FFFFFF 55%);
    border-radius: 0.8em;
}
    #AdminMenu a:hover {
        background-image: linear-gradient(0deg, #5f83ab 0%, #e1e6ec 55%);
    }

/*--- Client Management Table ---*/
#ClientListTable {
    border: 1px solid black;
    background: white;
}
    #ClientListTable td {
        border: 1px solid black;
        padding: 4px;
    }
    #ClientListTable .CheckedClass {
        text-align: center;
        background: #D5F5E3;
        color: #239B56;
        font-weight: bold;
    }

/* Name List */
.NameList {
    display: grid;
    grid-template-columns: auto auto auto auto
}
.NameEntry {
    border: 1px solid black;
    padding: 8px;
    text-align: center;
}

/* UPC-Image-Lookup styles */
#UIL_Container {
    display: flex;
    flex-direction: column;
}
#UIL_UrlCopyArea {
    display: flex;
    align-items: center;
}
#UIL_FoundImagesContainer {
    flex-grow: 1;
    min-width: 100%;
    overflow-y: scroll;
    display: flex;
    flex-wrap: wrap;
}
#UIL_PreviewImage {
    padding-right: 10px;
}
#UIL_UrlInput {
    flex-grow: 1;
}
.UIL_FoundImageArea {
    display: flex;
    flex-direction: column;
    padding: 10px;
}
.UIL_Image {
    height: 140px;
    width: 140px;
    object-fit: contain;
}
.UIL_SelectButton {
    width: 140px;
}