/*
*
* @copyright Copyright (c) Open-Xchange GmbH, Germany <info@open-xchange.com>
* @license AGPL-3.0
*
* This code is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.

* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.

* You should have received a copy of the GNU Affero General Public License
* along with OX App Suite. If not, see <https://www.gnu.org/licenses/agpl-3.0.txt>.
*
* Any use of the work other than as authorized under this license or copyright law is prohibited.
*
*/

.modal.flex.alarms-view-dialog {
    .modal-dialog { min-width: 600px };
    .modal-content {
        min-height: 300px;
        max-height: 500px;
        // if there is not enough space we set the min height to the max height in modal dialogs
        @media (max-height: 548px) {
            min-height: ~"calc(100vh - 48px)";
            max-height: ~"calc(100vh - 48px)";
        }
    }
}

.alarms-link-view  {
    .alarm-link {
        padding-left: 0;
        padding-bottom: 6px;
        white-space: normal;
        text-align: left;
    }

    .alarm-link-list {
        margin-bottom: 0px;
    }
}

.alarms-view {
    .alarm-list {
        overflow-x: hidden;
        margin-bottom: 5px;

        .alarm-list-item {
            padding-top: 5px;
            padding-bottom: 5px;

            .item {
                .form-control {
                    width: 28%;
                }

                // unsupported alarm types
                div.alarm-action {
                    width: 28%;
                    text-overflow: ellipsis;
                    overflow: hidden;
                    padding-left: 9px;
                }

                line-height: 30px;
                display: flex;
                justify-content: space-between;
            }

            &:hover {
                background-color: #eeeeee;
            }
            .alarm-remove {
                width: 40px;
                text-align: center;
                padding: 0;
                color: #333;
                &:hover,&:focus {
                    background-color: #cc0000;
                    color: #fff;
                }
            }
        }
    }
}
