﻿/* JW 8/1/2020 */
/*
.customized-grid {
  overflow: hidden;
  overflow-x: auto;
  border-collapse: collapse;
  border-radius: 10px 10px 10px 10px;
  border-style: hidden;
  box-shadow: 0 0 0 1px #DEE2E6;
  min-height: 200px;
}

.customized-grid {
    background: #fff;
}
*/
.customized-grid table thead th,
#dataTable thead th,
#user_grid thead th,
#login_history_grid th,
#tenants_usage_grid th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.customized-grid table thead tr:nth-of-type(2) th, 
#dataTable thead tr:nth-of-type(2) th, 
#user_grid thead tr:nth-of-type(2) th {
    top: 50px;
}

.table-responsive table tfoot,
.table-responsive table tfoot th,
.table-responsive table tfoot td {
    position: sticky;
    bottom: 0;
    background: rgb(226, 226, 226);
    z-index: 2;
    border: none;
}
.customized-grid .devided-panel {
    width: 100%;
}
#grid_wrapper {
  overflow: auto;
  min-height: 200px;
  /*  border-radius: 5px;
  box-shadow: 0px 8px 16px rgb(0 0 0 / 5%), 0px 4px 8px rgb(0 0 0 / 10%);*/
}
#grid_wrapper .nav-tabs > li.active > a {
    color: #333;
}

  .customized-grid .dataTables_paginate .paginate_button {
    margin: 0;
    border: 1px solid #DEE2E6;
    box-sizing: border-box;
    border-radius: 0px;
    border-collapse: collapse;
  }

  .customized-grid .dataTables_paginate .ellipsis {
    margin: 0;
    border: 1px solid #DEE2E6;
    box-sizing: border-box;
    border-radius: 0px;
    border-collapse: collapse;
    padding-bottom: 8px;
    padding-top: 7px;
  }

  .customized-grid #dataTable_paginate {
    margin-bottom: 24px;
    width: 100%;
    display: -webkit-box !important;
    display: -moz-box !important;
    display: -ms-flexbox !important;
    display: -webkit-flex !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

#dataTable_wrapper .dataTables_paginate .paginate_button:hover {
  background-color: #2E71B6 !important;
  background: #2E71B6 !important;
  color: white !important;
}

#dataTable_wrapper .dataTables_paginate .paginate_button.current {
  background-color: #2E71B6 !important;
  border-color: #2E71B6 !important;
  background: #2E71B6 !important;
  color: white !important;
}

#dataTable_wrapper .dataTables_paginate .previous {
  border: 1px solid #DEE2E6;
  box-sizing: border-box;
  border-radius: 4px 0px 0px 4px;
}

#dataTable_wrapper .dataTables_paginate .next {
  border: 1px solid #DEE2E6;
  box-sizing: border-box;
  border-radius: 0px 4px 4px 0px;
}

.customized-grid tfoot td {
  border-bottom: none !important;
}

.customized-grid .dtr-details {
  width: 100%;
}

.customized-grid .dtr-title {
  min-width: 30% !important;
}

.customized-grid table {
  float: left;
}

  .customized-grid table.tl-table th {
    font-weight: bold;
    font-size: 12px;
    border: none;
    border-bottom: 1px solid #C4C4C4;
  }

  .customized-grid table.tl-table th {
    background-color: white;
    color: #000000;
  }

    .customized-grid table.tl-table th a {
      font-weight: bold;
      font-size: 12px;
      border: none;
    }

    .customized-grid table.tl-table th a {
      color: #000000;
      background-color: white;
    }

  .customized-grid table.tl-table td {
    font-weight: normal;
    font-size: 12px;
    border: none;
    border-bottom: 1px solid #C4C4C4;
  }

  .customized-grid table.tl-table td {
    color: #000000;
  }

/*.customized-grid tbody tr:nth-child(odd) {
  background: #F9F9F9;
}*/

#columnsOrdering {
  list-style-type: none;
  padding: 22px;
}

  #columnsOrdering li {
    box-shadow: 2px 1px 7px rgba(36, 54, 72, 0.17);
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 8px;
  }

.select-panel-columns {
    width: 330px;
    float: left;
}

  .select-panel-columns #btnReset {
    margin-bottom: 15px;
  }

  .select-panel-columns #Search {
    cursor: pointer;
    text-decoration: none;
  }

