﻿@import url("../global.css");

/*
This file contains the unique styles needed for example.html which do not appear in /css/global.css
----------------------------------------------------------------------------------------
*/

body, html {
    font-size: 100%;
    margin: 0;
    padding: 0;
    background: #FFF;
}

/* 5. GLOBAL LAYOUT & GLOBAL CUSTOM TYPOGRAPHY
----------------------------------------------------------------------------------------*/
h1 {
	text-align: center;
	font-size: 2em;
	line-height: 1.2em;
}
  
h1 span {
	font-size:0.4em;
	line-height:3.em;
}
  
h2 { font-size: 1.5em; margin-bottom: 0em;   text-align: left;}
h3 { font-size: 1em; line-height: 30px; margin-bottom: 0.5em;}
h3, h4, h5, h6 { font-family: "Tahoma", "Times New Roman", serif; font-weight: normal;}

p.intro { font-size: 1.309em; margin-bottom: 1em; }
  
header { 
	text-align:center; 
	/*font-family: WDB_Bangna, "Tahoma", "Times New Roman", serif;*/
	font-family: "Tahoma", "Times New Roman", serif;
	/*margin-top: 1.5em;*/
    margin-top: -0.5em;
    font-size: 0.8em;
    color: #333;
}

header>h2 {
    height: 45px;
    line-height: 2.5em;
    padding-left: 5px;
    text-align: left;
    background: #79BEE8;
    /*text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.9);*/
}
header.pink>h2 {
	color: #FFF;
    background: #F13283;
	border-bottom: 1px solid #D10263;
}
header.green>h2 {
	color: #FFF;
    background: #95CA12;
	border-bottom: 1px solid #85BA02;
}
header.blue>h2 {
	color: #FFF;
    background: #309ACF;
	border-bottom: 1px solid #107AAF;
}
header>h3 {
    background: #ADD477;
    padding: 3px;
    margin-top: 2px;
}
header>h3>div {
    display: inline-block;
    margin-right: 5px;
}
header>h3>div:last-of-type {
    /*display: block;*/
    color: #0C900F;
}
header>h3 span {
    font-size: 0.85em;
}

#main {
	margin-top: 8px;
}

footer {
	margin:1.618em 0 0;
	padding: 1.618em 0 0;
	border-top: 1px solid rgb(102,102,102);
	border-bottom: 1px solid rgb(102,102,102);
}
  
footer p { float: left; margin-right:1em; }
#ismobile {
    display: inline-block;
    left: 0px;
    color: #0097C3;
    height: 30px;
    width: 30px;
    line-height: 30px;
    font-weight: bold;
    text-align: center;
    background: #FFF;
    border-radius: 5px;
    border: 1px solid #0097C3;
}
.isdesktop{
    display: none;
}


/* 6. CUSTOM LAYOUT & TYPOGRAPHY (Baby bear)
----------------------------------------------------------------------------------------*/
  
header img#header-logo { margin-bottom:-0.809em; }

/*
header h2:before {
	content:"";
	border-bottom: 2px solid #888;
	height: 0.8em;
	width: 20%;  
	display: block;
	float: left;
}

header h2:after {
	content:"";
	border-bottom: 2px solid #888;
	height: 0.8em;
	width: 20%;
	display: block;
	float: right;
}*/

.wrapper h3 
{
    /*text-align: center;*/
    color: #FFF;
    border-radius: 5px ; 
    background: #4F9CD4;
}
.wrapper h3:before {
	content:"●";
	height: 1.1em;
	display: block;
	float: left;
	margin: 0 5px;
}


/*
.wrapper h3:before {
	content:"";
	border-bottom: 2px dotted #FB00FF;
	height: 1.1em;
	width: 15%;  
	display: block;
	float: left;
}

.wrapper h3:after {
	content:"";
	border-bottom: 2px dotted #FB00FF;
	height: 1.1em;
	width: 15%;
	display: block;
	float: right;
}*/

