/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* View page cursor styles */
.floating-block{
    display: block;
    position:fixed;
    top:37px;
    right:20px;
    float:right;
    width:70px;
    height: 70px;
    background: transparent;
    z-index:100;
}

.floating-block .get-build{
    position:relative;
    top:5px;
    left:-5px;
}

.floating-block .cursor{
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 20px 8px 0;
    border-color: transparent #2196F3 transparent transparent;
    position:relative;
    top:28px;
    left:-25px;
}

/* View page general styles */
.view-page .bases-preview{
    text-align: center;
}

.view-page .has-active-bases{
    background-color: #C6FBDA !Important;
}

.view-page .bold{
    font-weight:bold;
}

/* Edit page styles */
main.edit-page{
    max-width:1380px;
    margin-right: auto;
    margin-left: auto;
}

.edit-page textarea{
    height:244px;
    color: black;
    background:#ffffff;
}

.edit-page .col-xs-05 {
    position: relative;
    width: 4.40%;
}

.edit-page .datetime.col-xs-05 {
    position: relative;
    width: 5.4%;
}

.edit-page .row{
    width:125%;
}

.edit-page span{
    display: inline-block;
}

.edit-page .edit-window{
    width:380px;
    display:none;
    position:absolute;
    z-index: 9999;
}

.edit-page p{
    word-wrap: break-word;
}

.edit-page .bootstrap-datetimepicker-widget{
    display: block !important;
}

.edit-page span[id$='header']{
    font-weight:bold;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}

.fake-link {
    color: blue;
    text-decoration: underline;
    cursor: pointer;
}   
textarea[readonly]{
    color: lightgrey;
}
.editable{
    color: grey;
}    
th{
    background: white;
}
.new-row{
    color: lightgrey;
}
td{
    max-width: 320px;
}
.to-edit{
    color: lightblue;
}
.to-edit:hover{
    color: blue;
    cursor:pointer;
}

#addNewBuild, 
#addNewTemplate {
    padding: 0;
    width:50px;
    height: 50px;
    border-radius: 25px;
    position: fixed;
    bottom:50px;
}

.fa.rotate-46{
    transform: rotate(46deg);
}

#addNewBuild > i.fa,
#addNewTemplate > i.fa {
    font-size: 1.7em;
    margin-top:14px;
}

.server-name{
    float:right;
    margin-right:20%;
    height: 25px;
    font-size: 14px;
}

.server-name.radar{    
    border: 2px solid #bcdff1;
    padding: 0 5px;
    border-radius: 10px;
    background-color: #d9edf7;
    color: #31708f;
}

.bases-preview.alert-success .server-name{
    border: 2px solid #a3c8ed;
}

.build-grants-wrapper{
    display: inline-block;
    width: 215px;
    height:25px;
    float:left;
}

.build-grants-wrapper .grant{
    display: inline-block;
    width: 50px;
    height: 18px;
    margin-left: 5px;
    border: 2px solid grey;
    border-radius: 10px;
    background: #8080804d;
    color: #4a4a4a;
    opacity:0.3;
}

.build-grants-wrapper .grant small{
    position: relative;
    top:-7px;
    font-size: 13px;
}

.build-grants-wrapper .grant.available{
    opacity:1;
}

.build-grants-wrapper .grant.grant-select.available{
    background-color: #dff0d8;
    border-color: #d0e9c6;
    color: #3c763d;
}

.bases-preview.alert-success .build-grants-wrapper .grant.grant-select.available{
    border-color: #99d781;
    background-color: #a4e78899;
}

.build-grants-wrapper .grant.grant-insert.available{
    background-color: #fcf8e3;
    border-color: #faf2cc;
    color: #8a6d3b;
}

.build-grants-wrapper .grant.grant-update.available{
    background-color: #d9edf7;
    border-color: #bcdff1;
    color: #31708f;
}

.build-grants-wrapper .grant.grant-delete.available{
    background-color: #f2dede;
    border-color: #ebcccc;
    color: #a94442;
}

#templates-buttons {
    position: fixed !Important;
    bottom:50px; 
}

#templates-buttons > a {
    display: inline-block;
    width:50px;
    height: 50px;
    border-radius: 25px;    
    padding: 0;
    margin-right: 5px;
    float: right;
}

.a-span
{
    font-size: 3.5em;
}

.templates-page {
    font-size: 1.1rem;
}

.templates-page .fa {
    cursor: pointer;
    color: #400080;
}

#templates-parent-div
{
    margin-bottom: 100px;
}

.template-preview-row-parent,
.template {
  display: -webkit-flex; /* Safari */
  display: flex;
  -webkit-align-content: space-around; /* Safari */
  align-content:         space-around;
  border-bottom: 1px dashed gray;
  align-items: center;
  width: 100%;
}

.template-preview-row,
.template {
  width: 100%;    
}

@media screen and (min-width: 1400px) {
    .template-preview-row,
    .template {
      padding-left: 33%;   
    }    
}

.template-preview-row {
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 1.2rem;
}

.template {
    padding-top: 5px;
    padding-bottom: 5px;
}

.template-subject {
  min-width: 100px;
  max-width: 250px;
  flex-basis: auto; /* default value */
  flex-grow: 1;    
}

.template-tooltip-icon,
.template-send-icon,
.template-release-icon,
.template-schedule-icon,
.template-edit-icon
{
    flex-grow: 0;
    flex-shrink: 1;
    flex-basis: 30px;
}

.fa-archive {
    margin-left: -20%;
}

.mailings-icon {
    margin-left: 1%;
}

.fa-arrow-circle-down,
.fa-arrow-circle-up {
    margin-right: 1%;
}

/* Forms */

#template_form_query,
#template_schedule_form_query {
    height: 350px;
}

/* Modal */

.mailings-modal {
    width: 90%; 
    background-color: rgb(64, 0, 128, 0.5);
}

.mailings-modal-content-row {  
    margin: 15px;
    padding: 5px;
    background-color: white;
}

.mailing-subj {
    font-weight: bold;
}

.mailing-edit,
.mailing-rightnow,
.mailing-change-active
{
    font-weight: bold;
}

.mailing-rightnow,
.mailing-change-active
{
    margin-left: 10px;
    cursor: pointer;
    color: #0275d8;
}

@media screen and (min-width: 1400px) {
    .mailing-rightnow,
    .mailing-change-active
    {
        margin-left: 2%;
    }  
}

/* Alert */

.custom-react-alert
{
    text-transform: none;
}