/*

      https://rruff.info/css/rruff_2.css
      https://rruff.info/css/color.css
      https://rruff.info/css/entity.css
      https://rruff.info/libs/calendar/calendar-brown.css/
      https://rruff.info/favicon.ico
      https://rruff.info/css/style.css

 */
.sort-col,
.sort-asc,
.sort-desc {
    background-color: rgba(33,224,48, 0.3) !important;
}

.cursor-link {
    cursor: pointer;
}

.full_list_search_disabled {
    opacity: 0.5;
}

/* Hack to fix Wordpress Integration */
.elementor-element-00c0d66 {
    margin-top: -26px;
}

#form_periodic_table_1 input {
    width: auto;
}

#rruff_additional_tools {
    line-height: 3em;
}

.standartTreeImage img {
    height: 18px !important;
    width: 18px !important;
}

/* Astra Fixes */
.main-header-bar,
.ast-sticky-active {
    margin: 0 0 0 0 !important;
}
/* END Astra Fixes */

/**********************************************
     Button CSS
     https://codepen.io/sazzad/pen/kMObWe
************************************************/

.checkbox-input {
    display: none;
}
.checkbox-input:checked + label .checkbox:after {
    transform: translate(-50%, -50%) scale(1);
}

.checkbox {
    border: 1px solid blue;
    border-radius: 3px;
    width: 16px;
    height: 16px;
    display: inline-block;
    position: relative;
}
.checkbox:after {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: blue;
    transform: translate(-50%, -50%) scale(0);
    width: 12px;
    height: 12px;
    border-radius: 3px;
    transition: 0.3s;
}

/************************************
      Mineral List Definitions
************************************/

#mineral_list_wrapper {
    width: 100%;
}

#mineral_list_wrapper input[type=text] {
   padding: 4px 4px 4px 4px;
}

.mineral_list_content table,
.mineral_list_content tr,
.mineral_list_content th,
.mineral_list_content td {
    border: none;
}

#IMAApprovedMinerals {
    margin-left: 10px;
}
#IMAApprovedMinerals input {
    vertical-align: text-top;
}

.IMATableHeader {
    margin-top: 12px;
    font-weight: bold;
}

.AbbrevInfoDiv {
    position: relative;
}

.IMAClickToCopy {
    cursor: pointer;
}

#search_tags_1 {
    z-index: 99;
    width: 28em;
    position: absolute;
    background: #FDF9F9;
    border: 1px solid rgba(40, 40, 40, 0.2);
    border-radius: 4px;
    /* box-shadow: rgba(0, 0, 0, 0.16) 0 1px 4px; */
    /*
    position: absolute;
    top: 5px;
    right: 5px;
     */
}

#search_tags_1_close a {
    float: right;
    margin-right: 8px;
    text-decoration: none !important;
    cursor: pointer;
}

.AbbrevInfo {
    background-color: lightskyblue;
    border: 1px solid rgba(66,66,255,0.3);
    padding: 5px;
    position: absolute;
    visibility: hidden;
    width: 625px;
    z-index: 999;
    cursor: default;
    top: -34px;
}

.AbbrevInfoDiv:hover .AbbrevInfo {
    visibility: visible;
}

#result_count {
    margin-top: 12px;
    font-weight: bold;
}

#mineral_display_header {
    vertical-align: middle;
    font-weight: bold;
    font-size: 12px;
    margin-top: 12px;
    text-align: center;
}

.periodic_table_selected_elements {
    font-weight: bold;
    width: 130px;
    margin-right: 8px;
    float: left;
    margin-bottom: 6px;
}

.autofill {
}

.IMAFooterInfo {
    margin-top: 12px;
    margin-left: 16px;
}

#debug {
    display: none;
}

.periodic_table_elements_input_full,
.periodic_table_elements_input {
    width: 130px !important;
    margin-right: 8px !important;
    font-size: 12px !important;
    padding: 4px 4px 4px 4px !important;
}

.periodic_table_elements_input_full {
    width: 264px !important;
    margin-left: 6px;
    margin-right: 0;
}




.IMAFullWidth {
    display: block;
    width: 414px !important;
    margin-left: auto;
    margin-right: auto;
}

