/* BEGIN CONTROL PANEL */

.control-panel {
    display: flex;
    flex-flow: row wrap;
    align-items: stretch;
    justify-content: stretch;
    width: 100%;
    padding: 0;
}

.canvas-panel {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background-color: black;
    flex: 1 1;
}

.dicom-canvas {
    display: block;
    padding: 0;
    margin: 0; 
    background-color: black;
    /*position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;*/
    width: 100%;
    height: 100%;
}

.canvas-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 1rem;
    display: block;
    z-index: 9999;
    background-color: #0f72c3;
    color: white;
}

.canvas-panel-fullscreen {
    display: block;
    position: absolute;
    /*z-index: 9999;*/
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    overflow: auto;
    background-color: black;
    margin: 0;
    padding: 0;
}

.control-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    /*background-color: rgba(255, 255, 255, 0.5);*/
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    padding: 0.8rem 0.8rem 0.8rem 0.8rem;
    min-width: -moz-min-content;
    min-width: -webkit-min-content;
    min-width: -ms-min-content;
    min-width: -o-min-content;
    min-width: min-content;
    pointer-events: none;
}

.control-overlay-left {
    position: absolute;
    z-index: 99999;
    top: 2px;
    left: 2px;
    border-color: /*blue900*/#0d47a1;
    color: /*blue900*/#0d47a1;
    border-width: 1px;
    border-style: solid;
    border-radius: 5px;
    margin: 1rem;
    box-shadow: none;
    text-shadow: none;
    min-width: 48px;
    min-height: 48px;
}

.control-overlay-right {
    position: absolute; 
    z-index: 99999;
    top: 2px;
    right: 2px;
    /*background-color: white;*/
    border-color: /*blue900*/#0d47a1;
    color: /*blue900*/#0d47a1;
    border-width: 1px;
    border-style: solid;
    border-radius: 5px;
    margin: .8rem;
    box-shadow: none;
    text-shadow: none;
    min-width: 48px;
    min-height: 48px;
}

.no-touch .control-overlay-left:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.control-overlay-left:active {
    background-color: rgba(255, 255, 255, 0.8);
}

.no-touch .control-overlay-right:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.control-overlay-right:active {
    background-color: rgba(255, 255, 255, 0.8);
}

.control-overlay-left:focus {
    box-shadow: 0 0 0 3px /*blue900*/#0d47a1;
}

.control-overlay-right:focus {
    box-shadow: 0 0 0 3px /*blue900*/#0d47a1;
}

.control-container {
    display: inline-flex;
    flex-flow: row;
    align-items: center;
    /*justify-content: center;*/
    border-color: /*blue900*/#0d47a1;
    border-width: 1px;
    border-style: solid;
    border-radius: 5px;
    color: /*blue900*/#0d47a1;
    margin: 0 .8rem .8rem 0;
    padding: 0 1.6rem;
    box-shadow: none;
    text-shadow: none;
    flex: 1 0 auto;
    width: 100%;
}

.control-range {
    display: inline-block;
    min-height: 32px;
    flex: 1 0 0%;
}

.control-text {
    display: inline-block;
    /*overflow: hidden;
    flex: 0 0 auto;
    min-width: 0;
    text-overflow: ellipsis;
    -mox-box-sizing: border-box;
    box-sizing: border-box;*/
    padding: 0;
    background-color: transparent;
    flex: 0 0 0%;
}

.control-range::-moz-focus-outer {
    border: 0;
}

input[type=range].control-range {
    -webkit-appearance: none;
}

input[type=range].control-range::-webkit-slider-runnable-track {
    /*width: auto;*/
    height: 4px;
    background: #ddd;
    /*border: none;*/
    border: 1px solid /*indigo900*/#1a237e;
    /*border-radius: 2px;*/
    /*margin-left: 0.8rem;
    margin-right: 0.8rem;*/
}

input[type=range].control-range::-moz-range-track {
    /*width: auto;*/
    height: 4px;
    background: /*indigo900*/#1a237e;
    /*border: none;*/
    border: 1px solid /*indigo900*/#1a237e;
    border-radius: 2px;
    padding: 0 0.8rem;
    margin: 0 0.8rem;
}

input[type=range].control-range::-ms-track {
    height: 4px;
    background: #ddd;
    border: 1px solid /*indigo900*/#1a237e;
    border-radius: 2px;
}

input[type=range].control-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    border: 1px solid /*indigo900*/#1a237e;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: /*blue900*/#0d47a1;
    margin-top: -7px;
}

input[type=range].control-range::-moz-range-thumb {
    -webkit-appearance: none;
    border: 1px solid /*blue400*/#42a5f5;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: /*blue800*/#1565c0;
    margin-top: -7px;
}

input[type=range].control-range::-ms-thumb {
    -webkit-appearance: none;
    border: 1px solid /*indigo900*/#1a237e;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: /*blue900*/#0d47a1;
    margin-top: -7px;
}

input[type=range].control-range:focus {
    outline: none;
}

select option:disabled {
    color: #a9a9a9;
}

/*
input[type=range].control-range:focus::-webkit-slider-runnable-track {
    background: #ccc;
}

input[type=range].control-range:focus::-moz-range-track {
    background: #ccc;
}
*/

/*.control:-moz-focusring {
    color: transparent !important;
    text-shadow: 0 0 0 */ /*blue900*/ /*#0d47a1 !important;*/
    /*text-shadow: 0 0 0 #49a7c0 !important;*/ /*
}*/


.control {
    display: inline-block;
    background-color: white;
    border-color: /*blue800*/#1565c0;
    border-width: 1px;
    border-style: solid;
    border-radius: 5px;
    color: black;
    margin: 2px .8rem .8rem 2px;
    box-shadow: none;
    text-shadow: none;
    flex: 0 0 auto;
    min-width: 48px;
    min-height: 48px;
    overflow: hidden;
    pointer-events: auto;
}

.control:disabled {
    opacity: 0.7;
}

.no-touch .control:hover, .control:active {
    background-color: #cccccc;
}

.control:focus {
    box-shadow: 0 0 0 2px /*blue800*/#1565c0;
}

.control-selected-left {
    display: inline-block;
    background-color: /*blue800*/#1565c0;
    border-color: white;
    border-width: 1px;
    border-style: solid;
    border-radius: 5px;
    color: white;
    margin: 2px .8rem .8rem 2px;
    /*padding: .8rem 1.6rem;*/
    box-shadow: none;
    text-shadow: none;
    flex: 0 0 auto;
    min-width: 48px;
    min-height: 48px;
    overflow: hidden;
}

.no-touch .control-selected-left:hover, .control-selected-left:active {
    background-color: /*blue900*/ #0d47a1;
}

.control-selected-left:focus {
    box-shadow: 0 0 0 2px /*blue800*/#1565c0;
}

.control-selected-right {
    display: inline-block;
    background-color: /*red900*/#b71c1c;
    /*background-color: #49a7c0;*/
    border-color: /*red900*/#b71c1c;
    /*border-color: #49a7c0;*/
    border-width: 1px;
    border-style: solid;
    border-radius: 5px;
    color: white;
    margin: 0 .8rem .8rem 0;
    /*padding: .8rem 1.6rem;*/
    box-shadow: none;
    text-shadow: none;
    flex: 0 0 auto;
    min-width: 48px;
    min-height: 48px;
}

/* END CONTROL PANEL */
