
/*
 *  Guacamole - Clientless Remote Desktop
 *  Copyright (C) 2010  Michael Jumper
 *
 *  This program 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 this program.  If not, see <http://www.gnu.org/licenses/>.
 */

@import url('animation.css');
 
* {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

input[type=checkbox], input[type=number], input[type=text], textarea {
    -webkit-tap-highlight-color: rgba(128,192,128,0.5);
}

input[type=submit], button {
    -webkit-appearance: none;
}

input[type=text], input[type=number], input[type=password] {
    border: 1px solid #777;
    -moz-border-radius: 0.2em;
    -webkit-border-radius: 0.2em;
    -khtml-border-radius: 0.2em;
    border-radius: 0.2em;
    width: 100%;
    padding: 0.25em;
}

button {

    background: #3399FF;
    border: 1px solid rgba(0, 0, 0, 0.4);
    -moz-border-radius: 0.6em;
    -webkit-border-radius: 0.6em;
    -khtml-border-radius: 0.6em;
    border-radius: 0.6em;

    color: white;
    text-shadow: -1px -1px rgba(0, 0, 0, 0.3);
    font-weight: bold;
    font-size: 0.8em;

    box-shadow: inset -1px -1px 0.25em rgba(0, 0, 0, 0.25),
                inset 1px 1px 0.25em rgba(255, 255, 255, 0.25),
                -1px -1px 0.25em rgba(0, 0, 0, 0.25),
                1px 1px 0.25em rgba(255, 255, 255, 0.25);
    
    padding: 0.35em;
    padding-right: 1em;
    padding-left: 1em;
    min-width: 5em;

}

button:hover {
    background: #33BBFF;
}

button:active {

    padding-left: 1.1em;
    padding-right: 0.9em;
    padding-top: 0.45em;
    padding-bottom: 0.25em;
    
    box-shadow: 
                inset 1px 1px 0.25em rgba(0, 0, 0, 0.25),
                -1px -1px 0.25em rgba(0, 0, 0, 0.25),
                1px 1px 0.25em rgba(255, 255, 255, 0.25);
}

button.danger {
    background: #A43;
}

button.danger:hover {
    background: #C54;
}

body {
    /* background: #EEE; */
    background: white;
    font-family: FreeSans, Helvetica, Arial, sans-serif;
    padding: 0;
    margin: 0;
}

img {
    border: none;
    vertical-align: middle;
}

div#version-dialog {
    position: fixed;
    right: 0;
    bottom: 0;
    text-align: right;

    font-style: italic;
    font-size: 0.75em;
    color: black;
    opacity: 0.5;

    padding: 0.5em;
}

h2 {

    padding: 0.5em;
    margin: 0;
    font-size: 0.9em;

    font-weight: lighter;
    text-shadow: 1px 1px white;

    border-top: 1px solid #AAA;
    border-bottom: 1px solid #AAA;
    background: rgba(0, 0, 0, 0.07);
    
}

h1 {
    
    margin: 0;
    padding: 0.5em;

    font-size: 2em;
    vertical-align: middle;
    text-align: center;

}

div.section {
    margin: 0;
    padding: 1em;
}

/*
 * List elements
 */

.list-item {

    display: block;
    text-align: left;
    padding: 0.1em;
    cursor: pointer;

    position: relative;

}

.icon {
    width: 24px;
    height: 24px;
    background-size: 16px 16px;
    -moz-background-size: 16px 16px;
    -webkit-background-size: 16px 16px;
    -khtml-background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: center center;
    opacity: 0.5;
    display: inline-block;
    vertical-align: middle;
}

.list-item * {
    vertical-align: middle;
}

.list-item .name {
    color: black;
    font-weight: normal;
    padding: 0.1em;
    margin-left: 0.25em;
}

/*
 * List element styling
 */

.list-item.selected {
    background: #DEB;
}

.list-item.selected > .icon {
    opacity: 1.0;
}

.list-item:not(.selected):hover {
    background: #33BBFF;
}

.disabled .list-item:not(.selected) {
    opacity: 0.25;
}

.disabled .list-item:not(.selected):hover {
    background: inherit;
}