.IMAChemistryTitle {
    font-weight: bold;
}

.IMAChemistryOptions {
    font-weight: bold !important;
    float: right !important;
    margin-left: 10px !important;
    font-size: 12px !important;
}
.IMAChemistryOptions input {
    vertical-align: text-top;
}
.IMAChemistryOptions label {
    font-size: 12px !important;
    font-weight: bold !important;
}

.IMAButtonRow {
    line-height: 3em !important;
}

.minerals_found_title {
    font-weight: bold;
    font-size: 14px;
}

#result tr {
    /* user-select: none; /* Standard syntax */
}



#result tr#row_0 {
    background-color: rgb(218, 233, 248);
}
#result tr:nth-child(odd) {
    background-color: rgba(251, 240, 240, 0.4);
}

#result tr.highlight-row {
    background-color: rgba(33,224,48, 0.3) !important;
}

#results {
    display: block;
}

#results th {
    margin-left: 6px;
    margin-right: 6px;
}

table.results tr.hidden-row {
    /*   white-space:nowrap; text-align: center;	*/
    display: none;
}

table.results tr:first-child {
    /* position: sticky;
    top: 0; */
}

.cell-parameters-button,
.cell_parameters_results input[type=button],
.mineral_list_content input[type=button] {
    /* background-color: RGBA(60, 110, 153, 0.50);*/
    background-color: rgba(39, 112, 157, 0.7);
    /* margin-bottom: 8px; */
    margin-right: 8px;
    border: 0;
    border-radius: 4px;
    box-sizing: border-box;
    color: #FFFFFF;
    font-family: "Inter var",ui-sans-serif,system-ui,-apple-system,system-ui,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.00rem;
    padding: 6px 8px 6px 8px;
    text-align: center;
    text-decoration: none #D1D5DB solid;
    text-decoration-thickness: auto;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.cell-parameters-button:active,
.cell_parameters_results input[type=button]:active,
.mineral_list_content input[type=button]:active {
    border-color: #4a4a4a;
    outline: 0;
}

.cell-parameters-button:focus,
.cell_parameters_results input[type=button]:focus,
.mineral_list_content input[type=button]:focus {
    border-color: #485fc7;
    outline: 0;
}

.cell-parameters-button:hover,
.cell_parameters_results input[type=button]:hover,
.mineral_list_content input[type=button]:hover {
    border-color: #b5b5b5;
}

.cell-parameters-button:disabled,
.cell_parameters_results input[type=button]:disabled,
.mineral_list_content input[type=button]:disabled {
    color: rgba(30, 30, 30, 0.3);
    background-color: #FFFFFF;
}

.cell-parameters-button:focus:not(:active),
.cell_parameters_results input[type=button]:focus:active,
.mineral_list_content input[type=button]:focus:active {
    box-shadow: rgba(72, 95, 199, .25) 0 0 0 .125em;
}

button.mineral_select_button {
    height: 18px !important;
    line-height: 18px !important;
    margin-bottom: 4px !important;
    margin-right: 6px !important;
    padding-right: 6px !important;
    padding-left: 6px !important;
    padding-top: 0 !important;
    letter-spacing: normal !important;
}

.mineral_select_button,
#search_full_list,
#search_tags_info {
    line-height: 3em;
}

.cell_parameters_title {
    margin-top: 30px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
}

#form_periodic_table_1 {
    font-size: 12px !important;
}

#periodic_table_wrapper {
    padding: 3px 3px 3px 3px;
    border: 1px solid rgba(40, 40, 40, 0.2);
    border-radius: 4px;
    width: 100% !important;
}

#ml_search_box_1 {
    /* width: 100%; */
}

#mineral_display_header label {
    display: inline-block;
    padding-right: 10px;
    white-space: nowrap;
}
#mineral_display_header input {
    vertical-align: middle;
}

#form_periodic_table_1_tags {
    max-width: 360px;
}

#form_periodic_table_1_global_tag_select {
    min-height: 180px;
    max-height: 500px;
    vertical-align: middle;
    overflow-y: scroll;
}

