/* ============================================================
   DEFAULT ELEMENTS - Bootstrap grid extension helpers
   Compatible with the new redesign
   ============================================================ */

/* Bootstrap grid col overrides for the old template */
.col-md-1,
.col-md-2,
.col-md-3,
.col-md-4,
.col-md-5,
.col-md-6,
.col-md-7,
.col-md-8,
.col-md-9,
.col-md-10,
.col-md-11,
.col-md-12,
.col-lg-1,
.col-lg-2,
.col-lg-3,
.col-lg-4,
.col-lg-5,
.col-lg-6,
.col-lg-7,
.col-lg-8,
.col-lg-9,
.col-lg-10,
.col-lg-11,
.col-lg-12 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

/* For backward compatibility - these are defined in bootstrap-grid.css already,
   but we add flex behavior */
@media (min-width: 992px) {
    .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    .col-lg-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }
    .col-lg-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (min-width: 768px) {
    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .d-md-none {
        display: none !important;
    }
    .d-md-block {
        display: block !important;
    }
}

/* Visibility helpers */
.d-lg-none {
    display: none;
}
.d-lg-flex {
    display: flex;
}
.d-lg-block {
    display: block;
}

@media (min-width: 992px) {
    .d-lg-none {
        display: none !important;
    }
    .d-lg-flex {
        display: flex !important;
    }
    .d-lg-block {
        display: block !important;
    }
}

/* Text alignment helpers */
.text-md-left {
    text-align: left;
}
.text-md-right {
    text-align: right;
}

@media (min-width: 768px) {
    .text-md-left {
        text-align: left !important;
    }
    .text-md-right {
        text-align: right !important;
    }
    .text-lg-left {
        text-align: left !important;
    }
    .text-lg-right {
        text-align: right !important;
    }
}

/* Flex helpers */
.d-flex {
    display: flex;
}
.align-items-center {
    align-items: center;
}
.justify-content-between {
    justify-content: space-between;
}
.mr-auto {
    margin-right: auto;
}
.flex-wrap {
    flex-wrap: wrap;
}

/* Display helpers via bootstrap */
.d-none {
    display: none;
}
.d-block {
    display: block;
}
.d-inline-block {
    display: inline-block;
}

@media (min-width: 768px) {
    .d-md-flex {
        display: flex !important;
    }
    .d-md-none {
        display: none !important;
    }
    .d-md-block {
        display: block !important;
    }
}

@media (min-width: 992px) {
    .d-lg-none {
        display: none !important;
    }
    .d-lg-block {
        display: block !important;
    }
    .d-lg-flex {
        display: flex !important;
    }
}

/* Print */
.d-print-none {
}

@media print {
    .d-print-none {
        display: none !important;
    }
}
