[data-role="page"], [data-role="dialog"] {
    display: none;
}

/* Splash (loading) page */

div#splash {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    background: #c2c3c4 url('images/bg_splash.gif') top left repeat;
}

div#splash div.mist-logo {
    width: 280px;
    height: 280px;
    background: url('logo_splash.png') center no-repeat;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -140px;
    margin-top: -140px;
}

#home-menu {
    clear: both;
}

/* Buttons */

.btn-full {
    width: 100%;
    text-align: center;
    margin-top: 2em;
}

.ok-cancel .ui-controlgroup-controls {
    width: 100%;
}

.ok-cancel .ui-btn {
    width: 49%;
}

/* Home Page */

#home .ui-content {
    overflow-y: hidden;
}

/* Select Button */

#machines #mist-select-machines-button {
    outline: none;
    position: relative;
    top: 10px;
    left: -3px;
}

#machines .ui-select {
    width: 60px;
}

#machines .ui-select .ui-icon {
    position: absolute;
    left: 20px;
}

/* Search field */

#machines .ui-listview-filter-inset, #keys .ui-listview-filter-inset {
    margin: -52px 120px 0 120px;
}

/* Provider Icons */

.state-providers .ui-icon, .backend-button .ui-icon {
    width: 18px;
    height: 18px;
    background-position: center;
}

.state-providers.state-wait .ui-icon, .backend-button.waiting .ui-icon {
    background-image: url(states/load-white.gif);
}

.state-providers.state-wait-ok .ui-icon, .backend-button.waiting-ok .ui-icon {
    background-image: url(states/load-white.gif);
}

.state-providers.state-wait-error .ui-icon, .backend-button.waiting-error .ui-icon  {
    background-image: url(states/load-yellow.gif);
}

.state-providers.state-wait-down .ui-icon{
    background-image: url(states/load-red.gif);
}

.state-providers.state-ok .ui-icon, .backend-button.online .ui-icon {
    background: url("images/icons-18-white.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0.4);
    background-position: -252px 50%;
}

.state-providers.state-error .ui-icon, .backend-button.error .ui-icon {
    background-image: url(states/state-yellow.png);
}

.state-providers.state-down .ui-icon, .backend-button.waiting-offline .ui-icon {
    background-image: url(states/state-red.png);
}

/* Provider state dialog */

#providers-state-list li {
    padding-left: 42px;
}

#providers-state-list .provider-state-icon {
    width: 16px;
    height: 16px;
    display: block;
    position: absolute;
    left: 16px;
    background-color: #234;
}

#providers-state-list .state-on .provider-state-icon{
    background-image: url(images/icons-18-white.png);
    background-position:  -253px 0;
    background-repeat: no-repeat;
    overflow: hidden;
    background-color: #22aa22;
}

#providers-state-list .state-off .provider-state-icon{
    background-position: center !important;
    background-repeat: no-repeat;
    overflow: hidden;
    background-color: #aa2222;
}

#providers-state-list .state-wait .provider-state-icon{
    background-image: url(images/icons-18-white.png);
    background-position:  -73px 0;
    background-repeat: no-repeat;
    overflow: hidden;
    background-color: #234;
}

/* Lists */

.ui-li-count {
    font-size: 13px !important;
}

li.node {
    clear: left;
}

li.node .ui-btn-text {
    padding-right: 0;
}

li.node .description {
    position: absolute;
    right: 76px;
    top: 50%;
    margin-top: -11px;
}

li.node a {
    height: 40px;
    color: #2F3E46;
}

li.node .bubble-container {
    float: right;
    display: block;
    overflow: hidden;
    height: 20px;
    margin-top: -10px;
    position: absolute;
    right: 48px;
    top: 50%;
}

li.node fieldset.list-item {
    float: left;
    padding-top: 12px;
    padding-left: 12px;
}

li.node .ui-checkbox {
    float:left;
    margin-bottom: 0px !important;
}

li.node .ui-checkbox label {
    margin: 0 !important;
}

li.node .ui-checkbox input {
    display: none;
}

