/*!********************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].rules[0].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].rules[0].oneOf[0].use[2]!./src/styles.css ***!
  \********************************************************************************************************************************************************************************************************/
@import url(https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Oswald:wght@300;400;500&display=swap);
/*!************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].rules[0].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].rules[0].oneOf[0].use[2]!./src/styles.css (1) ***!
  \************************************************************************************************************************************************************************************************************/


/* ===========================================================================
   Angular Barcode, MRZ and Document Scanner — app styles

   Brand: Dynamsoft style guide. This is a scanning app with live camera
   pages, so the surface stays DARK (brand gray #323234) — a neutral surround
   for the viewfinder — with the brand orange #FE8E14 reserved for primary
   actions and accents, never body copy. Headings use Oswald, body Open Sans.

   The same stylesheet serves the standalone build (ng serve / ng build) and
   the hosted Codepool demo (ng build --configuration demo); the demo build
   additionally wraps the app in the site's header/footer via index.demo.html.
   =========================================================================== */
:root {
  --dy-orange: #fe8e14;
  --dy-orange-hover: #e07d0b;

  --dy-gray-900: #323234;
  --dy-gray-800: #3a3a3d;
  --dy-gray-700: #606060;
  --dy-gray-300: #cccccc;
  --dy-gray-200: #dddddd;
  --white: #ffffff;

  --font-heading: 'Oswald', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Courier New', Courier, monospace;

  /* Hairlines and translucent fills that read on the dark surface. */
  --line-dark: rgba(255, 255, 255, 0.14);
  --fill-dark: rgba(255, 255, 255, 0.07);

  /* Layout metrics. */
  --page-max: 1200px;
  --radius: 12px;
  --tap: 44px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  /* No `background-attachment: fixed` here on purpose: fixed backgrounds only
     paint the first viewport, so full-page and scrolling screenshot tools show
     a white band below the fold (the page canvas default). A plain gradient
     stretches with the content and renders correctly everywhere. */
  background: linear-gradient(180deg, var(--dy-gray-800) 0%, var(--dy-gray-900) 55%);
  min-height: 100vh;
  padding: 20px;
  color: var(--white);
  line-height: 1.5;
}
/* ---------------------------------------------------------------------------
   Page frame
   --------------------------------------------------------------------------- */
.container {
  max-width: var(--page-max);
  margin: 0 auto;
}
/* "All examples" link shown on the example pages of the hosted demo. */
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  margin: 0 auto 18px;
  padding: 6px 14px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: var(--fill-dark);
  color: var(--dy-gray-200);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.back-link:hover {
  border-color: var(--dy-orange);
  color: var(--dy-orange);
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 1.25;
}
h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}
h2 {
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
}
h3 {
  font-size: 1.05rem;
}
p {
  font-size: 0.95rem;
  color: var(--dy-gray-200);
}
a {
  color: var(--dy-orange);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
/* ---------------------------------------------------------------------------
   Cards
   --------------------------------------------------------------------------- */
.card {
  background: var(--fill-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  padding: clamp(16px, 3.5vw, 28px);
  margin-bottom: 22px;
}
.card>h2 {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-dark);
  position: relative;
}
/* Orange accent rule under each card heading. */
.card>h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 32px;
  height: 2px;
  background: var(--dy-orange);
}
.card-note {
  color: var(--dy-gray-300);
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.card-note.error {
  color: #ff9c8f;
}
/* ---------------------------------------------------------------------------
   License activation (standalone build) and SDK status (hosted demo)
   --------------------------------------------------------------------------- */
.license-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.license-row input {
  flex: 1 1 320px;
  min-width: 0;
}
input[type="text"],
select,
textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--white);
  background: var(--dy-gray-900);
  border: 1px solid var(--dy-gray-700);
  border-radius: 8px;
  padding: 10px 12px;
  min-height: var(--tap);
}
input[type="text"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--dy-orange);
  box-shadow: 0 0 0 3px rgba(254, 142, 20, 0.25);
}
select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23cccccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 1.1rem;
  cursor: pointer;
}
.sdk-status {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: var(--page-max);
  margin: 0 auto 18px;
  padding: 10px 16px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: var(--fill-dark);
  color: var(--dy-gray-200);
  font-size: 0.9rem;
}
.sdk-status-error {
  border-color: rgba(255, 107, 97, 0.5);
  color: #ff9c8f;
}
.sdk-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4caf50;
  flex: 0 0 auto;
}
.sdk-status-dot.is-busy {
  background: var(--dy-orange);
  animation: pulse 1.2s ease-in-out infinite;
}
.sdk-status-dot.is-error {
  background: #ff6b61;
}
.sdk-status-note {
  color: var(--dy-gray-300);
  font-size: 0.82rem;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
/* ---------------------------------------------------------------------------
   Examples grid (home page)
   --------------------------------------------------------------------------- */
.examples {
  max-width: var(--page-max);
  margin: 0 auto;
}
.examples>h2 {
  margin-bottom: 14px;
}
.example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  grid-gap: 14px;
  gap: 14px;
}
.example-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--fill-dark);
  color: var(--white);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.example-card:hover,
