﻿#CRM .con {
    display: flex;
    height: 100%;
}

    #CRM .con .organisation-groups {
        flex: 0 0 300px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border-right: 1px solid #ddd;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
        position: relative;
        z-index: 1;
    }

        #CRM .con .organisation-groups .cons h2 {
            border-bottom: 1px solid #ddd;
            color: #808080;
            padding-left: 10px;
            padding-bottom: 5px;
        }

        #CRM .con .organisation-groups .cg-cons {
            display: flex;
            padding: 8px;
            font-size: 16px;
        }

            #CRM .con .organisation-groups .cg-cons > div {
                margin-right: 10px;
                color: #696969;
                cursor: pointer;
            }

                #CRM .con .organisation-groups .cg-cons > div:hover {
                    color: #333333;
                }

        #CRM .con .organisation-groups .cg-search {
            display: flex;
            border-bottom: 1px solid #ddd;
        }

            #CRM .con .organisation-groups .cg-search input {
                flex: 1 1 auto;
                padding-left: 5px;
                margin: 3px;
                border: 1px solid #ddd;
            }
    #CRM .con .organisation-groups .cg-organisations {
        margin-top: 16px;
        margin-bottom: 16px;
        padding-top: 4px;
        padding-bottom: 4px;
        padding-left: 8px;
        padding-right: 8px;
    }
        #CRM .con .organisation-groups .cg-organisations:hover {
            background-color: #5272a6;
            color: white;
        }

        #CRM .con .organisation-groups .cg-organisations.active {
            background-color: #5292a6;
            color: white;
        }

        #CRM .con .organisation-groups .cg-organisations .cg-organisation-title {
            /*border-bottom: 1px solid #d9d9d9;*/

            cursor: pointer;
        }

            #CRM .con .organisation-groups .cg-organisations .cg-organisation-list {
                display: block;

            }
                #CRM .con .organisation-groups .cg-organisations .cg-organisation-list .cg-organisation-list-itm {
                    cursor: pointer;
                    margin-bottom: 4px;
                    margin-left: 8px;

                }

        #CRM .con .organisation-groups .cg-tags-title {
            border-bottom: 1px solid #d9d9d9;
            margin-top: 16px;
            margin-bottom: 16px;
            margin-left: 8px;
            margin-right: 8px;
            font-weight: bold;
        }

    #CRM .con .tree {
        flex: 1 1 auto;
        display: flex;
        color: #696969;
        overflow: auto;
        font-size: 12px;
        padding-top: 10px;
    }



        #CRM .con .tree .groups {
            flex: 1 1 auto;
            position: relative;
        }

            #CRM .con .tree .groups .ag {
                flex: 1 1 auto;
                margin: 5px;
                border: 1px dashed #ddd;
                text-align: center;
                padding: 5px;
                color: #696969;
            }

        #CRM .con .tree .group {
            flex: 1 1 auto;
        }

            #CRM .con .tree .group .h {
                display: flex;
                align-items: center;
                padding-right: 100px;
            }

                #CRM .con .tree .group .h > * {
                    display: inline-block;
                }

                #CRM .con .tree .group .h .c-a {
                    display: none;
                }

                #CRM .con .tree .group .h:hover {
                    color: #fff;
                }

                    #CRM .con .tree .group .h:hover .bg {
                        background-color: #5272a6;
                        /*                        border-radius: 3px;*/
                        position: absolute;
                        left: 0;
                        right: 0;
                        height: 24px;
                    }

                #CRM .con .tree .group .h .i {
                    flex: 0 0 20px;
                    text-align: center;
                    z-index: 1;
                }

                #CRM .con .tree .group .h .t {
                    flex: 1 1 auto;
                    line-height: 24px;
                    white-space: nowrap;
                    z-index: 1;
                }

            #CRM .con .tree .group .items {
                padding-left: 20px;
                display: none;
            }

            #CRM .con .tree .group.active > .h .c-c {
                display: none;
            }

            #CRM .con .tree .group.active > .h .c-a {
                display: inline-block;
            }

            #CRM .con .tree .group.active > .items {
                display: block;
            }

            #CRM .con .tree .group.selected > .h {
                color: #fff;
            }

                #CRM .con .tree .group.selected > .h .bg {
                    background-color: #5292a6;
                    /*                        border-radius: 3px;*/
                    position: absolute;
                    left: 0;
                    right: 0;
                    height: 24px;
                }

            #CRM .con .tree .group.ni .h .c-c::before {
                content: "";
            }

            #CRM .con .tree .group.ni .h .c-a::before {
                content: "";
            }

