
/* Urdang Online Application CSS */

/* Base */

html, body {
  background-color: #F5F7F8;
  color: #00001E;
}
html, body, h1, h2, h3, h4, h5, h6 {
  font-family: "Open Sans", sans-serif;
}
h6 {
  font-weight: 500;
}
hr {
  border-style: dotted;
  /*border-color: #9E9E9E;*/
  /*border-color: #878CB1;*/
  /*border-color: #61DBD8;*/
  border-color: #CCC;
}
a, button, select, input[type=checkbox], input[type=radio], input[type=date], input[type=file] {
  cursor: pointer;
}
input, select, textarea, button {
  border-radius: 0;
}
form [disabled]:not(option) {
  background-color: #EEE !important;
  color: #666 !important;
}
form [readonly] {
  /*background-color: #F9F9F9;*/
}
form input, select, textarea {
  color: #00001E;
}
#page {
  max-width: 1400px;
  min-height: calc(100vh - 176px);
  margin: 5rem auto 3rem auto;
}

/* W3 styles */

.w3-modal {
  padding-bottom: 100px;
  z-index: 999;
}

.w3-input {
  padding: 8px 12px;
}

.w3-input[type="date"] {
  padding: 7px 12px;
}

.w3-button.full {
  width: 100%;
}
.w3-button.dang {
  /*background-color: #61DBD8;*/
  background-color: #C0202F;
  color: #FFF;
}
.w3-button[class*="fa-"] {
  text-align: left;
}
.w3-button[class*="fa-"]:before,
.w3-button.dang:after {
  display: inline-block;
  /*width: 1.28571429em;*/
  width: 1.65em;
  /*content: "\f061";*/
  /*padding-left: 5px;*/
  font: normal normal normal 14px/1 "FontAwesome";
  font-size: 1.0em;
  text-align: center;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.w3-button[class*="fa-"]:before {
  padding-right: 8px;
}
.w3-button[class*="fa-"]:after {
  float: right;
  line-height: 1.4;
}
.w3-button.dang:after {
  padding-left: 8px;
  content: "\f061";
}
.w3-button.dang:hover {
  background-color: #CDDC39;
  /*background-color: #1DA6A7;*/
  color: #00001E;
}
.w3-button.dang.dang-green:hover {
  /*background-color: #61DBD8;*/
  background-color: #C0202F;
  color: #FFF;
}

.w3-border.dashed {
  border-style: dashed !important;
}
.w3-border.dotted {
  border-style: dotted !important;
}

/* Title ribbon */

.title {
  height: 46px;
  padding: 8px 16px !important;
  margin: 0 -16px 10px -16px !important;
  /*border-radius: 4px 4px 0 0;*/
  /*border-bottom: 1px dotted #61DBD8;*/
  border-bottom: 1px dotted #C0202F;
  /*margin: -8px -16px 10px -16px !important;*/
  line-height: 30px;
  background-color: #878CB1;
  /*background-color: #4C4D60;*/
  color: #FFF;
}
.title .fa {
  margin-right: 5px;
}
.title:before {
  display: inline-block;
  /*content: "\f069";*/
  padding-right: 5px;
  font: normal normal normal 14px/1 "FontAwesome";
  font-size: 1.0em;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Form fields */

.label-field,
.input-field {
  display: block;
  overflow: hidden;
  position: relative;
  margin: 16px 0 16px 0;
  vertical-align: bottom;
}
.label-field:not(.none) {
  width: calc( 100% + 32px );
  padding: 16px;
  margin: 0 -16px;
}
.label-field h6 {
  /*margin: 16px 0;*/
  margin: 0;
  font-weight: bold;
}
.label-field p {
  /*margin: 16px 0;*/
  margin: 0;
}
.label-field small {
  font-weight: bold;
}
.input-field {
  width: 100%;
}
/*.input-field.half {
  width: 50%;
}
.input-field.full {
  width: 100%;
}*/
.input-field p {
  margin: 0 0 8px 0;
}

.input-field input:not([type=checkbox]):not([type=radio]),
.input-field select,
.input-field textarea {
  border: 1px solid #878CB1;
}

.input-field input:not([type=checkbox]):not([type=radio]),
.input-field select,
.input-field textarea {
  box-shadow: inset 1px 2px 8px rgba(0, 0, 0, 0.02);
  transition: .18s ease-out;
}
.input-field input:not([type=checkbox]):not([type=radio]):hover,
.input-field select:hover,
.input-field textarea:hover {
  background-color: #FFE;
  /*box-shadow: inset 1px 2px 4px rgba(0, 0, 0, 0.01), 0px 0px 8px rgba(0, 0, 0, 0.2);*/
}
.input-field input:not([type=checkbox]):not([type=radio]):focus,
.input-field select:focus,
.input-field textarea:focus {
  background-color: #FFE;
  box-shadow: inset 0 2px 5px 0 rgba(0,0,0,0.16), 0 2px 10px 0 rgba(0,0,0,0.12)
}

.input-checkbox,
.input-radio {
  cursor: pointer;
}
.input-checkbox strong,
.input-radio strong {
  display: inline-block;
  max-width: calc( 100% - 1.4rem );
  white-space: normal;
}
.input-checkbox input,
.input-radio input {
  /*width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.5rem;
  margin: 0;
  vertical-align: middle;*/
  width: 1.4rem;
  height: 1.4rem;
}
.input-checkbox p,
.input-radio p {
  border-color: #CCC !important;
}
.input-checkbox p.active,
.input-radio p.active {
  border-color: #878CB1 !important;
}
.input-icon input,
.input-icon select,
.input-icon textarea {
  width: calc( 100% - 40px );
}
.input-icon .fa {
  display: inline-block;
  overflow: hidden;
  float: left;
  width: 40px;
  height: 40.5px;
  border: 1px solid #878CB1;
  border-width: 1px 0 1px 1px;
  line-height: 40px;
  text-align: center;
  background: #F1F1F1;
  cursor: pointer;
}
.input-icon.right .fa {
  float: right;
  border-width: 1px 1px 1px 0;
}

/* Responsive */

@media screen and (max-width: 600px) {
  /* Responsive page column */
  #page > .w3-row > .w3-col:last-child {
    padding: 0 16px;
  }
  /* Responsive table layout */
  table.w3-table {
    border: 0;
  }
  table.w3-table thead {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    padding: 0;
    border: none;
    margin: -1px;
    clip: rect(0 0 0 0);
  }
  table.w3-table tr {
    display: block;
    border-bottom: 4px solid #ddd;
    /*margin-bottom: .625em;*/
  }
  table.w3-table td,
  table.w3-table td:first-child {
    display: block;
    padding: 8px 8px;
    border-bottom: 1px solid #ddd;
    font-size: .9em;
    text-align: right;
  }
  table.w3-table td:before {
    content: attr(data-label);
    float: left;
    font-weight: bold;
    /*text-transform: uppercase;*/
  }
  table.w3-table td:last-child {
    border-bottom: 0;
  }
}

/* navMenu */

#navMenu {
  display: block;
  visibility: hidden !important;
  opacity: 0 !important;
  position: fixed;
  top: -15vh;
  z-index: 998;
}
#navMenu.show {
  visibility: visible !important;
  opacity: 1 !important;
  top: 0;
}

