@font-face {
  font-family: PingFang SC;
  src: url('fonts/pingfang-sc-regular.ttf') format('ttf');
  font-style: normal;
  font-weight: 400;
}

body {
  font-family:  PingFang SC, sans-serif !important;
  font-size: 16px;
  color: #142D4B;
  background: transparent;
  margin: 0;
  padding: 0;
}

table {
  border-collapse: collapse;
}

div.FinCalendar {
  /*
The Container for the FinCalendarObject itself, in essence controlls the with of the tool. (All CSS should be OK for this element)
*/
  max-width: 583px !important;
  border: 0 none;
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
  background: transparent;
  max-height: 451px !important;
  height: 451px !important;
  margin: 0 auto;
  border: 1px solid #bebfb8;
}

div.HeaderContainer {
  /*
The container element for the HeaderObject
*/
  border-top-left-radius: 0px !important;
  border-top-right-radius: 0px !important;
  border-radius: 0px;
  background-color: transparent;
  /* box-shadow: inset 0px 5px 5px 0px gainsboro;
/*
  NB! - ALL of the above code (starding from [background-color]) is required for cross browser compadible CSS gradient!
*/
  border-bottom: 0 none;
  padding-top: 3px;
  padding-bottom: 3px;
  height: 52px;
  box-sizing: border-box;
  position: relative;
}

table.Header {
  height: 46px;
  position: absolute;
  width: 350px;
  left: 0%;
}

div.CurrentValue {
  /*
In the HeaderObject, the current month marker
*/
  text-align: center;
  color: #000000;
  font-size: 16px;
  font-weight: normal;
  width: 305px !important;
  left: -103px !important;
  position: relative;
}

td.Next,
td.Previous {
  /*
[td.Next] - In the HeaderObject, the container for the next-months link
[td.Previous] -In the HeaderObject, the container for the previous-months link
*/

  padding: 0px 0px 0px 0px;
  text-align: center;
}

a.link {
  /*
The calendar moving links
*/
  text-decoration: none;
  color: #ffffff;
}

div.LegendColorBox {
  /*
The marker for the ColorBox in the legend.
NOTE! - The [background-color] is set by the JS
*/
width: 10px;
height: 10px;
border-radius: 0px;
margin-left: 5px;
}

div.LegendContainer {
  /*
The LegendObject's container
*/
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
  padding: 4px;
  border-top: 0px solid #DCDCDE;
}

div.LegendContainer table {
  /*
 The legend Table it self
*/
  border-collapse: collapse;
  width: 100%;
}

div.LegendContainer table td {
  /*
The cell of the Legend Table, the TD element holds the color marker and the TD.LegendName holds the name of the legend Item.
*/
  border: 0px solid #E8EBEF;
}

div.LegendContainer td.LegendName {
  /*
The marker for the Legend Items name i.e. the text part of the legend
*/
  text-align: left;
  padding-left: 5px;
}

/* div.CalendarContainer {
  
The Container DIV for the CalendarObject

padding: 3px;
} */

table.Calendar {
  /*
The actual calendar itself as a table.
the TH elements are the weekday markers and the TD elements are the day cells 
*/
  border-collapse: separate;
  border-spacing: 0;
}

table.Calendar td.Day,
table.Calendar th {
  width: 14.28%;
  /* (100% / 7) == ~14.28%  - in essence this gives equal distributation between the days*/
  line-height: 25px !important;
  /*! height: 14.28%; */
  height: 42px;
  box-sizing: border-box;
  color: #142D4B;
}

table.Calendar th {
  font-weight: normal;
}

table.Calendar td.Day {
  border-bottom: 0px solid #E8EBEF;
  background: transparent !important;
}

table.Calendar th {
  text-align: center;
  padding-bottom: 6px !important;
  color: #3467C2;
  font-weight: normal;
  border-bottom: 0px solid #E8EBEF;
  font-size: 16px;
}

table.Calendar th.Weekend {
  color: #3467C2;
}

/* div.Day {
  
The individual DayObject inside a day cell of the calendar

} */

div.DateNumber {
  /*
The DIV inside the DayObject that holds the day's number
*/
  text-align: center;
}

table.Calendar td.NotActive {
  /*
The Marker for a not active Day cell in the Calendar
*/
  color: #cccccc;
  background: transparent;
  color: #C8C8C8;
}

table.Calendar td.Weekend {
  /*
The Marker for a weekend Day cell in the Calendar
NOTE! - The [.Weekend] class is also on the TH elements of the Calendar Object i.e. on the weekday markers
*/
  background: transparent !important;
  border-color: #E8EBEF;
}

table.Calendar td.WeekendNotActive {
  /*
The Marker for a weekend Day cell in the Calendar on a day, that is not active i.e. not in the set month
*/
  background: #d4d4d4;
}

td.Today {
  color: #fff;
}

table.Calendar td.HasEvents:Hover {
  /*
The [TD.HasEvents] is given to the individual cell buy it's DayObject, but only if it actually has any events on it.
*/
  background-color: #dddddd;
}

table.EventMarkers {
  /*
The Table inside a DayObject that holds the individual Event markers for set day.
*/
  float: right;
}

td.EventTypeMarker div {
  /*
The marker for the individual Event a day cell.
NOTE! - The [background-color] is set by the JS
*/
width: 10px;
height: 10px;
}

