
/*
==========================================================================
    HTML5 display elements
==========================================================================
*/

/* Correct `block` display not defined in IE 6/7/8/9 and Firefox 3. */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
    display: block;
}

/* Correct `inline-block` display not defined in IE 6/7/8/9 and Firefox 3. */
audio,
canvas,
video {
    display: inline-block;
    *display: inline;
    *zoom: 1;
}

/* Prevent modern browsers from displaying `audio` without controls. Remove excess height in iOS 5 devices. */
audio:not([controls]) {
    display: none;
}

/* Address styling not present in IE 7/8/9, Firefox 3, and Safari 4. Known issue: no IE 6 support. */
[hidden] {
    display: none;
}


/*
==========================================================================
    Base
==========================================================================
*/

/* Correct text resizing oddly in IE 6/7 when body `font-size` is set using `em` units.
   Prevent iOS text size adjust after orientation change, without disabling user zoom. */
html {
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    font-size: 100%;
    height: 100%;
}

/* Remove default margin. */
body {
    font: normal normal normal 1em/1.2 Arial, "Helvetica Neue", Helvetica, sans-serif;
    height: 100%;
    margin: 0;
    padding: 0;
}

/*
==========================================================================
    Links
==========================================================================
*/

/* Address `outline` inconsistency between Chrome and other browsers. */
a:focus {
    outline: thin dotted;
}

/* Improve readability when focused and also mouse hovered in all browsers. */
a:active,
a:hover {
    outline: 0;
}

/* Sets default style for <a>. */
a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


/*
==========================================================================
    Typography
==========================================================================
*/

/* Address font sizes and margins set differently in IE 6/7.
   Address font sizes within `section` and `article` in Firefox 4+, Safari 5, and Chrome. */
h1 {
    font-size: 2em;
    margin: 0.4375em 0;
}

h2 {
    font-size: 1.5em;
    margin: 0.583em 0;
}

h3 {
    font-size: 1.125em;
    margin: 0.778em 0;
}

h4 {
    font-size: 1em;
    margin: 0.875em 0;
}

h5 {
    font-size: 0.875em;
    margin: 1em 0;
}

h6 {
    font-size: 0.75em;
    margin: 1.167em 0;
}

/* Address styling not present in IE 7/8/9, Safari 5, and Chrome. */
abbr[title] {
    border-bottom: 1px dotted;
}

/* Address style set to `bolder` in Firefox 3+, Safari 4/5, and Chrome. */
b,
strong {
    font-weight: bold;
}

/* Address styling not present in Safari 5 and Chrome. */
dfn {
    font-style: italic;
}

/* Address styling not present in IE 6/7/8/9. */
mark {
    background: #ff0;
    color: #000;
}

/* Correct font family set oddly in IE 6, Safari 4/5, and Chrome. */
code,
kbd,
pre,
samp {
    font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
    font-size: 1em;
    line-height: 1.25;
}

/* Sets default style for <code> & <pre>. */
code,
pre {
    -moz-border-radius: 0.1875em;
    -ms-border-radius: 0.1875em;
    -o-border-radius: 0.1875em;
    -webkit-border-radius: 0.1875em;
    border-radius: 0.1875em;
}

code {
    background-color: #f7f7f9;
    border: 1px solid #e1e1e8;
    color: #d14;
    padding: 0.125em 0.25em;
}

pre {
    background-color: #f5f5f5;
    border: 1px solid rgba(0,0,0,0.15);
    color: #333;
    display: block;
    line-height: 1.25em;
    margin: 0 0 0.625em;
    padding: 0.625em;
    white-space: pre;
    white-space: pre-wrap;
    word-break: break-all;
    word-wrap: break-word;
}

pre code {
    background-color: transparent;
    border: 0;
    color: inherit;
    padding: 0;
}

/* Address inconsistent and variable font size in all browsers. */
small {
    font-size: 80%;
}

/* Prevent `sub` and `sup` affecting `line-height` in all browsers. */
sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sup {
    top: -0.5em;
}

sub {
    bottom: -0.25em;
}

/* Address differences between Firefox and other browsers.
   Known issue: no IE 6/7 normalization. */
hr {
    -moz-box-sizing: content-box;
    box-sizing: content-box;
    height: 0;
}

