
#page-wrapper {
    min-width: 320px;
}

#page-wrapper {
    height: 100%
}

#page, #main-wrapper {
    overflow: auto;
    min-height: 100%;
}

#main-wrapper {
    padding-top: 30px;
    padding-bottom: 65px;
}

#tgs-user-profile{
    display: none;
}

#permalink-content{
    margin-bottom: 30px;
}

body {
    font-size: 14px;
    height: 100%;
    margin: 0;
    padding: 50px 0 0 0 !important;
}

body, #header, #skip-link, ul.contextual-links, ul.links, ul.primary, .item-list .pager, div.field-type-taxonomy-term-reference, div.messages, div.meta, p.comment-time, table, .breadcrumb {
    font-family: "Helvetica Neue", Helvetica, Tahoma, Arial, sans-serif;
}

table {
    font-size: 14px;
}

label {
    margin-left: 5px;
    vertical-align: middle;
}

a, a:link, a:active, a:focus {
    outline: none !important;
    text-decoration: none !important;
}

.cufon-bold {
    font-weight: bold;
}

.no-scroll {
    overflow-x: hidden;
    overflow-y: hidden;
}

.dropdown {
    word-wrap: normal;
}

#header > div {
    position: relative;
}

div#header-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    width: 100%;
    background-color: #444444;
}

#logo-wrapper {
    position: absolute;
    height: 50px;
}

#header div.section,
#featured div.section,
#messages div.section,
#main,
#triptych {
    width: 100%; /*99%;*/
    padding: 0; /*0 10px;*/
}

#tgs-main-menu-wrapper {
    background-color: /*#00B4E0*/ #0094C0;
    height: 33px;
    position: absolute;
    top: 65px;
    width: 100%;
    color: #ffffff;
    border-top: 1px solid #0089BC;
    /*font-family: 'Quark';*/
    font-size: 16px;
    border-bottom: 1px solid #FFFF00;
}

#tgs-main-menu {
    margin-top: 6px;
}

/*ul#tgs-main-menu, */
ul#submenu {
    margin: 5px;
    padding: 0;
    height: 30px;
}

ul#submenu {
    margin: 0;
    padding: 7px 0;
}

ul#tgs-main-menu li, ul#submenu li {
    float: left;
    list-style-type: none;
    border-right: 1px solid #00A9BA;
    height: 20px;
}

ul#tgs-main-menu li a {
    padding: 3px 25px;
    margin-top: 5px;
}

ul#tgs-main-menu li a {
    color: #FFFFFF;
}

ul#tgs-main-menu li a.active {
    background-color: inherit !important;
    color: #FFFF00;
}

ul#tgs-main-menu li a.selected-menu {
    color: #000;
    background-color: #e8e8e8 !important;
    border-top: 3px solid #FFFF00;
    border-left: 2px solid #FFFF00;
    border-right: 2px solid #FFFF00;
    border-bottom: 3px solid #e8e8e8 !important;
    border-radius: 2px;
    padding-bottom: 9px;
}

ul#tgs-main-menu .arrow-active {
    border-right: none;
}

#tgs-user-profile {
    font-family: "thaisans_neue";
    position: absolute;
    top: 0px;
    right: 20px;
    font-size: 24px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    padding: 5px 15px 5px 15px;
    background: #FFFFFF;
    z-index: 9999;
    box-shadow: 0 0 2px 1px rgba(190, 190, 190, 1);
    font-weight: normal;
}

#username-wrapper span.glyphicon {
  font-size: 16px;
}

#tgs-user-profile ul.dropdown-menu {
  min-width: 0;
  font-size: 16px;
  left: -50px;
  right: 0;
}

#tgs-user-profile ul.dropdown-menu li a {
  color: #E05D05;
}

.nav-tabs {
    border-bottom: 1px solid #3C8EE9;
}

.nav-tabs > li > a:hover {
    border-color: #3C8EE9;
}

a.sub-menu-item:hover {
    color: #1892B5;
}

a.menu-item {
    padding: 0 25px;
    position: relative;
    color: #FFFFFF;
    font-size: 14px;
}

ul#tgs-main-menu ul.dropdown-menu.menu-item li a {
    font-size: 14px;
    padding: 1px 25px;
}