div.Info {
  /*
The Container DIV for the HoverMessages
*/
  background: transparent;

  -webkit-box-shadow: 0px 0px 10px 3px #cccccc;
  -moz-box-shadow: 0px 0px 10px 3px #cccccc;
  box-shadow: 0px 0px 10px 3px #cccccc;

  border: 1px solid #cccccc;
  margin-left: 7px;
  margin-right: 7px;
}

html.IE7_8 div.Info {
  margin-left: 0px;
  margin-right: 0px;
}

div.QuickInfo {
  /*
The DIV container element into with the quick info is made
PS! - The 100% width is needed for the Quick Info, because of IE6 & IE7 that otherwise do not give this div a width of 100% for some reason.
*/
  padding: 5px;
  width: 100%;
}

div.QuickInfo b {
  /*
The heading of the QuickInfo.
NB! - Besides this tag there is only the "Click for more info..." text avalible.
*/
  color: #333;
}

table.EventsHeading {
  /*
The Heading for the Events itself (holds the date) and the close button (if needed).
The TH element holds the Events' Heading while the [TD.CloseButton] element holds the close Button
*/
  margin-bottom: 0px;
  width: 100%;
}

table.EventsHeading TH {
  width: 100%;
  text-align: left;
  color: #333;
  padding: 10px 5px 5px 5px;
  font-size: 12px;
}

table.EventsHeading TD.CloseButton {
  padding-right: 5px;
}

table.EventsHeading TD.CloseButton input {
  /*
The Actuale close button element
*/
  background-color: #9e0b0f;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#ed1c24), to(#9e0b0f));
  /* Saf4+, Chrome */
  background-image: -webkit-linear-gradient(top, #ed1c24, #9e0b0f);
  /* Chrome 10+, Saf5.1+, iOS 5+ */
  background-image: -moz-linear-gradient(top, #ed1c24, #9e0b0f);
  /* FF3.6 */
  background-image: -ms-linear-gradient(top, #ed1c24, #9e0b0f);
  /* IE10 */
  background-image: -o-linear-gradient(top, #ed1c24, #9e0b0f);
  /* Opera 11.10+ */
  background-image: linear-gradient(top, #ed1c24, #9e0b0f);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#ed1c24', EndColorStr='#9e0b0f');
  /* IE6-IE9 */

  border: 1px solid #77080b;
  color: #ffffff;
  font-weight: bold;
  padding: 0px 5px 0px 5px;

}

div.Events {
  /*
The Container Element for all of the events that are displayed in the Hover info box
*/
  padding: 5px;
}

div.Event {
  /*
An individual event inside the [div.Events] element. The B element holds the event's heading while the P element holds the events text. Inside the B element there can also be a "I" (italic) element that holds aider the time of the event or the date range of the event.
*/
  background: #f3f3f3;
  border: 1px solid #dddddd;
  margin-bottom: 5px;
  padding: 5px;
  font-size: 12px;
}

div.Event b {
  color: #333;
}

div.Event p {
  margin: 0px;
}

div.Event i {
  font-style: normal;
}

div.Footer {
  /*
The Events' Footer Eelement, holds the "Go to main tool" button
*/
  padding: 0px 5px 10px 5px;
}

div.Footer input {
  /*
The actuale "Go to main tool" button.
*/
  width: 100%;
  background: #969696;
  border: 1px solid #393939;
  color: #ffffff;
}



/*
td.LegendName.LegendName_1, td.LegendName.LegendName_3, td.LegendName.LegendName_5
{
width:60%!important;
}
td.LegendName.LegendName_0, td.LegendName.LegendName_2, td.LegendName.LegendName_4
{
width:40%!important;
}
td.LegendName.LegendName_5 span
{
width:100%;
}*/

.Previous a {
  width: 17px;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 15px solid #041B4C;
  display: block;
}

.Next a {
  background: url('right.png');
  content: url('right.png');
  position: absolute;
  right: 175px;
  top: 5px;
}
td.Today div div.DateNumber {
  background: #3467C2;
  border: 1px solid #3467C2;
  border-radius: 4px;
  width: 70%;
  margin: 0 auto;
  color: #fff;
}
/* div#Main, .FinCalendar > div, table.Calendar {
  width: 100% !important;
}
div.CalendarContainer > div, td[style="width: 100%;"] > div, div.CalendarContainer > div > div, td[style="width: 100%;"] > div > div, div.CalendarContainer > div > div > div {
  width: 100% !important;
}
#Main > div > div:nth-child(4) {
  background: #fff;
  width: 75% !important;
  left: 10%;
}
#Main>div>div:nth-child(4)>div>div {
  width: 100% !important;
} */

div.CurrentValue {
  text-align: center;
  color: #142D4B;
  font-size: 16px;
  font-weight: normal;
  width: 305px !important;
  left: -90px !important;
  position: relative;
}

.Next a {
  top: 13px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #041B4C;
}

/* @media (max-width: 435px) {
  body {
   font-size: 13px;
  }
  td.EventTypeMarker div{
    width: 7px;
    height: 7px;
  }
}
@media (max-width: 330px) {
  body {
   font-size: 11px;
  }
  td.EventTypeMarker div{
    width: 5px;
    height: 5px;
  }
} */