html, body {
  margin: 0;
  padding: 0;
  height: 100%; }

body {
  font-family: sans; }

input, textarea {
  border-style: solid;
  border-color: #ccc;
  border-width: 1px 1px 2px 1px;
  padding: 8px 10px; }
  input:focus, textarea:focus {
    border-color: #bbb;
    border-bottom-color: #e2931d; }

button {
  cursor: pointer;
  padding: 10px 15px;
  border: none;
  border-radius: 3px; }

button.btn-base {
  background-color: #ddd;
  color: #333;
  text-shadow: 1px 1px 0 rgba(196, 196, 196, 0.3); }
  button.btn-base:hover {
    background-color: #e5e5e5; }
  button.btn-base:disabled {
    background-color: #999; }

button.btn-primary {
  background-color: #e2931d;
  color: #fff;
  text-shadow: 1px 1px 0 rgba(181, 118, 23, 0.3); }
  button.btn-primary:hover {
    background-color: #e6a23d; }
  button.btn-primary:disabled {
    background-color: #888; }

.btn-group button {
  margin-right: 15px;
  margin-bottom: 10px; }

/**
 Layout
*/
.flex-row {
  display: flex;
  flex-direction: row; }
  .flex-row .col {
    margin-right: 15px; }
    .flex-row .col:last-child {
      margin-right: 0; }
  .flex-row.equal .col {
    flex-grow: 1; }

/**
  Form
*/
.form-row {
  margin: 0 0 15px 0; }
  .form-row label {
    display: block;
    margin: 0 0 5px 0;
    font-weight: 700;
    color: #555; }
    .form-row label span.required:after {
      content: "*";
      color: #e94444;
      margin-left: 5px; }
  .form-row input[type=text], .form-row textarea {
    width: 100%;
    box-sizing: border-box; }

.form-actions {
  margin: 20px 0 0 0;
  border-top: 1px solid rgba(62, 34, 49, 0.5);
  padding-top: 10px;
  display: flex;
  flex-direction: row;
  justify-content: flex-end; }
  .form-actions > * {
    margin-left: 10px; }

.login-form {
  width: 300px;
  border: 1px solid #bbb;
  border-radius: 10px;
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
  padding: 20px 30px;
  margin: 10% auto 0;
  text-align: center; }
  .login-form .error-msg {
    margin-bottom: 0; }

.error-msg {
  color: #b0511b;
  margin: 20px 0; }

#app, .app-container {
  height: 100%; }

.app-container {
  display: flex;
  flex-direction: row; }

.main-menu {
  width: 250px;
  flex: none;
  background-color: #3e2231;
  color: #fff;
  padding: 10px 0; }
  .main-menu h2 {
    padding: 0px 20px 10px; }
  .main-menu-list--item {
    margin-bottom: 2px; }
    .main-menu-list--item:hover a {
      text-decoration: underline; }
    .main-menu-list--item.active {
      background-color: #5f344b; }
    .main-menu-list--item a {
      display: block;
      color: inherit;
      text-decoration: none;
      padding: 10px 20px;
      outline-style: none; }

.app-content {
  overflow: auto;
  flex-grow: 1; }
  .app-content > div {
    padding: 20px 20px 40px 20px; }
    .app-content > div h2 {
      margin-top: 0; }

.items-grid th {
  text-align: left;
  background-color: #f5f5f5;
  border-width: 0 0 2px 0;
  border-style: solid;
  border-color: #804665; }

.items-grid th, .items-grid td {
  padding: 10px 20px; }
  .items-grid th.tiny, .items-grid td.tiny {
    padding: 3px; }

.items-grid--row-action {
  color: #555;
  text-decoration: none;
  font-size: 20px; }
  .items-grid--row-action:hover {
    color: #e2931d; }

.form-fade {
  position: fixed;
  left: 250px;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 100;
  background-color: rgba(62, 34, 49, 0.5);
  overflow: auto; }
  .form-fade .open-form {
    margin: 50px auto;
    background-color: #fff;
    padding: 10px 25px 15px;
    display: block;
    width: 350px;
    box-shadow: 1px 1px 2px rgba(62, 34, 49, 0.5); }
    .form-fade .open-form-header {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      margin: 10px 0 20px 0; }
      .form-fade .open-form-header--title h3 {
        margin: 0; }
      .form-fade .open-form-header--close a {
        color: #999;
        font-size: 25px;
        text-decoration: none; }
        .form-fade .open-form-header--close a:hover {
          color: #333; }

.image-editor {
  display: flex;
  flex-direction: row; }
  .image-editor_image-container {
    width: 250px;
    height: 250px; }
    .image-editor_image-container > img {
      width: 250px;
      height: 250px; }
  .image-editor_controls {
    padding-left: 20px; }
    .image-editor_controls input[type=file] {
      display: none; }
    .image-editor_controls .hint {
      color: #999;
      font-size: .9em; }

.spinner {
  margin: 0px auto 0;
  width: 50px;
  text-align: center; }
  .spinner > div {
    width: 10px;
    height: 10px;
    margin-right: 2px;
    background-color: #3e2231;
    border-radius: 100%;
    display: inline-block;
    -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
    animation: sk-bouncedelay 1.4s infinite ease-in-out both; }
  .spinner .bounce1 {
    -webkit-animation-delay: -0.32s;
    animation-delay: -0.32s; }
  .spinner .bounce2 {
    -webkit-animation-delay: -0.16s;
    animation-delay: -0.16s; }

@-webkit-keyframes sk-bouncedelay {
  0%, 80%, 100% {
    -webkit-transform: scale(0); }
  40% {
    -webkit-transform: scale(1); } }

@keyframes sk-bouncedelay {
  0%, 80%, 100% {
    -webkit-transform: scale(0);
    transform: scale(0); }
  40% {
    -webkit-transform: scale(1);
    transform: scale(1); } }

.categories-list-box {
  height: 200px;
  overflow: auto; }
  .categories-list-box label {
    font-weight: normal; }

.order-form table.products-list th {
  text-align: left;
  color: #555; }

.order-form table.products-list th, .order-form table.products-list td {
  padding: 5px 25px 5px 0; }

.pages {
  display: flex;
  flex-direction: row; }
  .pages span {
    margin: 0 6px 6px 0;
    display: inline-block;
    cursor: pointer;
    padding: 5px 10px;
    background-color: #fff;
    border: 1px solid #e2931d;
    border-radius: 3px; }
    .pages span:hover {
      background-color: #e8a94a; }
    .pages span.active {
      background-color: #e2931d; }
