/* /drivers — DRIVERFIX 2000, a Portalis Utilities company, so it runs in
   Portalis OS (portalis/os.css): one window centred under the top bar. the
   chrome is the company's; the contents are shareware's own, louder: a red
   alert bar, a red health meter, tags in warning colours, progress in
   chunky blocks. the toolbars it installs are styled in toolbars.css, and
   look nothing like this on purpose. */

.dv {
  width: min(640px, calc(100% - 32px));
  margin: 3.4em auto 2.5em;
}

/* the product's banner: its own wordmark on the company's teal */
.dv__head {
  padding: 12px 18px 11px;
  background:
    radial-gradient(circle at 96% 140%, rgba(242, 193, 78, 0.5), transparent 40%),
    linear-gradient(120deg, #0a3644, var(--os-t2));
  color: #fff;
  border-bottom: 1px solid var(--os-dk);
}
.dv__head p { margin: 0; }
.dv__brand { font: bold italic 26px/1 "Arial Black", "Trebuchet MS", var(--os-ui); letter-spacing: -0.01em; text-shadow: 2px 2px 0 rgba(0, 20, 30, 0.55); }
.dv__brand sup { font: bold 11px/1 var(--os-ui); color: var(--os-gold); margin-left: 4px; vertical-align: 1.4em; letter-spacing: 0.08em; font-style: normal; }
.dv__by { font-size: 11px; color: rgba(255, 255, 255, 0.75); margin-top: 3px !important; }

.dv__stage { padding: 12px 18px 14px; font-size: 13px; line-height: 1.45; }
.dv__stage[hidden] { display: none; }
.dv__stage p { margin: 0.4em 0; }

.dv__date { color: #5d6b6a; font-size: 11px; font-weight: bold; letter-spacing: 0.06em; }
/* the alert: red, an exclamation in a gold triangle */
.dv__warn {
  display: block;
  padding: 6px 10px;
  background: linear-gradient(#e0533a, #b8301c);
  border: 1px solid #7d1a0c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #fff;
  font-weight: bold;
  text-shadow: 1px 1px 0 rgba(80, 0, 0, 0.5);
}
.dv__intro { font-size: 13px; }
.dv__note { font-size: 12px; color: #5d6b6a; }

/* the summary: a properties sheet */
.dv__kv {
  margin: 0.7em 0 !important;
  padding: 6px 10px !important;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 3px 16px;
  background: #fff;
  border: 1px solid var(--os-sh);
  box-shadow: inset 1px 1px 0 #eef0ec;
  font-size: 12px;
  list-style: none;
}
.dv__kv li { display: contents; }
.dv__kv li::before { content: none; }
.dv__kv span { color: #5d6b6a; }
.dv__kv b { font-weight: normal; }

.dv__acts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 14px;
}
.os-btn.dv__btn--sm { min-width: 0; padding: 1px 8px; font-size: 11px; margin-left: 6px; }

/* progress in chunky blocks, in a sunken trough: the fill is a repeating
   gradient so it reads as segments, teal like the os's title bars */
.dv__prog {
  height: 18px;
  margin: 6px 0;
  padding: 2px;
  background: #fff;
  border: 1px solid;
  border-color: var(--os-sh) #fff #fff var(--os-sh);
  box-shadow: 0 0 0 1px var(--os-line);
}
.dv__prog i {
  display: block;
  height: 100%;
  width: 0;
  background: repeating-linear-gradient(to right, #1fa0b8 0 8px, transparent 8px 10px);
}
/* the health meter: poor, so red */
.dv__prog--hp { flex: 1; margin: 0; }
.dv__prog--hp i { background: repeating-linear-gradient(to right, #d8452c 0 8px, transparent 8px 10px); }

.dv__path {
  font: 11px/1.4 "Lucida Console", Consolas, "Courier New", monospace;
  color: #5d6b6a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dv__msg { font-weight: bold; color: var(--os-t1); }

/* the scan's findings: a log in a white pane */
.dv__log {
  margin: 8px 0 0 !important;
  padding: 6px 10px !important;
  min-height: 8.5em;
  background: #fff;
  border: 1px solid var(--os-sh);
  font-size: 12px;
  list-style: none;
}
.dv__log li { padding: 1px 0 1px 20px; position: relative; }
.dv__log li::before {
  content: "!";
  position: absolute;
  left: 0;
  top: 3px;
  width: 13px;
  height: 13px;
  background: linear-gradient(#f6d36a, #d99a1e);
  border: 1px solid #8a5b06;
  color: #3b2a00;
  font: bold 10px/12px var(--os-ui);
  text-align: center;
}

.dv__hp {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin: 8px 0 10px;
}
.dv__hp span:last-child { color: #b8301c; font-weight: bold; white-space: nowrap; }

/* the results: a list view with checkboxes */
.dv__cats {
  margin: 0 !important;
  padding: 0 !important;
  background: #fff;
  border: 1px solid var(--os-sh);
  list-style: none;
}
.dv__cats li { padding: 0; border-bottom: 1px solid #edf1f0; }
.dv__cats li:last-child { border-bottom: 0; }
.dv__cats li::before { content: none; }
.dv__cat {
  display: grid;
  grid-template-columns: 1.4em 1fr auto;
  gap: 0 8px;
  align-items: baseline;
  padding: 5px 8px;
  cursor: pointer;
}
.dv__cat:hover { background: #e2f2f4; }
.dv__cat input { margin: 0; transform: translateY(2px); }
.dv__sz { color: #5d6b6a; font-size: 12px; white-space: nowrap; }
.dv__cat small {
  grid-column: 2 / 4;
  font-size: 11px;
  color: #5d6b6a;
  line-height: 1.3;
}
.dv__tag {
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 0.04em;
  padding: 0 4px;
  margin-left: 6px;
  white-space: nowrap;
  vertical-align: 1px;
  color: #fff;
  background: #c83a22;
}
.dv__cat--lock .dv__tag { background: linear-gradient(#ffe7a0, var(--os-gold)); color: #3b2a00; }
.dv__cat--req .dv__tag { background: #8f9995; }
.dv__cat--lock .dv__nm,
.dv__cat--lock .dv__sz { opacity: 0.55; }
.dv__cat--req { cursor: not-allowed; }
.dv__cat--req:hover { background: none; }
.dv__cat--req .dv__nm,
.dv__cat--req .dv__sz { opacity: 0.45; }

.dv__sum { text-align: right; font-size: 12px; color: #5d6b6a; }

.dv__fine {
  margin: 1.3em 0 0;
  font: 11px/1.45 var(--os-ui);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

/* dialogs: the pro upsell, add/remove programs, the survey */
.dv-modal__msg { margin: 12px 0 0; line-height: 1.4; }
.dv-modal__body:empty { display: none; }
.dv-modal__list {
  margin: 10px 0 0 !important;
  padding: 0 !important;
  max-height: 50vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--os-sh);
  font-size: 12px;
  list-style: none;
}
.dv-modal__list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-bottom: 1px solid #edf1f0;
}
.dv-modal__list li:last-child { border-bottom: 0; }
.dv-modal__list li::before { content: none; }
.dv-modal__list--why label { cursor: pointer; }

/* the done screen: what got installed, drivers and their passengers */
.dv__done { margin: 6px 0 0 !important; padding: 0 !important; font-size: 12px; list-style: none; }
.dv__done li { padding: 1px 0 1px 18px; position: relative; }
.dv__done li::before { content: "✓"; position: absolute; left: 2px; color: #1f8a4c; font-weight: bold; }
.dv__done .dv__extra { color: #7d8a88; }
.dv__done .dv__extra::before { content: "+"; color: #7d8a88; }

/* the bundled toolbar under each update: pre-ticked, small, easy to miss */
.dv__bun {
  display: flex;
  gap: 6px;
  align-items: baseline;
  padding: 0 8px 5px 2.7em;
  font-size: 10px;
  color: #8f9995;
  cursor: pointer;
}
.dv__bun input { margin: 0; width: 10px; height: 10px; }

@media (max-width: 480px) {
  .dv { width: calc(100% - 16px); margin-top: 3em; }
  .dv__stage { padding: 10px 12px 12px; }
  .dv__head { padding: 10px 12px; }
}
