body {
    font-size: 10pt;
    margin: 0px;
    font-family: 'Noto Sans TC';
    font-weight: 300;
    color: #000000;
}

a {
    color: #d18b00;
    text-decoration: none;
    font-weight: normal;
}

.search_condition a {
    color: transparent;
}

p {
    text-align: justify;
}

#page {
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto 300px auto;
    min-height: 800px;
    clear: both;
}

.sati_logo_hldr, .sati_copyright {
    background: #f4f4f4;
    padding: 15px;
    text-align: center;
}

.sati_logo_hldr > a {
    margin: 0 auto;
    width: 200px;
    display: block;
}

.sati_header_right {
    display: inline-block;
    float: right;
    background: #f4f4f4;
    margin: 5px;
    padding: 5px;
    border-radius: 5px;
}

.menu {
    clear: both;
    width: 100%;
    min-height: 50px;
    background-color: #fff;
    font-size: 17px;
    font-weight: 600;
    font-family: 'open sans', 'HelveticaNeue', 'Helvetica Neue', 'Helvetica-Neue', Helvetica, Arial, sans-serif;
    padding: 0px 20px;
}

.menu_inner {
    margin: 0 auto;
    max-width: 1410px;
}

.menu ul {
    list-style: none outside;
    padding: 0px;
}