/* A better looking default horizontal rule. */
hr {
    border: 0;
    border-top: 1px solid #000;
    clear: both;
    display: block;
    height: 1px;
    margin: 1em 0;
    padding: 0;
}

/* Sets default margin for <p>. */
p {
    margin: 0 0 0.625em;
}

/* Sets default style for <blockquote> & <q>. */
blockquote {
    border-left: 0.3125em solid #eee;
    margin: 0 0 1.25em;
    padding: 0 0 0 0.9375em;
}

blockquote p {
    line-height: 1.5625em;
    margin-bottom: 0;
}

blockquote small {
    color: #999;
    display: block;
    line-height: 1.25em;
}

blockquote small:before {
    content: "\2014 \00A0";
}

blockquote:before,
blockquote:after {
    content: "";
}

q {
    quotes: "\201C""\201D""\2018""\2019";
}

/* Remove text-shadow in selection highlight. These selection declarations have to be separate. Customize the background color to match your design. */
::selection {
    background: #A8141B;
    color: #FFF;
    text-shadow: none;
}
::-moz-selection {
    background: #A8141B;
    color: #FFF;
    text-shadow: none;
}
::-webkit-selection {
    background: #A8141B;
    color: #FFF;
    text-shadow: none;
}


/*
==========================================================================
    Lists
==========================================================================
*/

/* Address margins set differently in IE 6/7. */
dl,
menu,
ol,
ul {
    margin: 1em 0;
}

dd {
    margin: 0 0 0 40px;
}

/* Address paddings set differently in IE 6/7. */
menu,
ol,
ul {
    padding: 0 0 0 40px;
}

/* Correct list images handled incorrectly in IE 7. */
nav ul,
nav ol {
    list-style: none;
    list-style-image: none;
}

/* Sets default style for <ul> & <ol>. */
ul,
ol {
    margin: 0 0 0.625em 1.5625em;
    padding: 0;
}

ul ul,
ul ol,
ol ol,
ol ul {
    margin-bottom: 0;
}

li {
    line-height: 1.25em;
}


/*
==========================================================================
    Embedded content
==========================================================================
*/

/* Remove border when inside `a` element in IE 6/7/8/9 and Firefox 3.
   Remove the gap between images and the bottom of their containers.
   Improve image quality when scaled in IE 7. */
img {
    border: 0;
    vertical-align: middle;
    -ms-interpolation-mode: bicubic;
}

/* Correct overflow displayed oddly in IE 9. */
svg:not(:root) {
    overflow: hidden;
}


/*
==========================================================================
    Figures
==========================================================================
*/

/* Address margin not present in IE 6/7/8/9, Safari 5, and Opera 11. */
figure {
    margin: 0;
}


/*
==========================================================================
    Tables
==========================================================================
*/

/* Remove most spacing between table cells. */
table {
    border-collapse: collapse;
    border-spacing: 0;
}


/*
==========================================================================
    Forms
==========================================================================
*/

form {
    /* Correct margin displayed oddly in IE 6/7. */
    margin: 0;
}

fieldset {
    /* Define consistent border, margin, and padding. */
    border: 0;
    margin: 0;
    padding: 0;
}

legend {
    border: 0; /* Correct color not being inherited in IE 6/7/8/9. */
    padding: 0;
    white-space: normal; /* Correct text not wrapping in Firefox 3. */
}

button,
input,
select,
select optgroup,
textarea {
    font-size: 100%; /* Correct font size not being inherited in all browsers. */
    margin: 0; /* Address margins set differently in IE 6/7, Firefox 3+, Safari 5,and Chrome. */
    text-align: left;
    vertical-align: middle; /* Improve appearance and consistency in all browsers. */
}

button,
input {
    /* Address Firefox 3+ setting `line-height` on `input` using `!important` in the UA stylesheet. */
    line-height: normal;
}

button,
select {
    /* Address inconsistent `text-transform` inheritance for `button` and `select`.
       All other form control elements do not inherit `text-transform` values.
       Correct `button` style inheritance in Chrome, Safari 5+, and IE 6+.
       Correct `select` style inheritance in Firefox 4+ and Opera. */
    text-transform: none;
}

select optgroup {
    /* Correct `select optgroup` font-style in Firefox. */
    font-style: normal;
    font-weight: bold;
}