hr {
 border: 0; 
 height: 1px; 
 background-image: -webkit-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.5), rgba(0,0,0,0)); 
 background-image: -moz-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.5), rgba(0,0,0,0)); 
 background-image: -ms-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.5), rgba(0,0,0,0)); 
 background-image: -o-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.5), rgba(0,0,0,0)); 
}

/************************************* Baby Fancy ******************************************/
/*.fancy {
	font-family: WDB_Bangna, "Tahoma", "Times New Roman", serif;
	line-height: 1.5em;
	text-align: center;
	width: 100%;
}
.fancy img {
	margin-top: -15px;
}
.fancy span {
	color: #64BB46;
	display: inline-block;
	font-size: 2.5em;
	position: relative;  
	margin-bottom: 18px;
	width: 200px;
	border-left: 2px solid #59C9EB;
	border-right: 2px solid #59C9EB;
}

.fancy span:before,
.fancy span:after {
	content: "";
	position: absolute;
	height: 5px;
	border-bottom: 2px solid #59C9EB;
	top: 0.2em;
	width: 1.6em;
	display: block;
}
.fancy span:before {
	right: 100%;
	float: left;
}
.fancy span:after {
	left: 100%;
	float: right;
}
*/

/************************************* Baby GRID COLUMN ******************************************/
.wrapper {
	overflow: hidden;
}


.col {
	float: left;
	margin-left: 0.2%;
	margin-bottom: 15px;
	width: 100%;
}



/************************************* Baby Nav ******************************************/

.Lside {
    width: auto;
    float: none;
    clear: none;
    color: #555;
    height: 0px;
    overflow: hidden;
    background: #E9E5DA; /*#00B3E4;*/
    margin-top: -18px;
    /*border-radius: 5px;*/
    transition: all .5s ease;
    border: 0px solid #BBB;
    
}

#Lmenu
{
    margin-top: -5px;
    /*display: inline-block;
    position: relative;
    color: #FFF;
    font-weight: bold;
    background: #00B3E4;
    padding: 7px 20px;
    cursor: pointer;
    border-radius: 0 0 5px 5px;*/
}
    
.rotage180{ 	transform:rotate(180deg);}
.autoHeight{    height: 300px; overflow: auto; padding: 10px 0; margin-bottom: 10px; border: 1px solid #BBB;}

    
nav {
	width: 100%;
	background: #BE9CC6;
	font-family: WDB_Bangna, "Tahoma", "Times New Roman", serif;
	font-size: 1.1em;
	font-weight: bold;
	border-bottom: 1px solid #88469D;
	
	
	position:fixed;
	left:0;
	right:0;
	margin: 0px;  
	top:0px;
}

nav ul {
	display: none;
	height: auto;
	padding: 0;
	margin: 0 auto;
	max-width: 27.5em;
}
nav li {
	display: block;
	float: none;
	width: 100%;
	padding: 0px;
	text-align: center;
	border-right: 1px solid #88469D;
	border-top: 1px dashed #88469D;
	text-shadow: 1px 1px 0px #88469D;
}
/*
nav li:hover {
	background: #54AC35;
	text-shadow: 1px 1px 0px #409820;
}*/

nav a {
	display: block;
	color: #FFF;
	text-align: center;
	text-decoration: none;
	line-height: 40px;
}

nav a:visited {
	color: #FFF;
}

nav li a:hover, nav li a:active {
	color: #333;
}

/*
nav li a {
	border-right: 1px solid #576979;
	box-sizing:border-box;
	-moz-box-sizing:border-box;
	-webkit-box-sizing:border-box;
}
nav li:last-child a {
	border-right: 0;
}
*/
nav a#pull {
	/*display: none;*/
	text-align: left;
	text-indent: 20px;
	background: #9E6CA6;
}

nav a#pull:after {
	content:"";
	background: url('../../images/page/nav-icon.png') no-repeat;
	width: 30px;
	height: 30px;
	display: inline-block;
	position: relative;
	right: 5px;
	float: right;
	top: 10px;
}


/*-----------------------*/

