/*
    Document   : styles.css
    Created on : 2012-12-20, 18:37:32
    Author     : Atanas Vega
    Description: Main stylesheet
*/

/* ----------- Common rules ----------- */
@-moz-document url-prefix() {
  fieldset { display: table-cell; }
}

@viewport{
    zoom: 1.0;
    width: device-width;
}

@viewport{
    zoom: 1.0;
    width: extend-to-zoom;
}

@-ms-viewport{
    width: extend-to-zoom;
    zoom: 1.0;
}

body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  font-weight: normal;
  font-size: 14px;
  background-color: #ecf0f5;
}

.h1, .h2, .h3, h1, h2, h3 {
    margin-top: 10px;
    margin-bottom: 5px;
}

.block { display: block; }

.hidden { visibility: hidden; }

hr {
  padding: 0;
  margin: 5px;
  color: #ccc;
}
/* ---------------------- */

/* ----------- Navbar ----------- */
.nav {
    text-transform: uppercase;
}
.nav > li:first-child > a {
    padding: 15px 15px 10px 0;
}
.nav > li > a {
    padding: 15px 10px;
}
.navbar-default .navbar-nav > li > a {
    color: #333;
}
.navbar-collapse {
    padding-left: 0;
    padding-right: 0;
}

.clearfix {
    float: none;
    clear: both;
}

.pointer:hover {
  cursor: pointer;
}

.account {
    margin-right: 5px;
}
/* ---------------------- */

/* ----------- Container ----------- */
#content {
    min-height: 550px;
    margin-top: 60px;
}

.container {
    padding-left: 5px;
    padding-right: 5px;
}

.container > .navbar-header {
    margin-left: auto;
    margin-right: auto;
}
/* ---------------------- */

/* ----------- Forms ----------- */
.form-error {
    color: #f00;
}

input[readonly] {
  background-color: #ddd;
}

.back-button:hover, .modal-link:hover {
    cursor: pointer;
}

.form-error-mandatory {
    visibility: hidden;
    color: #990000;
}

.form-error-input {
    color: #990000;
    border-color: #990000;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(255, 0, 55, .6);
          box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(255, 0, 55, .6);
}
/* ---------------------- */

/* ----------- Tables ----------- */
.table-responsive > .table > tbody > tr > td,
.table-responsive > .table > thead > tr > th,
.table > tbody > tr > td, .table > thead > tr > th {
    white-space: normal;
}

.table-responsive > .table > tbody > tr > td {
    word-break: break-word;
}

@media (max-width: 480px) {
    .table > tbody > tr > td, 
    .table > tbody > tr > th, 
    .table > tfoot > tr > td, 
    .table > tfoot > tr > th, 
    .table > thead > tr > td,
    .table > thead > tr > th {
        padding: 8px 2px;
    }
}

#snacks-charges > thead > tr > th,
#snacks-charges > tbody > tr > td {
    padding: 10px 3px;
}

#snacks-charges > thead > tr > th:first-child,
#snacks-charges > tbody > tr > td:first-child {
    padding: 10px 3px 10px 0;
}

#snacks-charges > thead > tr > th:last-child,
#snacks-charges > tbody > tr > td:last-child {
    padding: 10px 0 10px 3px;
}
/* ---------------------- */

/* ----------- Coloring ----------- */
.title {
  color: #777;
  font-weight: bold;
}

.logout {
    color: #fff;
    background-color: #ccc;
}

.red {
  color: #f00;
}

.blue {
  color: #3071A9;
}

.green {
  color: #499249;
}

.error {
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #990000;
    border-radius: 5px;
    background-color: #ffd7e0;
    color: #990000;
}

.info {
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #3C8DBC;
    border-radius: 5px;
    background-color: #e5faff;
    color: #3C8DBC;
}

.success {
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #3C8DBC;
    border-radius: 5px;
    background-color: #e5faff;
    color: #3C8DBC;
}

.marker {
    display: block;
    height: 25px;
    width: 10px;
    float: left;
    margin-right: 7px;
}

#color-selector > option:first-child {
    background-color: #ffffff;
}

#color-selector > option {
    background-position: center;
}
/* ---------------------- */

/* ----------- UI ----------- */
.ui-autocomplete-loading {
  background: white url("images/ui-anim_basic_16x16.gif") right center no-repeat;
}

.btn {
    font-size: 0.9em;
}

.btn-wide {
    padding: 10px 65px;
}

