﻿.grid {
    display: inline-block;
    min-width: 100%;
    margin-bottom: 10px;
    overflow-x: auto;
}

.grid .grid-toolbar
{
    text-align: right;
    font-size: 0px;
    margin-bottom: 10px;
}

    .grid .grid-toolbar > * {
        font-size: 14px;
    }

    .grid .grid-toolbar .grid-filter
    {
        display: inline-block;
    }

    .grid .grid-toolbar .grid-filter input[type='text']
    {
        display: inline-block;
        margin-left: 3px;
    }    

    .grid .grid-toolbar .grid-actions
    {
        float: left;
    }

    .grid .grid-toolbar .input-cell
    {
        display: inline-block;
        padding: 2px;        
    }

    .grid .grid-toolbar .input-cell.grid-page-size
    {
        width: 65px;
    }

    .grid .grid-toolbar .input-cell
    {
        min-width: 150px;
        margin-right: 3px;
        margin-bottom: 0px;
    }

    .grid .grid-toolbar .search-field {
        position: relative;
        padding-right: 23px;
        margin-right: 0px;
        min-width: 0px;
    }

.search-field:after {
    position: absolute;
    top: 6px;
    right: 5px;
    font-size: 20px;
    font-family: 'Font Awesome 5 Pro';
    content: "\f002";
    color: #666666;
}


    .grid .grid-toolbar .search-field input {
        width: 100px;

        -moz-transition: width ease 0.3s;
        -o-transition: width ease 0.3s;
        -webkit-transition: width ease 0.3s;
        transition: width ease 0.3s;
    }

    .grid .grid-toolbar .search-field input:focus {
        width: 250px;
    }

    .grid .grid-toolbar .search-field .search-submit {
        position: absolute;
        right: 5px;
        top: 3px;
        color: #222222;
    }

.grid > table
{
    width: auto;
    min-width: 100%;
    border-spacing: 0px;
    border-collapse: collapse;
    background-color: #FFFFFF;
}

    .grid > table tr th {
        font-family: Poppins, Arial, sans-serif;
        font-weight: 600;
        padding: 0px 10px 0px 10px;
        background: #eee none repeat-x top left;
        text-align: left;
        color: #222;
        height: 42px;
        line-height: 42px;
        cursor: pointer;
        white-space: nowrap;
        text-wrap: avoid;
    }

    .grid > table tr th:first-child {
        border-radius: 5px 0px 0px 0px;
    }

    .grid > table tr th:last-child {
        border-radius: 0px 5px 0px 0px;
    }

    .grid > table tr th a {
        color: #FFFFFF;
    }

.grid > table tr td
{
    padding: 10px;
    white-space: nowrap;
    text-wrap: avoid;
    line-height: 22px;
    vertical-align: top;
}

    .grid > table tr:nth-child(2n) td {
        background-color: #fafafa;
    }

.grid > table tr td.no-wrap {
    white-space: nowrap;
    text-wrap: avoid;
}

.grid > table tr th.right,
.grid > table tr td.right,
.grid > table tr td.right input {
    text-align: right;
}

.grid > table tr td input[type='text'],
.grid > table tr td select
{
    display: block;
    border: 0px none transparent;
    background-color: transparent;
    padding: 0px;
    width: 100%;
}

.grid > table tr td.grid-action-cell
{
    text-align: right;
    width: 40px;
    vertical-align: middle;
}

.grid > table tr td.grid-date-cell
{
    text-align: center;
    width: 65px;
}

    .grid .grid-footer
    {
        background: #eee;
        padding: 10px;
        color: #FFFFFF;
        border-top: 1px solid #fff;
        border-radius: 0px 0px 5px 5px;
    }

    .grid .grid-footer a
    {
        display: inline-block;
        text-align: center;
        width: 26px;
        height: 26px;
        margin-right: 7px;
        line-height: 26px;
        border: 1px solid #222;
        color: #222;
        cursor: pointer;
        border-radius: 5px;
    }

    .grid .grid-footer a:hover,
    .grid .grid-footer a.active
    {
        color: #fff;
        background-color: #005788;
        border-color: #005788;
    }

    /*.grid table .pager
    {
        text-align: right;
        font-size: 12px;
    }

    .grid table .pager a,
    .grid table .pager span
    {
        display: inline-block;
        padding: 2px 4px 2px 4px;
        color: #FFFFFF;
        background-color: #214D68;
        border: 1px solid #214D68; 
        margin-left: 2px;
    }

    .grid table .pager a:hover,
    .grid table .pager span.current
    {
        background-color: #FFFFFF;
        color: #214D68;
    }*/

.grid-hidden-page
{
    display: none;
}

.grid-hidden-filter
{
    display: none;
}

/*#region Resize Handles */

th
{
    
}

    th a.resize
    {
        display: block;
        float: right;
        width: 5px;
        height: 100%;
        margin-right: -9px;
        cursor: w-resize;
        z-index: 50;
    }

/*#endregion */

/*#region Filter Dialog */


.grid-filter-dialog
{
    font-size: 14px;
    position: absolute;
    width: 250px;
    background-color: #FFFFFF;
    padding: 0px 10px 10px 10px;
    text-align: left;
    border-radius: 0px 0px 3px 3px;
    z-index: 1000;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
}

.grid-filter-dialog strong
{
    display: block;
    padding: 10px;
    margin: 0px -10px 0px -10px;
    color: #222;
    text-transform: uppercase;
    background-color: #eee;
    margin-bottom: 10px;
}

    .grid-filter-dialog div
    {
        margin-bottom: 10px;
    }


/*#region Mobile Version */

body.small .grid table {
    display: block;
}

body.small .grid table thead {
    display: none;
}

body.small .grid table tbody {
    display: block;
}

body.small .grid table tfoot {
    display: block;
}

body.small .grid table tbody tr {
    display: block;
    border-radius: 2px;
    background-color: #DDDDDD;
    padding: 5px;
    margin-bottom: 10px;
}

    body.small .grid table tbody tr:nth-child(2n) {
        background-color: #EEEEEE;
    }

    body.small .grid table tbody tr.grid-hidden-page,
    body.small .grid table tbody tr.grid-hidden-filter {
        display: none;
    }

body.small .grid table tbody tr td {
    display: block;
    text-align: left;
    vertical-align: top;
    border: 0px none transparent;
   
    white-space: normal;
    text-wrap: normal;
}

    body.small .grid table tbody tr td input[type='text'],
    body.small .grid table tbody tr td select {
        display: inline-block;
        width: auto;
        text-align: left;
        background-color: #FFFFFF !important;
        padding: 3px;
        border-radius: 3px;
    }

.grid table tbody tr td strong.small-visible {
    display: none;
}

body.small .grid table tbody tr td strong.small-visible {
    display: block;
    margin-bottom: 3px;
}

/*#endregion */

/*.grid-filter-dialog .grid-filter-dialog-input
{    
    background-color: #FFFFFF;
    border: 1px solid #CCCCCC;
    padding: 1px;
    overflow: hidden;
}

    .grid-filter-dialog .grid-filter-dialog-input input,
    .grid-filter-dialog .grid-filter-dialog-input select
    {
        display: block;
        padding: 0px;
        margin: 0px;
        width: 100%;        
        border: 0px none transparent;
    }*/

/*#endregion */