/*
Web Radio Podcast Picker
Copyright(C) 2025 Franck Gaspoz
find license and copyright informations in files /COPYRIGHT and /LICENCE
*/

/* web radio picker: view styles */

.lim-height {
    height: Calc(100% - 4.5em);
}

.main-icon {
    position: relative;
    top: -0.27em;
    font-size: 2em;
    left: 0em;
    margin-bottom: -0.75em;
    opacity: 0.9;
    width: 20%;
    display: hidden;
}

.main-title {
    /*position: relative;*/
    /*top: -0.7em;
    margin-bottom: -0.7em;*/
    /*top: -0.8em;*/
    margin-bottom: -1em;
    opacity: 0.9;
    left: 2em;
    width: 70%;
    display:hidden;
}

#err_holder {
    text-align: -webkit-center;
    align-content: center;
}

#err_txt {
    color: orange !important;
    cursor: pointer;
    /*max-width: 300px;
    max-height: 300px;*/
    display: block;
    box-sizing: border-box;
    /*padding: 1em;*/
    /*text-align: center;*/
    /*background-color: #000000AA;*/
    /*width: 70%;*/
    /*align-content: center;*/
}

#wrp_img {
    align-self: center;
}

.bt-bar-img-but {
    vertical-align: baseline;
    margin-top: 0.7em;
}

.bt-bar-img-small-but {
    width: 32px;
    height: 32px;
}

.bt-bar-but-cnt {
    height: 48px;
}

.bt-bar-but-cnt.clickable {
    cursor: pointer;
}

#wrp_btn_pause_onoff {
    cursor: pointer;
}

.wrp-but-col {
    display: grid;
    grid-row: 1;
    margin-bottom: 2px;
    grid-template-rows: 48px 48px 48px 48px 48px;
    overflow: clip;
    align-items: center;
}

.btn-wrp-text {
    display: inline-block;
    width: 1.4em !important;
    font-size: 2em;
    padding: 0px;
    margin: 0px;
    line-height: 1.6em !important;
}

.bt-bar-text-but {
    width: 36px;
    height: 36px;
    margin-top: 0.1em;
}

.btn-wrp-text-img {
    display: inline-block;
    width: 1.4em !important;
    font-size: 2em;
    padding: 0px;
    margin: 0px;
    line-height: 1em !important;
}

.wrp-but-col-no-fsbut {
    grid-template-rows: 48px 0px 48px 48px 48px !important;
}

.wrp-layout {
    grid-template-columns: Calc(50% - 3.5em) 1.5em 4em 1.5em Calc(50% - 3.5em);
    display: grid;
}

.wrp-pane {
    /* margin-top: 0.5em; */
    height: 100%;
    /*min-height: 380px;*/
    grid-template-rows: Calc(100% - 4.5em) 4.5em;
}

.wrp-scroll-pane {
    overflow-y: scroll;
    overflow-x: hidden;
    /* max-height: 300px; */
    /* min-height: 300px; */
    /* height: 100%; */
    /*height: Calc(100% - 4em);*/
    grid-row: 1;
    grid-column: 1;
}

.wrp-list-item {
    min-height: 1.5em;
    /* max-width: 256px; */
    word-wrap: break-word;
    /* padding: 0.5em; */
    font-size: 1.2em;
    cursor: pointer;
    line-height: 2em;
    display: grid;
}

.wrp-list-item.selected {
    border: #FFFF00AA solid 1px !important;
}

.wrp-list-item-foldable {    
}

.wrp-list-item-sub {
    min-height: 1.5em;
    word-wrap: break-word;
    font-size: 0.8em;
    display: grid;
    background-color: #00003333;
    /* margin-left: Calc(-0.5em + 2px); */
    /* margin-right: Calc(-0.5em + 2px); */
    /* margin-bottom: Calc(-0.5em + 2px); */
    /* padding: 0.5em; */
    line-height: 1em;
    margin: 0.25em;
    margin-top: 0px;
    grid-template-columns: min-content auto min-content;
    cursor: default;
    /* align-items: baseline; */
}

.wrp-rad-item-icon {
    cursor: pointer;
    width: 32px;
    height: 32px;
}

.wrp-rad-item-icon:hover {
    background-color: #44AAff;
}

.wrp-list-item-text-container {
    grid-row: 1;
    grid-column: 1;
    padding: 0.5em;
    overflow-wrap: anywhere;
}

.wrp-list-item-history-favs {
    
}