#form_periodic_table_1_global_tag_select li,
#form_periodic_table_1_tags li {
    line-height: 16px;
    list-style-type: none;
    cursor: pointer;
    user-select: none;
}

#form_periodic_table_1_global_tag_select li ul,
#form_periodic_table_1_tags li ul {
    padding-inline-start: 20px;
    padding-left: 20px;
    user-select: none;
}

.IMACookieLink {
    margin-left: 8px;
}

.IMAStatusNotes {
    /* padding: 8px 0 0 0; */
    line-height: 18px;
}

.IMAStatusNote {
    margin-top: 4px;
    padding: 4px 4px 4px 0;
    /* border: 1px solid rgba(40, 40, 40, 0.2);
    border-radius: 4px; */
}

.IMAReferenceText {
    /* padding: 8px 0 8px 0; */
    line-height: 18px;
    /* padding-bottom: 8px; */
}

.IMAListCollapsed > ul{
    display: none;
}

.IMAListHeader {
    font-weight: bold;
}

#IMAGlobalTagTreeHeader {
    font-weight: bold;
    margin: 8px 0 8px 8px;
}

.IMAListDecorator {
    font-weight: bold;
    font-size: 14px;
    padding-right: 6px;
    line-height: 18px;
    vertical-align: middle;
}

.fa-diamond {
    font-size: 8px;
    vertical-align: middle;
}

.IMAListSelection {
    line-height: 18px;
    vertical-align: middle;
}

#form_periodic_table_1_tags table,
#form_periodic_table_1_tags tr,
#form_periodic_table_1_tags td,
#form_periodic_table_1_tags th,
#form_periodic_table_1_tags tbody {
    line-height: 1.0em;
    border: none;
    padding: 0 0 0 0 !important;
    margin: 0 0 0 0 !important;
    width: auto;
}

#mineral_chemistry {
    margin-top: 10px;
}

#form_periodic_table_1_ideal_name {
    text-align: center;
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 700;
}

#mineral_display_wrapper {
    width: calc(100vw - 490px - 10px);
    /* border: 1px solid blue; */
    margin-top: 14px;
}

#mineral_list_search_wrapper {
    /* border: 1px solid blue; */
    margin-top: 10px;
    margin-left: 10px;
    /* max-width: 34%; */
    /* width: 34%; */
    width: 490px;
    min-width: 490px;
    max-width: 490px;
}

.ml_select_wrapper {
    margin-bottom: 4px;
}

#mineral_display_buttons,
#mineral_display_header,
#mineral_chemistry,
#custom_search_boxes {
    width: calc(100% - 12px);
    max-width: calc(100% - 12px);
    margin-left: 12px;
    margin-right: 0;
    text-align: center;
}

#mineral_display_buttons,
#custom_search_boxes {
    line-height: 3em;
}

#mineral_info_wrapper {
    width: calc(100% - 12px);
    max-width: calc(100% - 12px);
    /* margin-left: 12px; */
    margin-right: 0;
}

#form_periodic_table_1_comments {
    /* width: 66%; */
}

#form_periodic_table_1_comments td {
    padding: 0 !important;

}

#form_periodic_table_1_tags {
    max-width: 34%;
}

#mineral_info_wrapper {
    width: 100%;
}

.ima_list_hidden {
    display: none;
}

#cell_parameters_results {
    margin-right: 30px;
    position: sticky;
    top: 40px;
}

#result {
    overflow-x: scroll;
    overflow-y: visible;
    height: 100%;
}

#result table {
    /*
    border-top: 2px solid rgba(124, 225, 224, 0.9);
    border-left: 2px solid rgba(124, 225, 224, 0.9);
    border-right: 2px solid rgba(124, 225, 224, 0.9);
    border-radius: 6px;
    /* border: 6px solid rgba(124, 255, 254, 0.4); */

    /* NAS 20250203 */
    /*
    border-top: 1px solid rgba(40, 40, 40, 0.2);
    border-left: 1px solid rgba(40, 40, 40, 0.2);
    border-right: 1px solid rgba(40, 40, 40, 0.2);
    border-radius: 4px;
     */
    margin-right: 30px;
}

