/****************************************
 * Aviary
 * App Dialog/Bar
 ****************************************/

/****************************************
 * Common layout to bars and dialogs
 ****************************************/

/* General */

body, html {
  overflow: hidden;
  background: #fafaf5;
  color: #4c4c4c;
}

#appdialogs {
  position: relative;
  overflow: auto;
}

#appdialogs-inner {
  min-width: 900px;
  background: url(/images/layout/appdialog/header_bg.gif) repeat-x top left;
}

.appdialog, .appbar {
  display: none;
}

.appdialog.active,
.appbar.active {
  display: block;
}

.header {
  position: relative;
  width: 100%;
  height: 40px;
  color: #fff;
}

.hidden {
  display: none;
}

.separator {
  padding: 0 4px;
  font-size: 10px;
  font-weight: normal;
  vertical-align: 1px;
}

#appsizer {
  width: 100%;
  height: 100%;
  padding-bottom: 40px;
  background: #939393;
}

/* Progress indicator */

.progress {
  position: relative;
  padding: 4px 4px 4px 10px;
  width: 131px;
  height: 12px;
  background: url(/images/layout/appdialog/progress_bg.png) no-repeat top left;
}

.progress-left {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 6px;
  height: 12px;
  background: url(/images/layout/appdialog/progress_bar_left.png) no-repeat top left;
}

.progress-fill {
  float: left;
  width: 0; /* Set this between 0 and 125px (100% full) */
  height: 12px;
  background: #fff;
}

.progress-right {
  float: left;
  width: 6px;
  height: 12px;
  background: url(/images/layout/appdialog/progress_bar_right.png) no-repeat top left;
}

/* Overlay */

#appdialogs-overlay, #appdialogs-overlay2, #appdialogs-overlay3 {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#appdialogs-overlay-bg, #appdialogs-overlay-bg2, #appdialogs-overlay-bg3 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: 0.85;
}

#appdialogs-overlay-text, #appdialogs-overlay-text2, #appdialogs-overlay-text3 {
  position: absolute;
  left: 50%;
  bottom: 50%;
  margin: 0 0 5px -325px;
  width: 650px;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  text-align: center;
}

#appdialogs-overlay-progress, #appdialogs-overlay-progress2 {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: 5px 0 0 -73px;
}

a.ugly-hack {
    text-decoration:underline; 
    color:#fff;            
}
a.ugly-hack:hover {
    text-decoration:none;
    color:#0099ff;
}

/****************************************
 * Bars
 ****************************************/

.appbar {
  font-size: 12px;
}

.appbar .icon {
  vertical-align: -2px;
}

.appbar h1 {
  position: absolute;
  top: 11px;
  left: 11px;
  width: 45%;
  overflow: hidden;
  font-size: 15px;
  font-weight: bold;
}

.appbar .right {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 45%;
  overflow: hidden;
  text-align: right;
  line-height: 18px;
  white-space: nowrap;
}

.appbar .right input {
  vertical-align: middle;
}

.appbar .separator {
  color: #50baff;
}

.appbar .progress {
  float: right;
  margin: 0 0 0 10px;
}

/****************************************
 * Dialogs
 ****************************************/

/* Tabs */

.appdialog-tabs {
  position: absolute;
  top: 0;
  left: 8px;
  width: 98%;
  font-size: 17px;
  line-height: 1em;
  font-weight: bold;
}

.appdialog-tabs a {
  float: left;
  color: #d0edff;
  outline: none;
  background-image: url(/images/layout/appdialog/tab_left.png);
  background-position: 0 0;
  background-repeat: no-repeat;
}

.appdialog-tabs a span {
  float: left;
  padding: 14px 22px 0 22px;
  height: 26px;
  background-image: url(../images/layout/appdialog/tab_right.png);
  background-position: 100% 0;
  background-repeat: no-repeat;
  cursor: pointer;
}

.appdialog-tabs a:hover {
  background-position: 0 -40px;
  text-decoration: none;
  color: #fff;
}

.appdialog-tabs a:hover span {
  background-position: 100% -40px;  
}

.appdialog-tabs a.active, .appdialog-tabs a.active:hover {
  background-position: 0 -80px;
  color: #333;
}

.appdialog-tabs a.active span, .appdialog-tabs a.active:hover span {
  background-position: 100% -80px;
  cursor: default;
}

/* Mini tabs */

.appdialog-minitabs {
  float: right;
  font-size: 12px;
}

.appdialog-minitabs a {
  background-image: url(/images/layout/appdialog/minitab_left.png);
}

.appdialog-minitabs a span {
  padding: 18px 17px 0 17px;
  height: 22px;
  background-image: url(/images/layout/appdialog/minitab_right.png);
}

.appdialog-minitabs img {
  margin: 0 1px 0 0;
  vertical-align: -4px;
}

/* Tab content */

.tabContent {
  display: none;
}

.tabContent.active {
  display: block;
}

/* Content */

.appdialog .content {
  padding: 20px;
}

.appdialog .column {
  float: left;
}

.appdialog .triple {
  margin: 0 2% 0 0;
  width: 32%;
}

.appdialog .last {
  margin: 0;
}

.appdialog .triple .input-text,
.appdialog .triple textarea {
  width: 96%;
}

.appdialog .section {
  margin: 20px 0 0 0;
  border: none;
  padding: 0;
}

/* Text */

h2 {
  font-size: 12px;
  margin: 0 0 8px 0;
  font-weight: bold;
  color: #666;
}

h2 .details {
  padding: 0;
  font-size: 1em;
  font-weight: normal;
  color: #b3b1a8;
}

/* Forms */

label {
  font-size: 12px;
  padding: 0 7px 0 0;
  font-weight: bold;
}

label .input-radio,
label .input-checkbox {
  vertical-align: -3px;
}

/* Footer */

.appdialog .footer {
  padding: 12px;
  background: url(/images/layout/appdialog/footer_bg.png) repeat-x bottom left;
  text-align: right;
  color: #b3b1a8;
  font-size: 12px;
}

/****************************************
 * Styles for specific bars/dialogs
 ****************************************/

/* Save bar */

#savebar.unsaved h1 {
  font-style: italic;
}

#savebar .right {
  display: none;
}

#savebar.unsaved #savebar-unsaved { display: block; }
#savebar.saved #savebar-saved { display: block; }
#savebar.saving #savebar-saving { display: block; }
#savebar.saving #savebar-saving { display: block; }
#savebar.unsavedswitching #savebar-unsavedswitching { display: block; }

#savebar h1 .separator, 
#savebar h1 #savebar-link {
  display: none;
}

#savebar.saved h1 .separator,
#savebar.saved h1 #savebar-link {
  display: inline;
}

#savebar-link {
  font-weight: normal;
  color: #a1d9ff;
  text-decoration: underline;
  font-size: 13px;
}

#savebar-link:hover {
  color: #fff;
  text-decoration: none;
}

/* Save As / Save to Aviary dialog */

#saveas-aviary textarea {
  height: 72px;
}

#saveas-aviary-customizePermissions .module {
  margin: 30px 20px 10px 20px;
  border: 5px solid #e6e5da;
}

#saveas-aviary-customizePermissions .dimModule {
  border: none;
}

#saveas-aviary-customizePermissions .wideForm th {
  width: 40%;
}

/****************************************
 * Dev Simulations
 ****************************************/

#simulations {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 10px;
  background: #333;
}