html {
  width: 100%;
}

body {
  overflow-x: hidden !important;
}

/* Hide everything under body tag */
body.show-spinner > *{
  opacity: 0;
}

/* Spinner */
body.show-spinner::before{
  content: " ";
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  border-top-color: rgba(0, 0, 0, 0.3);
  animation: spin 1s ease-in-out infinite;
  -webkit-animation: spin 1s ease-in-out infinite;
  left: calc(50% - 15px);
  top: calc(50% - 15px);
  position: fixed;
  z-index: 1;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@-webkit-keyframes spin {
  to {
    -webkit-transform: rotate(360deg);
  }
}


@media only screen and (min-width:800px){
    .table-mobile-show {
        display: none !important;
    }
}

@media only screen and (max-width: 800px) {

    /* Force table to not be like tables anymore */
    .table-mobile table,
    .table-mobile thead,
    .table-mobile tbody,
    .table-mobile th,
    .table-mobile td,
    .table-mobile tr {
        display: block;
    }

    /* Hide table headers (but not display: none;, for accessibility) */
    .table-mobile thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .table-mobile tr {
        border: 1px solid #ccc;
    }

    .table-mobile td {
        /* Behave  like a "row" */
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
        white-space: normal;
        text-align: left !important;
        min-height: 2.25rem;
    }

    .table-mobile-p30 td {
        padding-left: 30% ;
    }
    .table-mobile-p40 td {
        padding-left: 40% ;
    }
    .table-mobile-p60 td {
        padding-left: 60% ;
    }
    .table-mobile-p70 td {
        padding-left: 70% ;
    }

    .table-mobile-full{
        padding-left:2% !important;
    }
    .table-mobile-hide{
        display:none !important;
    }
    

    .table-mobile td:before {
        /* Now like a table header */
        position: absolute;
        /* left value mimic padding */
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
    }

    /*
	Label the data
	*/
    .table-mobile td:before {
        content: attr(data-title);
    }
}

@media only screen and (max-width: 350px) {
    .table-mobile td {
        font-size:.8em;
    }
}

/* Reduce excessive margins on main container */
#app-container.sub-hidden main, #app-container.menu-sub-hidden main, #app-container.menu-hidden main {
    margin-left: 150px;
}

main {
    margin-top: 140px;
    margin-right: 30px;
}

@media (max-width: 1439px) {
    #app-container.sub-hidden main, #app-container.menu-sub-hidden main, #app-container.menu-hidden main {
        margin-left: 140px;
    }

    main {
        margin-top: 110px;
        margin-right: 30px;
    }
}

@media (max-width: 1199px) {
    #app-container.sub-hidden main, #app-container.menu-sub-hidden main, #app-container.menu-hidden main {
        margin-left: 130px; 
    }

    main {
        margin-top: 100px;
        margin-right: 30px;
    }
}


/* Change user name hidden max width from 991px to 768 px */
@media (max-width: 991px) {
    .navbar .user .name {
        display: inline;
    }
}

@media (max-width: 768px) {
    .navbar .user .name {
        display: none;
    }
}


/* Fix modal backdrop opacity to stay at %50 and not be overridden */

.modal-backdrop {
    opacity: 0.5 !important;
}


.form-control {
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}

/* Subscription Shared */

.subscriptionQuantity {
    white-space: nowrap;
}

@media (min-width: 992px) {
    .subscriptionQuantity {
        white-space: nowrap;
    }
}

.subscriptionQuantity h2 {
    white-space: nowrap;
}


.subscriptionStatus {
}

@media (min-width: 992px) {
    .subscriptionStatus {
    }
}

.subscriptionQuantityAndStatus h2 {
    white-space: nowrap;
}

.subscriptionStatusNormal {
    white-space: nowrap;
}

.subscriptionStatusSuspended {
    white-space: nowrap;
    color: red;
}

.subscriptionStatusDeleted {
    white-space: nowrap;
    color: red;
}

.dropdown-toggle-right::after {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    float: right;
}

.dropdown-toggle-justify {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}