/*
Template Name: Material HeadUp
Author: UnEspace
Email: rampeur@gmail.com
File: scss
*/
/**
 * Table Of Content
 *
 * 	1. Globals
 *	2. Headers
 *	3. Navigations
 *	4. Banners
 *	5. Footers
 *	6. Posts
 *	7. Widgets
 *	8. Custom Templates
 */
/******************* 
Global Styles 
*******************/

html, body { height: 100%; }
body { margin: 0; font-family:  $bodyfont; overflow-x: hidden; font-weight: 300; }
html { position: relative; min-height: 100%; background: $white; }

*,
*:before,
*:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
* {
    outline: none;
}

a:hover,
a:focus,
a {
    text-decoration: none;
}
a.link {
    color: $headingtext;
    text-decoration: none;
    &:hover,
    &:focus {
        color: $primary;
    }
}

.clearfix {
    *zoom: 1;
}
.clearfix:before,
.clearfix:after {
    display: table;
    line-height: 0;
    content: "";
}
.clearfix:after {
    clear: both;
}
.container {
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.mat-mdc-form-field-infix {
    min-height: 40px;
}
.mdc-text-field--no-label:not(.mdc-text-field--outlined):not(.mdc-text-field--textarea) {
    .mat-mdc-form-field-infix {
        padding-top: 12px;
        padding-bottom: 12px;
    }
}

.position-relative {
    position: relative;
}
.position-absolute {
    position: absolute;
}
.pull-right {
    float: right !important;
}
.pull-left {
    float: left !important;
}
.d-flex {
    display: flex;
}
.no-shrink {
    flex-shrink: 0;
}
.flex-spacer {
    flex-grow: 1;
}

.img-responsive {
    width: 100%;
    height: auto;
    display: inline-block;
}
.img-fluid {
    max-width: 100%;
    height: auto;
}
.img-rounded {
    border-radius: $radius;
}
html body .mdi:before,
html body .mdi-set {
    line-height: initial;
}
code {
    padding: 0.2rem 0.4rem;
    font-size: 90%;
    color: $danger;
    background-color: $light-danger;
    border-radius: 0.25rem;
}

.shadow-none {
    box-shadow: none !important;
}
.ml-auto {
    margin-left: auto;
}
.m-auto {
    margin: auto;
}
.mr-auto {
    margin-right: auto;
}
.rounded {
    border-radius: $radius;
}
/*******************
Headings
*******************/

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: $headingfont;
    font-weight: 400;
}

h1 {
    line-height: 40px;
    font-size: 36px;
}

h2 {
    line-height: 36px;
    font-size: 30px;
}

h3 {
    line-height: 30px;
    font-size: 21px;
}

h4 {
    line-height: 22px;
    font-size: 18px;
}

h5 {
    line-height: 18px;
    font-size: 16px;
    font-weight: 400;
}

h6 {
    line-height: 16px;
    font-size: 14px;
    font-weight: 400;
}
html,
body {
    .display-5 {
        font-size: 3rem;
    }
    .display-6 {
        font-size: 36px;
    }
}
.box {
    border-radius: $radius;
    padding: 10px;
}
html body {
    .dl {
        display: inline-block;
    }
    .db {
        display: block;
    }
    .op-5 {
        opacity: 0.5;
    }
    .op-3 {
        opacity: 0.3;
    }
}
.no-wrap {
    td,
    th {
        white-space: nowrap;
    }
}
.oh {
    overflow: hidden;
}
/*******************
Blockquote
*******************/

html body blockquote {
    border: 1px solid $border;
    border-left: 5px solid $primary;
    padding: 15px;
    margin: 20px 0;
}

.clear {
    clear: both;
}
ol li {
    margin: 5px 0;
}

/*******************
Paddings
*******************/
html body {
    .p-0 {
        padding: 0px;
    }

    .p-10 {
        padding: 10px;
    }

    .p-20 {
        padding: 20px;
    }

    .p-30 {
        padding: 30px;
    }

    .p-l-0 {
        padding-left: 0px;
    }

    .p-l-10 {
        padding-left: 10px;
    }

    .p-l-20 {
        padding-left: 20px;
    }

    .p-r-0 {
        padding-right: 0px;
    }

    .p-r-10 {
        padding-right: 10px;
    }

    .p-r-20 {
        padding-right: 20px;
    }

    .p-r-30 {
        padding-right: 30px;
    }

    .p-r-40 {
        padding-right: 40px;
    }

    .p-t-0 {
        padding-top: 0px;
    }

    .p-t-10 {
        padding-top: 10px;
    }

    .p-t-20 {
        padding-top: 20px;
    }

    .p-t-30 {
        padding-top: 30px;
    }

    .p-b-0 {
        padding-bottom: 0px;
    }

    .p-b-5 {
        padding-bottom: 5px;
    }

    .p-b-10 {
        padding-bottom: 10px;
    }

    .p-b-20 {
        padding-bottom: 20px;
    }

    .p-b-30 {
        padding-bottom: 30px;
    }

    .p-b-40 {
        padding-bottom: 40px;
    }
}