li.node .ui-checkbox label {
    border: none;
    background-color: transparent;
}

li.node .ui-icon-checkbox-on, li.node .ui-icon-checkbox-off  {
    z-index: 1000;
}

li.node .ui-btn-text .ui-checkbox {
    width: 56px;
    margin-top: -8px;
}

li.node .ui-checkbox .ui-btn-inner {
    top: 0;
    left: -11px;
    height: 40px;
    border-top: none;
}

li.node .ui-checkbox .ui-btn-text {
    display: none;
}

li.node .ui-btn-icon-left {
    background: none;
    background-image: none;
}

li.node .tag {
    border: 1px solid #bfbfbf;
    color: #555 !important;
    font-weight: normal !important;
    display: block;
    float: right;
    padding: 1px 7px;
    margin: 3px 3px 9px 0;
}

/* Machines List */

#machines .ui-content, #images .ui-content {
    padding-top: 6px;
}

#machines-list {
    margin-top: 10px;
}

#machines-list .state-icon.ui-icon-check {
    background-color: #33dd44;
}

.add-button {
    float: right;
}

/* Keys Listing */

#mist-create-key {
    float: right;
}

#dialog-add-key-popup {
    width: 250px;
}

#textarea-public-key, #textarea-private-key {
    height: 80px;
    max-height: 100px;
}

/* Machines Icons and their colors. */

#machines-list .key-icon {
    background-image: url("images/key.png");
    background-color: #333;
}

#machines-list .no-key-icon {
    background-image: url("images/no-key.png");
    background-color: #aaa;
}

#machines-list .alert-icon {
    background-color: #f61;
}

#machines-list .ui-li-count {
    position: static;
}

#machines-list .node-icon {
    padding: 2px 9px;
    border: none;
}

#machines-list .node .bubble-container .node-icon {
    -moz-border-radius: 1em;
    -webkit-border-radius: 1em;
    border-radius: 1em;
}

/* Needed to allow some extra scrolling space to compensate
   for the statically positioned footer */
.bottom-padding {
    height: 46px;
}

/* Machines states colors. */

#machines-list .running.state,
#single-view-state.running {
    color: #13B754;
}

#machines-list .rebooting.state,
#single-view-state.rebooting {
    color: #4e68bb;
}

#machines-list .terminated.state,
#single-view-state.terminated {
    color: #aaa;
}

#machines-list .pending.state,
#single-view-state.pending {
    color: #e09400;
}

#machines-list .stopped.state,
#single-view-state.stopped {
    color: #777;
}

#machines .ui-input-search input.ui-input-text, #keys .ui-input-search input.ui-input-text {
    padding: .45em 0;
}

#machines .ui-link {
    border-left: 1px solid #ddd;
    padding: 8px;
}

.dialog-add label, .dialog-add .select {
    display: block;
    margin-top: 12px;
}

.select-machines, .select-keys {
    max-width: 110px;
    color: #999999;
    font-weight: normal;
}

.select-machines .ui-icon, .select-keys .ui-icon {
    margin-left: 5px;
}

a#mist-select-machines-button {
    outline: none;
}

a#mist-select-machines-button span.ui-btn-text {
    color: #fff;
    z-index: 0;
}

.ui-li-heading {
    display: block;
    position: absolute;
    top: 50%;
    margin-top: -7px;
    max-width: 160px;
    overflow: hidden;
}

#images #mist-create-machine {
    display:none;
}

#images-list .ui-li-heading {
    max-width: 500px;
}

.caption-wrapper {
    display: block;
    position: absolute;
    left: 250px;
    top: 50%;
    margin-top: 0px;
}

.caption-wrapper h3 {
    font-weight: normal;
    font-size: 16px;
}

#machines-list .alert-icon {
    display: block;
    padding: 0px;
    position: absolute;
    top: 2px;
    left: -26px;
}

/* FOOTER */

.ui-footer {
    position: fixed !important;
    left: 0px;
    bottom: 0px;
    z-index: 2000;
    width: 100%;
}

