/* LOADING STATE */

.loading-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
}

.loading-header span {
  color: rgb(90, 90, 90);
  margin-right: 5px;
  -webkit-animation: spin 1s linear infinite;
  -moz-animation: spin 1s linear infinite;
  animation: spin 1s linear infinite;
}

@-moz-keyframes spin {
  100% {
    -moz-transform: rotate(360deg);
  }
}
@-webkit-keyframes spin {
  100% {
    -webkit-transform: rotate(360deg);
  }
}
@keyframes spin {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

/* GENERAL PAGE */

#job-planning-container .content-row {
  overflow-x: scroll;
  overflow-y: hidden;
}

#job-planning-container .content-row .col-xs-12 {
  display: block;
  width: auto;
}

#job-planning-container .print-holder {
  position: relative;
  display: inline-block;
}

#job-planning-container .print-holder #print-select {
  width: 100%;
  height: 100%;
  border-radius: 0;
  -webkit-appearance: none;
  -webkit-border-radius: 0px;
  opacity: 0;
  position: absolute;
  z-index: 2;
  cursor: pointer;
}

/* SEARCH */

.new-job-btn {
  background-color: #00bbd2;
  border-color: #00bbd2;
}

.new-job-btn:hover,
.new-job-btn:focus,
.new-job-btn:visited,
.new-job-btn:active {
  background-color: #00a8bd !important;
  border-color: #00a8bd !important;
}

.new-job-btn:active {
  -moz-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}

/* LEFT MENU */

.job-planning-left-menu {
  overflow-y: scroll;
}

.job-planning-left-menu .machine-title {
  cursor: pointer;
  white-space: nowrap;
}

.job-planning-left-menu .machine-title:hover {
  background-color: #f5f5f5;
}

/* HEADER */

.header-container {
  display: grid;
  width: 100%;
  overflow-x: hidden;
}

.planning-header {
  display: flex;
  align-items: center;
  margin-right: 20px;
  border-right: 1px solid #ddd;
  margin-left: 79px;
}

.planning-header .column-header {
  text-align: center;
  border-left: 1px solid #ddd;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  height: 60px;
  padding-top: 10px;
  vertical-align: middle;
  font-weight: bold;
  background-color: white;
}

/* CONTENT */

.machine-list {
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
  display: flex;
  align-items: flex-start;
}

.machine-number-div {
  display: block;
  position: relative;
  color: white;
  width: 25px;
  min-height: 40px;
  line-height: 40px;
  margin-top: 30px;
  padding: 0 4px;
  font-weight: bold;
  background-color: #4a90e2;
}

.schedule-container {
  display: grid;
  width: 98%;
  overflow-x: scroll;
}

.job-planning-panel,
.newjob-panel {
  display: flex;
  align-items: baseline;
  min-height: 40px;
  margin-bottom: 0;
}

.job-planning-panel {
  margin-top: 30px;
  background-color: #4a90e2;
}

.newjob-container {
  margin-top: 20px;
  margin-left: 79px;
  background-color: #00bbd2;
}

.newjob-container h4 {
  margin-left: 24px;
  color: white;
  padding-top: 5px;
}

.newjob-holder {
  display: grid;
  max-height: 150px;
  overflow-y: scroll;
}

.newjob-panel {
  background-color: #00bbd2;
  border: none;
}

.job-planning-panel .machine-number-div,
.newjob-panel .title-div {
  color: white;
  height: 100%;
  padding: 0 4px;
  font-weight: bold;
}

.newjob-panel .title-div {
  color: #00bbd2;
}

.job-planning-panel .row-container,
.newjob-panel .row-container {
  display: block;
  background-color: #dedede;
  list-style: none;
  padding-bottom: 10px;
  padding-left: 0;
  margin: 0;
  min-height: 40px;
  width: 100%;
}

ul[dnd-list] .dndDraggingSource {
  display: none;
}

ul[dnd-list] .dndPlaceholder {
  display: block;
  min-height: 42px;
}

.job-planning-panel li {
  display: block;
}

.job-planning-panel .row,
.newjob-panel .row {
  display: flex;
  background-color: white;
  border-top: 1px solid #ddd;
  margin: 0;
  cursor: grab;
}

.job-planning-panel .row.odd,
.newjob-panel .row.odd {
  background-color: #f5f5f5;
}

.job-planning-panel .extension-row {
  border-top: none;
}

.job-planning-panel .column,
.newjob-panel .column {
  padding: 10px;
  max-height: 40px;
  overflow: hidden;
  white-space: nowrap;
}

.job-planning-panel .column input {
  max-width: 100%;
}

.job-planning-panel .column .schedule-quantity-widget {
  text-align: left;
}

.job-planning-panel .column .recent-schedule-div {
  padding: 1px 5px;
  width: 100%;
  overflow: hidden;
}

.job-planning-panel .column .recent-schedule-div.is-recent {
  background-color: rgba(138, 195, 73, 0.35);
}

.job-planning-panel .column .recent-schedule-div.is-updated {
  background-color: rgba(158, 73, 195, 0.35);
}

.job-planning-panel .column .hour-amount-div,
.newjob-panel .column .hour-amount-div {
  padding: 1px 0px;
  width: 30px !important;
  margin: auto;
  border-radius: 3px;
  text-align: center;
  background-color: rgba(0, 187, 210, 0.61);
}

.job-planning-panel .column .toggle-button {
  width: 100%;
  height: 100%;
  margin: 0;
  background: none;
}
.job-planning-panel .column .toggle-button:hover {
  background-color: rgba(0, 0, 0, 0.07);
  color: black;
}
.job-planning-panel .column .toggle-icon-box {
  width: 22px;
  height: 22px;
  margin-left: auto;
  margin-right: auto;
  background-color: #9b9b9b;
  color: white;
  padding-top: 2px;
  border-radius: 3px;
}

.job-planning-panel li.disabled .row {
  cursor: not-allowed;
}

.disabled {
  cursor: not-allowed;
  opacity: 0.65;
  filter: alpha(opacity=65);
  -webkit-box-shadow: none;
  box-shadow: none;
}

.notes-notification {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  z-index: 1;
  background-color: rgba(243, 82, 31, 0.75);
  position: relative;
  left: -5px;
  top: -20px;
}

.delivery-date-picker{
  width: 0%;
  margin: 0;
  padding: 0;
}

.delivery-date-picker .md-datepicker-input{
  width: 0;
  min-width: 0;
}
