@font-face {
    font-family: 'cs-chatthai-ui';
    src: url('fonts/cs-chatthai-ui/cschatthaiui-webfont.woff2') format('woff2'),
        url('fonts/cs-chatthai-ui/cschatthaiui-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body,
input,
button,
h1,
h2,
h3,
h4,
h5,
h6,
nav,
a,
div,
p,
span,
td {
    font-family: "cs-chatthai-ui", sans-serif !important;
}

@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/Material_Icons/MaterialIcons-Regular.eot');
    /* For IE6-8 */
    src: local('Material Icons'),
        local('MaterialIcons-Regular'),
        url('fonts/Material_Icons/MaterialIcons-Regular.woff2') format('woff2'),
        url('fonts/Material_Icons/MaterialIcons-Regular.woff') format('woff'),
        url('fonts/Material_Icons/MaterialIcons-Regular.ttf') format('truetype');
}

.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    /* Preferred icon size */
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    /* Support for all WebKit browsers. */
    -webkit-font-smoothing: antialiased;
    /* Support for Safari and Chrome. */
    text-rendering: optimizeLegibility;
    /* Support for Firefox. */
    -moz-osx-font-smoothing: grayscale;
    /* Support for IE. */
    font-feature-settings: 'liga';
}

/* Rules for sizing the icon. */
.material-icons.md-18 {
    font-size: 18px;
}

.material-icons.md-24 {
    font-size: 24px;
}

.material-icons.md-36 {
    font-size: 36px;
}

.material-icons.md-48 {
    font-size: 48px;
}

/* Rules for using icons as black on a light background. */
.material-icons.md-dark {
    color: rgba(0, 0, 0, 0.54);
}

.material-icons.md-dark.md-inactive {
    color: rgba(0, 0, 0, 0.26);
}

/* Rules for using icons as white on a dark background. */
.material-icons.md-light {
    color: rgba(255, 255, 255, 1);
}

.material-icons.md-light.md-inactive {
    color: rgba(255, 255, 255, 0.3);
}

.material-icons.crimson {
    color: crimson;
}

.mdl-card__supporting-text {
    width: 92%;
}

.mdl-radio {
    font-size: 14px;
}

.mdl-textfield--floating-label.is-focused .mdl-textfield__label,
.mdl-textfield--floating-label.is-dirty .mdl-textfield__label {
    top: -14px;
    font-size: 12px;
}
.mdl-textfield--floating-label.is-invalid .mdl-textfield__label {
    font-size: 14px;
    line-height: 20px;
}

/* Event card */
.card-event.mdl-card {
    width: 256px;
    height: 256px;
    background: #3E4EB8;
}

.card-event>.mdl-card__actions {
    border-color: rgba(255, 255, 255, 0.2);
}

.card-event>.mdl-card__title {
    align-items: flex-start;
}

.card-event>.mdl-card__title>h4 {
    margin-top: 0;
    width: 100%;
}

.card-event>.mdl-card__actions {
    display: flex;
    box-sizing: border-box;
    align-items: center;
}

.card-event>.mdl-card__actions>.material-icons {
    padding-right: 10px;
}

.card-event>.mdl-card__title,
.card-event>.mdl-card__actions,
.card-event>.mdl-card__actions>.mdl-button {
    color: #fff;
}

.welcome-card-wide.mdl-card {
    position: relative;
    top: 20px;
    left: 50%;
    transform: translate(-50%, 0px);
}

.welcome-card-wide>.mdl-card__title {
    color: #fff;
    height: 176px;
    background: #3E4EB8;
    /* background: url('images/social_media.png') center / cover; */
}

.welcome-card-wide>.mdl-card__actions {
    padding-left: 16px;
}

.welcome-card-wide>.mdl-card__menu {
    color: #fff;
}

.mdl-data-table {
    border: none;
    border-radius: 20px;
}

.mdl-data-table td {
    border: none;
}

.mdl-dialog {
    width: 500px !important;
}

.mdl-navigation__link {
    font-size: 16px;
}

.mdl-textfield {
    padding-top: 0px;
}

.mdl-textfield__label {
    top: 5px;
}

.container {
    padding: 0px;
    margin: 0px;
    width: 100%;
}

.content-title {
    color: #fff;
    margin-left: 20px;
    margin-top: 60px;
}

.errormsg {
    color: crimson;
}

.txtmsg {
    color: #3E4EB8;
}

.title-row {
    color: #fff;
    background-color: #3E4EB8
}

.title-drawer {
    background-color: darkgrey;
}

#today_events {
    margin-left: 20px;
}

#txtStartDate,
#txtEndDate {
    width: 220px;
}

html {
    color: rgba(0, 0, 0, .54);
}

body {
    font-size: 20px;
    margin: 0px;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-color: #cccccc;
}

div {
    font-size: 14px;
}

p {
    font-size: 14px;
    margin-top: 20px;
}

h1 {
    text-align: center;
    color: darkblue;
    font-size: 20px;
    font-weight: 300;
}

input,
button {
    font-size: 16px !important;
}

input:before {
    content: attr(data-date);
}

input::-webkit-datetime-edit,
input::-webkit-inner-spin-button,
input::-webkit-clear-button {
    display: none;
}

input::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 45px;
    color: black;
    opacity: 1;
}

input#username,
input#passwd {
    width: 100%;
}

table {
    border-collapse: collapse;
}

table,
td,
th {
    text-align: left !important;
    font-size: 16px !important;
}

tr td.footer-row,
tr:hover td.footer-row {
    border-radius: 20px;
    background-color: #fff;
}

@media (max-width: 512px) and (-webkit-min-device-pixel-ratio: 1.5),
(max-width: 512px) and (min-resolution: 1.5dppx),
(max-width: 1024px) and (-webkit-max-device-pixel-ratio: 1.5),
(max-width: 1024px) and (max-resolution: 1.5dppx) {
    .welcome-card-wide.mdl-card {
        width: 100%;
    }

    .mdl-card__title-text {
        font-size: 20px;
    }
}

@media (min-width: 513px) and (max-width: 1024px) and (-webkit-min-device-pixel-ratio: 1.5),
(min-width: 513px) and (max-width: 1024px) and (min-resolution: 1.5dppx),
(min-width: 1025px) and (max-width: 2048px) and (-webkit-max-device-pixel-ratio: 1.5),
(min-width: 1025px) and (max-width: 2048px) and (max-resolution: 1.5dppx) {
    .welcome-card-wide.mdl-card {
        width: 650px;
    }
}

@media (min-width: 1025px) and (-webkit-min-device-pixel-ratio: 1.5),
(min-width: 1025px) and (min-resolution: 1.5dppx),
(min-width: 2049px) and (-webkit-max-device-pixel-ratio: 1.5),
(min-width: 2049px) and (max-resolution: 1.5dppx) {
    .welcome-card-wide.mdl-card {
        width: 650px;
    }
}