a div.arrow-up {
    position: absolute;
    top: -5px;
    left: 0px;
    /*left:45px;
    border-bottom: 7px solid #F0F0F0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    height: 0;
    width: 0;*/
    width: 100%;
    height: 5px;
    display: none;
    background-color: #2E6BAF;
    z-index: 1;
}

.bold {
    font-weight: bold !important;
}

.left {
    text-align: left !important;
}

.center {
    text-align: center !important;
}

.right {
    text-align: right !important;
}

.datepicker {
    width: 100px;
}

input, typearea, select {
    border-radius: 5px;
    border-color: #00CCDD;
    background-color: #FFFFFF;
}

.tgs-icon {
    font-family: "tgs-icon";
    font-style: normal;
    font-weight: normal;
    speak: none;
    display: inline-block;
    text-decoration: inherit;
    width: 1em;
    margin-right: .2em;
    text-align: center;
    font-variant: normal;
    text-transform: none;
    line-height: 1em;
    margin-left: .2em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icon-location:before { content: '\e800'; }
.icon-search:before { content: '\e801'; }
.icon-chart-line:before { content: '\e802'; }
.icon-cancel:before { content: '\e803'; }
.icon-link:before { content: '\e804'; }
.icon-down-dir:before { content: '\e805'; }
.icon-up-dir:before { content: '\e806'; }
.icon-spin4:before { content: '\e807'; }
.icon-dollar:before { content: '\e808'; }
.icon-bank:before { content: '\e809'; }
.icon-child:before { content: '\e80b'; }

.cursor-progress {
    cursor: progress !important;
}

.pointer {
    cursor: pointer;
}

.number, .right {
    text-align: right;
}

#header {
    background: #F2F2F2 repeat-x scroll 0 0;
    color: #3b5998;
    height: 50px;
}

#logo-div {
  margin-top: 30px;
  padding-left: 20px;
}

#logo-div div {
    background: url("") no-repeat scroll 0 0 / auto 100% rgba(0, 0, 0, 0);
    display: inline-block;
    height: 50px;
}

#logo-cu {
    background-image: url("../images/homepage/logo_chula.png") !important;
    width: 50px;

}

#logo-mm {
    background-image: url("../images/homepage/mm_logo.png") !important;
    width: 160px;
}

#logo-infra {
    background-image: url("../images/homepage/logo_infra.png") !important;
    width: 160px;
}

#remarktext-1,
#remarktext-2,
#remarktext-3{
    display: inline-block;
}

@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    div#logo-cu {
        background-image: url("../images/homepage/logo_chula@2x.png") !important;
    }

    div#logo-mm {
        background-image: url("../images/homepage/mm_logo@2x.png") !important;
    }

    div#logo-infra {
        background-image: url("../images/homepage/logo_infra@2x.png") !important;
    }
}

/*** Chu created ***/
.content{
    padding-left: 30px;
    margin-top: 20px;
}

form#user-login{
    margin-left: 5%;
}

form#user-login .form-item .description{
    margin-left: 80px;
    padding-top: 5px;
}

#edit-filters{
    margin-bottom: 40px;
}

#edit-filters--2 .form-item{
    clear: both;
}

#edit-options{
    margin-bottom: 10px;
}

#edit-filters legend, #edit-options legend{
    position: relative;
    font-size: 16px;
    margin: 0px;

}

/** user profile **/
.profile{
    padding: 0px 30px;
}

@media screen and (max-width: 1000px) {
    .navbar-sub-header {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    #tgs-user-profile {
        display: none;
    }
}

.navbar-sub-header {
    float: left;
    height: 50px;
    font-size: 1.2em;
    padding: 10px 0px;
    font-family: "ThaiSansNeue";
    font-weight: bold;
    line-height: 1em;
    color: #556272;
}

@media (min-width: 768px) {
    .navbar-nav > li > a {
        padding-top: 17px !important;
        padding-bottom: 13px !important;
    }
    //warp
}

#myNavbar .navbar-nav {
    float: right;
}

@media (max-width: 767px) {
    #myNavbar .navbar-nav {
        float: left;
    }
}
