html {
    min-height: 100%;
    font-size: 62.5%;
    font-family: 'Open Sans', Verdana, sans-serif;
}

body {
    min-height: 100%;
    margin: 0 0;
    font-size: 1.6rem;
    font-weight: 300;
}

ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

button {
    box-sizing: border-box;
    padding: .5rem 1rem;
    border-radius: .3rem;
    border: 1px solid #317EEB;
    background-color: #317EEB;
    font-size: 1.5rem;
    font-family: 'Open Sans';
    color: #FFFFFF;
}

button:hover {
    cursor: pointer;
    background-color: #1760C7;
}

input[type="text"],
input[type="number"],
input[type="password"],
select,
textarea {
    box-sizing: border-box;
    padding: .7rem 1rem;
    border-radius: .3rem;
    border: .1rem solid #B9B9B9;
    font-size: 1.4rem;
}

.mw120 {
    max-width: 120rem;
}

/* Form validation
---------------------------------- */

.warn-field {
    border: .1rem solid #D60030 !important;
}

.warn-txt {
    color: #D60030;
}

/* Log in
---------------------------------- */

#login-frm {
    width: 30rem;
    margin-top: 5rem;
    margin-right: auto;
    margin-left: auto;
}

#login-frm input[type="text"],
#login-frm input[type="password"],
#login-frm button {
    display: block;
    width: 100%;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Page wrapper
---------------------------------- */
#wrapper {
    box-sizing: border-box;
    display: flex;
    min-height: 100vh;
}

/* Left sidebar
---------------------------------- */

#sidebar-left {
    box-sizing: border-box;
    overflow: hidden;
    width: 25rem;
    background-color: #317EEB;
    transition: width .3s ease-out;
    z-index: 100;
    flex: 0 0 auto;
}

#sidebar-header {
    box-sizing: border-box;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    position: fixed;
    overflow: hidden;
    width: inherit;
    height: 4rem; /* Same as header height */
    background-color: #317EEB;
}

#sidebar-header span {
    margin-left: 2rem;
    font-size: 2.4rem;
    color: #FFFFFF;
    white-space: nowrap;
}

#sidebar-content {
    overflow: hidden;
    position: fixed;
    width: inherit;
    z-index: 110;
    margin-top: 4rem;
    margin-bottom: 1rem;
    max-height: calc(100vh - 5rem);
}

#sidebar-left.collapsed {
    width: 0;
    transition: width .3s ease-out;
}

/* Main wrapper
---------------------------------- */

#main {
    box-sizing: border-box;
    flex: 1 1 auto;

}

/* Header
---------------------------------- */

header {
    display: flex;
    position: fixed;
    width: calc(100% - 25rem);
    height: 4rem;
    background-color: #317EEB;
    text-align: right;
    transition: width .3s ease-out;
    justify-content: space-between;
    align-items: center;
    z-index: 90;
    /*box-shadow: 2px 4px 5px 0 rgba(0, 0, 0, 0.14), 2px 1px 10px 0 rgba(0, 0, 0, 0.12), 2px 2px 4px -1px rgba(0, 0, 0, 0.2);*/
    /*box-shadow: 2px 4px 5px 0 rgba(0, 0, 0, 0.14), 2px 4px 10px 0 rgba(0, 0, 0, 0.12);*/

    box-shadow: 0 5px 6px -3px rgba(0,0,0,0.16), 0 5px 6px -3px rgba(0,0,0,0.3);

    /*box-shadow: 0px 6px 4px -5px rgba(0,0,0,0.3);*/

    /*box-shadow: 0 3px 3px -3px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);*/
}

header.extended {
    width: 100%;
    transition: width .3s ease-out;
}

header i {
    font-size: 2.4rem !important;
    color: #FFFFFF;
}

header i:hover {
    cursor: pointer;
}

#sidebar-toggle {
    margin-left: 1rem;
}

.navbar > li {
    box-sizing: border-box;
    display: inline-block;
    flex-grow: 1;
    margin-right: 1rem;
    padding-top: .5rem;
    padding-right: 2.5rem;
    padding-bottom: .5rem;
    padding-left: 2.5rem;
    border-radius: .7rem;
    text-align: center;
}

.navbar a:link,
.navbar span.lnk {
    display: inline-block;
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.8rem;
    font-weight: 500;
    color: #000000;
}

.navbar a:visited {
    color: #000000;
}

.navbar a:hover {
    text-decoration: none;
    color: #000000;
}

.navbar a:active {
    text-decoration: none;
}

.navbar a:hover:after,
.navbar span.lnk:hover:after {
    text-decoration: none;
    width: 100%;
    background: #D60030;
}

.navbar a:after,
.navbar span.lnk:after {
    content: '';
    display: block;
    margin: auto;
    height: .1rem;
    width: 0;
    background: transparent;
    transition: width .3s ease-out, background-color .3s ease-out;
}

.navbar span.lnk:hover {
    cursor: pointer;
}

.navbar-item {
    position: relative;
}

.navbar-item i {
    color: #E2E2E2;
}

.navbar-item:hover i {
    color: #FFFFFF;
}

.navbar-item:hover .navbar-sub {
    visibility: visible;
    opacity: 1;
    z-index: 1;
    transform: translateY(0%);
    transition-delay: 0s, 0s, 0.3s;
}

