/* RESPONSIVE */
/*
    Max width before this PARTICULAR table gets nasty. This query will take effect for any screen smaller than 760px and also iPads specifically.
    */
    @media only screen and (max-width: 760px), (min-device-width: 768px) and (max-device-width: 991px){
        /* Force table to not be like tables anymore */
        .table, .table thead, .table tbody, .table th, .table td, .table tr {
            display: block;
            border:none;
        }

        /* Hide table headers (but not display: none;, for accessibility) */
        .table thead tr {
            position: absolute;
            top: -9999px;
            left: -9999px;
        }

    .table tr {
      margin: 0 0 1rem 0;
    }

    .table tr:nth-child(odd) {
      background: #F8F8F8;
    }
    .table td:first-child {font-weight:600;}
    .table td:last-child {height:60px;font-weight:600;text-align:left}
    .table tfoot{display:none;}

    .table td {
      /* Behave  like a "row" */
      border: none;
      position: relative;
      /* padding-left: 50%; */
      /* height:60px; */
      border:none !important;
      padding-top:25px !important;
      margin-bottom:5px;
    }
    #machine.table td, #geo_field_data td{padding-top: 25px !important;}
    #machine.table td:last-child, #geo_field_data td:last-child{padding-top: 0 !important;}

    .table td:before {
            /* Now like a table header */
            position: absolute;
            /* Top/left values mimic padding */
            top: 0;
            left: 10px;
            width: 45%;
            padding-right: 10px;
            white-space: nowrap;
    }

    /*
    Label the data
    You could also use a data-* attribute and content for this. That way "bloats" the HTML, this way means you need to keep HTML and CSS in sync. Lea Verou has a clever way to handle with text-shadow.
    */
/*         th:nth-of-type(1):before { content: "S.No: "; text-align:left;text-transform: capitalize;}
        td:nth-of-type(1):before { content: "Name "; text-align:left;}
        td:nth-of-type(2):before { content: "Type";text-align:left; }
        td:nth-of-type(3):before { content: "Actions"; text-align:left;}
        td:nth-of-type(4):before { content: "Actions New"; text-align:left;}
        td:nth-of-type(5):before { content: "NPO? "; text-align:left;}
        td:nth-of-type(6):before { content: "Order Placed "; text-align:left;}
        td:nth-of-type(7):before { content: "Member Since "; text-align:left;}
        td:nth-of-type(8):before { content: ""; } */

/*      td:nth-of-type(9):before { content: "GPA"; }
        td:nth-of-type(10):before { content: "Arbitrary Data"; } */
    }

@media(max-width: 1199px) {

    .table-wrapper{padding: 20px 15px;}
    .table-title .add-new{
      padding: 10px 15px;
    }
    input.form-control, .nice-select{height: 36px !important;}
    .nice-select{line-height: 36px !important;}
    .wrapper .p-3{padding: 0 !important;}
    .form-control.search{max-width: 200px;}
    #machine{
      display: block;
      width: 100%;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      -ms-overflow-style: -ms-autohiding-scrollbar;
    }

}

@media(max-width: 1023px) {
  .col-md-2.text-md-right{padding-left: 0 !important;}

}

@media(max-width: 991px) {

  .rightSite-page{
    max-width: 800px;
    margin: auto;
  }

  .siteLogo{
    width: 120px;
    height: 120px;
  }
  .siteLogo img {
    max-width: 80px;
  }
  #sidebar ul li a{font-size: 15px;}

  table.table {
    border: 0;
  }

  .table caption {
    font-size: 1.3em;
  }

  table.table thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }

  table.table tr {
    /* border-bottom: 1px solid #ddd; */
    display: block;
    margin-bottom: 0.625em;
  }

  table.table td {
    border-bottom: 1px solid #ddd;
    display: block;
    font-size: 0.8em;
    text-align: left;
  }
  #machine.table td:first-child{
    text-align: left;
  }

    table.table td::before {
        /*
        * aria-label has no advantage, it won't be read inside a table
        content: attr(aria-label);
        */
        float: left;
        font-weight: 600;
        text-transform: uppercase;
        padding-bottom:10px;
        text-align: left;
    }

    table.table td:last-child {
        border-bottom: 0;
    }
    .btn.dropdown-toggle.btn-light{padding-left:10px;}
    #sidebar {
        margin-left: -180px;
    }
    #sidebar{min-width: 180px;max-width: 180px;}
    #sidebar.active {
        margin-left: 0;
    }
    .navbar {
        padding: 15px !important;
    }
    table.table .nice-select{float: none;}
    table.table tr th{border-top: none;}
    table.table tr th{text-align: left;font-weight: 600; color: #a2a2a2;}
    .report-table table.table tr td{text-align: left;}
    .table-title{padding: 10px 15px;}
    .table-title h2{margin:0 0 10px;}
    .table-title-top-space {height: calc(100vh - 150px);}
    .master_itemTable tr td:last-child{
      padding-top: 0 !important;
      height: auto;
      padding-bottom: 0;
      text-align: right;
    }
    .master_itemTable tr td:last-child::before{display: none;}
    table th, table td, table span, table.table td::before, table td input{font-size: 14px !important;}
    .table td span, .table td, .table th span{font-size: 16px !important;}
    .table-sm td, .table-sm th{padding: 10px 10px;}
    /* #tablename{padding-top: 0 !important;} */
        .master_itemTable tr td:last-child .d-flex.justify-content-center.align-items-center{
      -ms-flex-pack: flex-end!important;
      justify-content: flex-end!important;
    }
    #content{overflow-y:scroll;}
}

@media(max-width: 767px) {

  .siteLogo{
    width: 100px;
    height: 100px;
  }
  .siteLogo img {
    max-width: 80px;
  }
  .col-lg-6.d-flex{display: block !important;text-align: center;}
  .form-control.search {
    max-width: 260px;
    margin: auto;
    margin-bottom: 10px;
  }
  .table-title {
    padding-bottom: 0;
  }
  .table-title h2 {
    margin: 0;
    font-size: 20px;
    text-align: center;
  }

  .navbar {
    padding: 10px 15px !important;
  }
  .col-lg-6.d-flex{padding: 10px 15px !important;}
  .table-title-top-space {
    height: calc(100vh - 200px);
  }
  .col-md-2.text-md-right.text-center{margin-bottom: 20px;}  
  table.dataTable thead th:first-child{width: 40px!important;}
  table.dataTable thead th:last-child{width: 60px!important;}
  #login_page{padding: 30px 15px;}
  #login_box{padding: 25px 15px;}
  #login_page .errorlist li{font-size: 14px;}
    .master_itemTable tr td:last-child .d-flex.justify-content-center.align-items-center{
      -ms-flex-pack: start!important;
      justify-content: start!important;
    }

}

@media(min-width: 992px) {
  table.table tr td{background-color: #ffffff;}
  tbody tr th{background-color: #ffffff;}
}
  

@media(max-height: 500px) {

  #sidebar {
    overflow-y: scroll;
  }

  /* width */
#sidebar::-webkit-scrollbar{
  width: 5px;
}

/* Track */
#sidebar::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1); 
  border-radius: 0;
}
 
/* Handle */
#sidebar::-webkit-scrollbar-thumb{
  background: rgba(0, 0, 0, 0.2);

}

/* Handle on hover */
#sidebar::-webkit-scrollbar-thumb:hover{
  background: rgba(0, 0, 0, 0.5);

}

}

.table textarea{overflow: hidden;height: 30px;}