/*******************
Margin
*******************/
html body {
    .m-0 {
        margin: 0px;
    }

    .m-l-5 {
        margin-left: 5px;
    }

    .m-l-10 {
        margin-left: 10px;
    }

    .m-l-15 {
        margin-left: 15px;
    }

    .m-l-20 {
        margin-left: 20px;
    }

    .m-l-30 {
        margin-left: 30px;
    }

    .m-l-40 {
        margin-left: 40px;
    }

    .m-r-5 {
        margin-right: 5px;
    }

    .m-r-10 {
        margin-right: 10px;
    }

    .m-r-15 {
        margin-right: 15px;
    }

    .m-r-20 {
        margin-right: 20px;
    }

    .m-r-30 {
        margin-right: 30px;
    }

    .m-r-40 {
        margin-right: 40px;
    }

    .m-t-0 {
        margin-top: 0px;
    }

    .m-t-5 {
        margin-top: 5px;
    }

    .m-t-10 {
        margin-top: 10px;
    }

    .m-t-15 {
        margin-top: 15px;
    }

    .m-t-20 {
        margin-top: 20px;
    }

    .m-t-30 {
        margin-top: 30px;
    }

    .m-t-40 {
        margin-top: 40px;
    }

    .m-b-0 {
        margin-bottom: 0px;
    }

    .m-b-5 {
        margin-bottom: 5px;
    }

    .m-b-10 {
        margin-bottom: 10px;
    }

    .m-b-15 {
        margin-bottom: 15px;
    }

    .m-b-20 {
        margin-bottom: 20px;
    }

    .m-b-30 {
        margin-bottom: 30px;
    }

    .m-b-40 {
        margin-bottom: 40px;
    }
}

/*******************
vertical alignment
*******************/
html body {
    .vt {
        vertical-align: top;
    }

    .vm {
        vertical-align: middle;
    }

    .vb {
        vertical-align: bottom;
    }
}
/*******************
Opacity
*******************/
.op-5 {
    opacity: 0.5;
}
/*******************
font weight
*******************/
html body {
    .font-bold {
        font-weight: 700;
    }

    .font-normal {
        font-weight: normal;
    }

    .font-light {
        font-weight: 300;
    }
    .font-medium {
        font-weight: 500;
    }
    .font-10 {
        font-size: 10px;
    }
    .font-12 {
        font-size: 12px;
    }
    .font-14 {
        font-size: 14px;
    }
    .font-16 {
        font-size: 16px;
    }
    .font-18 {
        font-size: 18px;
    }
    .font-20 {
        font-size: 20px;
    }
}
/*******************
Border
*******************/
html body {
    .b-0 {
        border: none;
    }
    .b-r {
        border-right: 1px solid $border;
    }
    .b-l {
        border-left: 1px solid $border;
    }
    .b-b {
        border-bottom: 1px solid $border;
    }
    .b-t {
        border-top: 1px solid $border;
    }
    .b-all {
        border: 1px solid $border;
    }
}
/*******************
Thumb size
*******************/

.thumb-sm {
    height: 32px;
    width: 32px;
}

.thumb-md {
    height: 48px;
    width: 48px;
}

.thumb-lg {
    height: 88px;
    width: 88px;
}
.hide {
    display: none;
}
.img-circle {
    border-radius: 100%;
}
.radius {
    border-radius: $radius;
}
/*******************
Text Colors
*******************/
.text-white {
    color: $white !important;
}

.text-danger {
    color: $danger !important;
}

.text-muted {
    color: $muted !important;
}

.text-warning {
    color: $warning !important;
}

.text-success {
    color: $success !important;
}

.text-info {
    color: $info !important;
}

.text-inverse {
    color: $inverse !important;
}