button,
html input[type="button"], /* Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` and `video` controls. */
input[type="reset"],
input[type="submit"] {
    -webkit-appearance: button; /* Correct inability to style clickable `input` types in iOS. */
    *overflow: visible;  /* Remove inner spacing in IE 7 without affecting normal text inputs. Known issue: inner spacing remains in IE 6. */
}

label,
select,
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
input[type="radio"],
input[type="checkbox"] {
    cursor: pointer; /* Improves usability and consistency of cursor style between image-type `input` and others. */
}

button[disabled],
html input[disabled] {
    cursor: default; /* Re-set default cursor for disabled elements. */
}

input[type="checkbox"],
input[type="radio"] {
    padding: 0; /* Remove excess padding in IE 8/9. */
    *height: 13px; /* Remove excess padding in IE 7. Known issue: excess padding remains in IE 6. */
    *width: 13px; /* Remove excess padding in IE 7. Known issue: excess padding remains in IE 6. */
}

input[type="search"] {
    -webkit-appearance: textfield; /* Address `appearance` set to `searchfield` in Safari 5 and Chrome. */
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none; /* Remove inner padding and search cancel button in Safari 5 and Chrome on OS X. */
}

button::-moz-focus-inner,
input::-moz-focus-inner {
    /* Remove inner padding and border in Firefox 3+. */
    border: 0;
    padding: 0;
}

textarea {
    overflow: auto; /* Remove default vertical scrollbar in IE 6/7/8/9. */
    vertical-align: top; /* Improve readability and alignment in all browsers. */
}

/* QMike CSS Framework - reset form style */
button,
input,
select,
textarea {
    -moz-border-radius: 0;
    -ms-border-radius: 0;
    -o-border-radius: 0;
    -webkit-border-radius: 0;
    border-radius: 0;
    -moz-background-clip: padding;
    -webkit-background-clip: padding;
    background-clip: padding-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

button,
input[type="button"],
input[type="color"],
input[type="date"],
input[type="datetime"],
input[type="datetime-local"],
input[type="email"],
input[type="file"],
input[type="month"],
input[type="number"],
input[type="password"],
input[type="range"],
input[type="reset"],
input[type="search"],
input[type="submit"],
input[type="tel"],
input[type="text"],
input[type="time"],
input[type="url"],
input[type="week"],
select,
textarea {
    background: #fff;
    border: 1px solid #ccc;
    color: #000;
    font: normal normal normal 1em/1.2 Arial, "Helvetica Neue", Helvetica, sans-serif;
    height: 1.5625em; /* 16px * 1,5625em = 25px  */
}

.browserChrome input[type="file"] {
    border: 0;
}

button,
input {
    padding: 2px 0.375em;
}

select {
    padding: 0 0 0 0.375em;
}

textarea {
    padding: 0.375em;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
    text-align: center;
}

select[multiple],
textarea {
    height: auto;
}

::-webkit-input-placeholder {
    /* WebKit browsers */
    color: #aaa;
}
:-moz-placeholder {
    /* Mozilla Firefox 4 to 18 */
    color: #aaa;
    opacity: 1;
}
::-moz-placeholder {
    /* Mozilla Firefox 19+ */
    color: #aaa;
    opacity: 1;
}
input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
    /* Internet Explorer 10+ */
    color: #aaa;
}

button[disabled],
button[readonly],
input[type="button"][disabled],
input[type="button"][readonly],
input[type="color"][disabled],
input[type="color"][readonly],
input[type="date"][disabled],
input[type="date"][readonly],
input[type="datetime"][disabled],
input[type="datetime"][readonly],
input[type="datetime-local"][disabled],
input[type="datetime-local"][readonly],
input[type="email"][disabled],
input[type="email"][readonly],
input[type="file"][disabled],
input[type="file"][readonly],
input[type="month"][disabled],
input[type="month"][readonly],
input[type="number"][disabled],
input[type="number"][readonly],
input[type="password"][disabled],
input[type="password"][readonly],
input[type="range"][disabled],
input[type="range"][readonly],
input[type="reset"][disabled],
input[type="reset"][readonly],
input[type="search"][disabled],
input[type="search"][readonly],
input[type="submit"][disabled],
input[type="submit"][readonly],
input[type="tel"][disabled],
input[type="tel"][readonly],
input[type="text"][disabled],
input[type="text"][readonly],
input[type="time"][disabled],
input[type="time"][readonly],
input[type="url"][disabled],
input[type="url"][readonly],
input[type="week"][disabled],
input[type="week"][readonly],
select[disabled],
select[readonly],
textarea[disabled],
textarea[readonly] {
    background: #eee;
    color: #888;
    cursor: default;
}

