/**********************************************************
 * General
 **********************************************************/

html {
  height: 100%;
}
body {
  position: relative;
  min-height: 100%;
  padding-bottom: 100px;
  font-family: '微軟正黑體'
  'Microsoft JhengHei', sans-serif;
  overflow-y: scroll;
}

@media (max-width: 768px) {
  hr {
    margin-top: 8px;
    margin-bottom: 8px;
  }
}

.box-table {
  margin: 0px 0px 50px 0px;
  /*border:1px solid #DDD;*/
}
.box-table td {
  border: 1px solid #ddd;
}

/**********************************************************
 * Utils
 **********************************************************/



 .no-wrap {
   white-space: nowrap;
 }

 .flex-container {
   display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
   display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
   display: -ms-flexbox;      /* TWEENER - IE 10 */
   display: -webkit-flex;     /* NEW - Chrome */
   display: flex;
 }

 .flex-wrap {
   flex-wrap: wrap;
   -webkit-flex-wrap: wrap;
 }

 .flex-direction-column {
  flex-direction: column;
  -webkit-flex-direction: column;
}

 .flex-v-container {
   display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
   display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
   display: -ms-flexbox;      /* TWEENER - IE 10 */
   display: -webkit-flex;     /* NEW - Chrome */
   display: flex;
 }

 .flex-1{
   -webkit-flex: 1;          /* Chrome */
   -ms-flex: 1;              /* IE 10 */
   flex: 1;
 }

.flex-end {
  justify-content: flex-end;
}


 @media (max-width: 768px) {
   .sm-font-12 {
     font-size: 12px !important;
   }
 }

/**********************************************************
 * Navbar
 **********************************************************/

.navbar-admin {
  border-radius: 0;
}
.navbar-admin .navbar-brand {
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 15px;
  line-height: 26px;
}
.navbar-admin .navbar-brand img {
  height: 26px;
}

/**********************************************************
 * Nav
 **********************************************************/

.nav-lined > li > a {
  color: #56564b;
  border-radius: 0;
  border-right: 3px solid #bbbbb2; /* lighten(#56564b, 40%) */
}
.nav-lined > li + li {
  margin-top: 0;
}
.nav-lined > li.active > a,
.nav-lined > li.active > a:hover,
.nav-lined > li.active > a:focus {
  background-color: #ebebe8; /* lighten(#56564b, 60%) */
  border-right-color: #56564b;
}
.nav-lined > li > a:hover,
.nav-lined > li > a:focus {
  text-decoration: none;
  background-color: #ebebe8;
}

/*******************************************/
/*SPACINGS*/
.gap {
  display: block;
  position: relative;
  margin: 30px 0 30px 0;
  clear: both;
}
.gap:after {
  clear: both;
  content: '';
  display: table;
}
.gap-small {
  margin: 15px 0 15px 0;
}
.gap-mini {
  margin: 10px 0 10px 0;
}
.gap-big {
  margin: 60px 0 60px 0;
}
.gap-large {
  margin: 90px 0 90px 0;
}
.gap-top {
  margin-bottom: 0 !important;
}
.gap-bottom {
  margin-top: 0 !important;
}
.gap-border {
  border: 0;
  border-top: 1px solid #ededed;
  border-bottom: 1px solid #fff;
}

/**********************************************************
 * Footer
 **********************************************************/

.footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
  background-color: #ebebe8;
  color: #777;
  text-align: center;
}

/**********************************************************
 * Redactor Editor Style
 **********************************************************/