.menu li {
    float: left;
    line-height: 10px;
    position: relative;
    margin-right: 15px;
    padding: 20px 0px 0px 0px !important;
    vertical-align: baseline;
    width: auto;
    height: 1.5em;
    display: block;
    color: #333;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    background: rgba(0, 0, 0, 0);
    border: 0;
    border-radius: 0;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.menu li a {
    /*color: #515151;*/
    font-weight: lighter;
}

h1, h2, h3, h4, h5 {
    /*font-family: "Old Standard TT";*/
    font-family: 'Noto Sans TC';
    font-weight: 500;
    font-style: normal;
}

h1 {
    font-size: 16pt;
    text-transform: uppercase;
    text-align: center;
}

.emphasis {
    border-left-width: 1px !important;
    padding-left: 45px !important;
    border-left-color: #d18b00 !important;
    border-left-style: solid !important;
    border-radius: 1px !important;
}

img.icon {
    width: 16px;
    height: 16px;
    transition-property: filter;
    transition-duration: 0.2s;
    vertical-align: middle;
    padding: 0px 5px 2px 5px;
}

.flex_columns {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.flex_columns > div {
    margin: 25px;
    padding: 15px 25px;
    border-radius: 15px;
    background: #f4f4f4;
    min-width: calc(33% - 100px);
    flex-basis: min-content;
}

.flex_columns > div:hover {
    outline: 1px solid #ccc;
}

.flex_columns > div > h2 {
    margin-top: 0px;
}

/* SATI colours for flex items */
.sati_green_border, .sequence_component:nth-of-type(1) {
    border-left: 2px solid #00b537 !important;
}

.sati_red_border, .sequence_component:nth-of-type(2) {
    border-left: 2px solid #fa0017 !important;
}

.sati_orange_border, .sequence_component:nth-of-type(3) {
    border-left: 2px solid #ff8d00 !important;
}

.sati_gold_border, .sequence_component:nth-of-type(4) {
    border-left: 2px solid #ffdd00 !important;
}

/* SATI colours for backgrounds (tinted) and text */
.sati_orange_bg, .sr_flag_research_report {
    background: #ff8d00 !important;
}

.sati_orange_text {
    color: #ff8d00 !important;
}

.sati_green_bg, .sr_flag_article, .sr_flag_non_sa_article, .sr_flag_ind_article {
    background: #00b537 !important;
}

.sati_green_text {
    color: #00b537 !important;
}


.sati_red_bg, .sr_flag_thesis {
    background: #fa0017 !important;
}

.sati_red_text {
    color: #fa0017 !important;
}

.sati_gold_bg, .sr_flag_technical_bulletin {
    background: #ffdd00 !important;
    color: #222 !important;
}

.sati_gold_text {
    color: #ffdd00 !important;
}

table {
    border-collapse: collapse;
    font-size: 10pt;
    table-layout: fixed;
    max-width: 100%;
}

table td, table th {
    border: 1px solid #ddd;
    padding: 5px;
    text-align: left;
    word-wrap: break-word;
    max-width: 300px;
}

table th, table th a {
    font-weight: bold;
}

.facetview {
  width: 100%;
}

button {
    font-size: 10pt;
    border: none;
    border-radius: 5px;
    padding: 3px 10px 3px 5px;
}

button:hover {
    cursor: pointer;
}

.search_condition > * {
    line-height: 1;
    padding: 2px !important;
    margin-right: 15px !important;
    border-radius: 5px;
    border-style: solid;
    font-size: 10pt;
}

.search_condition {
    margin: 5px;
}

span.search_boolean, a.search_delete {
    border: none;
}

hr {
    display: none;
}

.facetcontainer {
    display: flex;
    flex-flow: wrap;
}

.facetcontainer > p {
    width: 100%;
}

.facetinner {
    display: grid;
    grid-template-columns: 1fr 5fr;
    align-content: center;
    margin: auto 0;
    min-height: 50px;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    position: relative;
}

.facetsubscript {
    color: #555;
    line-height: 150%;
    display: inline-block;
    margin-top: 5px;
}

.facet {
    width: 250px;
    margin: 10px;
    padding: 10px;
    background: #ecedef;
    display: inline-block;
    transition-property: border-color;
    transition-duration: 0.2s;
    border-radius: 5px;
    border: 1px solid #ecedef;
    text-align: left; /*Overrides the justify property for page content*/
}

.facet:hover {
    border-color: #d18b00;
}

.sr_holder_dynamic {
    padding:10px;
}

.sr_holder_dynamic:nth-child(even) {
    padding:10px;
    background-color:#f4f4f4;
}

.sr_holder_dynamic .icon {
    /*filter: invert(100%) sepia() saturate(10000%) hue-rotate(170deg) brightness(55%)*/;
    vertical-align: middle;
}

.component_tag {
    background: #ccc;
    color: #333;
    font-size: 8pt;
    padding: 4px 6px;
    border-radius: 15px;
    margin-right: 3px;
    cursor: pointer;
    white-space: nowrap;
    box-decoration-break: clone;
}

.component_tag:hover {
    color: black;
    background: #ddd;
}

.component_green, .component_green:hover {
    background: lightgreen;
}

.component_yellow, .component_yellow:hover {
    background: gold;
}

.sr_flag {
    color: white;
    background: darkgray;
    padding: 5px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 8pt;
    opacity: 0.8;
    margin-right: 10px;
}

.sr_holder{
    padding:10px;
}
.sr_holder_grey{
    padding:10px;
    background-color:#f4f4f4;
}
.sr_table{
    font-size:14px;
    padding:10px;
    width: 100%;
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: 40px 1fr 150px;
}

.sr_table > div:nth-of-type(2) > * {
    padding: 0px 0px 5px 0px;
}

.sr_result_no{
    width:50px;
    vertical-align:text-top;
    font-weight:bold;
}

.sr_table td, .sr_table th {
    border: none;  
}

.sr_actions {
    opacity: 0.5;
    transition-duration: 0.2s;
    transition-property: opacity;
    max-width: 120px;
    max-height: 1.5em;
    overflow: hidden;
    display: block;
    white-space: normal;
}

.sr_actions:hover {
    opacity: 1;
    max-width: unset;
    max-height: unset;
}

.icon_button {
    padding: 5px !important;
    border-radius: 5px;
}

.sidebar_grid {
    display: grid;
    grid-template-columns: 250px auto;
}

.sidebar_grid > div {
    margin: 20px;
}

.sidebar_grid > div:last-of-type {
    border-left: 1px solid #d18b00;
    padding-left: 20px;
    margin-left: 0px;
}

.pagination {
    display: block;
    margin: 20px;
    font-size: 12pt;
    text-align: center;
}

.pagination a {
    margin: 0 5px;
}

.basic_search > * {
    margin-right: 5px;
    margin-left: 5px;
    padding: 5px;
    font-size: 10pt;
    margin-bottom: 5px;
}

.basic_search input, .basic_search select, .basic_search button {
    border-radius: 5px;
    border: 2px solid #e9e9ed;
}

input {
    border-radius: 5px;
    border-style: solid;
}

.code {
    width: 100%;
    height: 200px;
    border: 4px solid #f4f4f4;
    background: #f4f4f4;
    border-radius: 5px;
    overflow: scroll;
}

.frame {
    margin: 15px;
}

.spacer {
    background: #eee !important;
    max-width: 1px;
}

.value-chain-master {
    display: grid;
    grid-template-columns: 25fr 10px 70fr;
    grid-gap: 10px;
}
.value-chain-master > div:nth-of-type(2) {
    border-radius: 100%;
    text-orientation: mixed;
    color: black;
    writing-mode: vertical-lr;
    font-size: 1.5em;
    text-align: center;
    line-height: 5px;
}
.value-chain-guide {
    display: grid;
    grid-template-rows: repeat(4, 1fr)
}
.value-chain-guide > div {
    position: relative;
    text-align: center;
    font-style: italic;
    font-weight: bold;
    border-radius: 10px;
    border: 1.5px dotted #555;
    margin: 1.5px;
    padding: 15px;
}

.value-chain-guide > div:nth-of-type(1) {
    background-color: #d9e2f3;
}
.value-chain-guide > div:nth-of-type(2) {
    background-color: #e2efd9;
}
.value-chain-guide > div:nth-of-type(3) {
    background-color: #fff2cc;
}
.value-chain-guide > div:nth-of-type(4) {
    background-color: #fbe4d5;
}

.chain-components-grid {
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    grid-template-columns: repeat(6, 1fr);
    height: 100%;
    width: 100%;
}
.chain-components-grid > div {
    margin: 1px;
    border-radius: 10px;
    border: 1.5px solid #444;
    transition-property: box-shadow;
    transition-duration: 0.2s;
    box-shadow: 0px 0px 0px 0px #fff;
}
.chain-components-grid div:hover {
    box-shadow: 0px 0px 5px 3px #ccc;
}
.chain-components-grid > div > a {
    display: block;
    top: 50%;
    position: relative;
    transform: translate(-0%, -50%);
    text-align: center;
    text-shadow: 0px 0px 4px white;
    margin: 0px;
    padding: 10px;
    color: #333;
    font-size: 1.35em;
    font-weight: bold;
}
#cultivar-development {
    background-color: #d9e2f3;
    grid-row-start: 1;
    grid-column-start: 1;
    grid-row-end: 2;
    grid-column-end: 2;
}
#natural-resource-management {
    grid-row-start: 2;
    grid-column-start: 2;
    grid-row-end: 4;
    grid-column-end: 3;
    background: linear-gradient(0deg, #fff2cc 0% 50%, #e2efd9 50%);
}
#crop-production {
    grid-row-start: 2;
    grid-column-start: 3;
    grid-row-end: 4;
    grid-column-end: 4;
    background: linear-gradient(0deg, #fff2cc 0% 50%, #e2efd9 50%);
}
#disease-management {
    grid-row-start: 2;
    grid-column-start: 4;
    grid-row-end: 4;
    grid-column-end: 5;
    background: linear-gradient(0deg, #fff2cc 0% 50%, #e2efd9 50%);
}
#pest-management {
    grid-row-start: 2;
    grid-column-start: 5;
    grid-row-end: 5;
    grid-column-end: 6;
    background: linear-gradient(0deg, #fbe4d5 0% 33.3%, #fff2cc 33.3% 66.6%, #e2efd9 66.6% 100%);
}
#post-harvest-management {
    background-color: #fbe4d5;
    grid-row-start: 4;
    grid-column-start: 6;
    grid-row-end: 5;
    grid-column-end: 7;
}


