/* modals */
.modal-backdrop {
  z-index: 1100 !important;
}

.modal {
  z-index: 1200 !important;
}


.table-time-pattern > tbody > tr > td {
    padding: 6px 3px
}


.time_goal_box {
    cursor: pointer;
    padding: 2px 5px; 
    height: 30px; 
    border: 1px solid transparent;
    border-radius: 6px;
}

.time_goal_box.yellow {
    border-color: #e3bc08;
    background-color: #fdf1ba;
}

.time_goal_box.yellow:hover {
    background-color: #f2e3a2;
}

.time_goal_box.green {
    border-color: #006400;
    background-color: #006FB5;
}

.time_goal_box.green:hover {
    background-color: #b6eab6;
}

/*
.time_goal_box.green {
    border-color: #006400;
    background-color: #caffca;
}

.time_goal_box.green:hover {
    background-color: #b6eab6;
}
*/

.time_goal_box.planned {
    border-color: transparent;
    background-color: transparent;

}    
.time_goal_box.planned:hover {
    border-color: #aaaaaa;
    background-color: #eeeeee;
}



/**
 * BEGIN: new code
 */
 
.time-grid {
    background-image: url('../img/grid_bg.png');
    background-position: top left;
    margin-top: 30px;
    padding-top: 9px;
}

.time-grid .time-grid-header {
    border-bottom: 1px solid #DDD;
}

.time-grid .time-grid-header .tg-header-item {
    float: left; 
    font-weight: bold;
    line-height: 15px; 
    text-align: center; 
    height: 30px; 
    font-size: 13px;
}

.time-grid .time-item {
    height: 40px;
    line-height: 20px;
}

.time-grid .time-col {
    float: left;
    position: relative;
    height: 960px;
}

.time-grid .time-col-0 .time-item {
    padding: 4px 6px
}

.time-grid .time-gate {
    position: absolute;  
    width: 100%;
    padding: 1px 2px;
} 

.time-grid .time-gate .time-gate-inner {
    background-color: #caffca;
    border: 1px solid #006400;
    border-radius: 6px;
    cursor: pointer;
    height: 100%;
    width: 100%;
    font-size: 13px;
    line-height: 18px;
    overflow: hidden;
    padding: 0 3px;
    text-align: center;
}

.time-grid .time-gate .time-gate-inner:hover {
    background-color: #b6eab6;
} 

.time-grid .time-gate .time-gate-inner.planned {
    border-color: #aaaaaa;
    background-color: #eeeeee;
}

.time-grid .time-gate .time-gate-inner.planned:hover {
    background-color: #f6f6f6;
}

.time-grid .time-gate .time-gate-inner.yellow {
    border-color: #e3bc08;
    background-color: #fdf1ba;
}

.time-grid .time-gate .time-gate-inner.yellow:hover {
    background-color: #f2e3a2;
}

.time-grid .time-gate .time-gate-inner.blue {
    border-color: #1F4393;
    background-color: #9FC3F3;
}

.time-grid .time-gate .time-gate-inner.blue:hover {
    background-color: #6FA3E3;
}

.time-grid .time-gate .time-gate-inner.gray_blue {
    border-color: #1F4393;
    background-color: #ADC4DD;
}

.time-grid .time-gate .time-gate-inner.gray_blue:hover {
    background-color: #9EB3C8;
}




.time-grid .time-gate .time-gate-inner.gray {
    border-color: #bbbbbb;
    background-color: #f6f6f6;
}

.time-grid .time-gate .time-gate-inner.gray:hover {
    background-color: #f6f6f6;
}








 /*
  backgrid-paginator
  http://github.com/wyuenho/backgrid

  Copyright (c) 2013 Jimmy Yuen Ho Wong and contributors
  Licensed under the MIT license.
*/

.backgrid-paginator {
  text-align: center;
  border-top: none;
  -webkit-border-radius: 0 0 4px 4px;
     -moz-border-radius: 0 0 4px 4px;
          border-radius: 0 0 4px 4px;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}

.backgrid-paginator ul {
  display: inline-block;
  *display: inline;
  margin: 5px 0;
  *zoom: 1;
}

.backgrid-paginator ul > li {
  display: inline;
}

.backgrid-paginator ul > li > a,
.backgrid-paginator ul > li > span {
  float: left;
  width: 30px;
  height: 30px;
  padding: 0;
  line-height: 30px;
  text-decoration: none;
}

.backgrid-paginator ul > li > a:hover,
.backgrid-paginator ul > .active > a,
.backgrid-paginator ul > .active > span {
  background-color: #f5f5f5;
}

.backgrid-paginator ul > .active > a,
.backgrid-paginator ul > .active > span {
  color: #999999;
  cursor: default;
}

.backgrid-paginator ul > .disabled > span,
.backgrid-paginator ul > .disabled > a,
.backgrid-paginator ul > .disabled > a:hover {
  color: #999999;
  cursor: default;
}

.edit-cell {
    width: 104px;
}

@media (max-width: 767px) {
  .edit-cell {
    width: 40px;
  }
}


