/**
 * Styles for the general purpose CB stuff.
 */

/*** The opaque background behind a Dialog Box ***/
.cb_opaque {
    background-color:white;
    opacity:0.4;
    position:fixed; top:0; left:0;
    width:100%; height:100%;
}

/*** The Progress indicator ***/
.cb_progress {
    background:url('cb_progress.gif') no-repeat center;
    position:fixed; top:0; left:0;
    width:100%; height:100%;
    visibility:hidden;
}

/*** Dialog Boxes ***/
.cb_dialog {
    border:outset #cccccc 2px;
    background-color:#cccccc;
    position:fixed;
    max-width:80%;
    zzmax-height:98%;
}
.cb_dialog .caption {
    cursor:default;
    font-size:smaller;
    font-weight:bold;
    padding:0.5em 1em 0.5em 1em;
    background-color:#220088;
    color:#eeeeee;
}
.cb_dialog .caption .x {
    float:right;
    background-color:#444488;
    padding:0;
    border:solid gray 1px;
    width:1.5em;
    text-align:center;
    color: #eeeeee !important;
    text-decoration: none !important;
    transition: transform 0.12s ease, filter 0.12s ease, background-color 0.12s ease;
}
.cb_dialog .caption .x:hover {
    background-color:#884444 !important;
    color: white !important;
    text-decoration: none !important;
}
.cb_dialog .caption .x:active {
    transform: scale(0.9);
    filter: brightness(1.1);
}
.cb_dialog.closing {
    box-shadow: 0 0 0 3px rgba(255,255,255,0.45) inset;
    animation: cbDialogClosing 0.3s ease;
}
.cb_dialog.closing .caption {
    background-color:#3a1da0;
}
@keyframes cbDialogClosing {
    0% { transform: scale(1); opacity: 1; }
    70% { transform: scale(0.985); opacity: 0.9; }
    100% { transform: scale(1); opacity: 1; }
}
.cb_dialog form .content {
    padding-left:0.75em;
    padding-right:0.75em;
    padding-top:0.75em;
    padding-bottom:0.25em;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    border-bottom: 1px solid gray;
}
.cb_dialog form .buttons {
    padding-left:0.75em;
    padding-right:0.75em;
    padding-top:0.25em;
    padding-bottom:0.5em;
}
.cb_dialog input {
    resize: none;  /* bug in chrome, inherits */
}
.cb_dialog textarea {
    width: 30em;
    height: 4em;
}
.cb_dialog .buttons button {
    width:10em;
    font-weight:bold;
    margin-bottom:0.5em;
    margin-top:0.5em;
    margin-right:1em;
}
.cb_dialog.done {
    cursor: wait;
}
.cb_dialog.done * {
    pointer-events: none;
}
.cb_dialog.done .buttons button[type='submit'] {
    background: darkseagreen;
}
.cb_dialog .mandatory {
    font-weight:bold;
}
.cb_dialog .withcomment {
    border-bottom:1px dotted darkblue;
}
.cb_dialog .withcomment:hover {
    cursor:help;
}
.cb_dialog fieldset {
    margin-top: 0.5em;
    margin-bottom: 0.25em;
}
.cb_dialog fieldset legend {
    font-size: small;
    padding-left: 0.5em;
    padding-right: 0.5em;
}
.cb_dialog fieldset.toggle table {
    display: none;
}
.cb_dialog fieldset.toggle button.toggle {
    float: left;
    height: 22px;
    margin-right: 10px;
}
.cb_dialog td.column:nth-child(1n+2) {
    padding-left: 10px;
}

/*** Context Menus ***/
.cb_contextmenu {
    border:outset #cccccc 2px;
    font-family: Arial;
    font-size:10pt;
    background-color:#cccccc;
    padding:3px;
    position:fixed;
    z-index:199;
}
.cb_contextitem:hover {
    background-color:darkblue;
    color:white;
    cursor:default;
}
.cb_contextitem {
    padding:2px 1em 2px 1em;
}

/**
 * RSideButtons, schmale blaue Leiste am linken Rand,
 */
.RSideButtons {
    position: fixed;
    top: 40%;
    left: 0em;
    opacity: 0.3;
    border: solid darkblue 1px;
    border-radius: 0 5px 5px 0 ;
    z-index: 5;
}
.RSideButtons .item a {
    font-family: 'Lucida Console',Monospace;
    font-weight: bold;
    font-size: large;
    padding: 0.5em;
    display: block;
    text-decoration: none;
    color: #f0f0f0;
    background-color: darkblue ;
}
.RSideButtons:hover {
    opacity: 0.9;
}
.RSideButtons .item a:hover {
    background-color: blue;
    color: yellow;
}

/**
 * RIFrameDialog
 */
.RIFrameDialog iframe {
    position: absolute;
    width: 100% ;
    height: 100% ;
    border: none;
}
.RIFrameDialog .content {
    position: relative ;
    width: 60vw ;
    height: 80vh ;
    resize: both ;
    overflow: hidden;
}