html body {
    .text-primary {
        color: $primary;
    }
    .text-secondary {
        color: $secondary;
    }
    .text-accent {
        color: $accent;
    }
    .text-red {
        color: $red;
    }
    .text-red-dark {
        color: $red-dark;
    }
    .text-orange {
        color: $orange;
    }
    .text-yellow {
        color: $yellow;
    }
    .text-megna {
        color: $megna;
    }
    .text-green {
        color: $green;
    }
    .text-teal {
        color: $teal;
    }
    .text-turquoise {
        color: $turquoise;
    }
    .text-cyan {
        color: $cyan;
    }
    .text-blue {
        color: $blue;
    }
    .text-navy {
        color: $navy;
    }
    .text-pink {
        color: $pink;
    }
    .text-magenta {
        color: $magenta;
    }
    .text-purple {
        color: $purple;
    }
    .text-purple-dark {
        color: $purple-dark;
    }
    .text-raspberry {
        color: $raspberry;
    }
    .text-grey {
        color: $grey;
    }
    .text-empty {
        color: #717171;
    }
    .text-center {
        text-align: center !important;
    }
    .text-right {
        text-align: right !important;
    }
    .text-left {
        text-align: left !important;
    }
    .text-top {
        vertical-align: top !important;
    }
    .text-middle {
        vertical-align: middle !important;
    }
    .text-mono{
        font-family: Menlo,Monaco,Consolas,"Courier New",monospace !important;
        font-size: 0.95em;
    }
    .text-bold {
        font-weight: 600 !important;
    }
    .text-normal {
        font-weight: normal !important;
    }
    .text-capitalize {
        text-transform: capitalize !important;
    }
    .text-uppercase {
        text-transform: uppercase !important;
    }
    .text-lowercase {
        text-transform: lowercase !important;
    }
    .text-nowrap {
        white-space: nowrap !important;
    }
    .text-justify {
        text-align: justify !important;
    }
}
/*******************
Background Colors
*******************/
.bg-primary {
    background-color: $primary !important;
}
.bg-secondary,
.bg-warn {
    background-color: $secondary !important;
}
.bg-accent {
    background-color: $accent !important;
}
.bg-success {
    background-color: $success !important;
}
.bg-info {
    background-color: $info !important;
}
.bg-warning {
    background-color: $warning !important;
}
.bg-danger {
    background-color: $danger !important;
}
.bg-cyan {
    background-color: $cyan !important;
}
.bg-teal {
    background-color: $teal !important;
}
.bg-yellow {
    background-color: $yellow !important;
}
.bg-orange {
    background-color: $orange !important;
}
.bg-red {
    background-color: $red !important;
}
.bg-red-dark {
    background-color: $red-dark !important;
}
.bg-blue {
    background-color: $blue !important;
}
.bg-megna {
    background-color: $megna !important;
}
.bg-purple {
    background-color: $purple !important;
}
.bg-purple-dark {
    background-color: $purple-dark !important;
}
.bg-grey {
    background-color: $grey !important;
}
.bg-raspberry {
    background-color: $raspberry !important;
}

html body {
    .bg-theme {
        background-color: $primary;
    }

    .bg-inverse {
        background-color: $inverse;
    }

    .bg-light-primary {
        background-color: $light-primary;
    }

    .bg-light-success {
        background-color: $light-success;
    }

    .bg-light-info {
        background-color: $light-info;
    }
    .bg-light-extra {
        background-color: $extra-light;
    }

    .bg-light-warning {
        background-color: $light-warning;
    }

    .bg-light-danger {
        background-color: $light-danger;
    }

    .bg-light-inverse {
        background-color: $light-inverse;
    }
    .bg-light {
        background-color: $light;
    }
    .bg-white {
        background-color: $white;
    }
}
.img-circle {
    border-radius: 100%;
}
.no-shadow {
    box-shadow: none;
}
hr {
    border: 0px;
    height: 1px;
    background: $border;
}
/*******************
Rounds
*******************/
.round {
    line-height: 48px;
    color: $white;
    width: 45px;
    height: 45px;
    display: inline-block;
    font-weight: 400;
    text-align: center;
    border-radius: 100%;
    background: $info;
    img {
        border-radius: 100%;
    }
}
.round.round-info {
    background: $info;
}

.btn-block {
    display: block;
    width: 100%;
}
.btn-lg {
    line-height: 48px !important;
}
/*******************
froms
*******************/
.form-control {
    border: 0px;
    line-height: 25px;
    padding: 10px;
    width: 100%;
    font-size: $font-16;
}
.mat-form-field-underline {
    background-color: rgba(0, 0, 0, 0.25);
}