.wrp-list-item-history-favs > div.wrp-list-item-text-container
{
    color: #E0FF80;
    font-weight: bold;
}

.wrp-item-controls-container {
    display: flex;
    text-align: right;
    flex-direction: row-reverse;
    padding: 0.5em;
    grid-row: 1;
    grid-column: 3;
    /* align-self: flex-start; */
    align-items: center;
}

.wrp-item-info-text {
    grid-column: 1;
    grid-row: 1;
    color: #FFFFAACC;
    font-size: 1em;
    align-content: center;
    padding: 0.5em;
    text-wrap: nowrap;
    /* align-self: flex-start; */
}

.wrp-item-info-text2 {
    grid-column: 2;
    grid-row: 1;
    color: #FFFFFFCC;
    text-align: right;
    font-size: 1em;
    align-content: center;
    padding: 0.5em;
    padding-right: 0em;
    overflow-wrap: anywhere;
}

.wrp-list-item:hover {
    border: #FFFF00AA solid 1px !important;
}

.wrp-list-item-a {
    background-color: #202095;
    border: #202095 solid 1px;
}

.wrp-list-item-b {
    background-color: rgb(0, 0, 156);
    border: rgb(0, 0, 156) solid 1px;
}

#wrp_radio_list_btn_bar {
    /* justify-content: space-between; */
    align-content: center;
    grid-template-columns: min-content auto min-content min-content min-content;
    align-items: unset;
    /* align-content: space-around; */
}

#wrp_rad_list_ref {
    text-wrap: nowrap;
    text-wrap-mode: nowrap;
    /*text-wrap-mode: wrap;
    word-break: break-word;*/
    text-align: left;
    align-content: space-around;
}

#wrp_rad_list_ref_name {
    text-wrap: wrap;
    text-wrap-mode: wrap;
    word-break: break-word;
    text-align: left;
}

.fav-path-button {
    overflow-wrap: anywhere;
    text-align: left;
    color: yellow;
}

#wrp_list_count {
    align-content: space-around;
    text-wrap: nowrap;
}

.wrp-img-holder {
    align-content: center;
    text-align: center;
    height: 100%;
    background-color: black;
    display: grid;
    justify-items: center;
    overflow-y: hidden;
    grid-row: 1;
    grid-column: 1;
}

.wrp-img-half {
    max-width: 50% !important;
}

.wrp-img-holder>img {
    /* min-width: 50%; */
    text-align: center;
    cursor: pointer;
    max-width: 100%;
    /* max-height: 100%; */
}

#wrp_footer,#wrp_footer2 {
    height: 2.8em;
    max-height: 2.8em;
    overflow: hidden;
    /* grid-template-columns: none; */
    align-items: self-start;
    grid-template-rows: auto auto;
}

#wrp_footer2 {
    grid-template-rows: auto !important;
    justify-content: end;
    grid-template-columns: max-content;
    /* background-color: darkblue; */
}

#wrp_radio_url {
    /* word-wrap: break-word; */
    /* contain: inline-size; */
    overflow: hidden;
    text-wrap: nowrap;
    text-overflow: clip;
}

#wrp_radio_name {
    font-size: 1.3em;
    color: #FFFF00AA;
    text-wrap: nowrap;
    text-overflow: clip;
}

#btn_wrp_all_radios,
#btn_wrp_inf,
#btn_log_pane,
#btn_wrp_set {
    padding-left: 0.5em;
    padding-right: 0.5em;
    font-size: 0.9em;
    margin-top: 0.25em;
    margin-right: 0.5em;
}

div#btn_wrp_infos.selected > img {
    background-color: blue;
}

.icon-settings {
    padding: 4px !important;
}

.icon-rad-fav {
    justify-self: end;    
    width: 24px;
    height: 24px;
    align-self: center;
    margin-right: 0.5em;
}

.wrp-inf-pane {
    background-color: rgba(0,0,129,1); /* cf. .module-full-pane */
    padding: 1em;
}

#wrp_info_but_bar {
    grid-template-columns: repeat(3,min-content);
    background-color: darkblue;
}

#wrp_inf_pane {
    grid-template-rows: min-content;
}

#opts_wrp_inf,#opts_long_pane,#opts_wrp_set {
    grid-row: 2 !important;
}

#opts_log_pane {
    grid-row: 2 !important;
}

#btn_wrp_inf.selected {
    cursor: default;
}

#wrp_radio_box {
    text-align: right;
    color: #44AAffFF;
    display: flex;
    grid-template-columns: repeat(auto-fit, minmax(0px, 1fr));
    justify-content: end;
    overflow: hidden;
    text-overflow: clip;
    background-color: darkblue;
}

