/*
 * 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.
 */

::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
   ========================================================================== */
.button {
    margin-left: 10px;
    border: 1px solid #0a3c59;
    background: #adadad;
    background: -webkit-gradient(linear, left top, left bottom, from(#edeff0), to(#adadad));
    background: -webkit-linear-gradient(top, #edeff0, #adadad);
    background: -moz-linear-gradient(top, #edeff0, #adadad);
    background: -ms-linear-gradient(top, #edeff0, #adadad);
    background: -o-linear-gradient(top, #edeff0, #adadad);
    background-image: -ms-linear-gradient(top, #edeff0 0%, #adadad 100%);
    padding: 9px 18px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    -webkit-box-shadow: rgba(255,255,255,0.4) 0 1px 0, inset rgba(255,255,255,0.4) 0 1px 0;
    -moz-box-shadow: rgba(255,255,255,0.4) 0 1px 0, inset rgba(255,255,255,0.4) 0 1px 0;
    box-shadow: rgba(255,255,255,0.4) 0 1px 0, inset rgba(255,255,255,0.4) 0 1px 0;
    text-shadow: #7ea4bd 0 1px 0;
    color: #212121;
    font-size: 13px;
    font-family: helvetica, serif;
    text-decoration: none;
    vertical-align: middle;
}
.button:hover {
    border: 1px solid #0a3c59;
    text-shadow: #1e4158 0 1px 0;
    background: #e6e6e6;
    background: -webkit-gradient(linear, left top, left bottom, from(#5e96bf), to(#e6e6e6));
    background: -webkit-linear-gradient(top, #5e96bf, #e6e6e6);
    background: -moz-linear-gradient(top, #5e96bf, #e6e6e6);
    background: -ms-linear-gradient(top, #5e96bf, #e6e6e6);
    background: -o-linear-gradient(top, #5e96bf, #e6e6e6);
    background-image: -ms-linear-gradient(top, #5e96bf 0%, #e6e6e6 100%);
    color: #4d4d4d;
}
.button:active {
    text-shadow: #1e4158 0 1px 0;
    border: 1px solid #0a3c59;
    background: #65a9d7;
    background: -webkit-gradient(linear, left top, left bottom, from(#3e779d), to(#e6e6e6));
    background: -webkit-linear-gradient(top, #3e779d, #65a9d7);
    background: -moz-linear-gradient(top, #3e779d, #65a9d7);
    background: -ms-linear-gradient(top, #3e779d, #65a9d7);
    background: -o-linear-gradient(top, #3e779d, #65a9d7);
    background-image: -ms-linear-gradient(top, #3e779d 0%, #65a9d7 100%);
    color: #fff;
}

#page {
    margin-left: 15px;
    margin-right: 15px;
}

#button_insert {
    margin-right: 15px;
}

#button_pan {
    margin-left: 15px;
}

#button_magnifier {
    margin-right: 15px;
}

#dataHeight {
    width: 75px;
}

#button_load {
    float : right;
    margin-left: 15px;
}

#button_save {
    float : right;
}

.head {
    padding-right: 30px;
}

*::after, *::before {
    box-sizing: border-box;
}
*::after, *::before {
    box-sizing: border-box;
}
.docs-data > .input-group {
    margin-bottom: 10px;
}
.input-group {
    border-collapse: separate;
    display: table;
    margin-left: 15px;
    /*position: fixed !important;*/
    top: 0;
    left: 0;
    z-index: 1;
}

*::after, *::before {
    box-sizing: border-box;
}
*::after, *::before {
    box-sizing: border-box;
}
.docs-data > .input-group > label {
    min-width: 80px;
}
.input-group-addon:first-child {
    border-right: 0 none;
}
.input-group .form-control:first-child, .input-group-addon:first-child, .input-group-btn:first-child > .btn, .input-group-btn:first-child > .btn-group > .btn, .input-group-btn:first-child > .dropdown-toggle, .input-group-btn:last-child > .btn-group:not(:last-child) > .btn, .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle) {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
}
.input-group-sm > .form-control, .input-group-sm > .input-group-addon, .input-group-sm > .input-group-btn > .btn {
    border-radius: 3px;
    font-size: 12px;
    height: 30px;
    line-height: 1.5;
    padding: 5px 10px;
}
.input-group-addon {
    background-color: #eee;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #555;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    padding: 6px 12px;
    text-align: center;
}
.input-group-addon, .input-group-btn {
    vertical-align: middle;
    white-space: nowrap;

}
.input-group .form-control, .input-group-addon, .input-group-btn {
    display: table-cell;
}

input.zoomfield {
    font-size: 10px;
    padding: 0;
    padding-left: 0px;
}
label.zoomfieldLabel {
    font-size: 10px;
    font-weight: normal;
    margin-top: 8px;

}
div.zoomfield .x-form-item-body.x-form-item-body-default.x-form-text-field-body.x-form-text-field-body-default {
    width: 31px;
}
div.zoomfield .x-form-trigger-wrap.x-form-trigger-wrap-default {
    width: 32px;
}
div.zoomfield .x-form-text-wrap.x-form-text-wrap-default {
    padding-left: 0px;
}
div.zoomfield .x-form-trigger-spinner-default {
    width: 5px;
}

div.zoomfield .x-form-spinner.x-form-spinner-default.x-form-spinner-up.x-form-spinner-up-default  {
    font-size: 12px;
    width: 15px;
}

div.zoomfield .x-form-spinner.x-form-spinner-default.x-form-spinner-down.x-form-spinner-down-default {
    font-size: 12px;
    width: 15px;
}

label {
    display: inline-block;
    font-weight: 700;
    margin-bottom: 5px;
    max-width: 100%;
}
* {
    box-sizing: border-box;
}
.input-group {
    border-collapse: separate;
}
.info {
    position: fixed;
    top: 35px;
    left: 250px;
    z-index: 3;
    background-color: whitesmoke;
}
.info p {
    font-size: small;
    font-style: normal;
    font-family: serif;
}

.button-group-rt {
    position: fixed;
    top: 0;
    left: 800px;
    z-index: 2;
}


.canvas-store {
    padding: 10px;
}

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

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}
.option-guide-table.option-guide-table-default {
    width: 100%;
}
.option-guide-table-body-default table {
    width: 100%;
    table-layout: fixed;

}

.option-guide-table-body-default table tr td div {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    font-size: 11px;
}

.option-guide-table-body-default table tr>td:first-child {
    width: 32px;
}
.option-guide-table-body-default table tr>td:first-child div {
    text-align: left;
    width: 32px;
    font-size: 16px;
    font-family: FontAwesomeProRegular;
}

.option-guide-table-body-default table tr td div.x-form-spinner {
    margin-left: 0px;
    margin-right: 0px;
    width: 0px;
    margin-right: 18px;
}
.option-guide-table-body-default table tr td div.x-panel-default {
    margin-left: 0px;
    margin-right: 0px;
    width: 45px;
}
.option-guide-table-body-default table tr td  {
    width: 45px;
}

.option-guide-table-body-default table tr td div.x-form-type-text {
    width: 100%;
    border: 1px solid;
}

.option-guide-table-body-default table tr td div.x-form-text-field-body.x-form-text-field-body-default {
    width: 21px;
}
.option-guide-table-body-default table tr td div.x-form-trigger-wrap.x-form-trigger-wrap-default {
    width: 47px;
    margin-left: 0px;
}
.option-guide-table-body-default table tr td div.x-form-trigger {
    width: 5px;
}
.option-guide-table-body-default table tr td input.x-form-text.x-form-text-default {
    padding-left: 5px;
    padding-right: 0px;
    font-size: 11px;
}

div[id^="rectangleborderselectablefield"] {
    margin-left: auto;
    margin-right: auto;
}
/*
.option-guide-table-body-default table tr td div input.x-form-text {
    padding-left: 5px;
    padding-right: 0px;
}
*/
/*
 * 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.
 */
.x-segmented-button-item-horizontal.x-segmented-button-middle {
    border-left: 1px solid #e4e4e4;
}
.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

.option-content-panel-body {
    overflow-y: auto;
    overflow-x: hidden;
    margin-top: 41px;
    padding: 15px 0px 0px 15px;
}

.rectangleborderselectable {
    width: 100%;
    height: 100%;
    border: 5px solid #E6E7E9;
}

.top .rectangleborderselectable {
    border-top: 5px solid #5FA2DD;
}
.bottom .rectangleborderselectable {
    border-bottom: 5px solid #5FA2DD;
}
.left .rectangleborderselectable {
    border-left: 5px solid #5FA2DD;
}
.right .rectangleborderselectable {
    border-right: 5px solid #5FA2DD;
}

.option-guide-table-body table td div{
    border:none;
}

.x-field-extra {
    margin-bottom: 17px;
}

.x-bbar-no-border {
    border: none;
}

.c-panel-no-border >div >div{
    border-bottom: none;
    border-left: none;
    border-right: none;
}

.ip-pagenavigator {
    top: 0px !important;
}
.ip-pagenavigator input {
    padding-top: 5px;
    padding-right: 0px !important;
    padding-bottom: 4px;
    padding-left: 5px !important;
}
.x-toolbar.ip-no-border-bottom {
    border-bottom: none !important;
    border-top: none !important;
}
canvas.insert-mode {
    cursor: crosshair !important;
}

canvas.zoom-mode {
    cursor: zoom-in !important;
}

canvas.grab-mode {
    cursor: grabbing !important;
}
/* ==========================================================================
   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,
       (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;
    }
}

