﻿.responsive-producers {
    border: 1px solid #a6a6c6;
    border-radius: 6px;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: calc(100% - 1em);
    margin: 2em auto;
    overflow-y: auto;
    position: relative;
}

    .responsive-producers button {
        background: #147adc;
        color: #fff;
        border: 0;
        border-radius: 6px;
        padding: 0.15em 0.5em;
    }

.responsive-header {
    background-color: #147adc;
    color: white;
    font-size: 1.75em;
    padding: 2rem 1rem;
    text-align: center;
    cursor: default;
}

.responsive-tabs {
    background-color: #0055a5;
    color: white;
    font-size: 1.0em;
    padding: 1rem;
    text-align: left;
}
    .responsive-tabs span {
        display: inline-flex;
        margin: 0 16px;
    }
        .responsive-tabs span a {
            color: white;
            cursor: pointer;
        }
            .responsive-tabs span a:hover {
                color: white;
                text-decoration: underline;
                cursor: pointer;
            }
            .responsive-tabs span a.selected {
                color: white;
                text-decoration: underline;
                cursor: pointer;
            }

    .responsive-tabs .page-controls {
        float: right;
        font-size: 0.65em;
        color: aliceblue;
    }
    .responsive-tabs .page-controls .page-control {
        display: inline-block;
        margin-left: 0.35em;
        cursor: pointer;
    }

.responsive-footer {
    margin: 1em auto;
    width: 96%;
}

.responsive-producers .breadcrumbs {
    background: #e2f1ff;
    border-top: 1px solid #a6a6c6;
    padding: 0 0.75em;
    margin-top: 5em;
    height: 2.15em;
    max-height: 2.15em;
    font-size: 0.7em;
    color: #0055a5;
    overflow: hidden;
}

.responsive-footer .button-area {
    float: right;
    text-align: right;
}
    .responsive-footer .button-area button {
        margin-left: 0.1em;
    }
        .responsive-footer .button-area button.boost {
            margin-left: 0.25em;
        }

        .responsive-footer .page-info {
            text-align: center;
            margin: 0 auto;
            font-size: 0.75em;
        }

/*img {
    border-radius: 50%;
    height: 60px;
    width: 60px;
}*/

.responsive-producers .clickable {
    cursor: pointer;
}

.table-stable {
    border-bottom: 1px solid #a6a6c6;
}

    .table-stable.small-list {
        min-height: 35.55em;
    }

    .table-stable.medium-list {
        min-height: 82.7em;
    }

    .table-stable.large-list {
        min-height: 202.7em;
    }

table.responsive-table {
    width: 100%;
    font-size: 0.8em;    
}

    table.responsive-table td, table.responsive-table th {
        padding: 10px;
    }

    table.responsive-table th {
        color: #0055a5;
        cursor: default;
        background-color: #b2d9ff;
        font-weight: bold;
        min-width: 8rem !important;
    }

        table.responsive-table td {
            color: #666;
            text-align: left;
            vertical-align: top;
        }

            table.responsive-table td .bapnumber {
                color: #0055a5;
                font-weight: bold;
            }

            table.responsive-table td .species-category {
                color: #0055a5;
                font-weight: bold;
            }

            table.responsive-table td span.unannounced {
                font-size: 0.9em;
                font-style: italic;
                color: #0055a5;
            }

        table.responsive-table td button.list-button {
            font-family: Consolas;
            font-size: 0.85em;
            border-radius: 16px;
            padding: 0 1.0em;
            margin-top: -.25em;
            float:right;
        }

    table.responsive-table tr:nth-child(2n) {
        background-color: white;
    }

    table.responsive-table tr:nth-child(2n+1) {
        background-color: #f5faff;
    }

    table.responsive-table thead tr {
        border-top: 1px solid #a6a6c6;
        border-bottom: 1px solid #a6a6c6;
    }

    table.responsive-table.short-list tbody tr:last-child {
        border-bottom: 1px solid #a6a6c6;
    }


.data-container {
    width: 100%;
    display: flex;
}

/*.data-column {
    text-align: left;
    min-width: 9rem;
}*/

.col-width-1 {
    width: 9em;
}

.col-width-2 {
    width: 25%;
}

.col-width-3 {
    width: 4%;
}

.col-width-4 {
    width: 13%;
}

.col-width-5 {
    width: 29%;
}

.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.row-filter-widgets {
    margin-top: 0.5em;
    padding: 0 1em;
    background-color: #fff;
    position: relative;
    width: 100%;
    font-size: 0.8em;
}