.select-panel .ordering-arrows {
    margin-top: 30px;
}

.select-panel-columns .columns-header, .select-panel-filters .columns-header {
    border-bottom: 1px solid #DEE2E6;
    background-color: #e6ebf5;
    margin-bottom: 15px;
}

    /*
.select-panel-columns .columns-body {
  padding: 0px 22px 22px 22px;
}

.select-panel-columns .actions-wrapper {
  padding: 0px 22px 22px 22px;
}
*/
.select-panel-filters {
    width: 330px;
    float: left;
}

.customized-grid .right-side {
    overflow: hidden;
    height: 100%;
    min-height: 100%;
    border-collapse: collapse;
    border-radius: 0px 10px 10px 0px;
    border-style: hidden;
    box-shadow: 0 0 0 1px #DEE2E6;
    position: relative;
    float: left;
    width: 37px;
}

.customized-grid .right-side {
    background-color: white;
}

#navbar_side #floater_grid {
    background-color: #AA4A0A;
    position: absolute;
    bottom: 0;
    padding: 20px 8px 20px 0;
    border-top: 1px solid #9B4309;
}

ul#floater_grid {
  list-style-type: none;
  display: flex;
  margin: 0;
  padding-left: 8px;
}

ul#floater_grid:empty {
  display: none;
}

ul#floater_grid li a.dropdown-toggle,
#gridSelectContainer button,
ul#floater_grid li a.extra-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #406770;
  border-radius: 3px;
  transition: all 0.4s ease
}

ul#floater_grid li a.dropdown-toggle:hover,
#gridSelectContainer button:hover,
ul#floater_grid li a.extra-icon:hover {
  background: #6DA1AD;
  color: #fff;
}


ul#floater_grid li.open a.dropdown-toggle,
#gridSelectContainer.active > button,
ul#floater_grid li a.extra-icon.open {
  background: #406770;
  color: #fff;
}

#auto_refrsh_link, a.extra-icon {
  font-size: 16px;
}

#gridSelectAdditional {
  display: none;
}

.active #gridSelectAdditional,
#gridSelectContainer {
  display: flex;
  align-items: center;
}

#columnContainer .columns-body .form-group {
  background: rgba(0,0,0,0.075);
}
/*
#floater_grid {
  position: fixed;
  top: 20%;
  right: 1em;
  margin: 10px;
}

#floater_grid > div {
    border-radius: 0;
    border: none !important;
    background-color: rgba(0,0,0,0.1);
    color: #ff7f2f;
    cursor: pointer;
    font-size: 9px;
    text-transform: uppercase;
    text-align: center;
    display: flex;
    flex-flow: column;
    padding: 15px;
    letter-spacing: 0.8px;
    min-width: 74px;
    z-index: 1000;
}
*/
/*.filters-no-results {
  position: fixed;
  top: 50%;
  right: 0;
  text-align: center;
  padding: 50px 9px 50px 9px;
  border: 1px solid #DEE2E6;
  border-radius: 8px 0 0 8px;
  font-size: 20px;
  color: #ff7f2f;
  background-color: #C4C4C4;
  font-weight: bolder;
  cursor: pointer;
}

  .filters-no-results span {
    -ms-transform: rotate(90deg);
    -ms-transform-origin: 50% 50%;
    writing-mode: vertical-rl;
    text-orientation: mixed;
  }

.filters-no-results {
  background-color: white;
}*/
.customized-grid .right-side .active {
  border-left: 1px solid #2E71B6;
}

.select-panel #btnApply {
    height: 40px;
    padding: 10px;
    font-weight: normal;
    font-size: 16px;
    align-items: center;
    text-align: center;
    /*  background: #2E71B6;*/
    /*  border-radius: 4px;*/
    color: #FFF;
}

.select-panel #btnReset {
    height: 40px;
    padding: 10px;
    font-weight: normal;
    font-size: 16px;
    align-items: center;
    text-align: center;
    /*  background: #DEE2E6;*/
    /*  border-radius: 4px;*/
    color: #2E71B6;
}

.select-panel-filters .has-feedback label ~ .form-control-feedback,
.select-panel-columns .has-feedback label ~ .form-control-feedback {
    top: 34px;
}