input[type="checkbox"][disabled],
input[type="checkbox"][readonly],
input[type="radio"][disabled],
input[type="radio"][readonly] {
    background: transparent;
    cursor: default;
}

input[type="checkbox"][disabled] + label,
input[type="checkbox"][readonly] + label,
input[type="radio"][disabled] + label,
input[type="radio"][readonly] + label,
label input[type="checkbox"][disabled] + span,
label input[type="checkbox"][readonly] + span,
label input[type="radio"][disabled] + span,
label input[type="radio"][readonly] + span {
    cursor: default;
}

button:focus,
input[type="button"]:focus,
input[type="color"]:focus,
input[type="date"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="email"]:focus,
input[type="month"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="range"]:focus,
input[type="reset"]:focus,
input[type="search"]:focus,
input[type="submit"]:focus,
input[type="tel"]:focus,
input[type="text"]:focus,
input[type="time"]:focus,
input[type="url"]:focus,
input[type="week"]:focus,
select:focus,
textarea:focus {
    -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075), 0 0 8px rgba(82,168,236,0.6);
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075), 0 0 8px rgba(82,168,236,0.6);
    border-color: rgba(82,168,236,0.8);
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.075), 0 0 8px rgba(82,168,236,0.6);
    outline: 0;
}

input[type="checkbox"]:focus,
input[type="file"]:focus,
input[type="radio"]:focus {
    outline: 5px auto 0;
    outline-offset: -2px;
}

button:active,
input[type="button"]:active,
input[type="reset"]:active,
input[type="submit"]:active {
    -moz-box-shadow: inset rgba(0, 0, 0, 0.25) 0 1px 2px 0;
    -webkit-box-shadow: inset rgba(0, 0, 0, 0.25) 0 1px 2px 0;
    box-shadow: inset rgba(0, 0, 0, 0.25) 0 1px 2px 0;
    border-color: #999999 #bbbbbb #dddddd;
}


/*
==========================================================================
    Additional classes
==========================================================================
*/

/* Floating classes. */
.left {
    float: left;
}
.right {
    float: right;
}
.clear {
    clear: both;
}

/* Clearfix: contain floats. For modern browsers. */
.cf:before,
.cf:after {
    content: " "; /* 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 are clearfixed. */
    display: table; /* The use of `table` rather than `block` is only necessary if using `:before` to contain the top-margins of child elements. */
}
.cf:after {
    clear: both;
}
.cf {
    *zoom: 1; /* For IE 6/7 only. Include this rule to trigger hasLayout and contain floats. */
}

/* @media print - for printers */
@media print{
    body{background:#fff;}
    *{background:transparent!important;color:#000!important;text-shadow:none!important;filter:none!important;-ms-filter:none!important;} /* color:#000 - black prints faster */
    a,a:visited{text-decoration:underline;}
    a[href]:after{content:" (" attr(href) ")";}
    abbr[title]:after{content:" (" attr(title) ")";}
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content:"";
    } /* Do not show javascript and internal links */
    thead{display:table-header-group;} /* Printing Tables: css-discuss.incutio.com/wiki/Printing_Tables */
    tr,img{page-break-inside:avoid;}
    @page{margin:.5cm;}
    p,h2,h3{orphans:3;widows:3;}
    h2,h3{page-break-after:avoid;}
}

.buttonAsLink:disabled{
    background: transparent;
    color: gray;
}
.buttonAsLink:active,.buttonAsLink:focus{
    box-shadow: none;
}
.buttonAsLink span{
    display: inline-block;
}
.buttonAsLink.processing span{
    animation: spin 1s linear infinite;
}
.buttonAsLink{
    border: none;
    color: #00a6d6;
    font-size: .75em;
    box-shadow: none;
}
@keyframes spin { 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg);} }