.navfixed {
	position:fixed;
	left:0;
	right:0;
	margin: 0px;  
	top:0px;
	z-index: 100;
}

.logout
{
    display: inline-block;
    color: #FFF;
    background: #333;
    position: relative;
    padding-right: 5px;
    float: right;
    font-size: 0.7em;
    cursor: pointer;
    height: 45px;
}
.logout:before {
    content: "";
    display: inline-block;
	width: 0; 
	height: 0; 
	border-bottom: 21px solid transparent;  /* left arrow slant */
	border-top: 21px solid transparent; /* right arrow slant */
	border-color: rgba(121, 190, 232, 0); /* ป้องกันรอยขอบใน moz */
	border-left: 10px solid #79BEE8; /* bottom, add background color here */
	font-size: 0;
	line-height: 0;
	margin-right: 5px;
	vertical-align: middle;
}

/************************************* Baby Addon ******************************************/

.input-group {
	font-family: "Tahoma", "Times New Roman", serif;
    display: table;
    font-size: 16px;
    margin-bottom: 10px;
    max-width: 100%;
    /*overflow: hidden;*/
    position: relative;
    vertical-align: middle;
}
    
.input-group.radio {
    display: inline-block;
}

.input-group > span {
    display: table-cell;
	color: #333;
    background-color: #D8DFEA;
    border: 1px solid #777;
    padding: 0 12px;
    vertical-align: middle;
    white-space: nowrap;
    line-height: 1;
    height: 34px;
    width: 1%;
}
.input-group > span.label:after 
{
    content: " :";
}

.input-group > input
{
   display: table-cell;
   border: 1px solid #777;
   vertical-align: middle;
   height: 34px;
   text-indent: 7px;
   font-size: 1.1em;
   margin-bottom: 0;
   width: 50%;
}

.input-group input:first-child,span:first-child {
    border-right: 0 none;
}

/*
Hide radio button (the round disc)
we will use just the label to create pushbutton effect
*/
.input-group input[type=radio] {
    display:none;
    margin:10px;
}
 
/*
Change the look'n'feel of labels (which are adjacent to radiobuttons).
Add some margin, padding to label
*/
.input-group input[type=radio] + label {
    display:inline-block;
    color: #FFF;
    margin:-2px;
    padding: 0px 12px;
    background: #0097C3;
    border-color: #ddd;
    cursor: pointer;
    font-weight: bold;
}
/*
Change background color for label next to checked radio button
to make it look like highlighted button
*/
.input-group input[type=radio]:checked + label {
    background-image: none;
    color: #333;
    background-color: #FFF;
}
.input-group input[type=radio]:checked + label.drop {
    background-color: #D23E3E;
}

.input-group input[type=radio]:first-child + label{
    border-radius: 5px 0 0 5px;
}
.input-group input[type=radio]:last-of-type + label{
    border-radius: 0 5px 5px 0 ;
}

.md-content .input-group label {
    margin-left: -20px;
}
.md-content .input-group input {
    width: 100%;
}
    
select
{
    font-size: 1.2em;
}

.list-item {
    margin-bottom: 3px;
    /*background-color: #D0D8E3;*/
    background-color: #95CA12;
    border-radius: 3px;
}
.list-item.gray {
    background-color: #CCC;
}
.list-item.gray >span{
    color: #333;
}
.list-item.gray >div>button{
    color: #4F9CD4;
}
.list-item.yellow {
    background-color: #F2E50F;
}
.list-item.yellow >span{
    color: #333;
}
.list-item.yellow >div>button{
    color: #10A3E7;
}
.list-item.clear {
    background-color: #EEE;
}
.list-item.clear >span{
    color: #999;
}
.list-item.clear >div>button{
    color: #95CA12;
}

.list-item.p1{    padding-left: 25px;}
.list-item.p2{    padding-left: 50px;}