/*
 * List element fields (editing)
 */

.form {

    position: absolute;
    display: inline-block;
    vertical-align: middle;
    z-index: 1;

    border: 1px solid rgba(0, 0, 0, 0.5);
    background: #E7E7E7;
    padding: 0;
    margin: 0.25em;

    -moz-border-radius: 0.2em;
    -webkit-border-radius: 0.2em;
    -khtml-border-radius: 0.2em;
    border-radius: 0.2em;

    box-shadow: 0.1em 0.1em 0.2em rgba(0, 0, 0, 0.6);

}

.form .fields th,
.form .permissions th {
    font-weight: normal;
    vertical-align: middle;
    text-align: left;
}

.form h2 {
    border-top: none;
}

.form h3 {
    font-size: 1em;
    margin-bottom: 0.25em;
}

.form {
    cursor: auto;
    animation-name: fadein;
    -webkit-animation-name: fadein;
    animation-duration: 0.125s;
    -webkit-animation-duration: 0.125s;
}

.object-buttons {

    text-align: right;

    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 0.5em;
    margin: 0.5em;

}

.form input {
    width: auto;
}

/*
 * List element icons
 */

.icon.user {
    background-image: url('../images/user-icons/guac-user.png');
}

.icon.user.add {
    background-image: url('../images/action-icons/guac-user-add.png');
}

.icon.connection {
    background-image: url('../images/protocol-icons/guac-plug.png');
}

.icon.connection.ssh {
    background-image: url('../images/protocol-icons/guac-text.png');
}

.icon.connection.add {
    background-image: url('../images/action-icons/guac-monitor-add.png');
}

.icon.connection.vnc,
.icon.connection.rdp {
    background-image: url('../images/protocol-icons/guac-monitor.png');
}

/*
 * Settings formatting
 */

.form dt,
.settings dt {
    border-bottom: 1px dotted #AAA;
    padding-bottom: 0.25em;
}

.form dd,
.settings dd {
    margin: 1.5em;
    margin-left: 2.5em;
    font-size: 0.75em;
}

#connections input.name,
#users input.name {
    max-width: 80%;
    width: 20em;
}

#connection-list,
#user-list {
    border: 1px solid rgba(0, 0, 0, 0.25);
    min-height: 20em;
    -moz-border-radius: 0.2em;
    -webkit-border-radius: 0.2em;
    -khtml-border-radius: 0.2em;
    border-radius: 0.2em;
}

#connections #add-connection,
#users #add-user {
    font-size: 0.8em;
}

#connection-add-form,
#user-add-form {
    margin: 0.5em;
}

body:not(.manage-connections) .require-manage-connections,
body:not(.manage-users) .require-manage-users {
    display: none;
}

body:not(.add-connections) #connection-add-form,
body:not(.add-users) #user-add-form {
    display: none;
    display: none;
}

div#logout-panel {
    padding: 0.45em;
    text-align: right;
    float: right;
}

div#auswertungen-refresh-panel {
    padding: 5px 2px 5px 2px;
    text-align: right;
    float: right;
}

div#auswertungen-refreshall-panel {
    padding: 5px 2px 5px 2px;
    text-align: right;
    float: right;
}

.history th,
.history td {
    padding-left: 1em;
    padding-right: 1em;
}

.first-page,
.prev-page,
.set-page,
.next-page,
.last-page {
    cursor: pointer;
    vertical-align: middle;
}

.first-page.disabled,
.prev-page.disabled,
.set-page.disabled,
.next-page.disabled,
.last-page.disabled {
    cursor: auto;
    opacity: 0.25;
}

.set-page,
.more-pages {
    display: inline-block;
    padding: 0.25em;
    text-align: center;
    min-width: 1.25em;
}

.set-page {
    text-decoration: underline;
}

.set-page.current {
    cursor: auto;
    text-decoration: none;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    -moz-border-radius: 0.2em;
    -webkit-border-radius: 0.2em;
    -khtml-border-radius: 0.2em;
    border-radius: 0.2em;
}

.icon.first-page {
    background-image: url('../images/action-icons/guac-first-page.png');
}