.delete {
    width: 24px;
    visibility: hidden;
}

.delete:hover{
    cursor: pointer;
}
.details {
    display: none;
}

@media (max-width: 480px) {
    .btn-lg {
        padding: 10px 4px;
    }
}

@media (max-width: 768px) {
    .btn-lg {
        padding: 10px 8px;
    }
}
/* ---------------------- */

/* ----------- Automat/positions ----------- */
.recipe {
    font-style: italic;
    color: #999;
}

#positions tr td {
    border-bottom: 1px solid #3c8dbc;
}

#positions tr td:first-child {
    padding-left: 0;
}

#positions tr td:last-child {
    padding-right: 0;
}

#positions .delete {
    width: 24px;
    visibility: hidden;
}

#positions .delete:hover{
    cursor: pointer;
}
/* ---------------------- */

/* ----------- Borders ----------- */
.border-b {
  border-bottom: 1px solid #ccc;
}
/* ---------------------- */

/* ----------- Alignments----------- */
.offset-top-bottom {
  padding: 12px 0;
}

.offset-td {
  padding: 1%;
}

.offset-top {
  padding-top: 7px;
}

.offset-bottom {
  padding-bottom: 7px;
}

.right {
  text-align: right;
}

.left {
  text-align: left;
  float: left;
}

.center {
  text-align: center;
}

.float-left {
  float: left;
}

.clear-left {
  clear: left;
}
/* ---------------------- */

/* ----------- Icons ----------- */
.icon {
    max-width: 24px;
    vertical-align: middle;
}
/* ---------------------- */

/* ----------- Inline edit ----------- */

    /* Active editing */
    .editing {
        background-color: #F5F5F5;
    }

    .inline-edit-active {
        background-color: #fff;
        border: 1px solid #3C8DBC;
        padding: 5px 7px;
    }

    /* Absolute Center Spinner */
    .loading {
      position: fixed;
      z-index: 999;
      height: 2em;
      width: 2em;
      overflow: show;
      margin: auto;
      top: 0;
      left: 0;
      bottom: 0;
      right: 0;
    }

    /* Transparent Overlay */
    .loading:before {
      content: '';
      display: block;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0,0,0,0.075);
    }

    /* :not(:required) hides these rules from IE9 and below */
    .loading:not(:required) {
      /* hide "loading..." text */
      font: 0/0 a;
      color: transparent;
      text-shadow: none;
      background-color: transparent;
      border: 0;
    }

    .loading:not(:required):after {
      content: '';
      display: block;
      font-size: 10px;
      width: 1em;
      height: 1em;
      margin-top: -0.5em;
      -webkit-animation: spinner 1500ms infinite linear;
      -moz-animation: spinner 1500ms infinite linear;
      -ms-animation: spinner 1500ms infinite linear;
      -o-animation: spinner 1500ms infinite linear;
      animation: spinner 1500ms infinite linear;
      border-radius: 0.5em;
      -webkit-box-shadow: rgba(0, 0, 0, 0.75) 1.5em 0 0 0, rgba(0, 0, 0, 0.75) 1.1em 1.1em 0 0, rgba(0, 0, 0, 0.75) 0 1.5em 0 0, rgba(0, 0, 0, 0.75) -1.1em 1.1em 0 0, rgba(0, 0, 0, 0.5) -1.5em 0 0 0, rgba(0, 0, 0, 0.5) -1.1em -1.1em 0 0, rgba(0, 0, 0, 0.75) 0 -1.5em 0 0, rgba(0, 0, 0, 0.75) 1.1em -1.1em 0 0;
      box-shadow: rgba(0, 0, 0, 0.75) 1.5em 0 0 0, rgba(0, 0, 0, 0.75) 1.1em 1.1em 0 0, rgba(0, 0, 0, 0.75) 0 1.5em 0 0, rgba(0, 0, 0, 0.75) -1.1em 1.1em 0 0, rgba(0, 0, 0, 0.75) -1.5em 0 0 0, rgba(0, 0, 0, 0.75) -1.1em -1.1em 0 0, rgba(0, 0, 0, 0.75) 0 -1.5em 0 0, rgba(0, 0, 0, 0.75) 1.1em -1.1em 0 0;
    }

    /* Animation */
    @-webkit-keyframes spinner {
      0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
      }
      100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
      }
    }
    @-moz-keyframes spinner {
      0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
      }
      100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
      }
    }
    @-o-keyframes spinner {
      0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
      }
      100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
      }
    }
    @keyframes spinner {
      0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
      }
      100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
      }
    }
