.pagination {
    display: inline-block;
    margin-top: 40px;
}

.pagination-container {
    text-align: center;
}

.pagination a {
    color: #940000 !important;
    float: left;
    font-size: 16px;
    padding: 8px 16px;
    transition: background-color .3s;
    border: 2px solid #ccc;
    margin: 0 2px;
    text-decoration: none !important;
    font-family: 'Colossalis';
    font-weight: normal;
}

.pagination a.active {
    background-color: #940000;
    color: white;
    border: 2px solid #940000;
}

.btn-pg-arrow {
    border: 2px solid #fff !important;
    color: #940000 !important;
}

.btn-pg-arrow:hover {
    background: #fff !important;
    border: 2px solid #ccc !important;
    color: #940000 !important;
}

.btn-pg-arrow-first{
    content: '<<';
}
/* last arrow hidden because of api preventing access to last page with large data sets*/
.btn-pg-arrow-last{
   display:none !important;
   border:none !important;
   visibility: hidden;
   cursor:pointer;
}
.btn-pg-arrow-prev{
    content: '<';
}
.btn-pg-arrow-next{
    content: '>';
    /*to compensate for the loss of last*/
    padding-right: 57px !important;
}

.pagination a:hover:not(.active) {
    background-color: #940000;
    color: #fff;
}

.pagination a.border-0:hover {
    background: #fff;
}

.pagination a.border-0 {
    padding: 8px 8px;
    margin: 0px;
}

.pagination a.border-0:first-child {
    padding: 8px 16px 8px 8px;
}

.pagination a.border-0.bdr-spc {
    padding: 8px 8px 8px 16px;
}

.pagination a.border-0.no-bg {
    padding: 8px 0px;
}


.pagination {
    display: inline-block;
    padding-left: 0;
    margin: 20px 0;
    border-radius: 4px;
}

.pagination > li {
    display: inline;
}

.pagination > li > a, .pagination > li > span {
    position: relative;
    float: left;
    padding: 6px 12px;
    margin-left: -1px;
    line-height: 1.42857143;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #ddd;
}

