/*
(c) Adfore Technologies Oy 2014 
*/
/* 
    Created on : 20-Aug-2014, 10:34:59
    Author     : tuukka.laakso
*/

html,body {
    position: initial;
    background-color: #F0F0F2;
    font-weight: 400;
}

.page {
    margin: 0;
    max-width: none;
}

input:invalid {
    box-shadow: 0 0 2px 1px red;
}

input:invalid + span::after {
    content: " Virheellinen arvo ";
}

#loginPage {
    padding: 0;
}

#loginPage .card, #monkeyBox {
    max-width: 500px;
    margin-bottom: 1rem;
}

#ilmoPreviewImg {
    max-width: 100%;
    max-height: 300px;
}

.previewImg img {
    max-width:100%;
    max-height:400px;
}

.resultsList {
    max-width: 480px;
    display: block;
}

.removeButton, .tableControlButton {
    background-color: white;
    border-color: #f7f9fb #7f8386 #7f8386 #f7f9fb;
    border-radius: 2px;
    border-style: solid;
    border-width: 1px;
    cursor: pointer;
}

.removeButton:active, .tableControlButton:active, .tableControlButton.toggled {
    border-color: #7f8386 #f7f9fb #f7f9fb #7f8386;
}

.tableControlButton {
    height: 32px;
    vertical-align: middle;
}

.removeButton {
    height: 30px;
    vertical-align: top;
    margin-top: 3px;
    margin-left: 5px;
    cursor: pointer;
}

.textInput {
    height: inherit;
    width: 100%;
}

.inputHeader {
    line-height: normal;
    margin-top: 0;
    color: #393939;
    font-weight: bold;
}

.inputField {
    display:inline-block;
    max-width: 394px;
    vertical-align: top;
    margin-left: 10px;
}

.i18nLang {
    display: inline-block;
    width: 70px;
}

.i18nContainer {
    margin-top: 10px;
}

.i18nHeader, .textButton {
    color: #651FFF;
    display: inline-block;
    line-height: 36px;
    margin-bottom: -10px;
    cursor: pointer;
}

.navButton {
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 0;
    min-width: 120px;
    text-align: center;
}

.dateVal {
    line-height: 23px;
    color: #651FFF;
    font-weight: bold;
    margin-left: 22px;
}

.dateField {
    width: 214px;
    padding: 0px;
}

.dateValWrap {
    display: inline-block; 
    margin-left: 5px;
    margin-right: 5px; 
    width: 138px;
}

.calHeader {
    color: #393939;
    text-align: center;
    font-weight: bold;
    margin-bottom: 4px;
    margin-top: 4px;
}

.red, .text-danger, .invalid-feedback {
    color: #C70000 !important;
}

.popupi {
    position: relative;
    display: inline;
}

.popupContainer {
    position: absolute;
    top: 15px;
    left: -50px;
    right: -30px;
}

.popupModal {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

.popup_content {     
    display: block;
    z-index: 1000000;
    font-size: 12px;
    font-weight: normal;
    color: black;
    visibility: hidden;
    -webkit-transition: visibility 0s ease 4s;
    transition: visibility 0s ease 4s;
    text-align: left;
    padding: 8px;
}

.popupi:active .popup_content {
    visibility: visible;
    -webkit-transition: visibility 0s ease 0s;
    transition: visibility 0s ease 0s;
}

.popupModal:active + .popup_content {
    display: none;
}

#poisList .mblRoundRect,
.campaignsTable .mblRoundRect,
#currentEvents .mblRoundRect{
    margin-top: 0;
}

#fpReports td {
    text-align: center;
}

#fpReports td .inputHeader {
    text-align: left;
    line-height: inherit;
    margin-bottom: 5px;
    margin-top: 15px;
}

#fpReports table, #productPage table {
    border-spacing: 5px 0;
}

#poisList table,
.campaignsTable,
#shopPageCategories table,
#currentEvents table {
    border-spacing: 0;
    border-collapse: collapse;
}

#poisList .table td,
.campaignsTable td,
#shopPageCategories .table td,
#currentEvents .table td {
    vertical-align: inherit;
}

