/* ------------------------------------------------------------------------- */

/**
 * Login
 */

.wrapper-login {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.wrapper-login .container {
    max-width: 400px;
    min-width: 275px;
    padding: 3rem 1.5rem;
}

.wrapper-login .container:not(.container-login-transparent) {
    border: 1px solid #ebecec;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 0.125rem 3rem rgba(212, 212, 212, 0.85);
}

.wrapper-login .show-password {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    cursor: pointer;
}

.login-form-floating .form-floating-label .form-control + .placeholder {
    font-size: 0.875rem !important;
}

.wrapper-login .login-form-floating .show-password {
    top: 35%;
    transform: translateY(0);
}

/**
 * Overrides
 */

/* ------------------------------------------------------------------------- */

a:hover {
    text-decoration: none;
}

/**
 * Header notifications
 */

.messages-notif-box .notif-center a .notif-icon,
.notif-box .notif-center a .notif-icon {
    min-width: 40px;
}

/**
 * Header Navigation > Dropdown item
 */

.navbar-header .dropdown-item {
    font-size: 15px;
}

/**
 * Navigation > Language selector
 */

.navbar-header .nav-language-selector .dropdown-item {
    padding: 0.25rem 0.75rem;
}

.navbar-header .nav-language-selector .dropdown-item img {
    max-height: 1.75rem;
    margin-right: 0.5rem;
}

/**
 * Dashboard
 */

.content-dashboard .card-body ul,
.content-dashboard .card-body ol {
    margin-bottom: 0;
}

.rounded-legend.legend-vertical ul li {
    margin-top: 4px;
}

.rounded-legend ul li {
    list-style-type: none;
    color: #6c7293;
    font-size: 13px;
}

.rounded-legend ul li .legend-dots {
    width: 6px;
    height: 6px;
    border-radius: 100%;
    display: inline-block;
    margin-right: 0.5rem;
}

/**
 * Filter
 */

.filter-block .form-control {
    border-color: #cdd5eb;
}

.section-filters [class*=flex-grow]:not(:first-child) {
    border-left: 2px solid #ccc;
}

/**
 * Cards
 */

.card-image {
    position: relative;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.05), 0 0 6px rgba(0, 0, 0, 0.1);
    transition: .3s transform cubic-bezier(.155, 1.105, .295, 1.12), .3s box-shadow, .3s -webkit-transform cubic-bezier(.155, 1.105, .295, 1.12);
    cursor: pointer;
}

.card-image:hover {
    border-radius: 5px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.10), 0 4px 8px rgba(0, 0, 0, 0.05);
    transform: scale(1.05);
}

.card-image a {
    position: relative;
}

.card-image a i {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.7);
}

.card-image:hover a i {
    display: block;
}

.card-last-added-users .card-list .item-list {
    padding: 9px 0;
}

.card-table {
    min-width: 320px;
}

/**
 * Activity feed
 */

.activity-feed .feed-item:last-child {
    padding-bottom: 0;
}

.activity-feed .feed-item .date {
    text-transform: initial;
    font-weight: 700;
}

.activity-feed .feed-item small {
    font-size: 0.75rem;
}

/**
 * Pills
 */

.selectgroup-devices i {
    min-width: 2.5rem;
    text-align: center;
    font-size: 150%;
}

.selectgroup-devices .selectgroup-button {
    padding: 1rem;
}

/**
 * Stamp
 */

.stamp-md {
    min-width: 3rem;
    height: 3rem;
    line-height: 3rem;
}

/**
 * Tables
 */

.table td,
.table th {
    height: auto;
    padding: 5px !important;
    white-space: nowrap;
}

.table tr:hover td:first-child button {
    background: #c4c4c4;
    border-color: #a1a1a1 !important;
}

.table-hover tbody tr:hover td[rowspan],
.table-hover tbody tr:nth-of-type(odd):hover td[rowspan],
.table-hover tbody tr:hover td[colspan],
.table-hover tbody tr:nth-of-type(odd):hover td[colspan] {
    background: white !important;
}

/**
 * Forms
 */

.form-check,
.form-group {
    padding: 10px 0 !important;
}

.custom-control-label {
    vertical-align: middle;
}

/**
 * Buttons
 */

[class*=btn-]:hover {
    cursor: pointer;
}

/**
 * Helpers
 */

/* line heights */

.lh-1h {
    line-height: 1.5;
}

/* percentage font sizes */

.fs-25 {
    font-size: 25%;
}

.fs-50 {
    font-size: 50%;
}

.fs-75 {
    font-size: 75%;
}

.fs-100 {
    font-size: 100%;
}

/* FontAwesome */

.fa-1h {
    font-size: 1.5em;
}

/* daterangepicker */

.daterangepicker .ranges li.active {
    background: #1572e8 !important;
    box-shadow: 4px 4px 10px 0 rgba(0, 0, 0, 0.1), 4px 4px 15px -5px rgba(21, 114, 232, 0.4) !important;
}

/* select2 */

.select2.select2-container {
    width: 100% !important;
}

.form-control ~ .select2.select2-container--bootstrap4 .select2-selection--single {
    height: inherit !important;
    padding: 0.275rem 0.25rem;
    font-size: 14px;
}

.form-control ~ .select2.select2-container--bootstrap4:not(.select2-container--open) .select2-selection--single,
.select2.select2-container--bootstrap4 .select2-dropdown {
    border-color: #ebedf2 !important;
}

/* flags */

.flag-circle {
    position: relative;
    display: inline-block;
    overflow: hidden;
    width: 20px;
    height: 20px;
    border: 2px solid #404040;
    border-radius: 100%;
    vertical-align: middle;
    line-height: 20px;
}

.flag-circle img {
    display: inline;
    margin-top: -45%;
    margin-left: -50%;
}

.s2-flag {
    margin-right: 5px;
}

/* ------------------------------------------------------------------------- */

/**
 * Media Queries
 */

@media screen and (max-width: 567px) {
    /* daterangepicker */
    .daterangepicker .drp-buttons .btn {
        min-width: 80px !important;
    }

    .daterangepicker .drp-buttons .btn:last-child {
        margin-top: 5px;
    }
}

@media screen and (min-width: 991px) {
    /**
     * Navigation > Language selector
     */
    .navbar-header .nav-language-selector .dropdown-menu {
        margin-top: 6px;
    }
}