.machines-footer, .keys-footer {
    display: none;
}

.ui-footer div.actions {
    margin: 0.4em 0;
}

div.actions div.ui-controlgroup-controls {
    display:inline !important;
}

.ui-footer div.actions {
    border: 0px;
    margin: 0px;
    padding-left: 0.5%;
}

.keys-footer.ui-footer div.actions {
    padding-left: 0.5%;
}

.ui-footer div.actions a {
    width: 33%;
}

.keys-footer.ui-footer div.actions a {
    width: 49%;
}

.ui-icon-mist-power {
    background-image: url("images/zap.png");
}

/* Footer Chrome Fix */
div.ember-view div.ui-panel-content-wrap {
    -webkit-transform: none;
    -webkit-transition: none;
}

/* Single View common */

.single-view-header {
    overflow: auto;
    padding: 0 0 0 15px;
    background: #e6e6e7;
    background-image: -webkit-gradient(linear, left top, left bottom, from(#e8e9e9), to(#e0e1e1)); /* Saf4+, Chrome */
    background-image: -webkit-linear-gradient(#e8e9e9, #e0e1e1); /* Chrome 10+, Saf5.1+ */
    background-image:    -moz-linear-gradient(#e8e9e9, #e0e1e1); /* FF3.6 */
    background-image:     -ms-linear-gradient(#e8e9e9, #e0e1e1); /* IE10 */
    background-image:      -o-linear-gradient(#e8e9e9, #e0e1e1); /* Opera 11.10+ */
    background-image:         linear-gradient(#e8e9e9, #e0e1e1);
    border-bottom: #fff;
}

.single-view-name {
    float: left;
    margin: 30px 0 0 10px;
}

/* Machine single View */

#single-view-state {
    font-weight: normal;
    float: left;
    margin: 30px 20px 0 10px;
    text-shadow: none;
}

.single-view-icon-wrapper {
    float: right;
    padding: 16px 20px;
    background-position: center;
    background-repeat: no-repeat;
    border-left: 1px solid #ccc;
    position: relative;
    -moz-background-clip: padding; -webkit-background-clip: padding-box; background-clip: padding-box;

}

#single-view-provider-icon, #single-view-image-icon {
    display: block;
    width: 48px;
    height: 48px;
    background-position: center center;
    background-repeat: no-repeat;
}

.single-action-button {
    display: none;
}

.can-reboot, .can-stop, .can-destroy, .can-start {
    display: block !important;
}

#monitoring-wrapper .monitoring-dialog-container a.monitoring-button {
    display: none;
}

#monitoring-wrapper .running a.monitoring-button {
    display: block !important;
}

/* indices do not help here, let's use types as defined in
 libcloud.compute.types.Provider (we will use numbers, match in the Python) */

/* EC2 */
#single-view-provider-icon.provider-ec2_us_east,
#single-view-provider-icon.provider-ec2_us_west,
#single-view-provider-icon.provider-ec2_us_west_oregon,
#single-view-provider-icon.provider-ec2_ap_northeast,
#single-view-provider-icon.provider-ec2_ap_southeast,
#single-view-provider-icon.provider-ec2_ap_southeast_2,
#single-view-provider-icon.provider-ec2_eu_west,
#single-view-provider-icon.provider-ec2_sa_east {
    background-image: url(images/p1_sm.png);
}

/* Linode */
#single-view-provider-icon.provider-linode  {
    background-image: url(images/p7_sm.png);
}

/* RackSpace */
#single-view-provider-icon.provider-rackspace,
#single-view-provider-icon.provider-rackspace_first_gen,
#single-view-provider-icon.provider-rackspace_nova_beta,
#single-view-provider-icon.provider-rackspace_nova_dfw,
#single-view-provider-icon.provider-rackspace_nova_lon,
#single-view-provider-icon.provider-rackspace_nova_ord,
#single-view-provider-icon.provider-rackspace_uk {
    background-image: url(images/p3_sm.png);
}

