/**
 * Micro clearfix hack http://nicolasgallagher.com/micro-clearfix-hack/
 * This clearfix hack can be used on the container element that has floated
 * elements without adding new markup
 */
/** Vertically center an element in another with this mixin **/
/**
 * Source: https://css-tricks.com/snippets/css/retina-display-media-query/
 */
#modal-policy-builder {
  max-width: 1000px;
  max-height: 1000px; }

@-webkit-keyframes flash {
  0% {
    background-color: #ffc; }
  100% {
    background-color: white; } }

@keyframes flash {
  0% {
    background-color: #ffc; }
  100% {
    background-color: white; } }

.policy-builder label {
  display: block;
  margin-bottom: 0.25em; }
  .policy-builder label p {
    display: inline-block; }

.policy-builder p {
  margin-bottom: 0.5em; }

.policy-builder [type="radio"], .policy-builder [type="checkbox"] {
  margin-right: 8px;
  width: 12px; }
  .policy-builder [type="radio"] + p, .policy-builder [type="checkbox"] + p {
    display: inline-block; }

.policy-builder > main:before, .policy-builder > main:after {
  content: ' ';
  display: table; }

.policy-builder > main:after {
  clear: both; }

.ie .policy-builder > main {
  *zoom: 1; }

.policy-builder .no-bulk-policy {
  display: none; }

.policy-builder .no-rules, .policy-builder .one-rule {
  display: none;
  text-align: center;
  padding: 5em 0;
  border: dashed 1px #ccc; }

.flexbox .policy-builder {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
  padding: 0;
  overflow-y: hidden; }
  .flexbox .policy-builder > main {
    -webkit-flex: 1;
        -ms-flex: 1;
            flex: 1;
    overflow-y: hidden; }

.policy-builder.default-policy .rule-remove {
  display: none; }

.rule-configs {
  float: right;
  width: calc(79% - 1em);
  padding: 32px; }
  .flexbox .rule-configs {
    max-height: 80%;
    overflow-y: auto;
    position: absolute;
    float: left;
    width: 75%;
    margin-left: 25%; }

.rule-config {
  background: white;
  margin-bottom: 1em;
  border: solid 1px #ddd; }
  .rule-config.flash {
    -webkit-animation: flash 1s ease;
            animation: flash 1s ease; }
  .rule-config > * {
    padding: 16px 24px; }
  .rule-config header {
    border-bottom: 1px solid #e1e1e1; }
  .rule-config label p {
    margin-bottom: 0; }
  .rule-config span [class^="icon-"] {
    position: relative;
    top: 2px; }
  .rule-config span p {
    display: inline-block;
    margin-bottom: 0; }
  .rule-config span .rule-remove {
    transition-property: color;
    transition-duration: 0.2s;
    transition-timing-function: ease;
    color: #888;
    cursor: pointer;
    display: block;
    float: right;
    font-size: 10px;
    margin: -1em;
    padding: 12px; }
    .rule-config span .rule-remove:hover {
      color: #333; }
  .rule-config select {
    width: auto; }
  .rule-config .explanation {
    color: #888;
    margin-top: -6px; }
  .rule-config .note {
    color: #888;
    margin-top: 16px; }
  .rule-config .disabled .note {
    color: rgba(51, 51, 51, 0.5); }
  .rule-config .note-close {
    margin-top: 0; }
  .rule-config .rule-config-icon {
    font-size: 16px;
    margin-right: 8px;
    position: relative;
    top: 4px; }
  .rule-config .trusted-input {
    resize: none;
    width: 90%; }

.left-side {
  float: left;
  width: 25%;
  position: absolute;
  overflow-y: auto; }
  .flexbox .left-side {
    box-sizing: border-box;
    max-height: 90%;
    padding: 32px; }
  .left-side header label {
    margin-bottom: 0.5em; }
  .left-side header .text {
    width: 96%;
    margin-bottom: 16px; }

.rule-add-group {
  margin-bottom: 10px; }

.rule-add {
  color: #888;
  cursor: pointer;
  font-size: 13px;
  transition: color 0.1s ease;
  padding: 4px 0; }
  .rule-add span {
    position: relative;
    top: -2px; }
    .rule-add span i {
      margin-right: 2px;
      top: 2px; }
  .rule-add .rule-add-icon {
    font-size: 20px;
    margin-right: 8px;
    position: relative;
    vertical-align: middle; }
  .rule-add:hover {
    color: #63B246; }
    .rule-add:hover .rule-add-indicator {
      background: #63B246; }
  .flexbox .rule-add {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-items: center;
        -ms-flex-align: center;
            align-items: center; }
  .rule-add.activated {
    color: #63B246; }
    .rule-add.activated .rule-add-indicator {
      background: #63B246;
      opacity: 0.2; }
    .rule-add.activated .rule-title:hover {
      color: #3a6929; }

.policy-integrations-message,
.policy-no-integrations-message,
.global-policy-message {
  background-color: white;
  border-bottom: 1px solid #e1e1e1;
  color: #379ed4;
  padding: 16px 24px;
  position: relative;
  text-align: center;
  z-index: 100; }
  .policy-integrations-message p,
  .policy-no-integrations-message p,
  .global-policy-message p {
    display: inline;
    margin: 0;
    width: calc(95% - 1em); }
  .policy-integrations-message::before,
  .policy-no-integrations-message::before,
  .global-policy-message::before {
    display: inline-block;
    margin: 2px 8px 0 0; }

.policy-integrations ul {
  display: inline;
  list-style: none;
  padding: 0; }

.policy-integrations li {
  display: inline; }
  .policy-integrations li a {
    color: #379ed4; }

.policy-integrations li + li::before {
  content: ", "; }

.global-policy-message {
  background-color: white;
  color: #a13639;
  font-weight: bold; }
  .global-policy-message a {
    color: #a13639; }
  .global-policy-message p {
    display: inline-block;
    vertical-align: top; }

/*
* So, select2 does some weird things to the original element and, as a result,
* the "required" attribute results in a browser mesage that does not actually
* point to the input.
*
* https://github.com/select2/select2/issues/128
*
* This works for any browser that supports the "required" attribute.
*
* Opera focuses the invalid input instead of showing a message like the other
* browsers. So in Opera it appears to have no effect.
*/
.select2-offscreen[required], .select2-offscreen[required]:focus {
  width: inherit !important;
  height: inherit !important;
  overflow: auto !important;
  left: 20px !important;
  top: 0px !important; }

.rule-table-container {
  width: 100%; }

.rule-table {
  width: 100%;
  table-layout: fixed; }
  .rule-table i {
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    padding: 0; }
    .rule-table i.add-button {
      color: #63B246; }
      .rule-table i.add-button:not(.empty):hover {
        color: #509439;
        cursor: pointer; }
    .rule-table i.empty {
      color: #ccc; }
    .rule-table i.delete-button {
      color: #cf6e71; }
      .rule-table i.delete-button:hover {
        color: #a13639;
        cursor: pointer; }
  .rule-table select {
    height: 32px;
    margin: 0;
    width: 100%;
    padding: 2px; }
  .rule-table td {
    padding: 5px 5px 5px 0px;
    vertical-align: top; }
    .rule-table td:first-child {
      width: 50%; }
    .rule-table td:nth-child(2) {
      width: 33%; }
    .rule-table td:not(:first-child) {
      padding-left: 10px; }
    .rule-table td.button-cell {
      vertical-align: middle;
      width: 36px; }
    .rule-table td p {
      margin-top: .5em; }
  .rule-table th {
    color: #aaa;
    font-size: 12px;
    font-weight: bold; }
    .rule-table th:not(:first-child) {
      padding-left: 10px; }
  .rule-table .default-rule {
    background-color: #eee;
    border: none;
    color: #aaa;
    height: 32px;
    width: 100%; }
  .rule-table .rule-actions.select2-container {
    width: 100%; }
  .rule-table .select-icon {
    font-size: 16px;
    margin-right: 10px;
    vertical-align: sub; }
  .rule-table .select2-container {
    width: 100%; }
  .rule-table .select2-container-multi .select2-choices .select2-search-field input {
    padding-top: 8px; }
  .rule-table .select2-container-multi .select2-choices .select2-search-choice {
    margin-top: 5px; }

/**
 * Micro clearfix hack http://nicolasgallagher.com/micro-clearfix-hack/
 * This clearfix hack can be used on the container element that has floated
 * elements without adding new markup
 */
/** Vertically center an element in another with this mixin **/
/**
 * Source: https://css-tricks.com/snippets/css/retina-display-media-query/
 */
#modal-policy-picker {
  width: 400px;
  max-width: 400px; }

.launch-policy-picker, .no-policy-text,
.create-and-assign-policy,
.create-and-assign-group-policy {
  transition-property: background-color, border-color;
  transition-duration: 0.2s;
  transition-timing-function: ease;
  background-color: #f7f7f7;
  border: dashed 1px #e1e1e1;
  border-radius: 6px;
  display: block;
  padding: 10px;
  text-align: center; }

.launch-policy-picker, .create-and-assign-policy,
.create-and-assign-group-policy {
  cursor: pointer; }
  .launch-policy-picker:hover, .create-and-assign-policy:hover,
  .create-and-assign-group-policy:hover {
    background-color: #e1e1e1;
    border-color: #888; }

.launch-policy-picker-buttons {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex; }
  .launch-policy-picker-buttons > * {
    margin-right: 12px;
    -webkit-flex: 1;
        -ms-flex: 1;
            flex: 1; }
    .launch-policy-picker-buttons > *:last-child {
      margin-right: 0; }

.policy-picker > div {
  margin-bottom: 20px; }

.policy-picker a {
  cursor: pointer; }

.policy-picker label {
  display: block;
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 10px; }

.policy-picker .select2-container {
  width: 100%;
  margin-bottom: 5px; }

.policy-picker .create-policy {
  text-align: center;
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  font-size: larger;
  padding-top: 10px; }

.policy-summary .policy-heading h5 {
  display: inline-block;
  margin-bottom: 0;
  height: 24px;
  line-height: 24px; }

.policy-summary .policy-heading .do-button {
  float: right;
  margin-left: 10px; }

.policy-summary .empty-policy-caption {
  color: #888;
  font-style: italic; }

.policy-summary.global-policy .policy-default td {
  color: #888; }
  .policy-summary.global-policy .policy-default td.policy-item-icon {
    color: #888; }

.policy-summary.global-policy .policy-default .policy-item-name {
  color: #888; }

.policy-items td {
  padding: 6px;
  vertical-align: top; }

.policy-items .policy-item-name {
  color: #63B246;
  white-space: nowrap;
  width: 210px; }

.policy-items .info {
  font-size: 18px;
  color: #35A2FC;
  vertical-align: middle; }

.policy-items .policy-item-icon {
  font-size: 20px;
  padding-right: 10px;
  color: #63B246; }

.policy-items .overridden {
  color: #999; }
  .policy-items .overridden .policy-item-icon {
    color: #999; }

.policy-items .overridden .policy-item-name, .policy-items .overridden .policy-item-value {
  text-decoration: line-through;
  vertical-align: top; }

.flexbox .policy-heading-line.line {
  -webkit-align-items: inherit;
      -ms-flex-align: inherit;
          align-items: inherit;
  margin-bottom: 20px; }
  .flexbox .policy-heading-line.line > label.policy-heading-label {
    padding-top: 0;
    margin-bottom: 9px;
    margin-top: 11px; }

.integration-list-short, .integration-list-full {
  display: inline; }
  .integration-list-short.hidden, .integration-list-full.hidden {
    display: none; }

.fieldset {
  border: 1px solid #eee;
  border-radius: 3px;
  margin-bottom: 20px; }
  .fieldset .form {
    border: 0;
    margin: 10px 0 0; }

.fieldset-inner {
  padding: 10px; }

table#integration_info {
  margin: 10px 10px 10px 71px; }
  table#integration_info td {
    padding: 3px 6px; }

.key_name {
  text-align: right;
  color: #777; }

.key {
  font-family: Monaco, "Courier New", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", monospace; }
  .key.placeholder {
    color: #999; }

.auth_dampening_display_unit {
  width: 80px; }

div.logo-img-field {
  display: inline-block;
  position: relative; }
  div.logo-img-field .modal-preview-img {
    position: relative; }
  div.logo-img-field .icon-delete {
    color: white;
    cursor: pointer;
    font-size: 18px;
    position: absolute;
    right: 4px;
    text-shadow: 0 0 5px rgba(100, 100, 100, 1);
    top: 4px; }