.sequence {
    display: grid;
    grid-template-columns: repeat(5, 6fr 1fr) 6fr;
}

.sequence_component {
    display: inline-block;
    margin: 5px 0px;
    padding: 10px;
    border-radius: 10px;
    background: #f4f4f4;
    color: black;
    border-left: 2px solid black;
    transition-property: height;
}

.sequence_component > h3 {
    text-align: center;
    margin-top: 0px;
    position: relative;
    transition-property: top, font-size, transform;
    transition-duration: 0.2s;
    font-size: 14pt;
    top: 50%;
    transform: translate(-0%, -50%);
}

.sequence_component:hover > h3 {
    top: 0px;
    transform: translate(0%, 0%);
}

.sequence_component > p {
    opacity: 0;
    transition-duration: 0.2s;
    transition-property: height, opacity;
    color: #333;
}

.sequence_component:hover > p {
    opacity: 1;
}

.sequence_icon {
    margin: 0 auto;
    display: block;
    width: 80% !important;
    height: 100% !important;
}

.gridmodify {
    display: grid;
    grid-template-columns: 2fr 5fr;
    grid-gap: 25px 10px;
    max-width: 1000px;
}

.spreadsheet td, .spreadsheet th {
    overflow: clip;
}

.ribbon button {
    background: #00b537;
    margin: 5px;
    padding: 5px;
}

.ribbon, .ribbon h2 {
    background-color: #00b537;
    color: black;
}

@media (max-width: 1399px) {
    #page {
        padding: 40px;
    }

    .flex_columns > div {
        min-width: calc(50% - 102px) !important;
    }
}

@media (max-width: 870px) {
    #page {
        padding: 20px;
    }

    .flex_columns > div {
        min-width: calc(100% - 100px) !important;
    }

    .sequence {
        grid-template-columns: 1fr !important;
    }

    .sequence_icon {
        display: none !important;
    }

    .sequence_component > p {
        opacity: 1 !important;
    }

    .sequence_component > h3 {
        top: 0px !important;
        transform: translate(-0%, -0%);
    }

    .sr_table {
        grid-template-columns: 1fr 5fr;
    }

    .basic_search > #selectCollection {
        display: block;
        width: 100%;
    }

    .basic_search > #search_field {
        display: block;
        width: 100% !important;
    }
}

@media (max-width: 600px) {
    #page {
        padding: 20px;
    }

    .menu li {
        display: block;
        width: calc(100% - 40px);
        clear: both;
    }

    .spacer {
        display: none !important;
        margin: 0px !important;
        padding: 0px !important;
    }

    .sidebar_grid > div:first-of-type {
        display: none;
    }

    .sidebar_grid > div:last-of-type {
        border-left: none;
        padding-left: 0px;
        margin-left: 0px;
    }

    .sidebar_grid {
        grid-template-columns: 1fr;
    }

    .sr_table {
        grid-template-columns: 1fr;
    }

    .sr_table > .sr_result_no {
        display: none;
    }
}