/* OpenStack */
#single-view-provider-icon.provider-openstack {
    background-image: url(images/p31_sm.png);
}

.single-view-icon-wrapper.amazon #single-view-image-icon {
    background-image: url(images/p1_sm.png);
}

.single-view-icon-wrapper.windows #single-view-image-icon {
    background-image: url(images/image-windows.png);
}

.single-view-icon-wrapper.oracle #single-view-image-icon {
    background-image: url(images/image-oracle.png);
}

.single-view-icon-wrapper.canonical #single-view-image-icon {
    background-image: url(images/image-canonical.png);
}

.single-view-icon-wrapper.ibm #single-view-image-icon {
    background-image: url(images/image-ibm.png);
}

.single-view-icon-wrapper.debian #single-view-image-icon {
    background-image: url(images/image-debian.png);
}

.single-view-icon-wrapper.gentoo #single-view-image-icon {
    background-image: url(images/image-gentoo.png);
}

.single-view-icon-wrapper.ubuntu #single-view-image-icon {
    background-image: url(images/image-ubuntu.png);
}

.single-view-icon-wrapper.suse #single-view-image-icon {
    background-image: url(images/image-suse.png);
}

.single-view-icon-wrapper.opensolaris #single-view-image-icon {
    background-image: url(images/image-opensolaris.png);
}

.single-view-icon-wrapper.fedora #single-view-image-icon {
    background-image: url(images/image-fedora.png);
}

.single-view-icon-wrapper.generic {
    display: none;
}

.notice {
    padding: 8px 10px;
    margin: 0 -8px 14px -8px;
    background: #dfdfe2;
    border: 1px dashed rgba(0, 0, 0, 0.2);
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.09);
    -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.09);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.09);
}

.important {
    padding: 12px 10px;
    background: #C9E0F0;
}

#monitoring-wrapper, #keys-wrapper {
    padding: 0px;
}

#monitoring-wrapper div.ui-loader {
    margin: 0 0 0 -13ex;
    position: relative;
    top: -4.8ex;
}

.monitoring-info {
    color: #444;
    text-align: center;
    font-size: 16px;
    margin: 5px auto !important;
}

div.pending-monitoring {
    position: relative;
    margin-top: 20px;
}

.monitoring-info {
    margin-bottom: 10px;
}

.monitoring-button, #associate-key-button {
    width: 100%;
    margin: 0px auto;
}

#machineGraph span {
    font-size: 12px;
    vertical-align: middle;
    margin:5px;
}

.horizon span.title {
    position:absolute;
    left:0;
    margin: 7px;
    color: #333;
    text-shadow: none;
    font-weight: bold;
}

.horizon span.value {
    right: 7px;
    position: absolute;
    margin: 7px;
    color: #333;
    text-shadow: none;
}

.add-rule-button {
    margin: 0 auto;
    max-width: 26ex;
}

.add-rule-container div {
    max-width: 26ex;
    margin: 0 auto;
}

.add-rule-container {
    width: 50%;
    padding: 15px;
    background: #e0e0e1;
}

.delete-rule-container, .delete-key-container {
    float: right;
    margin: 9px;
}

.delete-rule-container div.ui-btn span.ui-btn-inner, .delete-key-container div.ui-btn span.ui-btn-inner {
    padding-left: 9px;
}

.monitoring-dialog-container div, .associate-key-container div {
    max-width: 26ex;
    margin: 0 auto;
}

.monitoring-dialog-container.enabled {
    width: 50%;
    float: right;
}

.monitoring-dialog-container.enabled div{
    margin: 0 auto;
}

.rules-container, .keys-container {
    padding: 0;
    background: #e8e8e9;
    border-bottom: 1px solid #ccc;
}

.rule-box, .key-box {
    overflow: hidden;
    padding: 6px 10px;
    border-top: 1px solid #ccc;
}

.rule-if, .rule-then, .key-name {
    font-size: 20px;
    font-weight: bold;
    padding: 6px;
    float: left;
    margin-top: 12px;
    height:40px;
}