.row-filter-widget {
    padding: 5px 2px;
    float: left;
    display: block;
}

    .row-filter-widget input {
        color: #999;
        border: solid 1px #888;
        border-radius: 4px;
    }

    .row-filter-widget .filter-menu-button {
        color: #999;
        background: #fff;
/*        background-image: url('../assets/images/bap_logo_fish_blue.png');
        background-repeat: no-repeat;
        background-size: 50%;
        background-position: center;
        background-position-x: -20%;
        background-blend-mode:screen;*/
        padding: 0.5em 0.5em;
        padding-bottom: 0.1em;
        border: solid 1px #888;
        border-radius: 4px;
        min-width: 12rem;
    }

        .row-filter-widget .filter-menu-button::before {
            font-family: "FontAwesome";
            content: "\f054";
            /*margin-top: -2px;*/
            color: darkslateblue;
            float: right;
            margin-right: 0.25em;
        }

/*        .row-filter-widget .filter-menu-button:hover {
            background: #f7fbff;
        }*/

        .row-filter-widget .filter-menu-button:hover::before {
            font-family: "FontAwesome";
            content: "\f054";
            /*margin-top: -2px;*/
            color: darkslateblue;
            float: right;
            margin-right: 0;
            animation-name: widget;
            animation-duration: 0.5s;
        }

/* widget animation code */
@keyframes widget {
    from {
        margin-right: 0.25em;
    }

    to {
        margin-right: 0;
    }
}

    .row-filter-widget.input-buffer {
        margin: 0.5em;
        margin-bottom: 0;
    }


    .row-filter-widget .showing-all {
        padding-top:0.5em;
        padding-left: 0.5em;
    }

 /* ---- csv export ---- */
.row-filter-widgets .download-link {
    float: right;
    margin-top: 15px;
    margin-bottom: -15px;
    margin-right: -10px;
}

    .row-filter-widgets .download-btn {
        display: block;
        text-align: center;
        width: 2rem;
        margin-top: -4px;
    }


.searchbox-holder {
    margin-top: 7px;
    margin-bottom: 7px;
    float: right;
}

    .searchbox-holder label {
        color: #fff;
    }

    .searchbox-holder input {
        color: #555;
    }



.query-section {
    /* width: 20%; */
    display: inline-block;
    vertical-align: bottom;
}

.query-item {
    position: relative;
    margin-left: 8px;
    border: solid 1px #7bd34b;
    border-radius: 10px;
    padding: 2px 1px 2px;
    display: inline-flex;
    margin-bottom: 1rem;
}

    .query-item:hover {
        color: #7bd34b;
    }

    .query-item span {
        margin-left: 1.5em;
        cursor: pointer;
        white-space: nowrap;
        margin-right: 1rem;
    }

    .query-item::before {
        font-family: FontAwesome;
        content: "\f00c";
        font-style: normal;
        font-weight: normal;
        text-decoration: inherit;
        position: absolute;
        left: 0;
        margin-left: 5px;
    }

    .query-item:hover::before {
        font-family: FontAwesome;
        content: "\f00d";
        color: #7bd34b;
    }



.comment {
    font-size: 0.9em;
    padding: 1.5em;
}


.filter-widgets-container {
    position: relative;
}

.menu-container {
    color: #333;
    font-size: 0.85em;
    background: #fff;
    border: 1px solid #999;
    border-radius: 4px;
    overflow:hidden;
    width: 100%;
    min-width: 100px;
    max-width: 1004px;
    column-width: 200px;
    column-gap: 0;
    position: absolute;
    display: none;
    left: 1.75em;
    top: 3.25em;
    z-index: 10000;
}

    .menu-container > div.menu-filter {
        background-color: #fff;
        border: 0;
        border-right: 1px solid #eee;
        border-bottom: 1px solid #eee;
        padding: 0.5em;
        position: relative;
        white-space: nowrap;
        overflow: hidden;
    }

        .menu-container > div.menu-filter span {
            color: #6d6d6d;
            left: 26px;
            position: absolute;
            cursor: default;
        }

        .menu-container > div.menu-filter::before {
            font-family: FontAwesome;
            content: "\f096";
            font-style: normal;
            font-weight: normal;
            color: #6d6d6d;
        }

        .menu-container > div.menu-filter.selected {
            background-color: #b2d9ff;
        }

            .menu-container > div.menu-filter.selected span {
                color: #0055a5;
            }

            .menu-container > div.menu-filter.selected::before {
                font-family: FontAwesome;
                content: "\f046";
                font-style: normal;
                font-weight: normal;
                color: #0055a5;
            }





.sliding-container {
    background: #fff;
    border: 2px solid #147adc;
    border-radius: 6px;
    font-size: 1.2em;
    color: #666;
    padding: 25px 15px;
    position: fixed;
    top: 3em;
    left: 102%;
    height: auto;
    max-height: calc(100% - 4em);
    overflow: auto;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1);
    background: linear-gradient(165deg, rgba(255,255,255,1) 60%, rgba(240,240,255,1) 100%);
}