#navMenuToggle .fa-bars {
  display: inline-block;
}
#navMenuToggle .fa-times {
  display: none;
}
#navMenuToggle.active-dang-black .fa-bars {
  display: none;
}
#navMenuToggle.active-dang-black .fa-times {
  display: inline-block;
}

/* Animation / Transition */

a, input, select, textarea, button, .w3-button, *[class*="w3-hover"] {
  transition: background .5s, color .5s;
}

#navMenu {
  transition: top .5s, visibility .5s ease-in-out, opacity .5s ease-in-out;
}

/* JQUERY UI DATE PICKER */

.ui-widget-content {
  background-color: #FFE !important;
  color: #00001E !important;
}

.ui-state-default {
  border-color: #c5c5c5;
  background-color: #f6f6f6;
  color: #454545;
}

.ui-state-hover,
.ui-state-highlight {
  border-color: #4C4D60 !important;
  /*background-color: #61DBD8 !important;*/
  background-color: #C0202F !important;
  color: #00001E !important;
}

.ui-state-active {
  border-color: #4C4D60 !important;
  background-color: #CDDC39 !important;
  color: #00001E !important;
}

.ui-datepicker-prev,
.ui-datepicker-next {
  top: 2px !important;
  padding: 15px !important;
  border: none !important;
}

.ui-datepicker-prev {
  left: 2px !important;
}

.ui-datepicker-next {
  right: 2px !important;
}
