/*
Generic CSS classes for chanting books section.

@since 1.0.0
*/


textarea {
    resize: vertical;
}


/* 
alert toast. 
based on Bootstrap alert class.
@link https://www.w3schools.com/howto/howto_js_snackbar.asp original source. 
*/
.alert.alert-toast {
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
    bottom: 30px;
    left: 30px;
    margin-bottom: 0;
    min-width: 260px;
    position: fixed;
    z-index: 1;
}
@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }
    to {
        bottom: 30px;
        opacity: 1;
    }
}
@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }
    to {
        bottom: 0;
        opacity: 0;
    }
}
/* end alert toast. */


/* collapsible table responsive. */
.rd-datatable.responsive td,
.rd-datatable.responsive th {
    background-color: transparent;
    border: none;
    min-height: 40px;
    word-break: break-all;
    word-wrap: break-word;
}
.rd-datatable.responsive td.column-primary ~ td,
.rd-datatable.responsive th.column-primary ~ th {
    display: none;
}
@media (min-width: 1000px) {
    .rd-datatable.responsive td.column-primary ~ td,
    .rd-datatable.responsive th.column-primary ~ th {
        display: table-cell;
    }
}
.rd-datatable.responsive thead tr {
    border-bottom: 2px solid var(--wimutti-color-border-default);
}
.rd-datatable.responsive tfoot tr {
    border-top: 2px solid var(--wimutti-color-border-default);
}
.rd-datatable.responsive tr {
    border-top: 1px solid var(--wimutti-color-border-default);
}
.rd-datatable.responsive tr:hover .row-actions {
    opacity: 1;
}
.rd-datatable.responsive .column-primary {
    display: block;
    padding-right: 3.3rem;
    position: relative;
}
@media (min-width: 1000px) {
    .rd-datatable.responsive .column-primary {
        display: table-cell;
        padding-right: 0.313em;
    }
}
.rd-datatable.responsive .column-primary ~ td {
    clear: both;
    padding-left: 35%;
    position: relative;
    width: auto;
}
.rd-datatable.responsive .column-primary ~ td::before {
    content: attr(data-colname);
    display: block;
    left: 0.313em;
    overflow: hidden;
    position: absolute;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 32%;
}
@media (min-width: 1000px) {
    .rd-datatable.responsive .column-primary ~ td::before {
        display: none;
    }
}
@media (min-width: 1000px) {
    .rd-datatable.responsive .column-primary ~ td {
        clear: none;
        padding-left: 0.313em;
    }
}
.rd-datatable.responsive .is-expanded .column-primary ~ td {
    display: block;
    overflow: hidden;
}
@media (min-width: 1000px) {
    .rd-datatable.responsive .is-expanded .column-primary ~ td {
        display: table-cell;
        overflow: visible;
    }
}
.rd-datatable.responsive .row-actions {
    font-size: 0.75em;
    opacity: 0;
    transition: opacity 0.2s;
}
.rd-datatable.responsive .row-actions span + span::before {
    content: " | ";
}
.rd-datatable.responsive .toggle-row {
    background-color: transparent;
    background-image: none;
    border: none;
    border-radius: 50%;
    box-shadow: none;
    display: block;
    font-size: 1.7rem;
    height: 2.89rem;
    padding: 0;
    position: absolute;
    right: 0.5rem;
    top: 0.61rem;
    transition: none;
    width: 2.89rem;
}
.rd-datatable.responsive .toggle-row:active, .rd-datatable.responsive .toggle-row:focus, .rd-datatable.responsive .toggle-row:hover {
    box-shadow: 0 0 0 1px #09a0bb, 0 0 3px 2px rgba(196, 235, 242, 0.8);
    outline: none;
}
@media (min-width: 1000px) {
    .rd-datatable.responsive .toggle-row {
        display: none;
    }
}
.rd-datatable.responsive .faicon {
    line-height: 2.89rem;
}
/* end collapsible table responsive. */