.rule-if, .rule-then, .rule-value {
    float: left;
    height: 24px;
}

.rule-box .ui-slider {
    /* commented out until the interaction with the slider is ok
    display: none;
    */
    float: left;
    margin: 16px 16px 16px 8px;
    width: 30%;
}

.rule-box .rule-button {
    float: left;
}

.ui-slider input.rule-value {
    height: 32px;
    margin-top: -8px;
}

#machine-basic-table, #machine-metadata {
    border-collapse:collapse;
    width: 100%;
    margin-top: 10px;
    background: #fff;
}

#machine-basic-table tr, #machine-metadata tr {
    border: 1px solid #ccc;
}

.monitoring-rules-title {
    font-size: 16px;
    font-weight: bold;
    padding: 12px 0;
    display: block;
    margin: 0;
}

#machine-basic-table td, #machine-metadata td {
    font-size: 14px;
    padding: 10px 12px;
    margin: 0;
    border: none;
}

#machine-basic-table .key, #machine-metadata .key {
    font-weight: 300;
    width: 40%;
}

#machine-basic-table .value, #machine-metadata .value {
    font-weight: bold;
}

#monitoring-rules-table input {
    border: 1px solid #ddd;
    max-width: 48px;
    text-align: right;
    padding: 2px 5px;
    margin-left: 0.5em;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

#machine-basic-table .tag {
    border: 1px solid #c3c3c4;
    color: #555 !important;
    font-weight: normal !important;
    display: block;
    float: left;
    padding: 2px 7px;
    margin-right: 6px;
    -webkit-border-radius: 14px;
    -moz-border-radius: 14px;
    border-radius: 14px;
}

#monitoring-dialog pre {
    overflow: auto;
}

.monitoring-dialog-container, .associate-key-container {
    padding: 15px;
    background: #e0e0e1;
}

.delete-key {
    float:right;
}

/* Key single view */
#key .single-view-header {
    height: 80px;
}

#machine-key-table {
    border-collapse:collapse;
    width: 100%;
    margin-top: 10px;
    background: #fff;
}

#machine-key-table tr {
    border: 1px solid #ccc;
}

#machine-key-table td {
    font-size: 14px;
    padding: 10px 12px;
    margin: 0;
    border: none;
}

#key div.public-key {
    width: 100%;
    word-wrap: break-word;
    white-space: pre-wrap;
}

#key-single-machines fieldset.list-item {
    display:none;
}

#key ul#machines-list span.tag, #key ul#machines-list span.bubble-container {
    display:none;
}

/* DIALOGS */

.ui-dialog .ui-content {
    max-width: 500px;
    margin: 0 auto 15px auto;
}

/* Hiding of X */

.ui-dialog .ui-header .ui-btn-left {
    display: none;
}

.ui-header span.ember-view {
    clear: none;
    display: inline-block;
    margin: 0;
    position: absolute;
    right: 5px;
    top: -5px;
}

/* Provider (backend) state dialog */

#edit-backend.mist-dialog {
    min-width: 250px;
}

#edit-backend .content-header {
    overflow: auto;
    padding: 20px 6px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 8px;
}

#edit-backend .state {
    float: right;
    font-size: 16px;
    margin-top: 12px;
    margin-right: 8px;
}

#edit-backend .name {
    display: block;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
}

#edit-backend .ui-field-contain {
    overflow: visible;
    height: 50px;
    border-bottom: 1px solid #ddd;
    margin: 6px 0;
}

#edit-backend #backend-enable-label {
    margin-top: 12px;
    margin-left: 6px;
}

#edit-backend .ui-slider-switch {
    width: 65%;
}

#edit-backend .ui-field-contain .ui-btn-block {
    float: right;
    margin-top: 3px;
}

#edit-backend .ui-field-contain .ui-btn-inner {
    padding: 8px 18px;
}

#edit-backend #backend-delete-confirm {
    display: none;
}

.mist-dialog .ui-listview-filter{
    margin: 0;
}

/* Add backend dialog */
#add-backend label {
    display: block;
    margin: 14px 0 4px 0;
}