.navbar-sub {
    position: absolute;
    overflow: auto;
    visibility: hidden;
    opacity: 0;
    top: 100%;
    left: -9rem;
    width: 100%;
    min-width: 14rem;
    padding-top: .5rem;
    padding-bottom: 1rem;
    transform: translateY(-1em);
    z-index: -1;
    transition: all 0.3s ease-out 0s;
    border: .1rem solid #317EEB;
    background-color: #FFFFFF;
    border-radius: .5rem;
}

/* Main content
---------------------------------- */

#main-content {
    box-sizing: border-box;
    margin-top: 6rem;
    margin-right: 2rem;
    margin-bottom: 5rem;
    margin-left: 2rem;
}

.main-row {
    display: flex;
    flex-flow: row nowrap;
}

.card {
    border-radius: .2rem;
    border: .1rem solid #DDDDDD;
    background: #fff;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    display: inline-block;
    width: 100%;
}

.card-hd {
    width: 96%;
    margin-top: 1rem;
    margin-right: auto;
    margin-bottom: 1rem;
    margin-left: auto;
    font-weight: 700;
    font-size: 1.8rem;
}

/* Sidebar menu
---------------------------------- */

#sidebar-left .scrollbar {
    opacity: 0;
    transition: opacity .2s ease-out;
}

#sidebar-left:hover .scrollbar {
    opacity: 1;
}

#menu-sidebar {
    margin-top: 3rem;
    margin-left: 2rem;
    max-height: calc(100vh - 5rem);
}

.menu-item {
    margin-bottom: 1rem;
}

.menu-item a:link {
    text-decoration: none;
    color: #FFFFFF;
}

.menu-item a:visited {
    text-decoration: none;
    color: #FFFFFF;
}

.menu-item a:hover {
    text-decoration: underline;
}

.menu-item a:active {
    text-decoration: underline;
}

.menu-sub {
    box-sizing: border-box;
    overflow: hidden;
    width: 100%;
    max-height: 0;
    min-width: 14rem;
    margin-left: 2rem;
    transition: all .45s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.menu-sub.expanded {
    overflow-y: hidden;
    max-height: none;
}

.menu-sub-toggle {
    color: #FFFFFF;
}

.menu-sub-toggle:hover {
    cursor: pointer;
    text-decoration: underline;
}

/* Custom scrollbar
---------------------------------- */

.scrollable {
    box-sizing: border-box;
    visibility: hidden;
    overflow-x: hidden;
    overflow-y: auto;
    width: calc(100% + 18px);
    padding-right: 18px;
}

.scrollable-wrapper {
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}

.scrollable-wrapper .scrollable {
    visibility: visible;
}

.scrollbar {
    box-sizing: border-box;
    position: absolute;
    right: 0;
    width: .6rem;
    background-color: red;
    border-radius: .6rem;
}

.scrollbar.hidden {
    display: none;
}

/* Popup
---------------------------------- */
#win-overlay {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 110;
}

#popwin {
    position: absolute;
    width: 80%;
    max-width: 100rem;
    min-height: 5rem;
    margin: 0 auto;
    right: 0;
    left: 0;
    background-color: #FFFFFF;
    border: 1px solid #CECECE;
    border-radius: .3rem;
    z-index: 120;
    box-shadow: 3px 3px 7px rgba(50, 50, 50, .3);
}

#popwin-close {
    position: absolute;
    top: .7rem;
    right: .7rem;
    font-size: 1.8rem;
    color: #777777;
}

#popwin-close:hover {
    color: #000000;
    cursor: pointer;
}


/* Users list
---------------------------------- */

#users-list-ul {
    width: 96%;
    margin-right: auto;
    margin-left: auto;
}

#users-list-ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-right: 1rem;
    padding-bottom: .3rem;
    padding-left: 1rem;
    border-bottom: .1rem solid #d0d0d0;
}

#users-list-ul input {
    box-sizing: border-box;
    padding: .3rem .7rem;
    font-family: 'Open Sans', Verdana, sans-serif;
    font-size: 1.6rem;
    background-color: #FFFFFF;
    border: .1rem solid #D0D0D0;
}

#users-list-ul input[readonly] {
    border: 0;
}

#users-list-ul input:focus {
    outline: none;
}

#users-list-ul .names {
    width: 25%;
}

#users-list-ul .phone {
    width: 17%;
}

#users-list-ul .membership {
    width: 10%;
    text-align: center;
}

#users-list-ul .pincode {
    width: 10%;
    text-align: center;
}

#users-list-ul .phone-pt {
    display: flex;
    align-items: center;
    width: 17%;
}

#users-list-ul .phone-pt i.fa-pencil {
    margin-left: 1.5rem;
    color: #AAAAAA;
}

.phone-pt-inp {
    width: 12.5rem;
    margin-right: .3rem;
}

#users-list-ul .mail {
    width: 10%;
    text-align: center;
}

#users-list-ul .mail i:hover {
    cursor: pointer;
}

/* Send mail popup
---------------------------------- */
#send-mail-frm {
    max-width: 90%;
    margin: 4rem auto 6rem auto;;
}

#send-mail-frm input,
#send-mail-frm textarea {
    width: 100%;
    margin-bottom: 2rem;
}

#send-mail-frm textarea {
    min-height: 15rem;
}

#send-mail-frm .row {
    margin-bottom: 1rem;
}

#send-mail-frm .row-sbm {
    display: flex;
    justify-content: space-between;
}

.popup-send-mail {
    max-width: 70rem !important;
}


@media (max-width: 736px) {
    #sidebar-left {
        position: fixed;
        height: 100%;
    }

    header {
        width: 100% !important;
    }
}