.icon.prev-page {
    background-image: url('../images/action-icons/guac-prev-page.png');
}

.icon.next-page {
    background-image: url('../images/action-icons/guac-next-page.png');
}

.icon.last-page {
    background-image: url('../images/action-icons/guac-last-page.png');
}

#user-list-buttons,
#connection-list-buttons {
    text-align: center;
    margin: 1em;
}

.list-pager-buttons {
    text-align: center;
    margin: 1em;
}

/* ******************************************************************************
   * Ab hier PHARMATECHNIK CSS-REGELN                                           *
   ******************************************************************************
 */

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto-Regular'), url('../fonts/Roboto-Regular.ttf');
}

body, td, input, button, label, a {
  font-family: 'Roboto' !important;
  font-style: normal;
 /* font-weight: 400 !important;*/
}


#navbar {
  text-align: center;
  margin: 10px 0px 10px 0px;
}

#navbar > ul {
  display: inline;
}

#navbar li {
  display: inline;
  margin: 10px 25px 2px 25px;
}

#navbar > ul > li.active > a {
  color: red;
}

#navbar a:link {
  text-decoration: none;
}

#navbar a {	
  color: #3399FF;
  /* font-size: 2em; */
  font-style: bold;
  font-weight: 700;
}

.pt-navdivider {
  min-height: 14px;
  background-image: url('../images/divider.png');
  background-repeat: repeat-x;
  background-color: white;	
  /* margin-bottom: 15px; */
  margin-top: 3px;
}

.nose {
	position: absolute;
}

#fileTable td {
  padding: 10px 20px 10px 20px;
}

#fileTable .deleteRow {
  padding: 10px 20px 10px 0px;
}

#fileTable .openRow {
  padding: 10px 10px 10px 0px;
}

.changepass-fields table {
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 20px;
}

.changepass-fields span {
	color: red;
}

.changepass-form {
	display: inline;
}

#td_new_pass_wdh {
  vertical-align: middle;
}

#admin-settings-panel,
#user-settings-panel {
	text-align: center;
}

div#admin-panel,
div#einstellungen-panel {
    padding: 5px 2px 5px 2px;
    text-align: right;
    float: right;
}

.changepass-fields input[type="password"] {
	width: 200px;
	margin: 10px;
}

.changepass-fields input[type="submit"] {
	    background: #3399FF;
    border: 1px solid rgba(0, 0, 0, 0.4);
    -moz-border-radius: 0.6em;
    -webkit-border-radius: 0.6em;
    -khtml-border-radius: 0.6em;
    border-radius: 0.6em;

    color: white;
    text-shadow: -1px -1px rgba(0, 0, 0, 0.3);
    font-weight: bold;
    font-size: 0.8em;

    box-shadow: inset -1px -1px 0.25em rgba(0, 0, 0, 0.25),
                inset 1px 1px 0.25em rgba(255, 255, 255, 0.25),
                -1px -1px 0.25em rgba(0, 0, 0, 0.25),
                1px 1px 0.25em rgba(255, 255, 255, 0.25);
    
    padding: 0.35em;
    padding-right: 1em;
    padding-left: 1em;
    min-width: 5em;	
}

.changepass-fields input[type="submit"]:hover {
    background: #33BBFF;
}

#admin-changepass-msg,
#changepass-msg {
    margin-top: 10px;
    margin-bottom: 5px;	
}

#admin-changepass-msg2,
#changepass-msg2 {
	color: red;
	text-align: center;
}

.downloadlink {
  text-decoration: underline;
  color: #3399FF;
}

.downloadlink:hover {
  text-decoration: underline;
  color: #33BBFF;
}

table.ptprintcfg th {
  text-align: left;
}

table.ptprintcfg td, table.ptprintcfg th {
  padding: 5px;
}

#reset-panel {
	padding: 5px 2px 5px 2px;
  text-align: right;
  float: right;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 20% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 50%;
}

.upload-panel {
  padding: 15px;
  border: 1px solid #aaa;
  background: #e8e8e8;
}

.upload-panel button {
  margin-left: 15px;
}

#auth2-field {
  display: none;
}
