* {
    vertical-align: top;
}

html {
    font-family: 'Open Sans', sans-serif;
    background: #f4f6f9;
}

.header {
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    height: 30px;
    padding: 20px;
    position: relative;
    z-index: 100;
}

#menu_icon {
    height: 30px;
    position: absolute;
    right: 20px;
    width: 30px;
}

#menu_icon .line {
    background: #000;
    box-sizing: border-box;
    height: 4px;
    margin: 6px 0;
    width: 100%;
    transition: all 0.5s ease-out;
}

.menu_open #menu_icon .line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px); 
}
.menu_open #menu_icon .line:nth-child(2) {
    opacity: 0;
}
.menu_open #menu_icon .line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -8px); 
}

h1 {
    display: inline-block;
}

h1 a {
    color: #000;
}

h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

.content_wrapper {
    position: relative;
}

.menu {
    background: #343A40;
    color: #EBECEC;
    height: calc(100vh - 70px);
    left: 0;
    overflow-y: scroll;
    position: absolute;
    top: -100vh;
    transition-duration: 1s;
    width: 100%;
    z-index: 99;
}

.menu a {
    color: #fff;
}

.menu_open .menu {
    top: 0;
}

.menu_open #menu_icon {
    position: absolute;
    right: 20px;
}

.menu li {
    padding: 20px;
}

.header .actions {
    position: absolute;
    right: 70px;
    top: 25px;
}

.header .actions img {
    width: 30px;
}

.content {
    padding: 10px;
}

.block {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    margin: 10px 10px 60px 10px;
}

.block.center {
    margin: auto;
    max-width: 400px;
    width: 100%;
}

.block h3 {
    background: #FFC107;
    border-radius: 10px 10px 0 0;
    padding: 20px;
}

.block .block_content, .block form {
    padding: 20px;
}

label {
    display: inline-block;
    font-weight: bold;
    margin-bottom: 5px;
    width: 200px;
}

input, select {
    border: 1px solid #ced4da;
    border-radius: 10px;
    padding: 10px;
}

input[type=text], input[type=password], input[type=file], textarea, select {
    box-sizing: border-box;
    width: 100%;
}

input[type=submit] {
    background: #FFC107;
    padding: 10px 20px;
}

textarea {
    height: 200px;
    max-width: 100%;
}

.lnk_forgot_pwd {
    text-align: right;
}

.lnk_forgot_pwd a {
    color: #666;
    font-size: 0.8em;
}

p, form div {
    margin-bottom: 15px;
}

.error, .error a {
    background: #dc3545;
    color: #fff;
}

.warning {
    background: #ffc107;
}

.success {
    background: #28a745;
}

.error, .warning, .success {
    border-radius: 20px;
    margin: 10px auto 30px;
    padding: 20px;
    text-align: center;
    width: 80%;
}

table {
    width: 100%;
}

table tr {
    border: 1px solid #DEE2E6;
    background: #fff;
}

table tr:nth-child(2) {
    background: #F2F2F2;
}

table tr:hover {
    background: #ECECEC;
}

table td, table th {
    padding: 10px;
}

table th {
    font-weight: bold;
    text-align: left;
}

table.with_actions td:last-of-type {
    text-align: right;
}

table.with_actions td:last-of-type a {
    border-radius: 5px;
    color: #fff;
    display: inline-block;
    margin-left: 5px;
    padding: 5px;
    text-align: center;
    text-decoration: none;
    width: 65px;
}

.edit {
    background: #138496;
}

.delete {
    background: #dc3545;
    color: #fff;
}

table.with_actions td .empty {
    display: inline-block;
    width: 80px;
}

a.add {
    background: #28A745;
    box-shadow: 3px 3px 3px #218838;
    border-radius: 10px;
    color: #fff;
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
}

.slideimg {
    max-height: 200px;
}

.breadcrumbs {
    background: #fff;
    font-size: 10px;
    padding: 10px;
}

.dataTables_wrapper {
    margin: 20px;
}

.dataTables_wrapper select, .dataTables_wrapper label, .dataTables_wrapper input {
    vertical-align: middle;
    width: auto;
}

input[type=number] {
    width: 40px;
}

.block.sales form {
    padding: 0;
}

.block.sales p {
    padding: 10px 10px 0 10px;
    text-align: right;
}

input.changed {
    border: 1px solid #ff0000;
}

.sales h3 form {
    display: inline-block;
    vertical-align: middle;
}
.sales h3 input, .sales h3 select {
    width: auto;
}

.sales h3 input[type=submit] {
    background: #D9A406;
}

.sales h3 a {
    color: #0000ff;
}

fieldset {
    border: 1px solid #ccc;
    margin-bottom: 20px;
    padding: 10px;
}

fieldset legend {
    font-weight: bold;
    text-decoration: underline;
}

.r {
    text-align: right;
}