﻿/*
* Bootstrap 4 Circle Buttons
* https://bootstrapious.com/p/bootstrap-circle-button
*/
.btn-circle {
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    padding: 0;
    border-radius: 50%;
}

    .btn-circle i {
        position: relative;
        top: -1px;
    }

    /* Extra style for button image */
    .btn-circle img {
        position: relative;
        top: -2px;
    }

.btn-circle-sm {
    width: 35px;
    height: 35px;
    line-height: 35px;
    font-size: 0.9rem;
}

.btn-circle-lg {
    width: 55px;
    height: 55px;
    line-height: 55px;
    font-size: 1.1rem;
}

.btn-circle-xl {
    width: 70px;
    height: 70px;
    line-height: 70px;
    font-size: 1.3rem;
}

/* Add extra padding for contents if a page has narbar */
.main-with-navbar {
    padding-top: 70px;
}

/* Change Bootstrap modal style */
.ced-custom .modal-header {
    padding: .5em .5em 0 .5em;
    border-bottom: none;
}

    /* For Gijgo dialogs, such as the one used in showMsgDialog */
    .ced-custom .modal-header .close {
        margin-top: -.8em;
        margin-right: -.5em;
    }

    .ced-custom .modal-header .modal-title {
        text-align: center;
        color: #ffffff;
        font-size: 16px;
        width: 100%;
        background-color: rgb(131, 69, 140);
        line-height: 2.2em;
        height: 2.2em !important;
    }

    .ced-custom .modal-header .modal-header-wrap {
        width: 100%;
    }

/* For general Boostrap dialogs */
.ced-custom .modal-dialog .modal-header .close {
    margin-top: -.5em;
}

.ced-custom .modal-footer {
    padding: .5em;
}

/* Common float panel style */
.float-panel {
    position: fixed;
    z-index: 997;
}

.float-panel,
.float-panel-style {
    background: #ffffff;
    border: 1px solid #999999;
    border-radius: 5px;
}

    .float-panel .float-panel-header {
        position: absolute;
        width: 100%;
        padding: .5em .5em 0 .5em;
        border-radius: 5px 5px 0 0;
        background-color: #ffffff;
        height: 2.5em;
    }

        .float-panel .float-panel-header .float-panel-title {
            font-size: 14px;
            color: #ffffff;
            background-color: rgb(131, 69, 140);
            height: 2.2em;
            line-height: 2.2em;
            text-align: center;
            font-weight: bold;
        }

        .float-panel .float-panel-header .float-panel-close {
            position: absolute;
            right: .6em;
        }

    .float-panel .float-panel-message {
        position: absolute;
        top: 2.5em;
        left: 0;
        right: 0;
        padding: .2em .5em;
        font-size: larger;
        font-weight: bold;
        text-decoration: underline;
    }

    .float-panel .float-panel-content {
        overflow-x: hidden;
        overflow-y: auto;
        position: absolute;
        top: 4.6em;
        left: 0;
        right: 0;
        bottom: 3em;
        padding: .5em;
    }

    .float-panel .float-panel-no-msg {
        top: 2.5em !important;
    }

    .float-panel .float-panel-no-footer {
        bottom: 0 !important;
    }

    .float-panel .float-panel-footer {
        overflow-y: auto;
        position: absolute;
        padding: .5em;
        left: 0;
        right: 0;
        bottom: 0;
        border-top: 1px solid #dddddd;
    }

        .float-panel .float-panel-footer .loading {
            display: inline-block;
        }

div.modal {
    background: rgba(0, 0, 0, .7);
}

#loading-modal {
    background: rgba(0, 0, 0, 0.65);
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1051;
}

#loading-modal-progress {
    min-width: min(100vw, 16em);
}

#msg-dialog {
    z-index: 1049;
}

    #msg-dialog .text-content {
        white-space: pre-wrap;
    }