table :not(.poiRow).disabled {
    border: 1px dashed #999999;
    color: #999999;
}

table :not(.poiRow).disabled.open {
    border-bottom-width: 0;
}

table .poiRow.disabled {
    border: 1px dashed #999999;
    border-top-width: 0px;
}

table .textRow img {
    margin-left: 4px;
    margin-right: 4px;
}

.betaLabel {
    color: white;
    display: inline-block;
    margin-left: 3px;
    margin-top: -5px;
    vertical-align: top;
}

.loginHeader {
    width: 127px;
    display: inline-block;
}

#contactForm input {
    margin-bottom: 0.5rem;
}

.plainContainer {
    margin: 0;
    padding: 10px 0;
}

.email2Img {
    background-position: -77px -69px;
    height: 32px;
    vertical-align: middle;
    width: 32px;
}

.campaignsTable .narrow {
    display: none;
}

.campaignsTable .narrow td {
    border-top: none;
}

.campaignsTable .textRow.narrow div {
    min-width: 126px;
}

@media screen and (max-width: 500px) {
    .campaignsTable .narrow {
        display: table-row;
    }
    .campaignsTable .wide {
        display: none;
    }
}

#poisList .poiName {
    min-width: 209px;
}

#poisList table, #currentEvents table {
    max-width: 400px;
}

.suggestionBox {
    border: 1px solid black;
    color: #651FFF;
    font-size: 12px;
    font-weight: normal;
    line-height: initial;
    margin-top: -2px;
}

.suggestionBox .table {
    margin-bottom: 0;
}

.suggestionBox .table td {
    height: 36px;
    cursor: pointer;
}

#shopPage .i18nContainer {
    margin-top:0;
    margin-bottom: 10px;
}

.info {
    font-size: 12px;
    color: #555555;
    margin-bottom: 5px;
}

.ohInputField {
    display: inline-block;
    margin-left: 2px;
    margin-right: 2px;
}

.ohInput {
    padding-left: 8px;
    width: 36px;
    padding-right: 8px;
}

.ohRow {
    margin-bottom: 0.25rem;
}

.ohList {
    clear: both;
    max-height: 370px;
    overflow: hidden;
    -webkit-transition: max-height 0.5s ease-in 0s;
    transition: max-height 0.5s ease-in 0s;
    margin: 0.5rem 0;
}

.closed > .ohList {
    max-height: 0;
}

.card-body:not(.closed) .more {
    display: none;
}

.card-body.closed .less {
    display: none;
}

.ohDateValue {
    color: #651FFF;
    vertical-align: middle;
}

.ohLabel > .start {
    float: left;
}

.ohLabel > .end {
    float: right;
}

.ohLabel > .end .aclickable {
    text-align: right;
}

.labelPointer.ohLabel > img {
    height: 32px;
    left: 46%;
    position: absolute;
    top: 2px;
}

.ohFields {
    margin-bottom: 1rem;
}

.ohFields > table td {
    color: #393939;
    font-weight: bold;
    line-height: 36px;
}

.ohFields > table td .inputHeader {
    margin-top: 0;
    font-size: 14px;
    line-height: 18px;
}

.ohFields table {
    border-collapse: collapse;
}

.ohFields > table tr {
    border-bottom: 1px solid #CCCCCC;
}

.ohFields > table thead div {
    margin-left: 7px;
    font-size: 14px;
}

@media screen and (max-width: 500px) { 
    .ohFields td .inputHeader,
    .ohFields thead div {
        font-size: 12px;
    }
}

@media screen and (max-width: 405px) { 
    .ohFields td .inputHeader,
    .ohFields thead div {
        font-size: 11px;
    }
}

@media screen and (max-width: 385px) { 
    .ohFields td .inputHeader,
    .ohFields thead div {
        font-size: 10px;
    }
}

#registrationPage {
    padding: 0;
}

#registrationPage .inputHeader > span, #prospectForm .inputHeader > span {
    display: inline-block;
    width: 176px;
}

#registrationReseller {
    display: inline-block;
    margin-top: 15px;
    margin-left: 10px;
    margin-right: -5px;
    max-width: 211px;
    vertical-align: top;
}