/* Customize the label (the container) */
.checkbox-container,
.modal-list {
  border: 1px solid #bdbdbd;
  border-width: 0 1px 1px 1px;
  color: black;
  display: block;
  position: relative;
  padding: 4px 0 4px 24px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-weight: normal;
  font-size: 14px;
  line-height: 16px;
  margin-bottom: 0;
}
.modal-list {
  padding: 4px 0;
  cursor: default;
}

.checkbox-container:nth-child(odd),
.modal-list:nth-child(odd) {
  background: #fff;
}

.checkbox-container:first-of-type,
.modal-list:first-of-type {
  border-top-width: 1px;
}

.checkbox-container:hover,,
.modal-list:hover {
  background: rgba(0,0,0,0.1);
}

label.checkbox-container.activeRow {
  background-color: rgba(49, 121, 162, 0.2);
}
/*  .checkbox-container .activeRow {
text-decoration: underline;
font-weight: bolder;
font-size: large;
}*/
.checkbox-container > span:first-of-type,
.modal-list > span:first-of-type {
  display: inline-block;
  width: 100%;
  padding: 8px;
}

/* Hide the browser's default checkbox */
.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: 50%;
    left: 8px;
    height: 16px;
    width: 16px;
    background-color: #eee;
    border: 1px solid #DEE2E6;
    border-radius: 3px;
    transform: translate(0, -50%);
}

.checkBoxes {
  width: 16px;
  height: 16px;
  border-color: #1E4E69;
  border-radius: 3px;
}

/* On mouse-over, add a grey background color */
.checkbox-container:hover input ~ .checkmark {
    background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.checkbox-container input:checked ~ .checkmark {
  background: #355567;
  box-sizing: border-box;
  border: none;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 1px 1px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}


    /* JW 8/1/2020 */
    /* TODO: refactor against above existing CSS */
    /** floater_grid start*/
    @media screen and (max-width:479px) {
        .table-responsive {
            overflow: auto;
            border: none;
            margin-bottom: 0;
        }

        .table-responsive table {
            box-shadow: none;
        }

        .table-responsive table thead {
            display: none;
        }

        .table-responsive table th,
        .table-responsive table td {
            padding: 8px;
        }

        .table-responsive > .table > tbody > tr > td:first-of-type {
            padding-left: 8px;
            padding-right: 40px;
            text-align: left;
            background: #e6ebf5;
            font-weight: bold;
        }

        .table-responsive table td:first-of-type:before {
            content: '';
        }

        .table-responsive table td:before {
            content: attr(data-th);
        }

        .table-responsive > .table > tbody > tr > td {
            padding-left: 50%;
            white-space: normal;
            border: none;
            text-align: right;
            /* find alternative or truncate */
            /*overflow: hidden; */
            min-height: 36px;
        }

        .table-responsive > .table > tbody > tr > td:empty {
            display: none;
        }

        .table-responsive table td:before {
            position: absolute;
            left: 8px;
            font-weight: bold;
        }

        .table-responsive table td[data-group] {
            background: rgba(0,0,0,0.05);
        }

        .table-responsive table td[data-firstcolumn] {
            margin-top: 28px;
        }

        .table-responsive table td[data-firstcolumn]:after {
            content: attr(data-group);
            position: absolute;
            top: -20px;
            left: 0;
            padding-left: 8px;
            border-bottom: 1px solid rgba(0,0,0,0.075);
            width: 100%;
            text-align: left;
            font-size: 11px;
            text-transform: uppercase;
            color: rgba(0,0,0,0.5);
            height: 20px;
        }

        .table-responsive table tr,
        .table-responsive table td {
            display: block;
        }

        .table-responsive table tbody tr {
            background: #fff;
            position: relative;
            /*margin-bottom: 16px;*/
            box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
            border: 1px solid #ddd;
        }

        .table-responsive > .table > tbody > tr > td:empty {
            display: none;
        }

        .table-responsive table td {
            border-top: none;
        }

        .table-responsive table td.actions {
            position: absolute;
            top: 0;
            right: 0;
            border: none;
            background: none;
        }

        .table-responsive > .table > tbody > tr > td[data-th="Actions"] {
            position: absolute;
            top: 4px;
            right: 8px;
            padding: 0;
        }

        .table-responsive > .table > tbody > tr > td[data-th="Actions"]:before {
            display: none;
        }
        .grid tr:hover {
            background: #fff;
        }
    }
    /* floater_grid end*/
    #user_grid ul.grid-list {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    #user_grid ul.grid-list li {
        padding: 5px 0;
    }
