.modern-layout .grid-unselected-actions {
    float: right;
}

.modern-layout .visible-selected {
    display: none;
}

.modern-layout .grid-actions {
    height: 40px;
}

/* Dashboard top buttons and Dashboard pagination buttons */

.modern-layout a.prev,
.modern-layout a.next,
.modern-layout .button {
    border-radius: 4px;
    background-color: #f2f2f2;
    font-weight: bold;
    font-style: normal;
    font-stretch: normal;
    line-height: normal;
    letter-spacing: normal;
    text-align: center;
    color: #000000;
    border-left: 0;
    display: inline-block;
    margin: 0 4px;
    cursor: pointer;
}
.modern-layout .button {
    padding: 12px;
}
.modern-layout a.prev.active,
.modern-layout a.next.active,
.modern-layout .button:hover,
.modern-layout .button.active {
    background-color: #60a632;
    color: #ffffff;
}
.modern-layout .button:active {
    background-color: #39821e;
}
.modern-layout a.prev.active:hover,
.modern-layout a.next.active:hover,
.modern-layout .button.active:hover {
    background-color: #90d24b;
}
.modern-layout .button.active:active {
    background-color: #60a632;
}
.modern-layout .button.disabled,
.modern-layout .button.disabled:hover
{
    background-color: #f2f2f2;
    color: #cecece;
    cursor: default;
}

/* Dashboard table */

.modern-layout table.dgridtable {
    width: 100%;
    margin-top: 12px;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.modern-layout .dgridtable a {
    color: #000000;
}

/* override 2013/datagrid.css */
.modern-layout .dgridtable th,
.modern-layout .dgridtable td {
    border-bottom: none;
    padding: 0 9px;
    text-align: left;
    line-height: 100%;
    vertical-align: middle;
}

.modern-layout .dgridtable th:first-of-type,
.modern-layout .dgridtable td:first-of-type {
    border-radius: 4px 0 0 4px;
}
.modern-layout .dgridtable th:last-of-type,
.modern-layout .dgridtable td:last-of-type {
    border-radius: 0 4px 4px 0;
}

/* Dashboard table header row */

.modern-layout .dgridtable thead tr {
    font-weight: bold;
    font-style: normal;
    font-stretch: normal;
    line-height: 1.33;
    letter-spacing: normal;
    color: #000000;
    height: 40px;
    border-radius: 4px;
    background-color: #f2f2f2;
}

.modern-layout .dgridtable thead th:not(:first-child) {
    border-left: solid 1px #dddddd;
}

.modern-layout .dgridtable thead th.checkbox-column {
    width: 18px;
}

.modern-layout .dgridtable thead th.kebab-column {
    border-left: none;
    width: 16px;
}

.modern-layout .dgridtable thead th a {
    width: 100%;
    display: inline-block;
}

.modern-layout .dgridtable thead th a span {
    float: right;
    width: 16px;
    height: 16px;
    background: url(/images-2019/down-grey.svg) no-repeat right;
    background-size: 16px 16px;
    margin-top: 2px;
}

.modern-layout .dgridtable thead th a.active span,
.modern-layout .dgridtable thead th a:hover span {
    background-image: url(/images-2019/down-black.svg);
}

.modern-layout .dgridtable thead th a.active.desc:not(:hover) span,
.modern-layout .dgridtable thead th a.active:hover:not(.desc) span {
    transform: rotate(180deg);
}

/* Dashboard table regular row */

.modern-layout .dgridtable tbody tr {
    height: 48px;
    background-color: #fafafa;
}

.modern-layout .dgridtable tbody tr.checked,
.modern-layout .dgridtable tbody tr.checked a {
    background-color: #61a830;
    color: #ffffff;
}

/* The border must be present in rows to keep common width.
   Make it the same color as background */
.modern-layout .dgridtable tbody tr td {
    border-top: solid 1px #fafafa;
    border-bottom: solid 1px #fafafa;
}
.modern-layout .dgridtable tbody tr td:first-of-type {
    border-left: solid 1px #fafafa;
}
.modern-layout .dgridtable tbody tr td:last-of-type {
    border-right: solid 1px #fafafa;
}
/* Appear the border on hover */
.modern-layout .dgridtable tbody tr:hover td {
    border-color: #dddddd;
}


/* Kebab menu */

.modern-layout .dgridtable .kebab-menu {
    position: relative;
}
.modern-layout .dgridtable .kebab-menu > div {
    position: absolute;
    white-space: nowrap;
    top: -31px;
    right: -6px;
    border-radius: 4px;
    box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.3);
    background-color: #ffffff;
    line-height: 3.08;
    z-index: 2;
}

.modern-layout .dgridtable .kebab-menu > div > ul li {
    border-spacing: 0;
    display: table;
    width: 100%;
}
.modern-layout .dgridtable .kebab-menu > div > ul li a {
    display: table-cell;
    padding: 0 14px;
}

.modern-layout .dgridtable .kebab-menu > div > ul li:hover a {
    background-color: #5CA644;
    color: #FFFFFF;
    text-decoration: none;
}