/* jQuery UI autocomplete. */
.ui-autocomplete {
    background-color: rgb(var(--wimutti-color-background-rgb));
    border: 1px solid var(--wimutti-color-lines);
    list-style: none;
    margin: 0;
    padding: 0;
    width: 260px;
}
.ui-autocomplete .ui-menu-item {
    border-bottom: 1px dotted var(--wimutti-color-lines);
    cursor: pointer;
    margin: 0;
    padding: 5px;
}
.ui-autocomplete .ui-menu-item:active,
.ui-autocomplete .ui-menu-item:focus,
.ui-autocomplete .ui-menu-item:hover {
    background-color: var(--wimutti-color-background-shade5);
}
.ui-autocomplete .ui-menu-item:last-child {
    border-bottom: none;
}
.ui-menu-item .wimutti-org-plugin_chantingbooks_search-result-post-excerpt {
    margin-left: 10px;
}
.ui-helper-hidden-accessible {
    display: none;
}
/* end jQuery UI autocomplete. */


.wimutti-org-plugin_chantingbooks_chant-in-chanting-book-pagination-nav {
    margin-top: 20px;
}


.wimutti-org-plugin_chantingbooks input,
.wimutti-org-plugin_chantingbooks select,
.wimutti-org-plugin_chantingbooks textarea {
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;/* Use Bootstrap default font family. */
}


.wimutti-org-plugin_chantingbooks_add-chant-to-book-dialog-body-max-height-screen.modal-body {
    /* @link https://stackoverflow.com/a/26808142/128761 Original source */
    max-height: calc(100vh - 170px);
    overflow-y: auto;
}
.wimutti-org-plugin_chantingbooks_add-chant-to-book-form .form-control {
    display: inline-block;
    width: auto;
}
.wimutti-org-plugin_chantingbooks_add-chant-to-book-modal {
    z-index: 100000;/* must heigher than WP admin navbar */
}
.wimutti-org-plugin_chantingbooks_add-chant-to-book-row {
    margin-bottom: 10px;
}
.wimutti-org-plugin_chantingbooks_add-chant-to-book-btnstatus {
    display: inline-block;
    width: 40px;
}


.wimutti-org-plugin_chantingbooks_form-group-delete-book-btn {
    margin-bottom: 20px;
    margin-top: 20px;
}


#wimutti-org-plugin_chantingbooks_editbook-chants-list {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
}
#wimutti-org-plugin_chantingbooks_editbook-chants-list li {
    border-bottom: 1px dashed var(--wimutti-color-lines);
    margin: 0;
    padding: 7px 10px;
    position: relative;
}
#wimutti-org-plugin_chantingbooks_editbook-chants-list li:hover {
    background-color: var(--wimutti-color-background-shade5);
}
#wimutti-org-plugin_chantingbooks_editbook-chants-list .chant-list-item-sort-handle {
    cursor: ns-resize;
}
#wimutti-org-plugin_chantingbooks_editbook-chants-list .chant-removal-controls {
    position: absolute;
    right: 10px;
}
#wimutti-org-plugin_chantingbooks_editbook-chants-list .chant-removal-controls > * {
    cursor: pointer;
}
#wimutti-org-plugin_chantingbooks_editbook-chants-list .chant-title {
    display: inline-block;
    margin-right: 20px;
    word-break: break-all;
    word-wrap: break-word;
}


#wimutti-org-plugin_chantingbooks_editbook-form fieldset {
    border-bottom: 1px solid var(--wimutti-color-lines);
    margin-bottom: 15px;
}
#wimutti-org-plugin_chantingbooks_editbook-form #cb_admin_user_comment p:last-child {
    margin-bottom: 0;
}


.wimutti-org-plugin_chantingbooks_each-book {
    border-bottom: 1px dotted var(--wimutti-color-lines);
    margin-bottom: 20px;
    padding-bottom: 20px;
    word-break: break-all;
    word-wrap: break-word;
}
.wimutti-org-plugin_chantingbooks_each-book .book-description {
    margin-bottom: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wimutti-org-plugin_chantingbooks_each-book .book-description,
.wimutti-org-plugin_chantingbooks_each-book .book-meta {
    margin-left: 10px;
    margin-right: 10px;
}
.wimutti-org-plugin_chantingbooks_each-book .book-title {
    margin-bottom: 0;
    margin-top: 0;
}


.wimutti-org-plugin_chantingbooks_page-contents .book-description {
    word-break: break-all;
    word-wrap: break-word;
}


.wimutti-chantingbooks-listing-controls-top {
    margin-bottom: 20px;
}