/*  
    Stylesheet for Trading Partner
    ***********************************
    Styles a Trading Partner instances into a series of grid template using attribute names

    Using this profile with publications based on other objects will have strange results

    //bizverse.biz/resources/styles/Trading Partner/ProfessionalBlue
*/


/*
    Hide all basic information
*/


/*
This should always be inside head:
<meta name="viewport" content="width=device-width, initial-scale=1.0">
*/

div.data-container {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    display: grid;
    margin: 0px 10px;
    grid-auto-columns: 1fr;
    grid-column-gap: 20px;
    grid-row-gap: 20px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: max-content max-content;
    grid-template-areas: 
    'tile tile'
    'tile tile';
}
/*Remove unnecessary items */
div:nth-child(6) {
    display: none;
}
.control {
    display: block;
    margin: 10px 10px 20px 13px;
}

select {
	display: none;
}
.ws-stLabel-g-h,
.ws-title,
.ws-description,
.ws-row, 
.ws-caption,
.row-medals,
.row-badges {
    display: none;
}
/**************************************************/

.ws-table {
    display: flex;
    justify-content: center;
    flex-direction:column;
}
.ws-table > tbody {
    display: flex;
    flex-direction: column;
    background-color:#fff;
    display: -ms-grid;
    -webkit-align-content: space-between;
    -ms-flex-line-pack: justify;
    align-content: space-between;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    border-radius: 5px;
    box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.6);
    justify-content: space-between;
}

/*The card's title*/
.attr-name {
    display: flex;
    padding: 5px 20px;
    min-height: 70px;
    font-size: 30px;
    justify-content: center;
    align-items: center;
    border-style: solid;
    border-width: 2px;
    border-color: #fff;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    background-image: linear-gradient(180deg, #3cb3da, #0083af);
    color: #fff;
    text-align: center;
}

/*The logo */
.attr-logo {
    display: block;
    height: 100px;
    position:relative;
    padding-top: 10px;
    padding-left: 20px;
}
.attr-logo img {
    display: block;
    max-height: 100px;
    max-width: 300px;
    background-color: rgba(0, 0, 0, 0.45);
}

/*The descriptive paragraph */
.attr-purpose {
    display: block;
    grid-area: purpose;
    margin: 10px 20px;
    color: gray;
    font-size: 14;
    line-height: 1.5;
    font-weight: 300;
}

/*The location */
.attr-location {
    display: flex;
    grid-area: location;
    margin-left: auto;
    margin-right: 20px;
    padding: 0px;
    margin-top: 10px;
    width: fit-content;
    height: 30px;
}
.ws-stLabel-g-d {
    color: #218285;
    width: 100%;
}
.attr-location .ws-stRow-g {
    display: block;
    width: 100%;
}
.attr-location .ws-stCell-g:first-child .ws-stLabel-g-d::after {
    content: ', ';
}

/*The industry segment */
.attr-industrySegment {
    display: block;
    grid-area: industrySegment;
    /*width: 300px;*/
    margin: 10px;
    color: #218285;
    padding: 10px;
}

/*The 'view detailed profile' button */
.row-link {
    display: flex;
    grid-area: row-link;
    margin-left: auto;
    margin-right:20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.6);
    background-image: linear-gradient(180deg, #3cb3da, #0083af);
    border-radius: 3px;
}
.row-link a {
    display: block;  
    color: white;
    padding: 5px 15px;
    margin-right: 0px;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 10px;
}
.row-link span {
    display: none;
}

@media screen and (max-width: 767px) {
    body {
      grid-template-columns: 1fr;
      grid-template-rows: max-content max-content max-content max-content auto;

      grid-template-areas: 
      'drop-down'
      'tile' 
      'tile'
      'tile' 
      'tile';
    }
}

@media screen and (max-width: 370px) {
    /*The card's title*/
    .attr-name {
        padding: 5px 10px;
        font-size: 25px;
    }
    /*The logo */
    .attr-logo {
        padding: 10px;
    }
    .attr-logo img {
        display: block;
        max-height: 75px;
        max-width: 200px;
    }
    .ws-table > tbody {
        align-items: stretch;
        max-width: 260px;
    }
}



