@import "variables"; // Variables set by users
@import "defaults"; // Default styling for when variable is missing
@import "globals"; //Applies global styling

/* Global */

* {
    box-sizing: border-box;
    /* color: #3b3f44; */
  }


  
  html {
    overflow-y: overlay;
  }
  
  label,
  th {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  
  form .form-label svg {
    font-size: 14px;
  }
  
  /* input[type='color'] border style */
  input::-webkit-color-swatch {
    border-color: #000;
  }
  
  button.btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  button.btn svg {
    margin-right: 3px;
  }
  
  button.btn,
  .form-control {
    border-radius: 0px;
    box-shadow: none !important;
    outline: none !important;
  }
  
  .modal-content {
    border-radius: 0px;
  }
  
  .alert-danger {
    border-radius: unset;
    width: 100%;
    margin-bottom: 10px;
  }
  
  .noselect {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  
  .nodrag {
    -webkit-user-drag: none;
  }
  
  .modal-dialog {
    max-width: 600px;
  }
  
  .modal-footer-order {
    flex-wrap: nowrap;
  }
  
  .modal-footer-order button {
    float: left;
    width: 50%;
  }
  
  .hide {
    display: none;
  }
  
  .btn {
    width: 100%;
  }
  
  .main-container {
    margin-left: 8vw;
    width: 92vw;
    padding: 20px;
    float: left;
    transition: 0.3s ease-in-out;
  }
  
  .main-container h1 {
    text-align: center;
  }
  
  .main-container table {
    width: 100%;
  }
  
  .main-container table th,
  .main-container table td {
    overflow: hidden;
    // white-space: nowrap;
    text-overflow: ellipsis;
    // min-width: 200px;
    padding: 0.75rem 0.3rem 0.75rem 0.3rem;
  }
  
  .main-container table th span {
    cursor: pointer;
  }
  
  .main-container table th span:hover {
    text-decoration: underline;
  }
  
  .main-container table td svg {
    cursor: pointer;
  }
  
  .main-container table .td-icon,
  .main-container table .th-icon {
    // min-width: 125px !important;
    // width: 125px;
    text-align: center;
  }
  
  .main-container table .td-icon {
    cursor: pointer;
    transition: 0.2s ease-out;
  }
  
  .main-container table .td-icon:hover {
    color: #0069d9;
  }
  
  /* Search */
  .main-container .search-container {
    position: relative;
  }
  
  .main-container .search-container input {
    padding-right: 30px;
  }
  
  .main-container .search-clear {
    cursor: pointer;
    position: absolute;
    top: 4px;
    right: 8px;
  }
  
  /* Form Error */
  .form-error {
    color: #ff0000;
  }
  
  .form-error-hidden {
    visibility: hidden;
  }
  
  /* Form */
  .radio-button-group {
    display: inline-block;
  }
  
  .radio-button-group:not(:nth-child(1)) {
    margin-left: 30px;
  }
  
  .radio-button-group label {
    padding-left: 5px;
  }
  
  /* SideNavContainer.js */
  img.side-bar-image {
    width: 32px;
    margin-right: 10px;
  }
  
  .side-bar-img-container {
    height: 200px;
    line-height: 200px;
  }
  
  .background-blue {
    background-color: $color-primary;
    color: #fff;
    font-weight: 500;
  }
  
  li.background-blue:hover,
  th.background-blue:hover {
    background-color: $color-secondary;
    cursor: pointer;
  }
  
  .side-bar {
    position: fixed;
    display: flex;
    flex-direction: column;
    width: 8vw;
    float: left;
    left: 0px;
    text-align: center;
    z-index: 1;
    transition: 0.3s ease-in-out;
  }
  
  .side-bar .list-group a {
    border: none;
  }
  
  .side-bar .list-group a:hover {
    text-decoration: none;
  }
  
  .side-bar-hidden {
    left: -8vw;
  }
  
  .side-bar button {
    position: absolute;
    border: none;
    height: 50px;
    line-height: 0px;
    width: 50px;
    border-radius: 50%;
    box-shadow: 0px 0px 2px 1px rgba(0, 0, 0, 0.3);
    left: 100%;
    top: 1rem;
    transform: translateX(50%);
    cursor: pointer;
    outline: none;
    transition: left 0.3s ease-in-out;
    z-index: 1;
    background-color: #fff !important;
    color: #000 !important;
    margin: 0px;
  }
    
  .side-bar button svg {
    height: 25px;
    width: 25px;
  }
  
  .height-100 {
    height: 100vh; /* Fallback for browsers that do not support Custom Properties */
    height: calc(var(--vh, 1vh) * 100);
  }
  
  .side-bar-logo {
    height: 5vw;
    width: 5vw;
    cursor: pointer;
  }
  
  .list-group {
    flex: 1;
  }
  
  .list-group .list-group-item {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.25);
  }
  
  .list-group .list-group-item.border-bottom {
    border-bottom: 1px solid rgba(0, 0, 0, 0.25) !important;
  }
  
  .list-group .list-group-item:last-of-type {
    margin-top: auto;
  }
  
  /* ToggleSidebar */
  .side-bar-hidden button {
    transform: translateX(50%) !important;
  }
  
  .main-container-expanded {
    width: 100% !important;
    margin-left: 0px !important;
  }
  
  .main-container-expanded .loader {
    left: 50%;
  }
  
  /* Popups.js (+ Login.js) */
  .password-field {
    padding-right: 34px;
  }
  
  .password-group {
    position: relative;
  }
  
  .password-eye {
    position: absolute;
    right: 10px;
    top: 4px;
    cursor: pointer;
  }
  
  .password-random {
    cursor: pointer;
  }
  
  .generate-random-password:hover {
    text-decoration: underline !important;
  }
  
  /* Custom Checkbox (Customers Add & Edit) */
  .checkbox-container {
    display: block;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  
  .checkbox-container input {
    position: absolute;
    opacity: 0;
    height: 0;
    width: 0;
  }
  
  .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    border: 1px solid #ced4da;
  }
  
  .checkbox-container input:checked ~ .checkmark {
    border: none;
    background-color: #0069d9;
  }
  
  .checkmark:after {
    content: "\2713";
    position: absolute;
    display: none;
  }
  
  .checkbox-container input:checked ~ .checkmark:after {
    display: block;
  }
  
  .checkbox-container .checkmark:after {
    font-weight: 700;
    color: #fff;
    width: 100%;
    height: 100%;
    bottom: 12.5%;
    text-align: center;
  }
  
  /* Orders.js */
  .view-order-span {
    display: block;
    cursor: pointer;
    color: $color-primary
  }
  
  .view-order-span:hover {
    text-decoration: underline;
  }
  
  .order-subtitle {
    font-weight: 700;
  }
  
  /* Login.js */
  .login-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 25%;
  }
  
  .login-logo-container {
    text-align: center;
    margin-bottom: 20px;
  }
  
  .login-title {
    text-align: center;
    margin-bottom: 50px;
  }
  
  .login-container button {
    width: 100%;
  }
  
  /* Dashboard.js */
  .dashboard-container {
    height: 95vh;
    display: flex;
    flex-direction: column;
  }
  
  .dashboard-fill {
    flex: 1;
  }
  
  .dashboard-select {
    margin: 20px 0px;
  }
  
  .dashboard-card {
    border: 1px solid rgba(0, 0, 0, 0.3);
    background-color: #f3f3f3;
    padding: 50px 10px;
    text-align: center;
    margin-top: 20px;
  }
  
  .dashboard-card h1 {
    font-size: 4em;
  }
  
  .dashboard-card p {
    font-size: 1.5rem;
  }
  
  .graph-no-data-overlay {
    position: absolute;
    width: 99%; /*otherwise it overflows due to the graph having numbers on the 'y-axis'*/
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .graph-no-data-overlay h1 {
    display: inline;
  }
  
  .canvas-blurry canvas {
    opacity: 0.7;
    filter: blur(1px);
  }
  
  /* NotFound.js */
  .not-found-container {
    text-align: center;
  }
  
  .center-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  .loader {
    position: absolute;
    left: calc(50% + 4vw);
    top: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease-in-out;
  }
  
  .not-found-container h1 {
    font-size: 10rem;
  }
  
  .not-found-container p {
    font-size: 3rem;
  }
  
  .not-found-container a {
    display: block;
    background-color: #007bff;
    color: #fff;
    border-radius: 50px;
    padding: 10px 20px;
    margin-top: 30px;
    font-size: 2rem;
    transition: 0.3s;
  }
  
  .not-found-container a:hover {
    text-decoration: none;
    color: #fff;
    background-color: #0069d9;
  }
  
  /* Settings.js */
  .settings-container {
    margin: 0 auto;
    padding-top: 50px;
    width: 30%;
  }
  
  .settings-container .row {
    margin: 10px 0px;
  }
  
  .settings-container .col {
    padding: 0px;
  }
  
  .settings-container .row input[type="color"] {
    border: none;
    padding: 0px;
  }
  
  .settings-container .row #settings_logo {
    display: none;
  }
  
  .settings-container .row label[for="settings_logo"] {
    cursor: pointer;
    width: 100%;
    display: inline-block;
    font-weight: 400;
    color: #fff;
    background-color: $color-primary;
    border-color: $color-primary;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    -webkit-user-select: none;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
  }
  
  .settings-container .row label[for="settings_logo"]:hover {
    background-color: $color-secondary;
    border-color: $color-secondary;
  }
  
  /* MediaQueries */
  
  @media screen and (max-width: 1920px) {
    .add-btn-container {
      flex: 0 0 16.666667%;
      max-width: 16.666667%;
      margin-left: 66.666667%;
    }
  
    .side-bar {
      width: 10vw;
    }
  
    .side-bar-hidden {
      left: -10vw;
    }
  
    .main-container {
      width: 90vw;
      margin-left: 10vw;
    }
  
    .loader {
      position: absolute;
      left: calc(50% + 5vw);
      top: 50%;
    }
  }
  
  @media screen and (max-width: 1366px) {
    .add-btn-container {
      flex: 0 0 25%;
      max-width: 25%;
      margin-left: 50%;
    }
  
    .search-outer-container {
      flex: 0 0 25%;
      max-width: 25%;
    }
  
    .side-bar {
      width: 12vw;
    }
  
    .side-bar-hidden {
      left: -12vw;
    }
  
    .side-bar-logo {
      height: 7.5vw;
      width: 7.5vw;
    }
  
    .login-container {
      width: 40%;
    }
  
    .main-container {
      width: 88vw;
      margin-left: 12vw;
    }
  
    .loader {
      position: absolute;
      left: calc(50% + 6vw);
      top: 50%;
    }
  
    .dashboard-card-list .col-lg-2 {
      flex: 0 0 33.333333%;
      max-width: 33.333333%;
    }
  
    .settings-container {
      width: 50%;
    }
  }
  
  @media screen and (max-width: 1024px) {
    .add-btn-container {
      flex: 100%;
      max-width: 100%;
      margin-left: 0px;
      margin-top: 1rem;
    }
  
    .search-outer-container {
      flex: 0 0 100%;
      max-width: 100%;
    }
  
    .side-bar {
      width: 16vw;
    }
  
    .side-bar-hidden {
      left: -16vw;
    }
  
    .side-bar-logo {
      height: 10vw;
      width: 10vw;
    }
  
    .login-container {
      width: 50%;
    }
  
    .main-container {
      width: 84vw;
      margin-left: 16vw;
    }
  
    .loader {
      position: absolute;
      left: calc(50% + 8vw);
      top: 50%;
    }
  
    .not-found-container h1 {
      font-size: 8rem;
    }
  
    .not-found-container p {
      font-size: 2.5rem;
    }
  
    .not-found-container a {
      padding: 20px;
    }
  
    .settings-container {
      width: 65%;
    }
  }
  
  @media screen and (max-width: 800px) {
    .side-bar {
      width: 20vw;
    }
  
    .side-bar-hidden {
      left: -20vw;
    }
  
    .side-bar-logo {
      height: 12.5vw;
      width: 12.5vw;
    }
  
    .login-container {
      width: 60%;
    }
  
    .main-container {
      width: 80vw;
      margin-left: 20vw;
    }
  
    .loader {
      position: absolute;
      left: calc(50% + 10vw);
      top: 50%;
    }
  
    .dashboard-card-list .col-lg-2 {
      flex: 0 0 50%;
      max-width: 50%;
    }
  
    .not-found-container {
      width: 75%;
    }
  
    .settings-container {
      width: 75%;
    }
  
    .settings-container .col {
      flex: 0 0 100%;
      max-width: 100%;
  
      margin-top: 10px;
    }
  
    .settings-container .col .col-lg-4 {
      padding: 0px !important;
      margin-top: 10px;
    }
  }
  
  @media screen and (max-width: 600px) {
    .side-bar {
      width: 50vw;
    }
  
    .side-bar-hidden {
      left: -50vw;
    }
  
    .side-bar-logo {
      height: 25vw;
      width: 25vw;
    }
  
    .login-container {
      width: 80%;
    }
  
    .main-container {
      padding-top: 75px;
      width: 50vw;
      margin-left: 50vw;
    }
  
    .loader {
      position: absolute;
      left: calc(50% + 25vw);
      top: 50%;
    }
  
    .main-container h1:first-of-type {
      font-size: 2rem;
    }
  
    .dashboard-card-list .col-lg-2 {
      flex: 0 0 100%;
      max-width: 100%;
    }
  
    .dashboard-select-container {
      flex: 0 0 100%;
      max-width: 100%;
    }
  
    .dashboard-select {
      margin: 10px 0px;
    }
  
    .form-error {
      font-size: 12px;
    }
  
    .not-found-container h1 {
      font-size: 6rem;
    }
  
    .not-found-container p {
      font-size: 2rem;
    }
  
    .not-found-container a {
      font-size: 1.5rem;
      padding: 15px;
    }
  
    .settings-container {
      width: 90%;
    }
  }
  
  @media screen and (max-width: 425px) {
    .login-container .login-logo-container img {
      width: 100%;
    }
  
    .checkbox-label {
      display: inline;
    }
  
    .not-found-container {
      width: 90%;
    }
  }
  
  @media screen and (max-height: 600px) {
    .side-bar-img-container {
      height: 100px;
      line-height: 100px;
    }
  
    .side-bar-logo {
      height: 12vh;
      width: 12vh;
    }
  }
  
  @media screen and (max-height: 475px) {
    .side-bar-img-container {
      flex: none;
    }
  }
  