/* https://css-tricks.com/responsive-data-tables/ */

table.opium_plan { 
  width: 100%; 
  /*border-collapse: collapse;*/
  border-collapse: separate !important;
  
  border: none;
  border-spacing: 2px !important;
}

/* Zebra striping */
.opium_plan tr:nth-of-type(odd) { 
  background: #eee; 
}
.opium_plan th { 
  background: #eee; 
  color: black; 
  font-weight: bold; 
  text-align: center;
}
.opium_plan td, th { 
  padding: 6px; 
  border: 1px solid #ccc; 
  text-align: left;
  border: none;
}

/* kolumna z nr godziny */
.opium_plan td.nr {
    text-align: center;
}
/* kolumna z godziną */
.opium_plan td.g {
    text-align: center;
}

.opium_plan td.l {
    background: #808080; /* #00a27c; */
    color: #ffffff;
}

.opium_plan a {
    color: yellow;
}
.opium_plan a:hover {
    text-decoration: underline;
}
.opium_plan a:active {
    text-decoration: underline;
}


.opium_plan td.l:empty {
    background: none;
}

.opium_plan span.p {
    font-weight: bold !important;
}

table.opium_plan_select {
    width: 100%;
}

.opium_plan_select td {
    width: 33%;
}

.opium_plan_select td {
    display: inline-block;
    text-align: right;
    line-height: 22px;
}

/*
.opium_plan_select td select {
    width: 50%;
    float: right;
    margin-right: 20px;
}
*/

.start_plan .chosen-container {
    float: right;
    margin-left: 6px;
    text-align: left;
}

.start_plan .link
{
  padding:          0px 5px 0px 5px;
  text-align: right;
  vertical-align: middle;
}

/*
.start_plan .link > a
{
  font-weight: bold;
  text-decoration: none;
  padding: 1px 3px 3px 19px;
  color: #C30000;
  background: transparent url('../images/goralink.gif') no-repeat  0px 50%;
}
.start_plan .link > a:hover { color: #FFFFFF; background: #C30000 url('../images/goralinkw.gif') no-repeat  0px 50%; }
*/

/* no more tables - https://bootsnipp.com/snippets/featured/no-more-tables-respsonsive-table */
@media only screen and (max-width: 800px) {

    /* Force table to not be like tables anymore */
    #no-more-tables table, 
    #no-more-tables thead, 
    #no-more-tables tbody, 
    #no-more-tables th, 
    #no-more-tables td, 
    #no-more-tables tr { 
        display: block; 
    }

    /* Hide table headers (but not display: none;, for accessibility) */
    #no-more-tables thead tr { 
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    #no-more-tables tr { border: 1px solid #ccc; }

    #no-more-tables td { 
        /* Behave  like a "row" */
        border: none;
        border-bottom: 1px solid #eee; 
        position: relative;
        padding-left: 50%; 
        white-space: normal;
        text-align:left;
    }

    #no-more-tables 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;
        text-align:left;
        font-weight: bold;
    }

    /*
    Label the data
    */
    #no-more-tables td:before { content: attr(data-title); }
}

/* https://codepen.io/team/css-tricks/pen/KzWORB */
/* Responsive
==================================== */
@media only screen and (max-width: 800px) {
  .Rtable--collapse  { display: block; }
  .Rtable--collapse > .Rtable-cell { width: 100% !important; }
  .Rtable--collapse > .Rtable-cell--foot { margin-bottom: 1em; }
  .Rtable--collapse td { width: 100% !important; }
}

/* Non-Flex modernizer fallback */
.no-flexbox .Rtable {
  display: block;
  > .Rtable-cell { width: 100%; }
  > .Rtable-cell--foot { margin-bottom: 1em; }
}

.plan_save_btn, .plan_save_btn_favorite {
    margin-top: 8px;
    background-color: #C30000;
    color: #ffffff;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    padding-left: 24px;
    background-image: url("../images/plan/favorite.png");
    background-repeat: no-repeat;
    background-position: left center; 
}
.plan_save_btn:hover, .plan_save_btn_favorite:hover {
    background-color: #888;
}

.plan_save_btn:active, .plan_save_btn_favorite:active{
    background-color:olive;
}

.plan_save_btn_favorite {
    background-image: url("../images/plan/favorite_selected.png") !important;
}