.example-card:focus-visible {
  border-color: var(--dy-orange);
  transform: translateY(-2px);
  text-decoration: none;
}
.example-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 500;
}
.example-desc {
  color: var(--dy-gray-300);
  font-size: 0.85rem;
}
.examples-note {
  margin-top: 16px;
  color: var(--dy-gray-300);
  font-size: 0.85rem;
}
/* ---------------------------------------------------------------------------
   Buttons — orange solid for the primary action, outlined for the rest
   --------------------------------------------------------------------------- */
button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 10px 20px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
  background: transparent;
  color: var(--white);
  border: 1px solid var(--dy-gray-300);
}
button:hover,
.btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--white);
}
.btn-primary,
button.btn-primary {
  background: var(--dy-orange);
  border-color: var(--dy-orange);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(254, 142, 20, 0.4);
}
.btn-primary:hover,
button.btn-primary:hover {
  background: var(--dy-orange-hover);
  border-color: var(--dy-orange-hover);
}
button:active {
  transform: translateY(1px);
}
/* Radio rows (colour mode, pixel type …) */
.radio-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--tap);
  padding: 8px 14px;
  border: 1px solid var(--dy-gray-700);
  border-radius: 8px;
  background: var(--fill-dark);
  color: var(--dy-gray-300);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}
.radio-row label:has(input:checked) {
  border-color: var(--dy-orange);
  color: var(--white);
}
.radio-row input[type="radio"] {
  accent-color: var(--dy-orange);
}
/* File input as a full-width tap target */
input[type="file"] {
  max-width: 100%;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: var(--dy-gray-300);
}
input[type="file"]::file-selector-button {
  min-height: var(--tap);
  margin-right: 12px;
  padding: 8px 18px;
  border: 1px solid var(--dy-orange);
  border-radius: 8px;
  background: var(--dy-orange);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
input[type="file"]::file-selector-button:hover {
  background: var(--dy-orange-hover);
}
/* Control rows (selects + buttons) */
.control-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
}
.control-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dy-gray-300);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
/* ---------------------------------------------------------------------------
   Image / overlay views
   --------------------------------------------------------------------------- */
.imageview {
  position: relative;
  width: 100%;
  max-width: 720px;
  border: 1px solid var(--dy-gray-700);
  border-radius: var(--radius);
  background: #1b1b1d;
  overflow: hidden;
}
.imageview img {
  display: block;
  width: 100%;
  height: auto;
}
/* The overlay canvas is sized to the image's intrinsic pixels and stretched
   over it, so detection coordinates line up at any CSS size. */
