
/* ================================================= */
/* Body sizes                                        */
/* ================================================= */
body > .body {
    max-width: 1000px;
    margin: 0 auto;
    margin-top: var(--pad);
    font-size: 1.6em !important;
    padding-bottom: 40px;
}

body > .body.body-wide {
    max-width: 99%;
}

body > .body.body-slightly-wider {
    max-width: 1350px;
}

body > .body.body-thin {
    max-width: 500px;
}



/* =================== */
/* Different layouts   */
/* =================== */

/* Full column layout */
.container--full {
    width: 100%;
}

/* Two column layout, small column on the left */
.container--side-main > .col1 {
    width: 30%;
    float: left;
}
.container--side-main > .col2  {
    width: 68%;
    float: right;
}
.body-wide .container--side-main > .col1 {
    width: 20%;
}
.body-wide .container--side-main > .col2  {
    width: 79%;
}


/* Two column layout, small column on the right */
.container--main-side .col1 {
    width: 68%;
    float: left;
}
.container--main-side .col2  {
    width: 30%;
    float: right;
}
.body-wide .container--main-side > .col1 {
    width: 79%;
}
.body-wide .container--main-side > .col2  {
    width: 20%;
}

/* Two column layout equal sizes */
.container--two-halves .col1 {
    width: 49%;
    float: left;
}
.container--two-halves .col2  {
    width: 49%;
    float: right;
}

/* Two column layout equal sizes, both small, with large gap between */
.container--two-small-halves .col1 {
    width: 40%;
    float: left;
}
.container--two-small-halves .col2  {
    width: 40%;
    float: right;
}

/* Three column layout */
.container--side-main-side > .col1 {
    width: 24%;
    float: left;
    margin-left: -77%;
}
.container--side-main-side > .col2  {
    width: 52%;
    float: left;
    margin-left: 25%;
}
.container--side-main-side > .col3  {
    width: 22%;
    float: right;
}

/*
 * Container is a basic wrapper to contain columns
 * - Contains modifiers for different layouts used with the .container--{modifier} class name
 * - A container has numbered columns (e.g. col1) that are sized and positioned based on the modifier
 * - Module containers can also be created to layout modules
 */
.container:before,
.container:after,
.module-container:before,
.module-container:after {
    content: " ";
    display: table;
}

.container:after,
.module-container:after {
    clear: both;
}
.container,
.module-container {
    *zoom: 1;
}


/*
 * Two Small halves modifier
 * - Contains 2 columns of equal width with a large gap between them
 * - Contains a module layout that creates 2 columns
 */
.module-container--two-halves,
.module-container--three-col {
    margin-left: -2%;
}

/*
 * Other module names can be added here
 */
.module-container--two-halves .box {
    float: left;
    margin-left: 2%;
    width: 48%;
}

/*
 * Other module names can be added here
 */
.module-container--three-col .box,
.container--three-col .col {
    float: left;
    margin-left: 2%;
    width: 32%;
}

.module-container--three-col .box:nth-child(3n+1),
.container--three-col .col:nth-child(3n+1) {
    margin-left: 0;
}




/* ================================================= */
/* Index table action buttons                        */
/* ================================================= */
th.length-safe-column,
td.length-safe-column {
    overflow-wrap: anywhere;
}

th.actions,
td.actions {
    white-space: nowrap;
    max-width: 120px;
}

td.actions {
    text-align: right;
}

td.actions a,
td.actions i {
    display: inline-block;
    padding-left: .1rem;
    padding-right: .1rem;
}

td.actions form.delete-form {
    margin: 0;
    padding: 0;
    display: inline-block;
}

td.actions form.delete-form button.delete-button {
    margin: 0;
    padding: 0;
    background: none!important;
    border: none;
    color: var(--txtClr);
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    justify-content: space-evenly;
}

td.actions form.delete-form button.delete-button:hover {
    color: #D41111FF;
    border-color: #D41111FF;
    transition: all linear .2s;
    -webkit-transition: all linear .2s;
    -moz-transition: all linear .2s;
    -ms-transition: all linear .2s;
    -o-transition: all linear .2s;
}

i.voucher-link {
    cursor: copy;
}

i.promotion-link {
    cursor: copy;
}

i.voucher-link:hover,
i.promotion-link:hover{
    color: var(--highClr);
    border-color: var(--highClr);
    transition: all linear .2s;
    -webkit-transition: all linear .2s;
    -moz-transition: all linear .2s;
    -ms-transition: all linear .2s;
    -o-transition: all linear .2s;
}

.overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    visibility: hidden;
}

.overlay:target {
    visibility: visible;
}

.popup {
    width: auto;
    overflow: clip;
    margin: 20px;
    text-align: center;
    background: #fff;
    border-radius: 5px;
    padding: 20px;
}



/* ================================================= */
/* Modifications to CSS styles based on screen sizes */
/* ================================================= */

/* Anything smaller than large devices (desktops, 992px and up)*/
@media (max-width: 992px) {

    body > .body.body-thin {
        max-width: 90%;
    }

    /* Two column layout, small column on the left */
    .container--side-main .col1,
    .body-wide .container--side-main .col1,
    .container--side-main .col2,
    .body-wide .container--side-main .col2,

    .container--main-side .col1,
    .body-wide .container--main-side .col1,
    .container--main-side .col2,
    .body-wide .container--main-side .col2,

    .container--two-halves .col1,
    .body-wide .container--two-halves .col1,
    .container--two-halves .col2,
    .body-wide .container--two-halves .col2,

    .container--two-small-halves .col1,
    .body-wide .container--two-small-halves .col1,
    .container--two-small-halves .col2,
    .body-wide .container--two-small-halves .col2,

    .container--side-main-side .col1,
    .container--side-main-side .col2,
    .container--side-main-side .col3

    {
        width: 90%;
        float: initial;
        margin-left: 5%;
    }
}

/*Anything smaller than extra large devices (large desktops, 1200px and up)*/
@media (max-width: 1200px) {

}

/*Anything smaller than extra extra large devices (large desktops, 1400px and up)*/
@media (max-width: 1400px) {

}

/*Anything smaller than extra extra large devices (large desktops, 1400px and up) but do not affect print screens */
@media screen and (max-width: 1400px) {
    /* Two column layout, small column on the left */
    .container--side-main .col1 {
        overflow-x: auto;

    }
    .container--side-main .col2  {
        overflow-x: auto;
    }

    /* Two column layout, small column on the right */
    .container--main-side .col1 {
        overflow-x: auto;
    }
    .container--main-side .col2  {
        overflow-x: auto;
    }
}

/*Small devices (landscape phones, 576px and up)*/
@media (min-width: 576px) {

}

/*Medium devices (tablets, 768px and up)*/
@media (min-width: 768px) {

}

/*Large devices (desktops, 992px and up)*/
@media (min-width: 992px) {

}

/*X-Large devices (large desktops, 1200px and up)*/
@media (min-width: 1200px) {

}

/*XX-Large devices (larger desktops, 1400px and up)*/
@media (min-width: 1400px) {

}