@if $ext-trial or $ext-beta {
    @font-face {
        font-family: 'ext-watermark';
        src:url(get-resource-path('ext-watermark/fonts/ext-watermark.eot?n6lnws', $packageName:'ext'));
        src:url(get-resource-path('ext-watermark/fonts/ext-watermark.eot?#iefixn6lnws', $packageName:'ext')) format('embedded-opentype'),
        url(get-resource-path('ext-watermark/fonts/ext-watermark.woff?n6lnws', $packageName:'ext')) format('woff'),
        url(get-resource-path('ext-watermark/fonts/ext-watermark.ttf?n6lnws', $packageName:'ext')) format('truetype'),
        url(get-resource-path('ext-watermark/fonts/ext-watermark.svg?n6lnws#ext-watermark', $packageName:'ext')) format('svg');
        font-weight: normal;
        font-style: normal;
    }
}

.#{$prefix}body {
    margin: 0;

    @if $enable-font-smoothing {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

@-ms-viewport {
    // prevent scaling on windows8 tablets when using portrait orientation
    width: device-width;
}

img {
    border: 0;
}

.#{$prefix}border-box, 
.#{$prefix}border-box * {
    box-sizing:border-box;
    -moz-box-sizing:border-box;
    -ms-box-sizing:border-box;
    -webkit-box-sizing:border-box;
}

@if $include-rtl {
    .#{$prefix}rtl {
        direction: rtl;
    }
}

.#{$prefix}ltr {
    direction: ltr;
}

.#{$prefix}clear {
    overflow: hidden;
    clear: both;
    font-size: 0;
    line-height: 0;
    display: table;
}

.#{$prefix}layer {
    position: absolute !important;

    // Ensure floating components begin life at the top
    // of the viewport. Until explicitly positioned,
    // they are in the document flow which might cause
    // overflow and size constraint problems.
    top: 0;
    left: 0;
    overflow: hidden;
}

// Support for Floating config fixed: true which creates a fixed Layer.
// Currently only available in browsers which support position: fixed
.#{$prefix}fixed-layer {
    position: fixed !important;
    overflow: hidden;
}

.#{$prefix}shim {
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden;
    @include opacity(0);
}

.#{$prefix}hidden-display {
    display: none !important;
}

.#{$prefix}hidden-visibility {
    visibility: hidden !important;
}

.#{$prefix}hidden,
.#{$prefix}hidden-offsets {
    // to deal with inline elements that can't be position:absolute
    display: block !important;
    // ensure the browser disallows tabbing into this element
    visibility: hidden !important;
    position: absolute !important;
    // hide using top since left  can trigger a horizontal scrollbar in rtl mode.
    top: -10000px !important;
}

// A hide method which is still accessible to screen readers
.#{$prefix}hidden-clip {
    position: absolute !important;
    clip: rect(0,0,0,0);
}

.#{$prefix}masked-relative {
    position: relative;
}

// Element shadows for IE 8 and below
@if $include-ie {
    .#{$prefix}ie-shadow {
        background-color: #777;
        position: absolute;
        overflow: hidden;
    }
}

.#{$prefix}unselectable {
    @include no-select;
}

.#{$prefix}selectable {
    cursor: auto;

    // Mozilla and WebKit support these properties
    -moz-user-select: text;
    -webkit-user-select: text;

    // IE 10 is expected to support this
    -ms-user-select: text;

    // No browsers currently support these
    user-select: text;
    -o-user-select: text;
}

.#{$prefix}list-plain {
    // removes default styling from ul elements
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.#{$prefix}table-plain {
    border-collapse: collapse;
    border-spacing: 0;
    // inherit font size from parent node instead of using the browser's default font
    // size for tables. (can't use font-size: inherit because of lack of IE6/7 support)
    font-size: 1em;
}

.#{$prefix}frame-tl,
.#{$prefix}frame-tr,
.#{$prefix}frame-tc,
.#{$prefix}frame-bl,
.#{$prefix}frame-br,
.#{$prefix}frame-bc {
    overflow: hidden;
    background-repeat: no-repeat;
}

.#{$prefix}frame-tc,
.#{$prefix}frame-bc {
    background-repeat: repeat-x;
}

// the corners of a table frame are given their width by applying padding.  Setting their
// width property to 1px ensures that they can get no larger than the amount of padding
// inside, even when the frame is stretched because the button has a width
// (e.g. Button with width or minWidth configured has width:100% on the frame table)
td.#{$prefix}frame-tl,
td.#{$prefix}frame-tr,
td.#{$prefix}frame-bl,
td.#{$prefix}frame-br {
    width: 1px;
}

.#{$prefix}frame-mc {
    background-repeat: repeat-x;
    overflow: hidden;
}

.#{$prefix}proxy-el {
    position: absolute;
    background: rgb(180, 180, 180);
    @include opacity(0.8);
}

// Element shadows for browsers that support CSS3 box-shadow
.#{$prefix}css-shadow {
    position: absolute;
    @include border-radius($css-shadow-border-radius);
}

.#{$prefix}item-disabled,
.#{$prefix}item-disabled * {
    cursor: default;
    pointer-events: none; // prevents :hover styling on child elements
}

.#{$prefix}component,
.#{$prefix}container {
    // position relative so that things can be positioned inside of components/containers
    // e.g. touch scroll indicators.
    position: relative;
}

// TODO: remove outline from individual components that need it instead of resetting globally
// *Really* TODO: use focus outline for its intended purpose: implementing ARIA. Instead of hacking focus outlines.
// This prevents the default outline added to focused elements by some browsers (ahem, webkit)
:focus {
    outline:none;
}

// This rule is needed for synchronously repainting font-icon elements in IE8
// (see Ext.dom.Element#syncRepaint for more info).  The reason for the inclusion of the
// .x-body class in the selector here is so that this rule will be more specific than the
// rules provided by font icon packages like FontAwesome and others
.#{$prefix}body .#{$prefix}sync-repaint {
    &:before,
    &:after {
        content: none !important;
    }
}

// This is used by FileButton to reset position: absolute temporarily
// after focusing parent input field. A workaround for file input element
// not being properly positioned in IE8/9.
.#{$prefix}position-relative {
    position: relative !important;
}

// TAB guards must not affect any layout while remaining accessible.
// The only thing that counts is their position in the DOM tab sequence.
.#{$prefix}tab-guard {
    position: absolute;
    clip: rect(0, 0, 0, 0);
}