.list-item > span 
{
    display: table-cell;
    color: #333;
    padding: 3px 12px;
    vertical-align: middle;
    line-height: 1;
    height: 34px;
    width: 100%;
}
.list-item.thin > span 
{
    padding: 0px 12px;
    vertical-align: top;
    line-height: 25px;
    height: 25px;
}

.list-item > div 
{
    display: table-cell;
    vertical-align: middle;
    line-height: 1;
    height: 34px;
    white-space: nowrap;
    width: 1%;
}
.list-item.thin > div 
{
    height: 25px;
}

.list-item > div > span{
    border-right: 2px dotted #FFFFFF;
    display: inline-block;
    line-height: 35px;
    padding-right: 5px;
	min-width: 40px;
	text-align: center;
}
.list-item > div > span.disable{    color: #999;}

.list-item.clear > div > span{
	color: #999;
    border-right: 2px dotted #999;
}
.list-item.thin > div > span{
    line-height: 25px;
}
.list-item > div > a, .list-item > div > button
{
    color: #FFF;
    display: inline-block;
    background-color: transparent;
    padding: 0px;
    margin: 0px 5px;
    border-radius: 0px;
}

.list-item > div > a:last-child {
    border-right: 0 none;
}
/*
.addon .bt {
    height: 34px;    
    width: 34px;
    text-indent: 38px;
    vertical-align: middle;
    background-image: url('glyphicons01w.png');
    background-repeat: no-repeat;
    padding: 0;
    cursor: pointer;
}

.addon .black { background-image: url('glyphicons01.png');}
.addon .blue { background-image: url('glyphicons01b.png');}
.addon .pink { background-image: url('glyphicons01p.png');}
.addon .green { background-image: url('glyphicons01g.png');}
.addon .red { background-image: url('glyphicons01r.png');}
.addon .yellow { background-image: url('glyphicons01y.png');}

.add { background-position: -168px -0px; }
.edit { background-position: -168px -92px; }
.layout { background-position: -110px -46px; }
.delete { background-position: -110px -0px; }
*/
.boxnowkpi
{
    color: #1663E6;
    background: #DDD; /*FFBB00*/
    padding: 8px;
    border: 1px solid #BBB;
}
.boxproject{
    color: #FFF;
    background: #888;
    padding: 8px;
    margin-bottom: 10px;
}
.boxtable{
    display: table;
    width: 100%;
}
.boxA {
    display: table-cell;
    background: #7CCEF3;
    color: #333
    padding: 10px 5px;
    text-align: center;
    width: 25%;
}
.boxA > span{    font-size: 2.2em;}

.boxB{
    display: table-cell;
    background: #D9F6BC;
    text-align: center;
    vertical-align: top;
    padding: 10px 5px;
    width: 65%;
}
.boxB > div 
{
    color: #FFF;
    display: inline-block;
    padding: 0 3px 15px;
}
.boxB > div > span {    color: #333; display: inline-block; margin-bottom: 5px;}
.boxB > div > div {    line-height: 2em;}

.objective, .allquantity{
    border: 1px solid #555;
    padding: 2px 5px 2px 20px;
    font-size: 1.2em;
    text-align: center;
    color: #2494BE;
    margin: 0px 2px;
    background: #FFF url('edit.png') no-repeat center left;
    box-shadow: inset 0px 3px 3px -2px rgba(0,0,0,0.5);
    border-radius: 3px;
}
.objective:disabled{
    color: #FFF;
    background:#AAA;
    padding: 2px 5px;
} 

input.objective.req{  color: #FFF; background: #F50;}

input.allquantity.req{  color: #FFF; background: #F50;}
span.allquantity{
    border-radius: 3px;
    color: #333;
    border: 1px solid #8CBE69;
    padding: 2px 5px;
    background: #ADD477;
    box-shadow: none;
}
span.allquantity.req{  color: #FFF; Background: #F50; border: 1px solid #F00;}

.infobar{
    display: inline-block;
    height: 32px;
    margin-right: 10px;
}
.boxactionitem > div {
    background: #D9F6BC;
    border: 1px solid #BCDE89;
    margin-bottom: 20px;
    padding: 10px;
}
.boxactionbaseitem > div {
    background: #C2F5FF;
    border: 1px solid #79BEE8;
    margin-bottom: 8px;
    padding: 10px;
}
.boxactionbaseitem > div:nth-of-type(2n+1) {
    background: #A9DEFF;
    border: 1px solid #79BEE8;
}

.flipcontainer { 
  width: 140px;
  height: 32px;
  margin: 0 auto;
  position: relative;
  perspective: 800px;
  font-weight: bold;
}

#card {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 1s;
  -webkit-transition: all 1s;
}

#card span {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden; /* Chrome and Safari */
  vertical-align: middle;
  line-height: 30px;
}

#card .front {
  color: #FFF;
  background: #0097C3;
}
#card .back {
  color: #FFF;
  background: #888;
  transform: rotateY( 180deg ) rotate(180deg);
  -webkit-transform: rotateY( 180deg ) rotate(180deg);
}

#card.flipped {
  transform: rotateX( 180deg );
  -webkit-transform: rotateX( 180deg );
}