#result input[type=button] {
    padding: 3px 5px 3px 5px;
    vertical-align: middle;
    font-size: 11px;
    margin-top: 2px;
    margin-bottom: 2px;
}

#result th,
#result td {
    /* border-left: 6px solid rgba(124, 255, 254, 0.4); */
    /*
    border-right: 2px solid rgba(124, 225, 224, 0.9);
    border-bottom: 2px solid rgba(124, 225, 224, 0.9);
     */
    border-right: 1px solid rgba(40, 40, 40, 0.2);
    border-bottom: 1px solid rgba(40, 40, 40, 0.2);
    text-align: center;
    line-height: 1.0em;
    padding: 2px 6px 2px 6px;
    margin: 0 0 0 0;
    white-space: nowrap;
}


#result td:first-child {
    border-left: 1px solid rgba(40, 40, 40, 0.2);
}

#result th:first-child {
    border-left: 1px solid rgba(40, 40, 40, 0.2);
    border-top-left-radius: 4px;
}
#result th:last-child {
    border-top-right-radius: 4px;
}

#result th {
    border-top: 1px solid rgba(40, 40, 40, 0.2);
    padding: 6px 6px 6px 6px;
    cursor: pointer;
}

.calculated {
    font-style: italic;
}


.flex-container {
    display: flex;
}

.flex-child {
    flex: 1;
}

.flex-child:first-child {
    margin-right: 6px;
}

#ima_mineral_select_wrapper {
    height: 300px;
    font-size: 12px;
    width: 200px;
    overflow-x: hidden;
    overflow-y: scroll;
    border: 1px solid rgba(40, 40, 40, 0.2);
    border-radius: 4px;
    margin-bottom: 6px;
}

#ima_mineral_select {
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
    list-style-type: none;
    padding-inline-start: 0;
    margin: 0;
}

#ima_mineral_select li {
    line-height: 1.30em;
    padding-left: 6px;
}

.ima_selected {
    background-color: rgba(33,224,48, 0.3) !important;
}

#mineral_select {
    height: 300px;
    font-size: 12px;
    width: 200px;
}

#form_periodic_table_1_ideal_formula {
    font-size: 16px;
    margin-bottom: 16px;
}

.chemistry_type {
    font-weight: bold;
}

.search_tags_display {
    list-style-type: none;
    margin-left: 0 !important;
}

#tags_container {
    width: 186px;
}
/************************************
    END Mineral List Definitions
************************************/

.o {
    text-decoration:overline;
}

/************************************
Search Form Definitions
************************************/
.input_wrapper {
    padding: 0 0 10px 0;
}

.first_input {
    padding-top: 12px;
}

.input_wrapper label {
    width: 33%;
}

.submit_wrapper {
    margin-left: auto;
    margin-right: auto;
}

.chemistry_lookup_link {
    line-height: 20px;
    display: block;
}


label > a:visited,
label > a:active,
label > a:focus,
label > a:hover,
label > a {
    color: #a0ffa0 !important;
}

.search_form label {
    vertical-align: middle;
    line-height: 20px;
    display: inline-block;
    min-width: 200px;
    margin-right: 12px;
    font-weight: bold;
    text-align: right;
}
@media screen and (max-width: 460px) {

    /* Deal with Elementor Padding Issues */
    /*
    .elementor-top-section {
        padding: 20px 0px 0px 0px !important;
    }
     */
    .elementor-top-section .elementor-widget-container {
        margin: 0 0 30px 0 !important;
    }
    /* END Deal with Elementor Padding Issues */

    #rruff-periodic-table {
        transform-origin: left top;
        transform: scale(0.7);
        margin-left: calc(16px + (100% - 360px)/2);
        margin-bottom: -100px;
        /*
        margin-left: -10px;
        padding-left: 0;
        */
        /* left: calc(-50px + (100% - 360px)/2); */
    }


    .input_wrapper {
        padding: 0 0 4px 0;
    }

    .submit_wrapper {
        padding-top: 8px;
    }

    .chemistry_lookup_link {
        line-height: 12px;
        display: inline-block;
        margin-left: 60px;
    }

    .search_form label {
        vertical-align: middle;
        line-height: 20px;
        width: 100%;
        display: inline-block;
        margin-right: 12px;
        font-weight: bold;
        text-align: left;
    }

}

