/* RESPONSIVE TABLES FOR CUSTOM PARTS */
/* DEFAULT CONFIG FOR ALL TABLES */
#tenders-table table { 
  width: 100%; 
  border-collapse: collapse; 
}
/* Zebra striping */
#tenders-table tr:nth-of-type(odd) { 
  background: #BCDDFF; 
}
#tenders-table td, #tenders-table th{
      padding: 2px 5px;
}
#tenders-table th { 
  background: #306BE0; 
  color: white; 
  font-weight: bold; 
}
.responsive-table td, .responsive-table th { 
  padding: 6px; 
  border: 1px solid #ccc; 
  text-align: left; 
}
@media only screen and (max-width: 760px), (min-device-width: 768px) and (max-device-width: 1024px)  {

    /* Force table to not be like tables anymore */
    #tenders-table table, #tenders-table thead, #tenders-table tbody, #tenders-table th, #tenders-table td, #tenders-table tr { 
        display: block; 
    }
    
    /* Hide table headers (but not display: none;, for accessibility) */
    #tenders-table thead tr { 
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    #tenders-table tr { border: 1px solid #ccc; }
    
    #tenders-table td { 
        /* Behave  like a "row" */
        border: none;
        border-bottom: 1px solid #eee; 
        position: relative;
        padding-left: 50%; 
    }
    #tenders-table td:before { 
        /* Now like a table header */
        position: absolute;
        /* Top/left values mimic padding */
        top: 6px;
        left: 6px;
        width: 45%; 
        padding-right: 10px; 
        white-space: nowrap;
    }
}


/* TENDERS TABLE */
@media only screen and (max-width: 760px), (min-device-width: 768px) and (max-device-width: 1024px)  {
    #tenders-table td:nth-of-type(1):before { content: "Tenders"; }
    #tenders-table td:nth-of-type(2):before { content: "Published by"; }
    #tenders-table td:nth-of-type(3):before { content: "Closing Date"; }
}

/* VACANCY TABLE */
@media only screen and (max-width: 760px), (min-device-width: 768px) and (max-device-width: 1024px)  {
    #tenders-table td:nth-of-type(1):before { content: "Vacancy"; }
    #tenders-table td:nth-of-type(2):before { content: "Duty Station"; }
    #tenders-table td:nth-of-type(3):before { content: "Closing Date"; }
}