/* Cimes & Cimes Admin */


.cimes-container-horizontal {
    display: flex;
    flex-direction: row;
}

.cimes-container-horizontal {
    display: flex;
    flex-direction: row;
}

.cimes-container-vertical {
    display: flex;
    flex-direction: column;
}




.cimes-admin,
.cimes-admin-container,
.cimes-admin-plugin {
    cursor: crosshair;
    margin: 10px;
    box-sizing: border-box;
}

.cimes-admin-container-shown {
    border-style: solid;
    border-width: 1px;
    border-color: #666666;
                      
}


.cimes-admin {
    background-color: #ffeeee;
    padding: 10px;
}


.cimes-admin-container {
    background-color: #ffe4e4;
    padding: 10px;
}


.cimes-admin-plugin {
    background-color: #e4e4e4;
}


.cimes-admin.cimes-admin-active {
    border-style: dotted;
    border-color: red;
    border-width: 2px;
}

.cimes-admin-container.cimes-admin-active {
    border-style: dashed;
    border-color: red;
    border-width: 2px;
}


.cimes-admin-image {
    max-width: 200px;
    max-height: 200px;
}


.cimes-admin-ordered-list {
    
}





.cimes-admin-highlight-section {
    position: fixed;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    z-index: 9998;
    background-color: white;
    border-style: solid;
    border-width: 1px;
    border-color: grey;
    border-radius: 4px;
    background: repeating-linear-gradient(
        -45deg,
        #ffeeee,
        white 10px,
        #ffeeee 10px
    );
}


.cimes-admin-highlight-current {
    font-weight: bold;
    font-style: italic;
}

.cimes-admin-highlight-drag {
    font-style: italic;
    color: #dd4444;
}




.cimes-admin-drag-start {
    cursor: grabbing;
}

.cimes-admin-drag-target * {
    pointer-events: none;
}


.cimes-admin-drag-targetUNUSED > div {
    box-shadow: 0 2px 2px -3px rgba(80,160,80,.6), 0 4px 5px 1px rgba(80,160,80,.52), 0 2px 7px 2px rgba(80,160,80,.72);
}




.cimes-admin-drag {
    opacity: .2;
}


.cimes-admin-drag-enter {
    border-style: dotted;
    border-color: #4444ff;
    border-width: 2px;
}


.cimes-admin-drag-enter > * {
    border-style: dotted;
    border-color: #8888ff;
    border-width: 2px;
}

/* Upload */
.cimes-admin-upload-block {
    width: 100%;
    max-width: 1200px;
    min-width: 300px;
    height: 80px;
    padding: 10px;
    font-size: .8em;
}


.cimes-admin-upload-button {
    position: relative;
    padding: 20px;
    border-style: dashed;
    border-width: 2px;
    box-sizing: border-box;
    font-size: 1.2em;
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
}

.cimes-admin-upload-hint {
    font-size: .8em;
}

.cimes-admin-upload-file {
  cursor: pointer;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  box-sizing: border-box;
}


/* Tree */
.cimes-admin-tree-node {
    padding: 0 0 0 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 50vh;
    overflow-y: auto;
    border-style: none none none dotted;
    border-width: 1px;
    color: #222222;
    border-radius: 2px;
}

.cimes-admin-tree-node-locked {
    border-style: none none none solid;
}

.cimes-admin-tree-node-selected > .cimes-admin-tree-node-label {
    background-color: #ffcccc;
    color: #222222;
}

.cimes-admin-tree-node-active .cimes-admin-tree-node-label {
    color: #ff0000;
}

.cimes-admin-tree-node-item {
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
}

.cimes-admin-tree-node-toggle {
    color: #333333;
    cursor: pointer;
}

.cimes-admin-tree-node-toggle-container {
}

.cimes-admin-tree-node-toggle-plugin {
}

.cimes-admin-tree-node-toggle-image,
.cimes-admin-tree-node-toggle-text,
.cimes-admin-tree-node-toggle-ordered-list {
    font-size: .6em;
}

.cimes-admin-tree-node-label {
    padding: 2px;
    cursor: pointer;
}

.cimes-admin-tree-node-container {

}

.cimes-admin-tree-node-plugin {

}


/* Editors */
.cimes-editor {
    position: fixed;
    display: flex;
    flex-direction: column;
    border-style: solid;
    border-width: 1px;
    border-color: grey;
    border-radius: 4px;
}

#cimes-admin-tree-editor {
    top: 10px;
    right: 10px;
    z-index: 9999;
}

#cimes-admin-plugin-editor {
    top: 10px;
    left: 10px;
    z-index: 9998;
}


.cimes-editor-mover {
    height: 20px;
    background-color: #444444;
}


.cimes-admin-editor-input-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background-color: white;
    background: repeating-linear-gradient(
        -45deg,
        #eeeeff,
        white 10px,
        #eeeeff 10px
    );
}

.cimes-admin-editor-tree-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background-color: white;
    background: repeating-linear-gradient(
        -45deg,
        #eeffee,
        white 10px,
        #eeffee 10px
    );
}