#CRM .organisation-panel {
    flex-direction: column;
    overflow: auto;
    position: relative;
    width: 100%;
    margin-right: 32px;
    display: none;
}

    #CRM .organisation-panel .controls {
        display: flex;
        align-items: end;
        padding: 3px;
        padding-bottom: 3px;
        height: 59px;
        padding-bottom: 5px;
        border-bottom: 1px solid #ddd;
    }

    #CRM .organisation-panel .organisation-title {
        flex: 1 1 auto;
        border: none;
        border-bottom: 1px dashed #ddd;
        margin: 0 5px;
        font-size: 20px;
        width: 20px;
    }
        

        #CRM .organisation-panel .controls input {
            flex: 1 1 auto;
            border: none;
            border-bottom: 1px dashed #ddd;
            margin: 0 5px;
            font-size: 20px;
            padding-left: 20px;
        }

        #CRM .organisation-panel .controls > div {
            margin-left: 5px;
        }
    #CRM .organisation-panel .details {
        flex: 0 0 150px;
/*        border-bottom: 1px solid #ddd;*/
        padding: 5px;
        display: flex;
        gap: 32px;
        padding-top: 32px;
        padding-left: 32px;
        flex-direction: column;
    }

        #CRM .organisation-panel .details textarea {
            flex: 1 1 auto;
        }

        #CRM .organisation-panel .details label {
           width: 100px;
        }

        #CRM .organisation-panel .details .block1 {
            display: flex;
        }

            #CRM .organisation-panel .details .block1 .organisation-label {
                min-width: 100px;
                margin-right: 16px;
            }

            #CRM .organisation-panel .details .block1 #organisation-phone {
                margin-right: 32px;
            }

        #CRM .organisation-panel .details .block2 {
            display: flex;
        }



            #CRM .organisation-panel .details .block2 .organisation-label {
                min-width: 100px;
                margin-right: 16px;
            }












                /*            #CRM .organisation-panel .details .tabbed-table .tab .tab-table {
                border-collapse: collapse;
                width: 100%;
                margin-top: 10px;
            }*/
                /*            #CRM .organisation-panel .details .tabbed-table .tab table, th, td {
                border: 1px solid #ccc;
            }

            #CRM .organisation-panel .details .tabbed-table .tab th, td {
                padding: 8px;
                text-align: left;
            }*/
#CRM .panel {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    overflow: auto;
    position: relative;
    min-width: 300px;
    border-right: 1px solid #ddd;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 0;
}

    #CRM .panel h2 {
        font-size: 20px;
        padding: 5px;
        color: #797979;
    }

    #CRM .panel fieldset {
        padding-top: 0;
    }

    #CRM .panel .controls {
        display: flex;
        align-items: end;
        padding: 3px;
        padding-bottom: 3px;
        height: 59px;
        padding-bottom: 5px;
        border-bottom: 1px solid #ddd;
    }

        #CRM .panel .controls input {
            flex: 1 1 auto;
            border: none;
            border-bottom: 1px dashed #ddd;
            margin: 0 5px;
            font-size: 20px;
            width: 20px;
        }

        #CRM .panel .controls .org-title-allorganisations {
            flex: 1 1 auto;
            border: none;
            border-bottom: 1px dashed #ddd;
            margin: 0 5px;
            font-size: 20px;
            width: 20px;
        }

        #CRM .panel .controls > div {
            margin-left: 5px;
        }

    #CRM .panel .details {
        flex: 0 0 150px;
       /* border-bottom: 1px solid #ddd;*/
        padding: 5px;
        display: flex;
        flex-direction: column;
        /* .ico {
      .btn {
          margin: 5px;
          border: 1px solid #ddd;
          border-radius: 5px;
          text-align: center;
          padding: 10px;
          background-color: #f7f7f7;
      }
  }*/
    }

        #CRM .panel .details textarea {
            flex: 1 1 auto;
        }

    #CRM .panel .cons {
        flex: 1 1 auto;
        border-bottom: 1px solid #ddd;
        min-height: 100px;
        display: flex;
        flex-direction: column;
    }

    #CRM .panel .addr {
        flex: 1 1 auto;
        min-height: 100px;
        display: flex;
        flex-direction: column;
    }

#CRM .c-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

#CRM .c-dis {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    opacity: 0.6;
    align-items: center;
    justify-content: center;
}

fieldset.full {
    width: unset;
}

.organization-collection {
    flex: 1 1 auto;
    padding: 10px;
    position: relative;
}

.address-collection {
    flex: 1 1 auto;
    padding: 10px;
    position: relative;
}

#CRM .it-cont .bg {
    background: none;
    border-bottom: 1px solid #ddd;
    height: 40px;
}

#CRM .it-cont .it-head {
    height: 40px;
}

    #CRM .it-cont .it-head > div {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

#CRM .it-cont .it-body {
    top: 40px;
}

    #CRM .it-cont .it-body table tr:hover td {
        background: none;
    }

    #CRM .it-cont .it-body table tr.active td {
        background: none !important;
    }

    #CRM .it-cont .it-body table input[type=text] {
        border: none;
        padding-left: 5px;
        width: 100%;
    }

    #CRM .it-cont .it-body table .ph input[type=radio],
    #CRM .it-cont .it-body table .ph .it-col-delete span {
        display: none;
    }

    #CRM .it-cont .it-body table .it-col-default {
        text-align: center;
    }

    #CRM .it-cont .it-body table .it-col-delete span {
        color: #bc1f1f;
        display: flex;
        align-items: center;
        justify-content: center;
    }