/* Designing for 380px min width */
@media screen and (min-width: 461px) and (max-width: 688px) {
    /* Deal with Elementor Padding Issues */
    /*
    .elementor-top-section {
        padding: 20px 0px 0px 0px !important;
    }

     */
    .elementor-top-section .elementor-widget-container {
        margin: 0 0 30px 0 !important;
    }
    /* END Deal with Elementor Padding Issues */

    /* Ensure Periodic Table is Scaled to 90% of Screen Width */
    #rruff-periodic-table {
        /* transform-origin: left top; */
        transform: scale(0.8);
        position: relative;
        top: 0;
        /* left: -42px; */
    }
    /*
    # {
        transform: scale(0.8);
    }

     */

    .input_wrapper {
        padding: 0 0 4px 0;
    }

    .submit_wrapper {
        padding-top: 8px;
    }

    .chemistry_lookup_link {
        line-height: 12px;
        display: inline-block;
        margin-left: 60px;
    }

    .search_form label {
        vertical-align: middle;
        line-height: 20px;
        width: 100%;
        display: inline-block;
        margin-right: 12px;
        font-weight: bold;
        text-align: left;
    }

}


@media screen and (min-width: 689px) and (max-width: 1200px) {
    body {
        /* border: 2px solid blue; */
    }


    #mineral_display_wrapper {
    }

    #mineral_list_search_wrapper {
        width: 460px;
        min-width: 460px;
        max-width: 460px;
    }

}

table.paramsearch {
    margin-bottom: 6px !important;
    line-height: 1.6em;
}

table.paramsearch input {
    font-size: 12px;
    padding: 3px 3px 3px 3px;
    vertical-align: text-bottom;
}
table.paramsearch select {
    font-size: 12px;
    padding: 3px 3px 3px 3px;
}

table.paramsearch td,
table.paramsearch tr {
    padding: 0 0 4px 0 !important;
}

table.search_form {
    background-color: rgba(0, 0, 0, 0.20);
    border: none;
    color: #ffffff;
    border-radius: 18px;
    width: 600px;
}

table.search_form td,
table.search_form th {
    border: none;
}

#searchResults  {
    color: #a1c2e3;
}

#ima_periodic_table {
}

#rruff-periodic-table {
    background-color: rgba(220,220,220, 0.0);
    border: none;
}

#rruff-periodic-table tr {
    line-height: 26px;
}

#rruff-periodic-table td,
#rruff-periodic-table td {
    border: none;
    padding: 0 0 0 0 !important;
}

.overline,
.o {
    text-decoration-line: underline;
    text-underline-offset: -14px;
}

.pointer {
    cursor: pointer;
}

.pt_alkali_metals {
    text-align:center; cursor: pointer;  background:#ffbbdd;
}

.pt_alkaline_earth_metals {
    text-align:center; cursor: pointer;  background:#ffdead;
}

.pt_metalloid {
    text-align:center; cursor: pointer;  background:#cccc99;
}

.pt_nonmetal {
    text-align:center; cursor: pointer;  background:#a0ffa0;
}

.pt_noble_gases {
    text-align:center; cursor: pointer;  background:#c0ffff;
}

.pt_halides {
    text-align:center; cursor: pointer;  background:#ffff99;
}

.pt_transition_metals {
    text-align:center; cursor: pointer;  background:#ffc0c0;
}

.pt_Ln {
    text-align:center; cursor: pointer;  background:#ffb888;
}

.pt_An {
    text-align:center; cursor: pointer;  background:#ff99cc;
}

.pt_hydrogen {
    text-align:center; cursor: pointer;  background:#a0ffa0;
}


.periodic_table {
    margin: 1px 1px 1px 1px;
    font-weight: normal;
    border: 2px solid rgba(127,127,127,0.4);
    -webkit-transition : font-weight 500ms ease-out;
    -moz-transition : font-weight 500ms ease-out;
    -o-transition : font-weight 500ms ease-out;
    transition : font-weight 500ms ease-out;
    -webkit-transition : color 500ms ease-out;
    -moz-transition : color 500ms ease-out;
    -o-transition : color 500ms ease-out;
    transition : color 500ms ease-out;
    -webkit-transition : border 500ms ease-out;
    -moz-transition : border 500ms ease-out;
    -o-transition : border 500ms ease-out;
    transition : border 500ms ease-out;
}

