/*
*
* @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.
*
*/

.io-ox-calendar-edit {
    // baseline adjustment
    padding-top: @default-padding;
    padding-bottom: @default-padding;

    .btn.btn-link { padding-left: 0; }

    .actionToggle {
        display: none;
        margin: 10px 0;
    }

    .recurrenceview div.checkbox { margin-top: 0; }
    .recurrenceview .summary a span:after { content: '\00a0'; }

    input[name="title"] { font-weight: bold; }

    textarea.note {
        resize: vertical;
        padding: 10px;
        min-height: 120px;
    }

    .find-free-time {
        margin-top: 12px;
        .btn {
            white-space: normal;
            text-align: left;
        }
    }

    .hard-conflict { margin: 1em 0 0 0; }

    .disabled, .disabled:hover, .disabled label {
        color: @link-disabled-color;
        cursor: not-allowed;
    }

    button.disabled { opacity: 1; }

    .color-picker-dropdown {
        display: inline-block;
    }

    .visibility-container {
        padding-top: 21px;

        .attendee-change-checkbox {
            margin-top: 8px;
            &.disabled label{
                color: @link-disabled-color;
                cursor: not-allowed;
            }
        }
    }

    .picked-color {
        width: 1.25rem;
        height: 1.25rem;
        border-radius: 3px;
        background-color: rgb(255, 255, 255);
        display: inline-block;
        margin-left: 12px;

        &:before {
            font-family: 'FontAwesome';
            content: '\00a0';
            width: 1.25rem;
            height: 1.25rem;
            display: inline-block;
            border-radius: 3px;
        }
    }

    .folder-color {
        width: 1.25rem;
        height: 1.25rem;
        border-radius: 3px;
        background-color: rgb(255, 255, 255);
        display: inline-block;
        margin-left: 12px;

        &:before {
            font-family: 'FontAwesome';
            content: '\00a0';
            width: 1.25rem;
            height: 1.25rem;
            display: inline-block;
            border-radius: 3px;
        }
    }

    .folder-selection {
        margin-bottom: 5px;

        .dropdown {
            display: inline-block;
        }
    }

    .add-participant.tt-hint, .add-participant.tt-input{ height: 2.14285714em };

    /* Mobile */
    @media all and (max-width: @smartphone-breakpoint), all and (max-device-width: @smartphone-breakpoint) {
        .actionToggle { display: block; }

        .collapsed { display: none; }

        textarea.note { min-height: 50px; }

        .custom-color .color-label {
            width: 40px;
            height: 40px;
            margin: 4px;
            font-size: 30px;

            &.no-color { margin-right: 52px; }

            &.active .fa { line-height: 40px; }
        }

        [data-extension-id="folder-selection"] {
            padding-top: 10px;
        }
    }

    .visibility-select {
        margin-top: 8px;
    }

    .btn.btn-link.visibility-helper-button {
        font-size: 16px;
        padding: 0;
        margin: 0 0 0 8px;
        position: absolute;
        top: 6px;
    }

}

.calendar-popover {
    padding: 0 8px 8px 8px;

    .ox-popover-title {
        font-weight: bold;
        margin: 8px 0;
    }
}

.io-ox-calendar-edit-window.header-top .window-header .header-right,
.io-ox-calendar-edit-window.header-bottom .window-footer .header-right {
    float: right;
    line-height: 32px;

    a { margin-left: 0.2em; }
}