#registrationReseller > img {
    max-width: 211px;
}

.productName {
    font-weight: 700;
}

.productTeaser {
    max-width: 490px;
    padding-bottom: 15px;
}

.productPrice {
    color: #ef0000;
    font-weight: bold;
    padding-bottom: 14px;
    white-space: nowrap;
    padding-left: 0.25rem;
}

.productPrice button {
    display: block;
    margin-top: 0.25rem;
    min-width: 0;
}

#productPageSub2 .inputHeader > span {
    display: inline-block;
    width: 150px;
}

#eventsPageChannels .navButton {
    display: block;
    width: 160px;
}

#eventsPage .subPage .inputHeader > span {
    display: inline-block;
    width: 150px;
}

#ilmoPage.realtime .subPage.fbook .rss,
#ilmoPage.realtime .subPage:not(.fbook) .fbook,
#ilmoPage.realtime .subPage.singlePoi .next,
#ilmoPage.realtime .subPage:not(.singlePoi) .save,
#ilmoPage.realtime #ilmoPageEndTitle, 
#ilmoPage.realtime .ilmoPreview { 
    display:none;
}

#userPage .inputHeader > span {
    display: inline-block;
    width: 235px;
}

.spotSlot {
    background-color: #eef1f1;
    display:inline-block;
    margin-right: 5px;
    max-width: 394px;
    min-width: 300px;
    padding: 5px;
    vertical-align: top;
    margin-bottom: 5px;
}

#ilmoPageTemplates img {
    max-height: 300px;
    max-width: 90%;
    vertical-align: middle;
}

#ilmoPageTemplates input {
    vertical-align: middle;
}


#ilmoPageSub9 .inputHeader > span {
    display: inline-block;
    width: 175px;
}

.spotSlot .navButton {
    display: block;
    margin-bottom: 10px;
    width: 160px;
}

#ilmoCampaignInfo {
    font-size: 12px;
    font-weight: initial;
    margin-top: 0.5rem;
}

#newIlmoPage .navButton.im {
    display: none;
}

#statsPageDatePicker .dateField {
    display: inline-block;
}

.navButton.gridButton {
    min-width: 20px;
    margin-top: 2px;
    margin-left: -4px;
    margin-right: -4px;
}

#customerFrameWrap {
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    bottom: 0;    
}

#customerFrameWrap > iframe {
    width:100%;
    height:100%;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
}

#frameHeader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 6;
    color: white;
    background-color: #1888D1;
}

.hideOverflow {
    overflow: hidden;
}

#prospects, #customers {
    font-size: 12px;    
}

.fixedGrid {
    table-layout: fixed;
    width: 0;
    word-wrap: break-word;
}

#prospects table .textRow div, #customers table .textRow div {
    max-height: inherit;
}

#prospects .navButton.gridButton {
    line-height: inherit;
}

#prospectForm .inputField.fieldList {
    display: block;
    margin-left: 186px;
}

#fpSwitchAd {
    position: relative;
}

.flipY.flipRight {
    transform: rotateY(-89.9deg);
}

.flipY.flipLeft {
    transform: rotateY(89.9deg);
}

.flipY.invisible {
    position: absolute;
}

#registrationReseller > input + img {
    max-width: 190px;
    vertical-align: middle;
}

#registrationReseller > input {
    margin-bottom: 15px;
}

.b2bordered {
    border: 1px solid #999999;
    padding: 0px 10px 10px 10px;
    margin-top: 10px;
}

.statusgreen, .statusred {
    height: 24px;
    width: 24px;
    background-color: green;
    padding: 0 !important;
    border-radius: 32px;
    margin-left: 4px;
}

.statusred {
    background-color: #C70000;
    position: relative;
}

#curatorFPData {
    margin-top: 10px;
}

#logData table .textRow {
    height: 32px;
    font-size: 14px;
}

.rising, .falling {
    position: relative;
}

.rising::after, .falling::after {
    content: "";
    border: solid black;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 2px;
    position: absolute;
    left: -8px;
    top: 8px;
}