div#wrp_radio_box > img[class~="but-icon-disabled"] {
    background-color: #444444 !important;
}

.wrp_radio_box_fav_button {
    display: grid;
    grid-auto-columns: min-content min-content;
    grid-template-columns: min-content max-content max-content;
    align-items: center;
}

.wrp-list-item-container {
}

.wrp-list-item-box {
    /* width: 64px; */
    height: 1em;
    text-align: right;
    top: 0em;
    /* float: right; */
    font-size: 0.7em;
    margin-top: -0.25em;
    margin-right: 0.5em;
    color: #FFFF00E0;
    grid-row: 1;
    grid-column: 1;
    width: auto;
    /* border: red solid 1px; */
    /* display: inline; */
    justify-self: end;
}

.gauge {
    background-color: black;
    margin-right: 0.5em;
    display: grid;    
}

.gauge-plot {
    background-color: #444444;
    /*width: 1em;*/
    /*height: 2em;*/
    margin-left: 0.25em;
    margin-right: 0.25em;
    margin-top: 0.25em;
    margin-bottom: 0.25em;
    border-radius: 2px;
    opacity: 0.2;
}

.gauge-plot-on {
    opacity: 1 !important;
}

.gauge-plot-red {
    background-color: red !important;
}

.gauge-plot-yellow {
    background-color: yellow !important;
}

.gauge-plot-orange {
    background-color: orange !important;
}

.gauge-plot-green {
    background-color: #00FF00 !important;
}

.but-icon, .connect-icon {
    width: 30px;
    height: 30px;
}

.but-icon {
    cursor: pointer;
}

.but-icon-disabled {
    cursor:default;
    opacity: 0.4;
}

.but-icon-disabled-light {
    cursor: default !important;
    opacity: 0.9 !important;
}

#cnv_oscillo {
    width: 95%;
    /* width: 800px; */
    align-self: center;
    /*height: 100%;*/
    display: grid;
    /* position: absolute; */
    justify-items: center;
    grid-row: 1;
    grid-column: 1;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.wrp-inf-name {color: yellow;}

.wrp-inf-val {
    margin-bottom: 0.5em;
}

.arrow-up,.arrow-down {
    cursor: pointer;
    width: 42px;
    background-color: rgba(0,0,0,0.3);
}

.arrow-up:hover,.arrow-down:hover {
background-color: #44AAffAA !important
}

.arrow-up {
    rotate: 90deg;
}

.arrow-down {
    rotate: -90deg;
}

.top-arrow {
    position: relative;
    left: Calc(50% - 1em);
    top: 1.8em;
}

.btm-arrow {
    position: relative;
    left: Calc(50% - 1em);
    top: Calc(Calc(100% - 100px) - 1em);
}

.log-item {
    display: block;
    line-height: 1.5em;
}

.log-item-error {
    color: red;
}

.log-item-warning {
    color: orange;
}

.action_pane {
    grid-row: 2;
    grid-column: 1;
    display: grid;
    align-content: center;
    padding: 0.5em;
    background-color: #245AB4CC;
    display: flow;
}

#left-pane {
    
}

.showActionPane {
    grid-template-rows: Calc(100% - 3.5em) 3.5em;
}

.topFavArrow {
    width: 32px;
    height: 32px;
    rotate: -90deg;
    vertical-align: middle;
}

.addFavText {
    font-size: 1.2em;
    position: relative;
    top: 0.3em;
}

.addFavButton {
    width: 32px;
    height: 32px;
    vertical-align: middle;
}

#input_list_item {
    background-color:#00000077;
    border: transparent solid 1px;
    color: white;
    font-size: 1.5em;
    width: calc(100% - 2em);
    padding: 0.25em;
}

#input_list_item:focus {
    outline: #00FFAAC0 solid 1px;
}

.right-chevron {
    vertical-align: middle;
}

.right-chevron-extended {
    height: 2.5em;
    width: 1.7em;
    text-overflow: clip;
    vertical-align: top;
}

.small-fav-icon, .small-tag-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 0.25em;
    align-self: center;
}

.hover-icon {
    background-color: unset;
    padding: 0.5em;
}

.hover-icon:hover {
    background-color: #44AAff !important;
    cursor: pointer;
}

.hover-icon.selected {
    background-color: blue;
}

h1 {
    font-size: 1.3em;
    color: #FFFF00DD;
    /* text-decoration: underline; */
}