/* CTC style sheet for the route list form (embedded in Joomla) */

@media screen, projection {
    body {
            max-height: 100%;
            /*border: 0px;*/
            line-height: 1.3em;
            font-size: 13px;
            line-height: 18px;
            margin: 0 auto;
            padding-top: 15px;
            padding-bottom: 1em;
            padding-left: 1em;
            padding-right: 1em;
            overflow: auto;  /* Fix Moz bug */
    }

    img {
            border: none;
    }

    p {
            margin-top: 0.25em;
            margin-bottom: 0.5em;
    }

    hr {
            margin-top: 10px;
            margin-right: 7px;
            height: 2px;
            color: #CCCCCC;
    }

    table.menu h4 {
            color: #202020;
            font-style: italic;
    }

    h5 {
            font-family: arial, sans-serif;
            font-weight: bold;
            font-size: 100%;
            margin-top: 0.5em;
    }


    /* ---------- tables --------------- */
    table {
            font-size: 13px;  /* Fix IE screw up (not inheriting body font styles */
    }


    /* ---------- navigation ---------- */

    a.thumb img {
            border: #558822 solid 2px;
    }

    td a {
            line-height: 130%; /* Space out tables of anchors */
    }

    li {
            margin-top: 1px;
            margin-left:1px;
    }

    ul {
            margin-bottom: 1em;
            padding-inline-start: 0px;
    }


    /*-----forms----- */

    .back_button {
        padding-top: 8px;
        margin-top: 8px;
    }


    input[type=submit] {
        width:80px;
    }

    input[type=text] {
        width: 100%;
    }

    table {
        width: 100%;
        max-height: 100%;      
    }
    
    td {
        padding: 2px 2px;     /* 2px top & bottom padding, 2px left & right */
    }
        
    table#routes{
        padding: 2px;
        border-collapse: collapse;
    } 
    
    table#routes td {
        padding-left: 2px;
        padding-right: 2px;
        padding-top: 2px;
        padding-bottom: 2px;
        margin:0px; 
    }
    table#routes tr {
        /* fallback */
        width: 100%;
        /* minus scroll bar width */
        width: -webkit-calc(100% - 16px);
        width:    -moz-calc(100% - 16px);
        width:         calc(100% - 16px);
        /*
        border-width: 1px 0; 
        border-color: #dddddd;
        border-style: solid;
        */
        margin-top: 3px;
        margin-bottom: 3px;
    }
    
    tr:after {  
        content: ' ';
        display: block;
        visibility: hidden;
        clear: both;
    }
    
    thead {
        background:#CCCCCC;
        display:block
    }
    tbody {
        max-height:100%;
        display:block;
        overflow-y: auto;    
        overflow-x: hidden;  
    }
    
    table#routes tbody{
      overflow: hidden;
    }
    table#routes th.col0,
    table#routes td.col0 { /*check box select */
        width:22px;
        display: table-cell;
        vertical-align: top;
        cursor:default;
    }
    table#routes th.col1,
    table#routes td.col1 { /*title */
        width: 18%;
        display: table-cell;
        vertical-align: top;
    }
    table#routes th.col2,
    table#routes td.col2 { /*download gpx*/
        width: 22px;
        display: table-cell;
        vertical-align: top;
        cursor:default;
    }
    table#routes th.col3,
    table#routes td.col3 { /*view gpx on map*/
        width: 22px;
        display: table-cell;
        vertical-align: top;
        cursor:pointer;
    }
    table#routes th.col4,
    table#routes td.col4 { /*upload gpx*/
        width: 22px;
        display: table-cell;
        vertical-align: top;
        cursor:default;
    }
    table#routes th.col5,
    table#routes td.col5 { /* trash*/
        width: 22px;
        display: table-cell;
        vertical-align: top;
        cursor:default;
    }
    table#routes th.col6,
    table#routes td.col6 { /* location*/
        width: 6%;
        display: table-cell;
        vertical-align: top;
    }
    table#routes td.col6 div{ /* location force 2 lines*/
        line-height: 15px;
        font-size:small;
        padding: 0;
        vertical-align: top;
        margin:0;
        list-style: none;
        width:100%;
        cursor:pointer;
    }    
    table#routes th.col7,
    table#routes td.col7 { /* date*/
        width: 5%;
        display: table-cell;
        vertical-align: top;
        cursor: default;
    }
    table#routes th.col8,
    table#routes td.col8 { /*contributor*/
        width: 6%;
        display: table-cell;
        vertical-align: top;
        cursor: default;
    }
    table#routes th.col9,
    table#routes td.col9 { /* description */
        width: 98%;
        display: table-cell;
        vertical-align: top;
        cursor: default;
    }
    table#routes td.col9 div{ /* description */
        width: 100%;
        height: 100%;
        text-align: left;
        margin-left: 2px;
    }
    div.choosefiles,
    div.choosefile{
        display: inline-block;
        background:url('./upload.png') no-repeat;
        background-size:contain;
        height:16px;
        width:16px;
        margin:0px 0px 0px 0px; 
        padding: 2px 2px 2px 2px;
        cursor:pointer;
    }
    a.downloadfiles,
    a.downloadfile{
        display: inline-block;
        background:url('./download.png') no-repeat;
        background-size:contain;
        height:16px;
        width:16px;
        margin:0px 0px 0px 0px; 
        padding: 2px 2px 2px 2px;   
        cursor:pointer;
    }
    div.trashselected,
    div.trashfile{
        display: inline-block;
        background:url('./trash.png') no-repeat;
        background-size:contain;
        height:16px;
        width:16px;
        margin:0px 0px 0px 0px; 
        padding: 2px 2px 2px 2px;   
        cursor:pointer;
    }
    div.mapview{
        display: inline-block;
        background:url('./southpacific.png') no-repeat;
        background-size:contain;
        height:16px;
        width:16px;
        margin:0px 0px 0px 0px; 
        padding: 2px 2px 2px 2px;   
        cursor:pointer;
    }
    div.progress{
        width: 600px;
    }
    div.main {
            float: right;
            width: 100%;
            padding-right: 10px;
            padding-top: 10px;
    }
    div#wrap {
        width: 100%;
    }
    
    div.spinner {
      border: 3px solid #f3f3f3;
      border-radius: 50%;
      border-top: 4px solid #808080;
      border-bottom:4px solid #808080;
      border-left: 4px solid #c0c0c0;
      border-right: 4px solid #c0c0c0;
      width: 10px;
      height: 10px;
      -webkit-animation: spin 2s linear infinite; /* Safari */
      animation: spin 2s linear infinite;
    }




    /* Safari */
    @-webkit-keyframes spin {
        0% { -webkit-transform: rotate(0deg); }
        100% { -webkit-transform: rotate(360deg); }
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
}