.pagination > li:first-child > a, 
.pagination > li:first-child > span {
    margin-left: 0;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.pagination > li:last-child > a, 
.pagination > li:last-child > span {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.pagination > li > a:focus, 
.pagination > li > a:hover, 
.pagination > li > span:focus, 
.pagination > li > span:hover {
    z-index: 2;
    color: #23527c;
    background-color: #eee;
    border-color: #ddd;
}

.pagination > .active > a, 
.pagination > .active > a:focus, 
.pagination > .active > a:hover, 
.pagination > .active > span, 
.pagination > .active > span:focus, 
.pagination > .active > span:hover {
    z-index: 3;
    color: #fff !important;
    cursor: default;
    background-color: #940000;
    border-color: #940000;
}

.pagination > .disabled > a, 
.pagination > .disabled > a:focus, 
.pagination > .disabled > a:hover, 
.pagination > .disabled > span, 
.pagination > .disabled > span:focus, 
.pagination > .disabled > span:hover {
    color: #940000;
    cursor: not-allowed;
    background-color: #fff;
    border-color: #ddd;
}

.pagination-lg > li > a, 
.pagination-lg > li > span {
    padding: 10px 16px;
    font-size: 18px;
    line-height: 1.3333333;
}

.pagination-lg > li:first-child > a, 
.pagination-lg > li:first-child > span {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.pagination-lg > li:last-child > a, 
.pagination-lg > li:last-child > span {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.pagination-sm > li > a, 
.pagination-sm > li > span {
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.5;
}

.pagination-sm > li:first-child > a, 
.pagination-sm > li:first-child > span {
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
}

.pagination-sm > li:last-child > a, 
.pagination-sm > li:last-child > span {
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
}

.pager {
    padding-left: 0;
    margin: 20px 0;
    text-align: center;
    list-style: none;
}

.pager li {
    display: inline;
}

.pager li > a, .pager li > span {
    display: inline-block;
    padding: 5px 14px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 15px;
}

.pager li > a:focus, .pager li > a:hover {
    text-decoration: none;
    background-color: #eee;
}

.pager .next > a, .pager .next > span {
    float: right;
}

.pager .previous > a, 
.pager .previous > span {
    float: left;
}

.pager .disabled > a, 
.pager .disabled > a:focus, 
.pager .disabled > a:hover, 
.pager .disabled > span {
    color: #777;
    cursor: not-allowed;
    background-color: #fff;
}

.label {
    display: inline;
    padding: .2em .6em .3em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25em;
}

a.label:focus, a.label:hover {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.label:empty {
    display: none;
}

.btn .label {
    position: relative;
    top: -1px;
}

.label-default {
    background-color: #777;
}

.label-default[href]:focus, 
.label-default[href]:hover {
    background-color: #5e5e5e;
}


.dropdown-item1 {
    display: block;
    width: 100%;
    padding: .25rem 1.5rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}

.dropdown-item1:focus, .dropdown-item1:hover {
    color: #16181b;
    text-decoration: none;
    background-color: #f8f9fa;
}

.dropdown-item1.active, .dropdown-item1:active {
    color: #fff;
    text-decoration: none;
    background-color: #007bff;
}

.dropdown-item1.disabled, .dropdown-item1:disabled {
    color: #6c757d;
    background-color: transparent;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-header {
    display: block;
    padding: .5rem 1.5rem;
    margin-bottom: 0;
    font-size: .875rem;
    color: #6c757d;
    white-space: nowrap;
}


.webGrid tfoot a {
    color: #940000;
    float: left;
    font-size: 16px;
    padding: 8px 16px;
    transition: background-color .3s;
    border: 2px solid #ccc;
    margin: 0 2px;
    text-decoration: none !important;
    font-family: 'Colossalis';
    font-weight: normal;
}

tfoot {
    text-align: center;
}

tfoot td {
    display: inline-block;
    -webkit-padding-before: 50px;
    -webkit-padding-after: 10px;
}

.webGrid tfoot a.active,
.webGrid tfoot a:hover {
    background-color: #940000;
    color: white;
    border: 2px solid #940000;
    text-decoration: none !important;
}

.webGrid tfoot a:hover:not(.active) {
    background-color: #940000;
    color: #fff;
}

.webGrid tfoot a.border-0:hover {
    background: #fff;
}

.webGrid tfoot a.border-0 {
    padding: 8px 8px;
    margin: 0px;
}

.webGrid tfoot a.border-0:first-child {
    padding: 8px 16px 8px 8px;
}

.webGrid tfoot a.border-0.bdr-spc {
    padding: 8px 8px 8px 16px;
}

.webGrid tfoot a.border-0.no-bg {
    padding: 8px 0px;
}

.webGrid tfoot {
    padding-left: 0;
    margin: 20px 0;
    border-radius: 4px;
    margin-top: 40px;
}

.currentPage {
    background-color: #940000 !important;
    color: #fff !important;
    float: left;
    font-size: 16px;
    padding: 8px 16px;
    transition: background-color .3s;
    border: 2px solid #ccc;
    margin: 0 2px;
    text-decoration: none !important;
    font-family: 'Colossalis';
    font-weight: normal;
}

.currentPage:hover:not(.active) {
    background-color: #940000;
    color: #fff;
    border: 2px solid #ccc;
}

@media (max-width: 991px){
    .webGrid tfoot a {
        padding: 5px 10px;
    }
    
    .btn-pg-arrow-first,
    .btn-pg-arrow-last,
    .btn-pg-arrow-prev,
    .btn-pg-arrow-next{
        padding-left: 5px !important;
        font-size: 14px !important;
        padding-right: 5px !important;
    }
}