body {
    font-family: Arial, Tahoma, Verdana;
    font-size: 0.8rem;
    line-height: 1.5; /* Keep 1.5rem  to fit checkboxes aligned with text. */
    /*background-color: #F1F1F1;*/
    /* margin-bottom: 25vh; */
    padding-bottom: 20vh;
}

body:before {
    content: " ";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    /* opacity: 0.4;
    background: url(https://jewellery.weboholics.co.uk/images/background2.png);
    opacity: 0.4;
    background: url(https://jewellery.weboholics.co.uk/images/background3.png);
    opacity: 0.02;
    background: url(https://jewellery.weboholics.co.uk/images/logo_full_size.png); */
    opacity: 0.4;
    background: url(https://jewellery.weboholics.co.uk/images/background1.png);
    background-size: cover; /* Makes the image cover the entire background */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
}

.box {
    background: #fff;
    border-radius: 5px;
    /*min-height: 200px;*/
    padding: 10px;
}

footer {
    position: fixed;
    bottom: 0;
    right: 10px;
    font-size: 11px;
}

.modal-title {
    display: flex;
    align-items: center;
}

.modal-title i {
    margin-right: 10px;
}

.modal-body {
    padding: 1rem 1.5rem; /* padding: 1rem; Make bigger gap from left and right edges */
}

.table-striped tbody tr {
    border-top: 1px solid white;
}

/* Size of the small button in cgrid table has to be smaller then standard bootstrap*/
table.table-sm .btn-sm {
    padding: .2rem .4rem;
    line-height: 1;
}

table th.cell-money,
table td.cell-money {
    white-space: nowrap;
    text-align: right;
    width: 1px;
}

table th.cell-date,
table td.cell-date {
    white-space: nowrap;
    text-align: left;
    width: 1px;
}
table th.cell-date-range,
table td.cell-date-range {
    white-space: nowrap;
    text-align: left;
    width: 185px;
}

table th.cell-btn,
table td.cell-btn {
    white-space: nowrap;
    text-align: center;
    width: 1px;
}

table th.cell-text {
    white-space: nowrap;
    text-align: left;
}
table td.cell-text {
    text-align: left;
}

.page_title {
    display: flex;
    align-items: center;
}

h1, h2, h3, h4, h5 {
    /* display: inline-block; /* This allows you to add display: flex inside a div class="col" and keeps same distance at the bottom */
    display: contents; /* This allows you to add display: flex inside a div class="col" and keeps same distance at the bottom */
}

hr {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Overriding styles delivered by Yii for CGridView tables */
.grid-view {
    padding-top: 1rem; /* mt-3 */
}

.card {
    background-color: transparent;
}

.catalogue-item .card-header {
    height: 45px;
}

.catalogue-item .card-body-alt {
    font-size: 12px;
    height: 180px;
    overflow: hidden; /* Do not show oversized images */
    border-radius: 0 0 5px 5px;
}

.catalogue-item .card-img-top {
    border-radius: 0;
}

.catalogue-item {
    border-radius: 5px;
    cursor: pointer;
}

.catalogue-item .card-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    border: 0;
    background: transparent;
    display: flex;
    opacity: 0;
    transition: opacity 0.1s;
}

.catalogue-item .card-footer .btn {
    border-radius: 5px;
    box-shadow: 0 0 20px 6px #000;
}

.catalogue-item:hover .card-footer {
    opacity: 1;
}

/* Notes */
.notes {
    font-size: 0.7rem;
    font-style: italic;
    color: grey;
}

.notes p {
    margin-bottom: 0.25rem;
}

/* Search results div displayed under the input text field */
div.list-group  {
    border: 1px solid #ced4da;
    border-top: 0;
    border-radius: 0.25rem; /* Same as bootstrap value for input */
}

div.list-group a {
    padding: .375rem .75rem; /* same values as for input */
}

div.list-group a:hover {
    background-color: rgba(0,0,0,.075); /* Same value as for table */
}

/**
* Bootstrap looking toggle switch
*/
/* Custom styles for a more modern switch */
.form-check-input {
    width: 2.5em;
    height: 1.5em;
    background-color: #ddd;
    border-radius: 1em;
    position: relative;
    appearance: none;
    outline: none;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.form-check-input:checked {
    background-color: #0d6efd;
}

.form-check-input::before {
    content: '';
    position: absolute;
    top: 0.2em;
    left: 0.2em;
    width: 1.1em;
    height: 1.1em;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease-in-out;
}

.form-check-input:checked::before {
    transform: translateX(1em);
}

/* Counters displayed in tabs */
sup[aria-counter] {
    margin-left: 10px;
}