//
// Reset CSS
// Adapted from http://github.com/necolas/normalize.css
// --------------------------------------------------

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
@browserDefault: "'org.zkoss.zul.theme.browserDefault'";
@browserDefaultPrefix: e('<c:if test="${not empty c:property(@{browserDefault})}">${".z-page "}</c:if>');
/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
e('<c:if test="${empty c:property(@{browserDefault})}">');
html {
  line-height: normal; /* 1 */  /* James chu, Potix, 20240124, reported issue: https://github.com/necolas/normalize.css/issues/865 */
  -webkit-text-size-adjust: 100%; /* 2 */
}
/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
  margin: 0;
}
/**
 * Render the `main` element consistently in IE.
 */

main {
  display: block;
}
e('</c:if>');
/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

@{browserDefaultPrefix}h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

@{browserDefaultPrefix}hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

@{browserDefaultPrefix}pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

@{browserDefaultPrefix}a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

@{browserDefaultPrefix}abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

@{browserDefaultPrefix}b,
@{browserDefaultPrefix}strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

@{browserDefaultPrefix}code,
@{browserDefaultPrefix}kbd,
@{browserDefaultPrefix}samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

@{browserDefaultPrefix}small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

@{browserDefaultPrefix}sub,
@{browserDefaultPrefix}sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

@{browserDefaultPrefix}sub {
  bottom: -0.25em;
}

@{browserDefaultPrefix}sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

@{browserDefaultPrefix}img {
  vertical-align: middle; /* James chu, Potix, 20240125, aligns the image vertically with the text */
  border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

@{browserDefaultPrefix}button,
@{browserDefaultPrefix}input,
@{browserDefaultPrefix}optgroup,
@{browserDefaultPrefix}select,
@{browserDefaultPrefix}textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
  vertical-align: middle; /* James chu, Potix, 20240205, aligns vertically with the text */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

@{browserDefaultPrefix}button,
@{browserDefaultPrefix}input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

@{browserDefaultPrefix}button,
@{browserDefaultPrefix}select { /* 1 */
  text-transform: none;
}

/* James chu, Potix, 20240205, cursor should be pointer */
@{browserDefaultPrefix}label,
@{browserDefaultPrefix}select,
@{browserDefaultPrefix}input[type="radio"],
@{browserDefaultPrefix}input[type="checkbox"] {
  cursor: pointer; // Improves usability and consistency of cursor style between image-type `input` and others.
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

@{browserDefaultPrefix}button,
@{browserDefaultPrefix}[type="button"],
@{browserDefaultPrefix}[type="reset"],
@{browserDefaultPrefix}[type="submit"] {
  -webkit-appearance: button;
  /* James chu, Potix, 20240205, cursor should be pointer */
  cursor: pointer; // Improves usability and consistency of cursor style between image-type `input` and others.
}

/**
 * Remove the inner border and padding in Firefox.
 */

@{browserDefaultPrefix}button::-moz-focus-inner,
@{browserDefaultPrefix}[type="button"]::-moz-focus-inner,
@{browserDefaultPrefix}[type="reset"]::-moz-focus-inner,
@{browserDefaultPrefix}[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

@{browserDefaultPrefix}button:-moz-focusring,
@{browserDefaultPrefix}[type="button"]:-moz-focusring,
@{browserDefaultPrefix}[type="reset"]:-moz-focusring,
@{browserDefaultPrefix}[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

@{browserDefaultPrefix}fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

@{browserDefaultPrefix}legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

@{browserDefaultPrefix}progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

@{browserDefaultPrefix}textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

@{browserDefaultPrefix}[type="checkbox"],
@{browserDefaultPrefix}[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

@{browserDefaultPrefix}[type="number"]::-webkit-inner-spin-button,
@{browserDefaultPrefix}[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

@{browserDefaultPrefix}[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

@{browserDefaultPrefix}[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

@{browserDefaultPrefix}::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

@{browserDefaultPrefix}details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

@{browserDefaultPrefix}summary {
  display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

@{browserDefaultPrefix}template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */

@{browserDefaultPrefix}[hidden] {
  display: none;
}

// Printing
// -------------------------
// Source: https://github.com/h5bp/html5-boilerplate/blob/master/css/main.css

@media print {

  * {
    text-shadow: none !important;
    box-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 for images, or javascript/internal links
  .ir a:after,
  a[href^="javascript:"]:after,
  a[href^="#"]:after {
    content: "";
  }

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

  thead {
    display: table-header-group; // h5bp.com/t
  }

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

  img {
  	// Potix: this style will make img invisible in ie8
    //	max-width: 100% !important;    
  }

  @page {
    margin: 0.5cm;
  }

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

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