.imageview .overlay,
#videoview .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}
/* Two-up layout for detect → rectify pages. */
.detect-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 16px;
  gap: 16px;
  align-items: start;
}
/* ---------------------------------------------------------------------------
   Camera stage
   --------------------------------------------------------------------------- */
#videoview {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 62vh;
  border: 1px solid var(--dy-gray-700);
  border-radius: var(--radius);
  background: #000;
  overflow: hidden;
  margin-bottom: 14px;
}
#videoContainer,
#videoContainer .dce-video-container {
  width: 100%;
  height: 100%;
}
#videoContainer video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* ---------------------------------------------------------------------------
   Results
   --------------------------------------------------------------------------- */
textarea {
  width: 100%;
  min-height: 120px;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  resize: vertical;
  color: var(--dy-gray-200);
  background: var(--dy-gray-900);
}
textarea::placeholder {
  color: var(--dy-gray-700);
}
#result {
  display: block;
  min-height: 1.5em;
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dy-orange);
  word-break: break-all;
}
/* ---------------------------------------------------------------------------
   Loading indicator
   --------------------------------------------------------------------------- */
.loading-indicator {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.spinner {
  width: 56px;
  height: 56px;
  border: 6px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--dy-orange);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* ---------------------------------------------------------------------------
   Document Viewer (DDV) page
   --------------------------------------------------------------------------- */
.document-viewer {
  margin-bottom: 22px;
}
#edit-viewer {
  width: 100%;
  height: min(72vh, 720px);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--dy-gray-900);
}
/* Scanner source popup (Dynamic Web TWAIN) */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  padding: 20px;
}
.overlay[style*="display: flex"],
.overlay[style*="display:flex"] {
  display: flex;
}
.popup {
  width: min(420px, 100%);
  padding: 22px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--dy-gray-900);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.form-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dy-gray-300);
}
.form-group select {
  flex: 1;
  max-width: 220px;
}
.button-group {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}
/* ---------------------------------------------------------------------------
   Dynamic Web TWAIN pages (acquire-image / image-editor)
   --------------------------------------------------------------------------- */
#dwtcontrolContainer {
  width: 100%;
  max-width: 640px;
  margin-bottom: 16px;
  overflow-x: auto;
}
#dwtcontrolContainerLargeViewer {
  width: 100%;
  max-width: 750px;
  overflow-x: auto;
}
/* Scanner-source dropdown created by the Document Viewer page in JS and
   appended to document.body — global on purpose (component styles are scoped
   and would never match it). */
.dropdown-menu {
  display: none;
  position: absolute;
  z-index: 1200;
  min-width: 220px;
  margin-top: 5px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: var(--dy-gray-900);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.dropdown-menu button {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 8px 16px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--dy-gray-200);
  font-size: 0.9rem;
  text-align: left;
}
.dropdown-menu button:hover,
.dropdown-menu button.selected {
  background: rgba(254, 142, 20, 0.18);
  color: var(--white);
}
.dwt-pager {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: var(--dy-gray-200);
}
.dwt-pager input[type="text"] {
  width: 56px;
  text-align: center;
  padding: 6px 8px;
  min-height: 36px;
}
.dwt-pager select {
  min-height: 36px;
  padding: 6px 30px 6px 10px;
}
/* ---------------------------------------------------------------------------
   Mobile — everything stacks, tap targets stay reachable
   --------------------------------------------------------------------------- */
@media (max-width: 768px) {
  body {
    padding: 12px;
  }

  .detect-row {
    grid-template-columns: 1fr;
  }

  #videoview {
    aspect-ratio: 3 / 4;
    max-height: 56vh;
  }

  .control-row label {
    width: 100%;
  }

  .control-row select,
  .control-row button {
    flex: 1 1 auto;
  }

  .license-row button {
    width: 100%;
  }

  .form-group {
    flex-direction: column;
    align-items: stretch;
  }

  .form-group select {
    max-width: none;
  }

  .button-group {
    flex-direction: column;
  }

  .button-group button {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .example-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 16px;
  }
}