.table-sm .rising::after, .table-sm .falling::after {
    top: 7px;
}

.rising::after {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

.falling::after {
    -webkit-transform: rotate(-135deg);
    transform: rotate(-135deg);
}

table .textRow.red div {
    overflow: visible;
}

.statusred[data-descr]:hover::after {
  content: attr(data-descr);
  position: absolute;
  left: 5px;
  top: 5px;
  border: 1px #979797 solid;
  background-color: white;
  padding: 5px;
  color: #000000;
  font-size: 12px;
  z-index: 100;
  white-space: nowrap;
}

#lunchCalendar > .mblRoundRect {
    display: inline-block;
    padding: 0 3px 3px;
}

#lunchCalendar th {
    font-size: 12px;
    font-weight: normal;
    text-align: center;
}

#lunchCalendar .notMonth .date, 
#lunchCalendar .notMonth.green .date {
    color: #b0b0b0;
}

#lunchCalendar .lunchmenu {
    font-size: 10px;
    max-width: 200px;
    white-space: pre-wrap;
    display: none;
    background-color: white;
    padding: 2px 0 2px 2px;
}

#lunchCalendar tr.toggled .lunchmenu {
    display: block;
}

#lunchCalendar td {
    vertical-align: top;
}

#lunchCalendar .date {
    min-width: 60px;
    padding: 4px 0 4px 4px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

#lunchCalendar .green .date {
    color: white;
}

#lunchCalendar .red {
    background-color: #C70000;
    color: black !important;
}

#lunchCalendar .yellow {
    background-color: #FFD27E;
}

#lunchPage .weekday {
    width: 175px;
    display: inline-block;
}

@font-face {
  font-family: "toolkit-entypo";
  src: url("../toolkit-entypo.eot");
  src: url("../toolkit-entypo.eot?#iefix") format("eot"), url("../toolkit-entypo.woff2") format("woff2"), url("../toolkit-entypo.woff") format("woff"), url("../toolkit-entypo.ttf") format("truetype");
  font-weight: normal;
  font-style: normal; 
}

.hidden {
    display: none !important;
}

.modalPane {
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    background-color: rgba(0,0,0,0.5);
    z-index: 1100;
    /* z-index must be less than onModalPane class */
}

#fullProgress {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 1101;
    background-color: white;
    padding: 5px;
    border-radius: 5px;
}

.noSubHeader .dashhead-subtitle, .noSubHeader .subHeaderButton {
    display: none !important;
}

.fixedGrid {
    table-layout: fixed;
    width: 0;
    word-wrap: break-word;
}

.b2bordered {
    border: 1px solid #999999;
    padding: 10px;
    margin-top: 10px;
}

.table.small td {
    vertical-align: middle;
}

.suggestionBox {
    border: 1px solid rgba(0,0,0,0.2);
    margin-top: -2px;
}

.suggestionBox .table td {
    border-color: rgba(0,0,0,0.2);
    cursor: pointer;
}

.progressIcon {
    max-height: 64px;
}

.sidebar-header::after {
    height: 26px;
}

.hideOverflow {
    overflow: hidden;
}

.progress.textColorBG {
    background-color: inherit;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}

.table-secondary, .table-secondary>td, .table-secondary>th {
    color: #8a8a8a;
    background-color: #545454;
}

@media (min-width: 1200px) {
    .container {
      width: 95%;
      max-width: 1400px; } }

/* global body padding */
body {
  padding-top:    20px;
  padding-bottom: 20px;
}

@media (min-width: 768px) {
  body {
    padding-top:    50px;
    padding-bottom: 50px;
  }
}


/* global spacing overrides */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  margin-top: 0;
}
hr {
  margin-top: 30px;
  margin-bottom: 30px;
}

.navbar-fixed-top,
.navbar-static-top {
  border-bottom: 0;
}

button.btn:hover > span.iconImg, button.btn:hover > span.icon2Img {
    filter: grayscale(1) brightness(4);
}

.datepicker table tr td.selected {
    background-color: lightgray;
}

.input-daterange .input-group-addon {
    margin-left: 0;
    margin-right: 0;
}