.chem_ele_selected_OR {
    color: green;
    border: 2px solid rgba(0,255,0,0.8);
    font-weight: bold;
    -webkit-transition : font-weight 500ms ease-out;
    -moz-transition : font-weight 500ms ease-out;
    -o-transition : font-weight 500ms ease-out;
    transition : font-weight 500ms ease-out;
    -webkit-transition : color 500ms ease-out;
    -moz-transition : color 500ms ease-out;
    -o-transition : color 500ms ease-out;
    transition : color 500ms ease-out;
    -webkit-transition : border 500ms ease-out;
    -moz-transition : border 500ms ease-out;
    -o-transition : border 500ms ease-out;
    transition : border 500ms ease-out;
}

.chem_ele_selected_AND,
.included {
    border: 2px solid rgba(0,0,255,0.8);
    font-weight: bold;
    color: blue;
    -webkit-transition : font-weight 500ms ease-out;
    -moz-transition : font-weight 500ms ease-out;
    -o-transition : font-weight 500ms ease-out;
    transition : font-weight 500ms ease-out;
    -webkit-transition : color 500ms ease-out;
    -moz-transition : color 500ms ease-out;
    -o-transition : color 500ms ease-out;
    transition : color 500ms ease-out;
    -webkit-transition : border 500ms ease-out;
    -moz-transition : border 500ms ease-out;
    -o-transition : border 500ms ease-out;
    transition : border 500ms ease-out;
}

.chem_ele_selected_NOT,
.excluded {
    border: 2px solid rgba(255,0,0,0.8);
    font-weight: bold;
    color: red;
    -webkit-transition : font-weight 500ms ease-out;
    -moz-transition : font-weight 500ms ease-out;
    -o-transition : font-weight 500ms ease-out;
    transition : font-weight 500ms ease-out;
    -webkit-transition : color 500ms ease-out;
    -moz-transition : color 500ms ease-out;
    -o-transition : color 500ms ease-out;
    transition : color 500ms ease-out;
    -webkit-transition : border 500ms ease-in;
    -moz-transition : border 500ms ease-in;
    -o-transition : border 500ms ease-in;
    transition : border 500ms ease-in;
}

.pt_disabled {
    border: 2px solid rgba(187,187,187,0.4) !important;
    font-weight: bold;
    background-color: #eeeeee !important;
    color: #bbbbbb !important;
    cursor: not-allowed !important;
    -webkit-transition : font-weight 500ms ease-out;
    -moz-transition : font-weight 500ms ease-out;
    -o-transition : font-weight 500ms ease-out;
    transition : font-weight 500ms ease-out;
    -webkit-transition : color 500ms ease-out;
    -moz-transition : color 500ms ease-out;
    -o-transition : color 500ms ease-out;
    transition : color 500ms ease-out;
    -webkit-transition : border 500ms ease-in;
    -moz-transition : border 500ms ease-in;
    -o-transition : border 500ms ease-in;
    transition : border 500ms ease-in;
}

/* Chemistry field selection styling */
.periodic_table_elements_input {
    cursor: pointer;
    transition: background-color 300ms ease-out, border 300ms ease-out;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
}

.periodic_table_elements_input:hover {
    border: 1px solid #999;
}

.periodic_table_elements_input.chemistry_field_selected {
    background-color: rgba(255, 255, 200, 0.5) !important;
    border: 1px solid rgba(200, 200, 100, 0.8) !important;
    box-shadow: inset 0 0 5px rgba(255, 255, 150, 0.6);
}

#periodic_table_instructions,
#periodic_table_Ln_alt,
#periodic_table_An_alt {
    border: none;
    font-weight: bold;
    color: rgba(0,0,0, 0.8);
}
/************************************
    END Search Form Definitions
************************************/

.cell_parameters_row {
    height: 25px;
}