.modern-layout .dgridtable a.kebab-link {
    width: 16px;
    height: 16px;
    background: url("/images-2019/more-grey.png") no-repeat;
    background-size: 16px 16px;
    display: inline-block;
}

/* Table Pagination */

.modern-layout .arrow-pager-container div {
    height: 40px;
}
.modern-layout .arrow-pager-container div:first-child {
    float: left;
    margin-right: 11px;
}

.modern-layout .arrow-pager-container a span {
    display: inline-block;
    background-size: contain;
    width: 21px;
    height: 21px;
    margin: 10px 0 0 -4px;
}

.modern-layout .arrow-pager-container a:not(.active) {
    cursor: default;
    display: inline-block;  /* For IE11/ MS Edge bug */
    pointer-events: none;
}

.modern-layout .arrow-pager-container a.prev span {
    background-image: url("/images-2019/left-grey.svg");
}

.modern-layout .arrow-pager-container a.prev.active span {
    background-image: url("/images-2019/left-white.svg");
}
.modern-layout .arrow-pager-container a.prev.active:hover span {
    background-image: url("/images-2019/left-white.svg");
}

.modern-layout .arrow-pager-container a.next span {
    background-image: url("/images-2019/right-grey.svg");
    margin-left: 4px;
}
.modern-layout .arrow-pager-container a.next.active span {
    background-image: url("/images-2019/right-white.svg");
}
.modern-layout .arrow-pager-container a.next.active:hover span {
    background-image: url("/images-2019/right-white.svg");
}

.modern-layout .arrow-pager-container a {
    width: 40px;
    height: 40px;
    float: left;
}

.modern-layout .arrow-pager-container a.prev {
    border-radius: 4px 0 0 4px;
}

.modern-layout .arrow-pager-container a.next {
    border-radius: 0 4px 4px 0;
    margin-left: 2px;
}

.modern-layout .arrow-pager-container span.pager-stats {
    line-height: 40px;
}

.modern-layout .input-pager-container {
    text-align: center;
}

.modern-layout .input-pager-container form {
    width: 40px;
    display: inline-block;
}
.modern-layout .input-pager-container form input {
    width: 34px;
    height: 34px;
    text-align: center;
}
.modern-layout .input-pager-container a {
    width: 90px;
    height: 40px;
    opacity: 0.2;
    line-height: 40px;
}
.modern-layout .input-pager-container a:hover {
    text-decoration: none;
}
.modern-layout .input-pager-container a.active {
    opacity: 1;
}
.modern-layout .input-pager-container a:not(.active) {
    cursor: default;
    display: inline-block;  /* For IE11/ MS Edge bug */
    pointer-events: none;
}

a, input[type=submit] {
    text-decoration: none;
}


/* Center-oriented Form */

.tablelessform label.element {
    width: 30%;
    margin-top: 25px;
    font-weight: normal;
    text-align: right;
}
.tablelessform div.element {
    margin-left: 30%;
    padding-left: 20px;
}

/* Form default controls */

.tablelessform input,
.tablelessform textarea,
.tablelessform select,
.tablelessform label {
    margin: 10px 0;
    color: #1a1919;
}

.tablelessform select,
.tablelessform input[type="text"],
.tablelessform input[type="password"],
.tablelessform input[type="email"]
{
    width: 200px;
    height: 40px;
    border: solid 1px #b3b3b3;
    background-color: #ffffff;
}

.tablelessform input[type="text"],
.tablelessform input[type="password"],
.tablelessform input[type="email"]
{
    box-sizing: border-box;
    padding-left: 11px;
}
.tablelessform input::placeholder {
    color: #999999;
}

.tablelessform input[type="button"],
.tablelessform input[type="submit"] {
    width: 80px;
    height: 40px;
    margin: 10px 5px;
    border-left: 0; /* override form.css */
    border-radius: 4px;
    cursor: pointer;
}

.tablelessform input[type="button"] {
    background-color: #f2f2f2;
    color: #000000;
}

.tablelessform input[type="submit"],
.tablelessform input[type="button"].green,
.tablelessform input[type="button"]:hover {
    background-color: #60a632;
    color: #ffffff;
}
.tablelessform input[type="submit"]:hover,
.tablelessform input[type="button"].green:hover {
    background-color: #90d24b;
}

.tablelessform input[type="submit"]:active,
.tablelessform input[type="button"].green:active {
    background-color: #60a632;
}
.tablelessform input[type="button"].cancel:active {
    background-color: #39821e;
}

.tablelessform .submits-wrapper {
    margin-top: 20px;
}
.tablelessform .submits-wrapper .element {
    text-align: center;
    margin: unset;
    padding: unset;
}

/* Restore defaults for tagsinput */
.box-content .bootstrap-tagsinput input,
.box-content .bootstrap-tagsinput input:focus {
    font-size: 16px;
    height: 35px;
    border: none;
    box-shadow: none;
    outline: none;
    margin: 0;
    padding: 0;
}


/**************************************/
/************ Custom styles ***********/
/**************************************/

/* Customize tagsinput on the Employee dashboard page */
#grid-form .dgridtable .bootstrap-tagsinput {
    width: 98%;
    margin: 5px 0;
}

.element div.error {
    color: red;
    font-size: 14px;
    clear: none;
}