#actionelement .quantity {
    border-radius: 8px;
    padding: 2px 5px;
    background: #ADD477;
    border: 1px solid #8CBE69;
}

#actionelement .file{
    border-bottom: 1px dotted #888888;
    margin-bottom: 5px;
    padding: 3px 3px 3px 20px;
    min-height: 25px;
    background: url('attach.gif')no-repeat top left;
}
#actionelement .file>a {
    color: #0087B3;
    text-decoration: none;
}
#actionelement .file>span {
    background: #CCE3A0;
    color: #555;
    display: inline-block;
    float: right;
    font-size: 0.7em;
    padding: 0 3px;
    line-height: 15px;
    vertical-align: middle;
    cursor: pointer;
}

#actionelement .thumpnail {
    display: inline-block;
    border: 1px solid #888;
    width: 100px;
    height: 100px;
    margin: 3px 0px;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}
#actionelement .thumpnail>span {
    display: inline-block;
    color: #FFF;
    float: right;
    background: rgba(0,0,0,0.5);
    padding: 0 3px;
    margin: 3px;
    font-size: 0.7em;
    cursor: pointer;
}
#actionelement .thumpnail>a {
    display: inline-block;
    color: #FFF;
    background: #8AC007;
    padding: 3px;
    position: relative;
    top: 35px;
    text-decoration: none;
}
#actionelement .thumpnail>span:after, #actionelement .file>span:after {
    /*background: #F50;*/
    color: #FFF;
    content: " ";
    display: inline-block;
    font-weight: bold;
    padding: 3px;
    text-align: center;
    height: 20px;
    width: 20px;
    vertical-align: middle;
    background: url('close.png')no-repeat center right;
}
#actionelement .thumpnail.disable>span:after, #actionelement .file.disable>span:after {
    width: 5px;
    background: none;
}
#actionelement .actionedit{
    color: #0097C3;
    font-weight: bold;
    padding: 3px;
    cursor: pointer;
    text-decoration: underline;
}
#actionelement .actionedit:before{
    content: ' ';
    display:  inline-block;
    background-image: url('edit.png');
    height: 22px;
    width: 22px;
    margin-right: 3px;
    vertical-align: middle;
}

#actionelement .actiondelete{
    padding: 3px;
    border-radius: 3px;
    background: #CCE3A0;
    cursor: pointer;
}


#baseelement .basenew{
    color: #0097C3;
    cursor: pointer;
}