#add-backend {
    min-height: 385px !important;
}

#add-backend.ui-panel-open {
    margin-top: 0px;
    min-width: 300px;
}

#add-backend .ui-collapsible-content {
    padding-right: 27px;
}

#add-backend .ui-collapsible-heading {
    border-bottom-left-radius: 0px;
}

#add-backend .ui-collapsible-heading-collapsed {
    border-bottom-left-radius: inherit;
}

.ui-panel-inner {
    padding:10px !important;
}

.select-listmenu {
    max-height: 150px;
    overflow-y: auto;
}

.dialog-add.ui-panel-open {
    min-width: 320px;
    margin-top: 0px;
    width: 45%;
    z-index: 10000;
    min-height: 300px !important;
}

/* Tags Dialog */

#dialog-tags {
    width: 400px;
    max-width: 400px;
}

#dialog-tags label {
    margin: 10px 0;
}

#dialog-tags #tag-input {
    overflow: auto;
    width: 100%;
    clear: both;
    margin-top: 0px;
}

#dialog-tags div#tags-wrapper ul#tags-list{
    list-style: none;
    overflow: auto;
    padding: 0;
}

#dialog-tags ul#tags-list li {
    display: block;
    float: left;
    position: relative;
    padding: 0 16px 0 3px;
    margin: 0 6px 8px 0;
    background: #ddd;
    -webkit-border-radius: 19px;
    -moz-border-radius: 19px;
    border-radius: 19px;
    border: 1px solid #c4c4c4;
}

#dialog-tags #tags-list li .ui-btn {
    margin: 5px 8px 6px 5px !important;
}

#tag-add-wrapper {
    width: 120px;
    padding-left: 10px;
}

#tag-add-wrapper .ui-btn {
    margin-top: 6px;
}

/* Shell Dialog */

#dialog-shell-popup {
    position: absolute;
    top: 10px !important;
    width: 60%;
    min-width: 300px;
}

#dialog-shell {
}

#dialog-shell.dialog-shell div.ui-field-contain {
    margin: 0px;
    margin-top: 0.5em;
}

#dialog-shell.dialog-shell .shell-input {
    overflow: auto;
    width: 100%;
    clear: both;
    margin-top: 0px;
}

#dialog-shell.dialog-shell .shell-input input {
    width: 97%;
    padding: 8px 0 8px 22px;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    background-image: url("images/prompt.png");
    background-position: 4px 8px;
    background-repeat: no-repeat;
}

.ui-field-contain table.shell-input div.ui-input-text {
    width: 95%;
    margin-top: 3px;
    margin-left: -3px;
}

#dialog-shell.dialog-shell .shell-send {
    margin: .5em 0;
    padding: 5px 27px;
}

#dialog-shell.dialog-shell .ui-icon-shell-return {
    background-image: url("images/return.png");
    padding: 1px;
}

#dialog-shell.dialog-shell  .shell-send-wrapper {
    width: 80px;
    padding-left: 2px;
}

#dialog-shell.dialog-shell .shell-return {
    width: 100%;
    border: 1px solid #AAA;
    height: 60ex;
    font-family: monospace;
    font-size: 11px;
    max-height: 40% !important;
    min-height: 150px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    margin-bottom: 20px;
    background: #dfe1e2;
}

#dialog-shell.dialog-shell .shell-return .command {
    background: #efeff1;
    cursor: pointer;
    padding: 6px;
    margin: 0px;
    font-weight: bold;
    color: #222;
}

#dialog-shell.dialog-shell .shell-return div.output {
    background: #444;
    color: #efeff1;
    padding: 6px;
    text-shadow: none;
    max-height: 40% !important;
    min-height: 140px;
    height: auto !important;
    overflow-y: scroll !important;
}

#dialog-shell.dialog-shell .ui-accordion .ui-accordion-header .ui-accordion-header-icon {
    left: 93%;
    background-color: #EFEFF1;
}

.command.pending{
    background: url("/static/images/spinner.gif") no-repeat scroll 92% center #EFEFF1 !important;
}