/*******************
Mat card
*******************/
.mat-card {
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.05) !important;
    -webkit-box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.05) !important;
    margin: 15px;
    padding: 0px !important;
    border-radius: $radius;

    .mat-card-content {
        line-height: 1.42857143;
        padding: 24px;
    }
    .mat-card-image {
        width: calc(100% + 0px);
        margin: 0 0px 0px 0px;
    }
    .mat-card-header {
        padding: 15px 20px 12px 20px;
        border-radius: $radius $radius 0 0;
        .mat-card-header-text {
            margin: 0;
        }
        .mat-card-title {
            margin-bottom: 2px;
            font-size: 20px;
        }
        .mat-card-subtitle,
        .mat-card-subtitle:not(:first-child) {
            margin-bottom: 0px;
            margin-top: 0px;
            font-size: 14px;
        }
        &.text-white {
            .mat-card-title {
                color: $white;
            }
            .mat-card-subtitle {
                color: rgba(255, 255, 255, 0.7);
            }
        }
    }
    .mat-card-title {
        font-size: 20px;
        margin-bottom: 5px;
    }
    .mat-card-subtitle {
        margin-bottom: 20px;
    }
    .mat-card-actions {
        margin: 0px !important;
    }
}

/*******************
Grid
*******************/
.row {
    margin: 0 -10px;
}
/*******************
list inline
*******************/
.list-inline {
    margin-left: 0px;
    padding: 0px;
    li {
        display: inline-block;
        list-style: none;
        margin-right: 10px;
        &:last-child {
            margin-right: 0px;
        }
    }
}

/*******************/
/*Chat widget*/
/*******************/

.message-box {
    ul li {
        .drop-title {
            font-weight: 500;
            padding: 11px 20px 15px;
            border-bottom: 1px solid $border;
        }
        .nav-link {
            border-top: 1px solid $border;
            padding-top: 15px;
        }
    }
    .message-widget {
        position: relative;
        a {
            border-bottom: 1px solid $border;
            display: flex;
            text-decoration: none;
            padding: 9px 15px;
            &:hover {
                background: rgba(235, 243, 245, 0.05);
            }
            &:last-child {
                border-bottom: 0px;
            }
            div {
                white-space: normal;
            }
            .user-img {
                width: 45px;
                position: relative;
                display: inline-block;
                margin-right: 10px;
                img {
                    width: 100%;
                }
                .profile-status {
                    border: 2px solid $white;
                    border-radius: 50%;
                    display: inline-block;
                    height: 10px;
                    left: 33px;
                    position: absolute;
                    top: -1px;
                    width: 10px;
                }
                .online {
                    background: #54cb00;
                }
                .busy {
                    background: $danger;
                }
                .away {
                    background: $warning;
                }
                .offline {
                    background: $warning;
                }
            }
            .mail-content {
                display: inline-block;
                width: 73%;
                vertical-align: middle;
                h5 {
                    margin: 5px 0px 0;
                    color: $accent;
                }
                .mail-desc,
                .time {
                    font-size: 12px;
                    display: block;
                    margin: 1px 0;
                    text-overflow: ellipsis;
                    overflow: hidden;
                    color: $bodytext;
                    white-space: nowrap;
                }
            }
        }
    }
}

.add-contact {
    position: absolute !important;
    right: 17px;
    top: 57px;
}

dl.dl-horizontal {
    margin-bottom: 0;
    font-size: 14px;
    margin-top: 0;
    margin-bottom: 20px;
    dt {
        float: left;
        width: 120px;
        overflow: hidden;
        clear: left;
        text-align: right;
        text-overflow: ellipsis;
        text-transform: uppercase;
        white-space: nowrap;
    }
    dt,
    dd {
        line-height: 1.42857143;
        min-height: 1.42857143em;
    }
    dd {
        margin-left: 140px;
        /* color: $extra-light; */
    }
    .dl-large dt {
        width: 200px;
    }
    .dl-large dd {
        margin-left: 220px;
    }
}
.mat-menu-content {
    &:not(:empty) {
        padding-top: 5px;
        padding-bottom: 5px;
    }
    .mat-menu-item {
        line-height: 32px;
        height: 32px;
        padding: 0 10px;
        .mat-icon {
            margin-right: 10px;
        }
    }
}
.ml-tooltip {
    white-space: pre-line;
}