.ima_section_header {
    font-weight: bold;
    font-size: 13px;
    width: 100%;
    position: relative;
}

.ima_hide_button {
    cursor: pointer;
    position: absolute;
    right: 10px;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}

#rruff_additional_tools_wrapper,
#cellparams_div_wrapper,
#export_options_area {
    border-left: 1px solid rgba(40, 40, 40, 0.2);
    border-right: 1px solid rgba(40, 40, 40, 0.2);
    border-bottom: 1px solid rgba(40, 40, 40, 0.2);
    border-radius: 4px;
    padding: 3px 3px 3px 3px;
}

#IMADisplayColumns tr {
   line-height: 1.55em;
}

#export_options_content tr {
   line-height: 1.55em;
}

#export_options_content td {
    padding: 0 !important;
}

#export_options_content input[type=checkbox] {
    vertical-align: text-bottom !important;
}


/*
#form_periodic_table_1_global_tag_select td {
    text-align: left !important;
    border: 1px solid blue;
    padding: 0 !important;
}
 */

/* Custom Select Box */
.IMACustomDropdown {
    #announcement {
        opacity: 0;
    }
    label {
        display: block;
        padding: .7rem .8rem;
        width: 65%;
        margin: 0 auto;
        text-align: left;
        font-size: .75rem;
    }
    button,
    ul {
        display: block;
        padding: .7rem .8rem;
        width: 60%;
        margin: 0 auto;
        text-align: left;
        background: white;
        border: 0;
        font-size: 1rem;
    }
    button{
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;

        &::before {
            font-family: "Font Awesome 5 Free";
            content: "\f107";
            vertical-align: middle;
            font-weight: 900;
            position: absolute;
            right: .8rem;
        }

        &:focus-visible {
            outline: 0;
            box-shadow: 0 0 5px 2px rgba(251, 146, 60, 0.7) inset;
        }
    }
    ul {
        color: #3f403b;
        position: absolute;
        left: 0;
        right: 0;
        top: 4.8rem;
        max-height: 10rem;
        overflow-y: auto;
        list-style-type: none;
        padding: 0;
        margin-top: .1rem;
        opacity: 0;
        transform: scale(1,0);
        transform-origin: top left;
        transition: all .3s ease-in;
        pointer-events: none;
        z-index: 2;
        &.active {
            opacity: 1;
            transform: scale(1,1);
            pointer-events: auto;
        }
        li {
            padding: .6rem .5rem;
            border-top: 1px solid #e6e6e6;
            cursor: pointer;
            transition: all .3s ease-in;
            position: relative;
            &::before {
                font-family: "Font Awesome 5 Free";
                content: "\f00c";
                vertical-align: middle;
                font-weight: 900;
                position: absolute;
                right: .8rem;
                opacity: 0;
                transition: opacity .300s ease-out;
            }
            &:hover, &.current {
                background: #e6e6e6;
            }
            &.active {
                box-shadow: 0 0 0 2px rgba(251, 146, 60, 0.7);
            }
            &.active::before {
                opacity: 1;
            }
        }
    }
}


#mineral_name_input,
#txt_chemistry_incl,
#txt_chemistry_incl_OR,
#txt_chemistry_excl,
#txt_chemistry_general {
    background-color: #ffffff;
    padding: 4px 4px 4px 4px !important;
    height: 28px !important;
    border: 1px solid rgb(209, 213, 219) !important;
    border-radius: 4px;
}

#a,
#b,
#c,
#alpha,
#beta,
#gamma,
#volume {
    width: 80px !important;
    padding: 4px 4px 4px 4px !important;
    height: 28px;
    border: 1px solid rgb(209, 213, 219);
    border-radius: 4px;
}
#lattice_select,
#field__crystal_system_select,
#field__point_group_select,
#field__space_group_select {
    width: 110px !important;
    padding: 4px 4px 4px 4px !important;
    height: 28px;
    border: 1px solid rgb(209, 213, 219);
    border-radius: 4px;
}

table.paramsearch td.IMAInputLabelRight,
.IMAInputLabelRight {
    text-align: right;
    padding-right: 6px !important;
}