.input-group.input-daterange {
    max-width: 240px;
}

#newShopText :last-child {
    margin-bottom: 1rem;
}

input.form-control {
    max-width: 25rem;
}

.form-row input.form-control {
    max-width: none;
}

.input-with-icon-right {
  position: relative;
  vertical-align: middle;
  max-width: 25rem;
}

.input-with-icon-right > .form-control {
    padding-right: 30px; 
}
.input-with-icon-right > .icon {
    position: absolute;
    top: 7px;
    right: 10px;
}

.i18nContainer hr {
    margin-left: 0;
    max-width: 25rem;
    margin-top: 15px;
}

#shopPageSub3 img {
    max-width: 100%;
}

#fpReports .icon-info-with-circle:before {
    font-size: 110%;
}

.icon-info-with-circle {
    position: relative;
}

.icon-info-with-circle > .popupInfo {
    display: none;
}

.icon-info-with-circle.clicked > .popupInfo, .icon-info-with-circle:hover > .popupInfo {
    display: block;
    position: absolute;
    left: -3px;
    top: -3px;
    padding-left: 20px;
    z-index: 100;
    width: 200px;
}

.popupInfo > div {
    border: 1px #979797 solid;
    background-color: white;
    padding: 5px;
    color: #000000;
    font-size: 12px;
    text-transform: none;
    letter-spacing: normal;
}

.table tr:first-child td, .poiRow td, .table th {
    border-top: none;
}

.tdButton {
    width: 46px;
}

.ohCard {
    max-width: 500px;
}

.ohDateCal {
    font-size: 1rem;
    line-height: 1;
    font-weight: normal;
    margin-left: -14px;
}

.dateCal {
    margin-left: -14px;
    margin-top: -10px;
}

.lIconBtn {
   padding: 0.188rem 0.5rem;
   font-size: 1.25rem; 
}

.inputIconBtn {
   padding: 0.25rem 0.5rem;
   font-size: 1rem;
   display: block;
}

.ilmoPreview {
    margin-top: 1rem;
}

.ilmoPreview > .mblRoundRect {
    margin-bottom: 0 !important;
}

#ilmoPageEndTitle {
    margin-bottom: -0.75rem;
    margin-top: 1rem;
}

select {
    padding: 0.5rem 0.25rem 0.5rem 0.75rem;
    border-radius: 0.25rem;
    color: #495057;
}

#eventsPageChannels button {
    display: block;
    margin-bottom: 1rem;
    width: 160px;
    text-align: left;
}

#eventsPageChannels .channelImg {
    filter: grayscale(1) brightness(4);
}

.nav-item, .nav-header {
    max-width: 100%;
    overflow: hidden;
}

#widgetCode {
    background-color: #f8f9fa;
    padding: 0.5rem;
}

#couponLimitNumber {
    display: inline-block;
    width: 5rem;
}

.aBody, .messageBody {
    white-space: pre-line;
}

.custom-select {
    background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23333' d='M1 3L0 2h2z'/%3E%3C/svg%3E") no-repeat right center;
    background-size: 22px 30px;
    height: calc(2rem + 3px) !important;
}

.input-with-icon-right > .custom-select{
    background-position: right 22px center;
    padding-right: 52px;
}

.custom-control-label {
    vertical-align: middle;
}

.btn-xlg {
    padding: 1rem 2rem;
    font-size: 2.5rem;
    border-radius: 0.3rem;
    line-height: 1.5;
}

.lunchRow, .lunchRow label {
    cursor: grab;
}

.ui-sortable-helper, .ui-sortable-helper label {
    cursor: grabbing;
}

.lunchRow .dropdown-menu, .lunchRow .dropdown-menu label {
    cursor: default;
}

.lunchRow:not(:nth-child(3)) .col-form-label:not(span) {
    display: none !important;
}

.lunchDBox {
    position: absolute;
    top: 8px;
    right: 10px;
    background-color: black;
    color: white;
    padding: 1px 5px;
}

.ui-sortable-helper {
    background-color: #e4e4e7;
    box-shadow: 2px 2px 2px 2px rgba(0,0,0,0.1);    
}