.species-box {
    width: 40em;
    font-size: 1.0em;
}

    .species-box .species-category {
        color: #0055a5;
        font-weight: bold;
    }

    .species-box .close {
        float: right;
        margin: 0;
        margin-top: -1.0em;
        cursor: pointer;
    }

.chain-links {
    width: 40em;
}

    .chain-links .close {
        float: right;
        margin: 0;
        margin-top: -1.0em;
        cursor: pointer;
    }

    .chain-links .bapnumber {
        font-weight: bold;
    }

    .chain-links .supply-chain-title {
        font-weight: bold;
        color: #0055a5;
    }

.facility-details {
    width: 60em;
}

    .facility-details .close {
        float: right;
        margin: 0;
        margin-top: -1.0em;
        cursor: pointer;
    }

    .facility-details .detail-title {
        font-weight: bold;
        color: #0055a5;
    }

    .facility-details .details {
        width: 20%;
        border-right: 1px solid #f0f0ff;
        float: left;
    }

        .facility-details .details .detail-inner {
            width: 100%;
            /*height: 8em;*/
            height: 100%;
            background: #fff;
            padding: 1em;
            overflow: hidden;
        }

        .facility-details .details .detail-icon-holder {
            width: 60px;
            height: 100%;
            display: inline-block;
            float: left;
            margin: 0;
            margin-right: 1.5em;
        }

        .facility-details .details .detail-icon {
            width: 100%;
            height: auto;
            display: inline-block;
            cursor: default;
        }

        .facility-details .details .detail-label {
            font-weight: bold;
        }

        .facility-details .details .detail-tons {
            margin-top: 1em;
        }

/*    .facility-details .people {
        background: #f0f0ff;
    }*/

        .facility-details .people .person {
            width: 160px;
            font-size: 1.0em;
            color: #555;
            padding: 0 8px;
            margin: 0 1em;
            float: left;
        }

            .facility-details .people .person .name {
                font-weight: bold;
            }

            .facility-details .people .person .link {
                color: #0055A5;
            }

.facility-details .certificate {
    width: 135px;
    padding: 10px;
    float: right;
}

    .facility-details .certificate .certificate-icon {
        width: 120px;
        height: auto;
        display: none;
        cursor: pointer;
    }

        .facility-details .certificate .certificate-icon img {
            width: 100%;
            height: auto;
        }

.facility-details .col.thin {
    flex: 0 0 40%;
}

@media screen and (max-width: 820px) {
    table .responsive-table, tr, td {
        display: block;
    }

        table.responsive-table td:first-child {
            position: absolute;
            top: 5px;
            width: 130px;
        }

        table.responsive-table td:not(:first-child) {
            clear: both;
            margin-left: 130px;
            padding: 4px 20px 4px 90px;
            position: relative;
            text-align: left;
            width: 630px;
        }

            table.responsive-table td:not(:first-child):before {
                color: #91ced4;
                content: "";
                display: block;
                left: 0;
                position: absolute;
            }

        table.responsive-table td:nth-child(2):before {
            content: "Producer:";
        }

        table.responsive-table td:nth-child(3):before {
            content: "Country:";
        }

        table.responsive-table td:nth-child(4):before {
            content: "Expiration:";
        }

        table.responsive-table td:nth-child(5):before {
            content: "Species:";
        }

        table.responsive-table tr {
            padding: 10px 0;
            position: relative;
        }

            table.responsive-table tr:first-child {
                display: none;
            }

    .responsive-producers .fa-link {
        display: none;
    }
}

@media screen and (max-width: 500px) {
    .mapping-row {
        display: none;
    }

    .comment {
        font-size: 0.75em;
        padding: 0;
    }

    .responsive-header {
        background-color: transparent;
        color: #3f7f72;
        font-size: 2.4rem;
        font-weight: 700;
        padding: 0;
    }

    .responsive-producers .breadcrumbs {
        display: none;
    }

    table.responsive-table td:first-child {
        background-color: #c8e7ea;
        border-bottom: 1px solid #91ced4;
        border-radius: 10px 10px 0 0;
        position: relative;
        top: 0;
        transform: translateY(0);
        width: 100%;
    }

    table.responsive-table td:not(:first-child) {
        margin: 0;
        padding: 5px 1em;
        width: 100%;
        display:inline-block;
    }

        table.responsive-table td:not(:first-child):before {
            font-size: 0.8em;
            padding-top: 0.3em;
            position: relative;
        }

    table.responsive-table td:last-child {
        padding-bottom: 1rem !important;
    }

    table.responsive-table tr {
        background-color: white !important;
        border: 1px solid #6cbec6;
        border-radius: 10px;
        box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
        margin: 0.5rem 0;
        padding: 0;
    }

    .responsive-producers {
        border: none;
        box-shadow: none;
        overflow: visible;
    }
}