#cimes-admin-tree {
    padding: 2px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    background-color: white;
}

.cimes-editor-title {
    padding: 0 0 6px 0;
    font-weight: bold;
    border-style: none none solid none;
    border-width: 1px;
    border-color: #cccccc;
}

#cimes-admin-editor-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cimes-admin-editor-input-line {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

.cimes-admin-editor-input-label {
    width: 120px;
}

.cimes-admin-editor-input-value-block {
    display: flex;
    flex-direction: column;
    gap: 5px;
}


.cimes-admin-editor-input-image-block {
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
}

.cimes-admin-editor-input-value {
}

.cimes-admin-editor-input-value-large {
    width: 500px;
}

.cimes-admin-editor-input-value-small {
    width: 100px;
}

.cimes-admin-editor-input-value-modifier-block {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

.cimes-admin-editor-input-value-modifier {
    padding: 4px;
    cursor: pointer;
}

.cimes-admin-editor-input-value-modifier-bold {
    font-weight: bold;
}

.cimes-admin-editor-input-value-modifier-italic {
    font-style: italic;
}


.cimes-admin-editor-input-full-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.cimes-admin-editor-input-full-container-title {
    font-weight: bold;
}


.cimes-admin-editor-input-full-container-content {
    max-height: 500px;
    overflow: auto;
    padding: 20px;    
    display: flex;
    flex-direction: column;
    gap: 20px;
    
    border-style: solid;
    border-width: 1px;
    border-color: grey;
    border-radius: 2px;
}

.cimes-admin-editor-input-full-container-button-block {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: flex-end;
}

 
.cimes-admin-edition-child-type-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    border-style: none none solid none;
    border-color: #cccccc;
    border-width: 1px;
}

.cimes-admin-edition-child-type {
}

.cimes-admin-edition-child-type-selected {
    font-weight: fold;
    border-style: none none solid none;
    border-color: #444444;
    border-width: 1px;
}
 


.cimes-admin-edition-child-list {
    display: flex;
    flex-direction: row;
    gap: 50px;
    flex-wrap: wrap;
}
 

.cimes-admin-child-list {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.cimes-admin-edition-child {
    padding: 5px 8px;
    cursor: pointer;
    background-color: white;
    border-style: solid;
    border-width: 1px;
    border-color: grey;
    border-radius: 2px;
}


#cimes-admin-picture-gallery {
    display: flex;
    flex-direction: row;
    gap: 50px;
    flex-wrap: wrap;
}

.cimes-admin-picture-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    align-items: center;
    cursor: pointer;
}


.cimes-admin-picture-block-selected {
    background-color: #cccccc;
}

.cimes-admin-picture {
    max-height: 50px;
    max-width: 50px;
}



.cimes-admin-plugin-class-input-block,
.cimes-admin-plugin-event-input-block {
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
}

.cimes-admin-plugin-event-input-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}


.cimes-admin-plugin-event-input-line {
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
}

.cimes-admin-plugin-event-input-label {
    width: 50px;
}

.cimes-admin-editor-input-class-block,
.cimes-admin-editor-input-event-block {
    display: flex;
    flex-direction: column;
}

.cimes-admin-editor-input-class-block {
    gap: 3px;
}

.cimes-admin-editor-input-event-block {
    gap: 20px;
}

.cimes-admin-button-remove-class,
.cimes-admin-button-remove-event {
    color: #cc2222;
    cursor: pointer;
}

.cimes-admin-button-add-event,
.cimes-admin-button-add-class {
    color: #2222cc;
    cursor: pointer;
}

#cimes-admin-button-container,
#cimes-admin-tree-button-container {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: space-between;
}


#cimes-admin-specific-button-container,
#cimes-admin-tree-specific-button-container {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: flex-end;
}

#cimes-admin-common-button-container,
#cimes-admin-tree-common-button-container {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: flex-end;
}




.cimes-admin-naked-button {
    cursor: pointer;
    border-radius: 2px;
}

.cimes-admin-naked-button:hover {
    color: #446688;
}


.cimes-admin-button {
    padding: 5px 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    background-color: white;
    border-style: solid;
    border-width: 1px;
    border-color: grey;
    border-radius: 2px;
}

.cimes-admin-button:hover {
    background-color: #eeeeee;
}

.cimes-admin-button-remove {
    color: red;
}

.cimes-admin-button-apply {
    color: green;
}

.cimes-admin-button-close {
    color: grey;
}

.cimes-admin-button-radio-container {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.cimes-admin-button-radio {
    width: 20px;
    height: 20px;
    text-align: center;
    cursor: pointer;
    background-color: white;
    border-style: solid;
    border-width: 1px;
    border-color: grey;
    border-radius: 2px;
}

.cimes-admin-button-radio-active {
    background-color: #cccccc;
    border-color: blue;
}


.cimes-admin-editor-input-separator {
    width: 100%;
    height: 1px;
    background-color: #cccccc;
    height: 1px;
}