iframe#hidden-shell-iframe {
    display: none;
}

.ui-autocomplete {
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    -moz-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    background-color: #EFEFF1;
    font-family: Helvetica, Arial, sans-serif;
}

.ui-autocomplete .ui-menu-item a {
    padding: .2em .4em .2em 1.6em;
    font-size: 16px;
}

/*  Keys */

#private-key {
    height: 200px !important;
}

#dialog-providers-popup p {
    width: 250px;
    overflow: hidden;
    text-align: right;
}

img.gravatar-image {
    float: left;
    margin: 5px;
}

div.userEmail {
    font-weight: bold;
    text-align: right;
}

div.logout-placeholder {
    padding-top: 10px;
    height: 30px;
}

.logout-button {
    width: 70px;
    float: right;
}

#invitation-dialog .ajax-loader, #dialog-add-key .ajax-loader, #tags-container .ajax-loader, #monitoring-wrapper .ajax-loader  {
    background-image: url(images/spinner.gif);
    background-position: center !important;
    background-repeat: no-repeat;
    display: none;
    height: 16px;
}

.pending-stats .enabled .ajax-loader  {
    display: block !important;
    position: absolute !important;
    top: 70px;
    width: 100%;
    z-index: 10000 !important;
}


#key-machines-list {
    max-height: 250px;
    overflow: auto;
}

div.info {
    margin:10px;
    text-align: center;
}

#single-machines-keys #machines-list fieldset {
    display:none;
}

/* Conditional for < 720px */
@media only screen and (max-width: 720px) {

    #machines-list .description {
        position: absolute;
        right: 76px;
        top: 22px;
        width: 100px;
        line-height: 12px;
        max-height: 45px;
        overflow: hidden;
    }

    #machines-list .description .tag {
        margin-bottom: 2px;
    }

    .caption-wrapper {
        left: 200px;
    }

    .ui-li-heading {
        max-width: 120px;
    }

    #images-list .ui-li-heading {
        max-width: 400px;
    }

    /* Select machines button */

    #machines .select-machines, #keys .select-keys {
        width: 60px;
        right: -6px;
        padding: 9px 0;
    }

    #machines .select-machines .ui-btn-text, #keys .select-keys .ui-btn-text {
        display: none;
    }

    /* Create button */

    #machines .add-button, #keys .add-button {
        width: 60px;
        right: -6px;
        padding: 9px 0;
    }

    #machines .add-button .ui-btn-inner, #keys .add-button .ui-btn-inner{
        border: none;
    }

    #machines .add-button .ui-icon, #keys .add-button .ui-icon {
        left: 22px;
    }

    #machines .add-button .ui-btn-text, #keys .add-button .ui-btn-text {
        display: none;
    }

    /* Search field */
    #machines .ui-listview-filter-inset, #keys .ui-listview-filter-inset {
        margin: -52px 80px 0;
    }
}

/* Conditional for < 480px */
@media only screen and (max-width: 480px) {

    .ui-li-heading {
        left: 64px;
        top: 20px;
    }

    #images-list .ui-li-heading {
        left: 0px;
        top: 0px;
        max-width: 200px;
    }

    .caption-wrapper {
        left: 0px;
        top: 20px;
    }

    .caption-wrapper h3 {
        font-size: 16px;
    }

    #machines-list .alert-icon {
        display: block;
        float: left;
        position: relative;
        left: 40px;
        top: 12px;
    }

    /* In mobile view the arrow disappears
    and the key/tags stick to the right. */

    #machines-list .node .ui-icon-arrow-r {
        display: none;
    }

    #machines-list .description {
        right: 28px;
    }

    #machines-list .bubble-container {
        right: 8px;
    }
    /* Single View */

    #single-view-name {
        font-size: 18px;
    }

    #single-view-state {
        font-size: 18px;
        margin-right: 3px;
    }

    .single-view-icon-wrapper {
        margin-left: 8px;
    }

    #shell-return {
        overflow-x: scroll;
    }
}
