/* Shared appearance for estimates, sign-in, account management and invoices. */
:root {
  color-scheme: light;
  --bg: #f2f5f2;
  --paper: #fcfdfb;
  --ink: #21372a;
  --heading: var(--ink);
  --muted: #4f6556;
  --line: #d6dfd7;
  --field: #87998a;
  --field-line: var(--field);
  --accent: #285b2b;
  --accent-hover: #1c4520;
  --button-ink: #fcfdfb;
  --wash: #e8eee7;
  --error: #9a2929;
  --action-cream: var(--paper);
  --action-cream-hover: var(--wash);
  --action-border: var(--line);
  --selected: var(--wash);
  --callout: var(--wash);
  --unsent-bg: #fff3bf;
  --unsent-ink: #493b08;
  --unsent-muted: #594a16;
  --sent-bg: #d3f0d9;
  --sent-ink: #174c2a;
  --sent-muted: #275c39;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111b16;
  --paper: #1b2921;
  --ink: #edf5ef;
  --muted: #b2c5b8;
  --line: #465d4b;
  --field: #6c8974;
  --accent: #9ad4aa;
  --accent-hover: #b3e4bf;
  --button-ink: #132b1b;
  --wash: #263b2d;
  --error: #ffaaa0;
  --unsent-bg: #3c3314;
  --unsent-ink: #ffe394;
  --unsent-muted: #eed590;
  --sent-bg: #183c28;
  --sent-ink: #bcebc6;
  --sent-muted: #aad9b4;
}
button.primary,
.primary {
  color: var(--button-ink);
}
.estimate-item.unsent {
  background: var(--unsent-bg);
  color: var(--unsent-ink);
}
.estimate-item.unsent small {
  color: var(--unsent-muted);
}
.estimate-item.sent {
  background: var(--sent-bg);
  color: var(--sent-ink);
}
.estimate-item.sent small {
  color: var(--sent-muted);
}
.appearance-settings {
  position: relative;
  max-width: 30rem;
  margin: 20px 0;
}
.appearance-settings label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}
.appearance-settings select {
  appearance: none;
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 40px 10px 12px;
  border: 1px solid var(--field);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
.appearance-settings::after {
  content: "⌄";
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: var(--ink);
  pointer-events: none;
}
.appearance-settings select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
@media print {
  :root,
  :root[data-theme="dark"] {
    color-scheme: light;
    --bg: #fcfdfb;
    --paper: #fcfdfb;
    --ink: #21372a;
    --muted: #4f6556;
    --line: #d6dfd7;
    --accent: #285b2b;
    --wash: #e8eee7;
    --button-ink: #fcfdfb;
  }
  .appearance-settings {
    display: none;
  }
}

.app-version {
  max-width: none;
  min-height: 30px;
  margin: 0;
  padding: 6px 20px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: right;
  overflow-wrap: anywhere;
}
.account-content .app-version {
  padding-inline: 0;
}
@media print {
  .app-version {
    display: none !important;
  }
}