.redactor-editor {
  background-color: #fff;
  font-family: Raleway, '微軟正黑體', arial, sans-serif !important;
  color: #5f5f5f;
}
.redactor-editor code,
.redactor-editor pre {
  font-family: Menlo, Monaco, monospace, sans-serif !important;
  cursor: text;
}
.redactor-editor div,
.redactor-editor p,
.redactor-editor ul,
.redactor-editor ol,
.redactor-editor table,
.redactor-editor dl,
.redactor-editor blockquote,
.redactor-editor pre {
  font-size: 16px;
  line-height: 1.8;
}
.redactor-editor a {
  color: #000;
  text-decoration: none;
}
.redactor-editor a:hover,
.redactor-editor a:focus {
  text-decoration: underline;
}
.redactor-editor object,
.redactor-editor embed,
.redactor-editor video,
.redactor-editor img {
  width: 100% !important;
  max-width: 100%;
}
.redactor-editor video,
.redactor-editor img {
  height: auto;
}
/* Speical hacks for images drag from AotterClam image upload preview one */
.redactor-editor img.preview-image {
  max-height: none;
}
.redactor-editor div,
.redactor-editor p,
.redactor-editor ul,
.redactor-editor ol,
.redactor-editor table,
.redactor-editor dl,
.redactor-editor figure,
.redactor-editor blockquote,
.redactor-editor pre {
  margin: 0;
  margin-bottom: 1.5em;
  border: none;
  background: none;
  box-shadow: none;
}
.redactor-editor iframe,
.redactor-editor object,
.redactor-editor hr {
  margin-bottom: 15px;
}
.redactor-editor blockquote {
  margin: 3em 0 3em 0 !important;
  border-width: 1px;
  border: 1px solid #eaeaea;
  padding: 12px;
  display: inline-block;
  background: none;
  text-align: left;
  width: 94%;
  font-size: 14px;
  font-style: normal;
  line-height: 1.7;
  color: #777;
}
.redactor-editor blockquote:before,
.redactor-editor blockquote:after {
  content: '';
}
.redactor-editor ul,
.redactor-editor ol {
  padding-left: 2em;
}
.redactor-editor ul ul,
.redactor-editor ol ol,
.redactor-editor ul ol,
.redactor-editor ol ul {
  margin: 2px;
  padding: 0;
  padding-left: 2em;
  border: none;
}
.redactor-editor ol ol li {
  list-style-type: lower-alpha;
}
.redactor-editor ol ol ol li {
  list-style-type: lower-roman;
}
.redactor-editor dl dt {
  font-weight: bold;
}
.redactor-editor dd {
  margin-left: 1em;
}
.redactor-editor table {
  border-collapse: collapse;
  font-size: 1em;
  width: 100%;
}
.redactor-editor table td,
.redactor-editor table th {
  padding: 5px;
  border: 1px solid #ddd;
  vertical-align: top;
}
.redactor-editor table thead td,
.redactor-editor table th {
  font-weight: bold;
  border-bottom-color: #888;
}
.redactor-editor code {
  background-color: #d8d7d7;
}
.redactor-editor pre {
  padding: 1em;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: #f8f8f8;
  font-size: 90%;
}
.redactor-editor hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
}
.redactor-editor h1,
.redactor-editor h2,
.redactor-editor h3,
.redactor-editor h4,
.redactor-editor h5,
.redactor-editor h6 {
  font-weight: bold;
  color: #000;
  text-rendering: optimizeLegibility;
  margin: 1.3em 0 0.5em 0;
  line-height: 1.4;
}
.redactor-editor h1 {
  font-size: 32px;
}
.redactor-editor h2 {
  font-size: 28px;
}
.redactor-editor h3 {
  font-size: 24px;
}
.redactor-editor h4 {
  font-size: 20px;
}
.redactor-editor h5 {
  font-size: 18px;
}
.redactor-editor h6 {
  font-size: 16px;
}

/*
*
 */

.navbar-actions .btn-info {
  color: #fff !important;
}

.navbar-actions .btn-info:hover,
.navbar-actions  .btn-info:hover,
.navbar-actions .open > .dropdown-toggle.btn-info {
  color: #fff !important;
  background-color: #31b0d5 !important;
  border-color: #269abc !important;
}

.navbar-actions {
  border-radius: 0;
  min-height: 40px;
}

.navbar-actions li > a {
  padding: 10px !important;
}

/**
 * rows-shippments
 */

.shipment-table {
  width:345px;
  margin: 0px;
  font-size:12px;
}




@media (min-width: 768px) {
  .rows-shippments  {
    height: 150vh;
    min-height: 1020px;
    overflow-y: visible;
  }
  .shipment-table {
    width:345px;
    margin: 0px 15px 15px 0;
  }
}


#shipment-topbar {
  background: white;
}

#shipment-topbar.scroll-fix {
  left: 0 !important;
  width: 100% !important;
}

#shipment-topbar .navbar-default .navbar-collapse,
#shipment-topbar .navbar-default .navbar-form {
  border-color: transparent !important;
}



@media (min-width: 768px) {

  #shipment-topbar.scroll-fix {
    left: 0 !important;
    width: 100% !important;
    background: #f4f4f4;
    padding: 0 15px;
    box-shadow: 0px 0px 3px rgba(0,0,0,0.4);
  }

  #shipment-topbar .date-toggle-inline-input {
    width: 100px;
  }
}

#shipment-mobile-ctrl {
  display: none;
}

@media (max-width: 767px) {
  .scroll-fix {
    position: relative !important;
    top: initail !important;
    left: initial !important;
  }

  .cms-note {
    display: none;
  }

  #shipment-mobile-ctrl {
    display: block;
    position: fixed;
    bottom: 0;
    z-index: 200;
    left: 0;
    right: 0;
    background: rgba(241,241,241,0.9);
    border-top: 1px solid #ccc;
    padding: 4px; 15px;
  }

  #shipment-mobile-ctrl .btn {
    border-radius: 0;
    margin: 0;
    box-shadow: none;
    font-size: 12px;
  }
  #shipment-mobile-ctrl .btn + .btn {
    margin-left: 4px;
  }

  #shipment-mobile-ctrl .cms-first-note {
    margin-top: 4px;
  }
  #shipment-mobile-ctrl .cms-first-note .btn {
    display: block;
  }
  #shipment-mobile-ctrl .cms-first-note .text {
    white-space: nowrap;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    margin: 0;
    color: #a5a5a5;
  }
}