#baseelement .baseedit{
    color: #0097C3;
    cursor: pointer;
    font-weight: bold;
    padding: 3px;
    text-decoration: underline;
}
#baseelement .filebox{
    border-top: 1px solid #888888;
    margin-top: 5px;
    padding-top: 5px;
}
#baseelement .file {
    border-bottom: 1px dotted #888888;
    margin-bottom: 5px;
    padding: 3px 3px 3px 20px;
    min-height: 25px;
    background: url('attach.gif')no-repeat top left;
}
#baseelement .file>a {
    color: #05D;
    text-decoration: none;
}
#baseelement .file>span {
    background: #79CEEF;
    color: #555;
    display: inline-block;
    float: right;
    font-size: 0.7em;
    padding: 0 3px;
    line-height: 15px;
    vertical-align: middle;
    cursor: pointer;
}
#baseelement .file>span:after {
    /*background: #F50;*/
    color: #FFF;
    content: " ";
    display: inline-block;
    font-weight: bold;
    padding: 3px;
    text-align: center;
    height: 20px;
    width: 20px;
    vertical-align: middle;
    background: url('close.png')no-repeat center right;
}
#baseelement .file.disable>span:after {
    width: 5px;
    background: none;
}

#baseelement .more 
{
    color: #FFF;
    cursor: pointer;
    font-size: 0.8em;
    padding: 3px;
    text-decoration: underline;
    background: #08F;
}
#userdep {
    cursor: pointer;
}
#deplist {
    height: 300px;
    overflow: auto;
}
#deplist span {
    display: block;
    color: #05D;
    margin-bottom: 5px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

#projlist {
    height: 300px;
    overflow: auto;
}
#projlist span {
    display: block;
    color: #EEE;
    margin-bottom: 5px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

#verifybox{
    display: block; 
    height: 55px; 
    text-align: center;
}
.baseverifybox{
    text-align: right;
    top: 10px;
    height: 35px; 
    vertical-align: bottom;
    padding-top: 5px;
}

.verify {
    display: inline-block;
    height: 40px;
    margin-left: 5px;
    margin-right: 5px;
    width: 55px;
    background: url('flag_icon.png')no-repeat;
    background-position: 2px 0px; 
    position: relative;
    top: -5px;
    cursor: pointer;
}
.verify.left {
    float: left;
    margin-left: 15px;
    margin-right: 0px;
    top: -8px;
}

.verify.pass {
    background-position: -50px 0px; 
}
.verify.block {
    background-position: -102px 0px; 
}

.verify.dep:after {
    content: "หน่วยงาน";
    color: #008800;
    display: inline-block;
    font-size: 0.7em;
    left: -8px;
    position: relative;
    text-align: center;
    top: 38px;
    width: 75px;
}
.verify.uni:after {
    content: "มหาวิทยาลัย";
    color: #0033BB;
    display: inline-block;
    font-size: 0.7em;
    left: -8px;
    position: relative;
    text-align: center;
    top: 38px;
    width: 75px;
}


/************************************* Baby tab ******************************************/
/* Set the size and font of the tab widget */
.tabGroup {
    margin: 0 auto;
}
.tabGroup p{
    margin: 0 auto;
}
/* Configure the radio buttons to hide off screen */
.tabGroup > input[type="radio"] {
    position: absolute;
    left:-100px;
    top:-100px;
}
  
/* Configure labels to look like tabs */
.tabGroup > input[type="radio"] + label {
    /* inline-block such that the label can be given dimensions */
    display: inline-block;
	color: #999;
    box-flex:1.0;
    border-bottom: 1px solid #AAA;
    padding: 7px 10px;
    background-color: #DEE1E1;
}
  
/* Checked tabs must be white with the bottom border removed */
.tabGroup > input[type="radio"]:checked + label 
{
    color: #FFF;
    background-color:#8B9C9C;
}
  
/* The tab content must fill the widgets size and have a nice border */
.tabGroup > div {
    display: none;
    border-top: 2px solid #8B9C9C;
    padding-top: 10px;
    height: 81%;
    overflow: auto;
    margin-top: 10px;
}
  
/* This matchs tabs displaying to thier associated radio inputs */
/*
-------- move to in page style
#rad1:checked ~ .tab1, #rad2:checked ~ .tab2, #rad3:checked ~ .tab3 {
    display: block;
}
*/

    
    
/************************************* Baby ui element ******************************************/
/* editor area */
.jqte_editor, .jqte_source 
{
    height: 250px;
}
 