/* ---------------------- */

/* ----------- PM Modal ----------- */
.body.pgwModalOpen {
    overflow: visible;
}

.pgwModal .pm-title {
    font-size: 1.2em;
}
/* ---------------------- */

/* ----------- Notes ----------- */
.note {
    font-family: monospace;
    margin-bottom: 2em;
    background-color: #fff;
    border: 1px solid #aaa;
    border-radius: 5px;
    letter-spacing: 0.05em;
    padding: 1em;
}

.note-content hr {
    border-bottom: 1px dashed #555;
    padding: 0 1em;
}

.note-content .title {
    color: #555;
}
/* ---------------------- */

/* ----------- Footer ----------- */
.footer {
  width: 100%;
  padding: 10px 0;
  margin-top: 250px;
  color: #777;
  border-top: 1px solid #ccc;
}

.powered {
  color: #777;
}
/* ---------------------- */

/* ----------- Media queries ----------- */
@media all and (min-width: 1200px) {
    /* Navbar */
    .nav {
        font-size: 0.95em;
    }

    /*.nav > li > a*/

    .nav > li  {

    }
}

@media all and (min-width: 992px) and (max-width: 1199px) {
    /* Navbar */
    .nav {
        font-size: 0.9em;
    }
    .nav > li:first-child > a {
        padding: 15px 5px 5px 0;
    }
    .nav > li > a {
        padding: 15px 5px;
    }
}

@media all and (min-width: 768px) and (max-width: 991px) {
    .nav {
        font-size: 1.0em;
        line-height: 10px;
    }
    .nav > li:first-child > a {
        padding: 5px 5px 5px 0;
    }
    .nav > li > a {
        padding: 5px 10px;
    }
}

@media (max-width: 767px) {
    /* Navbar */
    .navbar {
        overflow: hidden;
    }

    .navbar-toggle {
        margin-left: 0;
        float: left;
    }

    .navbar-toggle .icon-bar {
        display: block;
        width: 25px;
        height: 4px;
        border-radius: 2px;
    }

    .nav {
        text-transform: uppercase;
        font-size: 1.2em;
    }

    .nav > li {
        border-bottom: 1px solid #eee;
    }

    .nav > li > a {
        margin-left: 25px;
        padding: 15px;
    }

    .account > li {
        border-bottom: none;
    }

    .account > li > a {
        padding: 5px 15px;
    }

    .navbar-fixed-bottom .navbar-collapse, .navbar-fixed-top .navbar-collapse {
          max-height: 440px;
    }

    .dropdown-menu {
        font-size: 1em;
        margin-left: 15px;
    }

   /* Forms */
   .form-control {
       height: 44px;
       padding: 12px 3px;
   }
}
/* ---------------------- */

/* Select2 */
.select2-container {
    max-width: 100%;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
}

.select2-dropdown {
    min-width: 350px;
    max-width: calc(100vw - 20px);
}

.select2-results__option {
    white-space: normal;
    word-break: break-word;
}

#snacks-charges td .select2-container,
#positions td .select2-container {
    max-width: 100%;
    box-sizing: border-box;
}

#snacks-charges td .input-group {
    table-layout: fixed;
}

#snacks-charges td .input-group .select2-container {
    display: table-cell;
    width: 100%;
    max-width: 0;
}
/* ---------------------- */

/* jQuery UI dialog close button */
.ui-dialog .ui-dialog-titlebar-close {
    background: transparent;
    border: none;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    opacity: 0.7;
    cursor: pointer;
}

.ui-dialog .ui-dialog-titlebar-close:hover {
    opacity: 1;
}

.ui-dialog .ui-dialog-titlebar-close .ui-icon {
    display: none;
}

.ui-dialog .ui-dialog-titlebar-close::after {
    content: '\00D7';
}

/* Accordion */
.ui-accordion h3 .pull-right {
    font-family: 'Arial', sans-serif !important;
    font-size: 1.1em;    
}

.ui-accordion .ui-accordion-content {
    padding: 0.5rem 0.25rem;
}

.ui-accordion .ui-accordion-content a {
    color: #3c8dbc;
}

.ui-accordion .ui-accordion-content a:hover {
    color: #72afd2;
}

/* ---------------------- */