@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300&display=swap');

:root {
  color-scheme: dark;
  background-color: #121212;
  color: #f5f5f5;
  font-family: Nunito, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.2;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 70% 30%, #24272d, #16181c 75%); }
main { width: 100%; max-width: 92rem; margin: 0 auto; padding: .5rem .75rem 1.25rem; }
main > header { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .4rem .75rem; margin-bottom: .9rem; }
main > header > a:first-child { color: #d0d4dd; font-size: 1.05rem; text-decoration: none; white-space: nowrap; }
main > header nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
main > header nav a, main > header > a:not(:first-child) {
  display: inline-block; padding: .35rem .7rem; border: 1px solid #535966;
  border-radius: .4rem; color: inherit; background: #20232a; text-decoration: none; font-size: 1rem;
}
main > header nav [aria-current=page] { background: #245e61; }
main > header > span { color: #86baff; font-size: .75rem; }
h1, h2, h3 { font-weight: inherit; }
h1 { color: #d0d4dd; font-size: 1.25rem; line-height: 1.2; margin: .5rem 0 .65rem; }
h2 { color: #c6a3ef; font-size: .9rem; line-height: 1.15; margin: 0; text-transform: uppercase; }
h3 { color: #c6a3ef; font-size: .85rem; margin: .6rem 0 .25rem; }
p { margin: .4rem 0; }
a { color: #86baff; text-underline-offset: .15em; }
button, input, select, textarea { font: inherit; color: inherit; line-height: 1.2; }
button, input::file-selector-button {
  min-height: 1.5rem; border: 1px solid #70518d; border-radius: .3rem;
  background: #493260; color: #f0e6ff; padding: .15rem .4rem; font-size: .8rem; cursor: pointer;
}
button:disabled { opacity: .5; cursor: default; }
input::file-selector-button { margin-right: .5rem; }
input[type=file] { max-width: 100%; font-size: .9rem; }
input:not([type=file],[type=checkbox],[type=radio]), select, textarea {
  min-width: 0; max-width: 100%; padding: .25rem .4rem;
  border: 1px solid #535966; border-radius: .3rem; background: #20232a; color: #f5f5f5;
}
select { width: 100%; }
label { color: #86baff; font-size: .8rem; }
label > input:not([type=file],[type=checkbox],[type=radio]), label > textarea, label > select { display: block; width: 100%; margin-top: .15rem; }
input[type=checkbox], input[type=radio] { width: 1rem; height: 1rem; margin: .1rem .25rem .1rem 0; accent-color: #9d7ebc; vertical-align: middle; cursor: pointer; }
:focus-visible { outline: 2px solid #86baff; outline-offset: 2px; }
.intro, .notice, #upload-help, details > p { color: #d0d4dd; font-size: .8rem; line-height: 1.2; margin: .3rem 0; }
.upload-card, .settings-card { border: 1px solid #353942; border-radius: .7rem; background: #20232a; padding: .65rem; margin: .65rem 0; }
.upload-card label { display: block; margin-bottom: .3rem; }
.settings-card > h2:first-child { width: fit-content; margin: -.95rem 0 .35rem; padding: 0 .25rem; background: #20232a; }
#create-office, #user-preferences { max-width: 30rem; }
.settings-card label { display: block; margin: .35rem 0; }
.settings-actions, .omission-summary { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .75rem; margin: .65rem 0; }
.settings-actions a, .result-heading a { font-size: .8rem; }
.omission-summary p { color: #d0d4dd; font-size: .85rem; margin: 0; }
.office-name-label { display: block; max-width: 24rem; margin-bottom: .65rem; }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: .5rem .75rem; margin: .6rem 0; }
.filters label { display: grid; min-width: 0; gap: .1rem; flex: 1 1 12rem; }
.filters > label:only-child { flex: 0 1 24rem; }
.filters label > input, .filters label > select { margin-top: 0; }
.result-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .35rem .65rem; margin: .65rem 0 .4rem; }
.settings-card > .result-heading:first-child { margin-top: 0; }
#rev-count { color: #d0d4dd; font-size: .8rem; text-transform: none; }
#rev-status, #settings-status, #populate-status, #patients-status { color: #d0d4dd; font-size: .85rem; margin: .4rem 0; }
#rev-status[data-error=true], #settings-status[data-error=true], #populate-status[data-error=true], #mapping-errors { color: #f1bb75; }
.table-scroll { overflow-x: auto; border: 1px solid #353942; border-radius: .5rem; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: .875rem; line-height: 1.2; }
th { background: #20232a; color: #86baff; font-weight: inherit; font-size: .8rem; }
th, td { padding: .35rem .5rem; vertical-align: top; border-bottom: 1px solid #353942; }
tbody tr:last-child td { border-bottom: 0; }
td { white-space: pre-wrap; overflow-wrap: anywhere; }
td:first-child { width: 4%; text-align: center; }
td:nth-child(2) { width: 20%; color: #c6a3ef; font-size: .8rem; }
td:nth-child(3) { width: 24%; color: #86baff; }
td:nth-child(4) { width: 33%; }
td:last-child { color: #f1bb75; font-size: .75rem; }
.mapping-table { min-width: 46rem; }
.mapping-table td:nth-child(2) { width: 25%; color: #86baff; }
.mapping-table td:nth-child(3) { width: 33%; }
.mapping-table td:nth-child(4) { width: 33%; }
.mapping-table label { display: grid; gap: .1rem; font-size: .75rem; color: #86baff; margin: 0 0 .35rem; }
.mapping-table label:last-child { margin-bottom: 0; }
.mapping-table select, .mapping-table input:not([type=checkbox]) { font-size: .8rem; }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .45rem .75rem; }
.preview-grid label { font-weight: inherit; margin: .15rem 0; }
.preview-grid small { display: block; color: #d0d4dd; font-size: .7rem; line-height: 1.15; margin-top: .2rem; }
.preview-grid .conflict { border-color: #f1bb75; }
.omitted { background: #29242e; }
.omitted td:nth-child(3) { text-decoration: line-through; color: #a6a0ae; }
.blank { color: #a7acb6; font-style: italic; }
details { margin-top: .65rem; }
summary { cursor: pointer; color: #c6a3ef; font-size: .85rem; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .75rem; line-height: 1.2; background: #20232a; border: 1px solid #353942; border-radius: .5rem; padding: .5rem; margin: .3rem 0; }
#rev-omission-list { padding-left: 1.2rem; margin: .35rem 0; font-size: .8rem; }
#rev-omission-list li { margin: .25rem 0; overflow-wrap: anywhere; }
#rev-omission-list button { margin-left: .5rem; padding: .05rem .3rem; font-size: .75rem; }
#practice-edit-fields { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
#practice-edit-fields:disabled { opacity: .75; }
[hidden] { display: none !important; }
@media (max-width: 600px) {
  main { padding: .5rem .5rem 1rem; }
  main > header { gap: .35rem .5rem; margin-bottom: .65rem; }
  main > header nav { gap: .3rem; }
  main > header nav a, main > header > a:not(:first-child) { padding: .3rem .45rem; font-size: .875rem; }
  .filters { gap: .4rem .5rem; }
  .filters label { flex-basis: 100%; }
  th, td { padding: .3rem .4rem; }
  table { min-width: 38rem; }
  .mapping-table { min-width: 44rem; }
  .result-heading { align-items: start; }
}

.import-review-table{width:100%;font-size:.78rem}.import-review-table td{vertical-align:top;min-width:8rem;max-width:22rem;white-space:pre-wrap;overflow-wrap:anywhere}.import-review-table td small{display:block;color:#a8aebb;font-size:.68rem;margin-top:.3rem}.import-review-table tr[data-action="Needs review"]{background:#f1bb750d}.import-review-table tr[data-action="Fill empty"],.import-review-table tr[data-action="Update"],.import-review-table tr[data-action="Add record"]{background:#83d6b00a}#patient-import-review{border-top:1px solid #535966;padding-top:.5rem}#import-patient-context,#import-review-summary{font-size:.8rem;color:#d0d4dd}
