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

.permissions-dialog {

    .modal-header {
        *zoom: 1;

        .btn {
            float: right;
            &.btn-primary { margin-left: 13px; }
        }

        &:before,
        &:after {
          display: table;
          content: "";
          line-height: 0;
        }

        &:after { clear: both; }

        .autocomplete-controls {
            width: 402px;
            float: left;
        }
    }

    .modal-footer .cascade {
        display: table;
        position: relative;
        float: left;
        margin-top: 5px;
        margin-bottom: 0;
        margin-left: 10px;
    }

    .permission {
        margin-bottom: 8px;

        .contact-picture {
            display: inline-block;
            .picture(48px, 48px);
        }

        .contact-picture.group {
            i { font-size: 48px; line-height: 48px; color: #eee; }
        }

        .readwrite,
        .readonly { margin-right: 45px; }

        .readonly {
			a {
				cursor: default;
				color: #888;
			}

            i {
                font-style:normal;
                color: #333;
            }
        }

        .entity {
            padding-left: 64px + 13;
            position: relative;

            a { white-space: nowrap; }
        }

        .name {
            font-weight: bold;
            margin-right: 0.5em;
        }

        .owner {
            margin-right: 0.5em;
            color: darken(@red, 20%);
        }

        // .close { padding: 21px 0; }

        a[data-action="remove"] {
            position: absolute;
            top: 0;
            bottom: 0;
            right: 0;
            width: 45px;
            cursor: pointer;

            &:hover {
                background-color: @trash-icon-hover-background;

                i { color: @trash-icon-hover-color; }
            }

            i {
                position: absolute;
                top: 50%;
                left: 50%;
                margin: -7px 0 0 -6px;
                color: #aaa;
            }
        }

    }
}

.touch .permissions-dialog .modal-body {
    height: auto;
    min-height: 200px;
}
