/* updated... */
/* F7 overrides */
:root{
    --f7-calendar-event-dot-size: 8px;
    /* --f7-text-editor-height: 100px; */
}

.ios {
    --f7-input-bg-color: #f7f7f7 !important;
}

.md {
    --f7-card-header-font-size: 18px !important;
}

.color-grey {
    color: var(--f7-tabbar-link-inactive-color);
}

.md .navbar a.link {
    padding: 0 8px !important;
    min-width: 1em !important;
}

.item-input .text-editor, .item-input .text-editor-content{
    width: 100%;
}

.item-input .text-editor-content{
    width: 100%;
}

.item-input .text-editor-content:empty:not(:focus):before{
    content: attr(placeholder);
    pointer-events: none;
    display: block; /* For Firefox */
}


/* CUSTOM APP STYLES */
.hidden {
    display: none;
}

.invisible {
    visibility: hidden;
}

.bold {
    font-weight: bold !important;
}

.block-indent {
    padding-left: calc(var(--f7-block-padding-horizontal) + var(--f7-safe-area-left));
}

.navbar img.icon {
    max-height: 2em;
}

.round {
    border-radius: 100%;
}

.list .item-media img.icon {
    max-height: 1.5em;
    border-radius: 100%;
}

.icon-sm {
    font-size: 1.5em !important;
}

.icon-xsm {
    font-size: 1em !important;
}

form .helptext {
    font-size: 0.7em;
    list-style: disc !important;
}

form .errorlist {
    color: red;
}

.notices .notice_item.template {
    display: none;
}

#notices_btn {
    display: none;
}

.title_icon{
    border-radius:100%;
    /* height:1.5em; */
    vertical-align: middle;
    margin-right: 0.5em;
}

.phone-field-ext { display: none; }
#id_phone_1 { display: none; }


/* CHANNEL LIST */
.list hr {
    margin: 0px 12px;
    border: 1px solid #d7d7d7;
    border-bottom: none;
}

.unindented {
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

a.item-selected {
    background: var(--f7-theme-color);
    color: white;
}

a.item-selected .item-after {
    color: white;
}


.unread-indicator {
    display: none !important;
}

.channel .unread {
    font-style: italic;
}

.channel .unread:before{
    content:"!";
    position:absolute;
    top:0.2em;
    left:-1em;
    width:1.2em;
    height:1.2em;
    line-height: 1.2em;
    font-size: 1em;
    border-radius:100%;
    background-color: red;
    color:white;
    text-align: center;
    zoom:0.7;
} 


.unread .unread-indicator {
    display: inline-block !important;
}

img.menu_heading_icon{
    height: 2.5em;
    vertical-align: middle;
    margin-right:0.8em;
}

.list.inactive_shows{
    background-color: #eee;
}
.list.inactive_shows .accordion-item-opened{
    padding-bottom: 1em;
}

/* CHAT MESSAGES */
.md .message-image {
    margin-top: calc(var(--f7-message-bubble-padding-vertical)) !important;
}

/* message reply objects */
#send_in_reply_to{
    font-size:0.8em;
    font-style: italic;
    margin-left: 1.5em;
}
.message .in_reply_to{
    font-size:0.8em;
    font-style: italic;
    margin-left: 1.5em;
    margin-right: 1.5em;
}



/* SEARCH POPUP */
#search_popup .list .item-text {
    text-wrap-mode: wrap;
    overflow: show;
    text-overflow: initial;
    white-space: normal;
    -webkit-line-clamp: unset;
    max-height: unset;
}

#search_popup .search_result.template {
    display: none;
}

/* on show-edit tag list */
.taglist .item-footer {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* calendar date highlight */
.calendar-day.calendar-day-has-events.mine {
    background: #ffff0052;
    font-weight: bold;
}

/* calendar parts display */
#calendar-events .part.card.mine {
    border-width: 2px;
    background: #ffffd1;
    /* border-color: #9b9b9b; */
    box-shadow: 2px 2px 7px 0px #b2b2b2;
}


/* EVENTS editing */
/* .part_container {
    border: thin solid grey;
    margin: 10px;
    border-radius: 5px;
    box-shadow: 2px 2px 5px grey;
} */



/* FILES grid */
#files_list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    row-gap: 1em;
}

#files_list .file {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 20vh;
    width: 28vw;
}

@media only screen and (min-width: 768px) {
    #files_list .file {
        height: 30vh;
        width: 20vw;
    }
}

#files_list .file .thumbnail {
    max-width: 100%;
    height: 100%;
    width: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.photo-browser-slide video {
    max-height: 100%;
    max-width: 100%;
}

.photo-browser-slide img {
    max-height: 100vh !important;
    max-width: 100vw !important;
}


/* preloading */
#files_list .file i.thumbnail {
    color: #cccccc;
    margin: 0.2em;
}

#files_list .file .filename {
    font-size: 0.8em;
    color: #666;
    /* direction: rtl; */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    text-align: center;
}




/* FRONT_PAGE events list */

/* sub-list indents */
.item-subtitle p.block {
    white-space: normal;
    border-top: #dddcdc thin solid;
    padding: 6px;
}



/* SCHEDULE PAGES */
.data-table.schedule th,
.data-table.schedule td {
    padding: 5px 5px;
    border-right: thin #e4e2e2 solid;
    font-size: var(--f7-table-head-font-size);
    font-weight: var(--f7-table-head-font-weight);
    white-space: nowrap;
    height: var(--f7-table-head-font-size);
}

.data-table.schedule th div.vertical {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: left;
}

.data-table.schedule thead td,
.data-table.schedule thead th {
    height: inherit;
    min-width: 45px;
    vertical-align: bottom;
}

.data-table.schedule .event_tag {
    color: green;
    text-align: center;
}

.data-table.schedule .subtitle {
    font-weight: lighter;
    font-size: 0.9em;
    color: grey;
}

.data-table.schedule .details {
    font-weight: lighter;
    font-size: 0.9em;
    color: grey;
    font-style: italic;
    max-height: 20ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.data-table.schedule .note {
    font-weight: lighter;
    font-size: 0.9em;
    color: grey;
    font-style: italic;
    max-width: 20ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-table.schedule {
    height: calc(100vh - var(--f7-navbar-height) + var(--f7-safe-area-top)) !important;
}

.sticky-top {
    position: -webkit-sticky;
    position: sticky !important;
    background: white !important;
    top: 0;
    left: 0;
    z-index: 20;
}

.sticky-left {
    position: -webkit-sticky;
    position: sticky !important;
    background: white !important;
    left: 0;
    z-index: 20;
}


/* SHOW-EDIT */
span.member_type {
    margin-right: 1em;
}