.classic-capture {
  min-width: 0;
  padding: 0;
  border: 0;
  font: 15px/1.3 Arial, Helvetica, sans-serif;
  color: #363636;
}
.classic-capture .capture-tabs {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0,102fr) minmax(0,95fr) minmax(0,132fr) minmax(0,110fr);
  align-items: end;
  gap: 2px;
  padding: 0 10px;
  border: 0;
  margin-bottom: -1px;
}
.classic-capture .capture-tabs button {
  appearance: none;
  min-width: 0;
  padding: 6px 10px;
  height: 31px;
  border: 1px solid #c8c8c8;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(#fff,#eaeaea);
  color: #555;
  font: 15px/1 Arial, Helvetica, sans-serif;
  text-align: center;
  white-space: nowrap;
}
.classic-capture .capture-tabs button.active {
  height: 33px;
  background: #fafced;
  color: #333;
  border-bottom-color: #fafced;
  font-weight: 400;
}
.classic-capture .capture-area {
  padding: 14px clamp(12px,5.1%,24px) 20px;
  background: #fafced;
  border: 1px solid #c6c8bd;
  border-radius: 6px;
  box-shadow: 1px 2px 4px #0002;
}
.classic-capture .quick-entry,
.classic-capture .classic-inputs {
  display: block;
  margin: 0;
  font: inherit;
}
.classic-capture .quick-entry .capture-fields,
.classic-capture .classic-exchange:empty,
.classic-capture .quick-entry .error:empty { display: none; }
.classic-capture .quick-entry [hidden] { display:none !important; }
.classic-capture .quick-entry label { margin: 0; font: inherit; }
.classic-capture .classic-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 46px;
  margin: 0 0 21px;
}
.classic-capture [data-entry-heading] {
  color: #64832e;
  font: 18px/1.2 Arial, Helvetica, sans-serif;
}
.classic-capture .classic-date-long {
  color: #848484;
  font: 13px/1.25 Arial, Helvetica, sans-serif;
  margin-top: 5px;
}
.classic-capture .classic-date { display: inline-flex; align-items: center; gap: 3px; }
.classic-capture .classic-calendar {
  display: grid; place-items: center;
  position: relative; width: 39px; height: 39px; border-radius: 50%;
  border: 1px solid #8a9b6f;
  background: linear-gradient(to bottom,#fff 0%,#fff 54%,#7e9c43 54%,#486621 100%);
  overflow: hidden;
}
.classic-capture .classic-calendar:focus-within { outline: 2px solid #547fa2; }
.classic-capture .classic-calendar input {
  width: 100%; height: 100%; position: absolute; inset: 0;
  opacity: 0; cursor: pointer; padding: 0; margin: 0;
}
.classic-capture .classic-calendar input::-webkit-calendar-picker-indicator {
  position: absolute; inset: 0; width: auto; height: auto; cursor: pointer;
}
.classic-capture .classic-calendar-day { display: grid; grid-template-rows: 20px 17px; place-items: center; text-align: center; line-height: 1; }
.classic-capture .classic-calendar-number { color: #67873a; font-size: 16px; }
.classic-capture .classic-calendar-month { color: #fff; font-size: 10px; }
.classic-capture .classic-date .entry-tool {
  width: 18px; min-width: 0; height: 23px; padding: 0;
  display: grid; place-items: center;
  background: transparent; border: 0; border-radius: 3px;
}
.classic-capture .classic-date .entry-tool::before {
  content: ''; width: 12px; height: 18px;
  background: linear-gradient(110deg,#eee,#cacac8 64%,#a6a6a3);
  clip-path: polygon(0 50%,100% 0,100% 100%);
}
.classic-capture .classic-date .classic-date-next::before { transform: scaleX(-1); }
.classic-capture .classic-date .entry-tool:hover::before { filter: brightness(.88); }
.classic-capture .classic-money-line {
  display: grid; grid-template-columns: minmax(0,1fr) 36px 22px;
  align-items: center; gap: 11px; min-width: 0;
}
.classic-capture .classic-money-side { grid-row: 1; grid-column: 1/-1; }
.classic-capture .classic-money-line > .classic-amount,
.classic-capture .classic-money-line > .classic-amount-unit,
.classic-capture .classic-money-line > .classic-unit { grid-area: 1/1; }
.classic-capture .classic-money-line:has(.classic-money-side) > :not(.classic-money-side) { grid-row: 2; }
.classic-capture .classic-money-line > .entry-tool { grid-area: 1/2; }
.classic-capture .classic-money-line > .classic-sum-help { grid-area: 1/3; }
.classic-capture .classic-amount { display: block; min-width: 0; }
.classic-capture .classic-amount .entry-field { display: block; }
.classic-capture .classic-amount input,
.classic-capture .classic-comment textarea,
.classic-capture .classic-popover select {
  width: 100%; min-width: 0; margin: 0; padding: 4px 7px;
  border: 1px solid #aaa; border-radius: 3px; background: #fff; color: #222;
  box-shadow: inset 0 1px 2px #00000012;
  font: 15px/1.25 Verdana, Arial, sans-serif;
}
.classic-capture .classic-amount input { height: 29px; padding-right: 60px; }
.classic-capture .classic-amount-unit,
.classic-capture .classic-unit {
  display: inline-flex; align-items: center; justify-self: end;
  max-width: 60px; margin-right: 7px !important;
  color: #476a75;
}
.classic-capture .classic-amount-unit select,
.classic-capture .classic-article select {
  display: inline-block; width: auto; min-width: 0; min-height: 0;
  max-width: 100%; height: auto; padding: 0;
  appearance: none; border: 0; border-bottom: 1px dotted;
  border-radius: 0; outline-offset: 2px; box-shadow: none;
  background: transparent; color: #4b6872; cursor: pointer;
  font: 15px/1.22 Arial, Helvetica, sans-serif;
}
.classic-capture .classic-amount-unit select { text-align-last: right; }
.classic-capture .classic-money-line > .entry-tool,
.classic-capture .tools-actions > button[type=submit],
.classic-capture .capture-area > button {
  width: auto; min-width: 0; height: 29px; margin: 0;
  padding: 3px 12px; border: 1px solid #aaa; border-radius: 4px;
  background: linear-gradient(#fff,#e6e6e6); color: #353535;
  font: 15px/1.15 Verdana, Arial, sans-serif;
  box-shadow: 0 1px 1px #0001;
}
.classic-capture .classic-money-line > .entry-tool { width: 35px; padding: 0; }
.classic-capture .classic-sum-help { position: relative; }
.classic-capture .classic-sum-help > summary {
  box-sizing: border-box; width: 17px; height: 17px;
  border-radius: 50%; border: 1px solid #a7ab9e;
  color: #898e7e; background: #fff; font: bold 12px/15px Arial; text-align: center;
}
.classic-capture .classic-sum-help .classic-popover { max-width: 245px; width: 55vw; right: 0; left: auto; }
.classic-capture .classic-secondary { margin-top: 9px; }
.classic-capture .classic-wallet-line,
.classic-capture .classic-article-line,
.classic-capture .classic-options {
  display: flex; align-items: center; gap: 6px; justify-content: flex-start; min-width: 0;
}
.classic-capture .classic-wallet-line { min-height: 27px; }
.classic-capture .classic-wallet-title { color: #555; font-size: 14px; flex: none; }
.classic-capture .classic-wallet-picker,
.classic-capture .classic-more,
.classic-capture .classic-tags { position: relative; min-width: 0; }
.classic-capture summary { display: inline-block; cursor: pointer; list-style: none; }
.classic-capture summary::-webkit-details-marker { display: none; }
.classic-capture .classic-wallet-picker > summary {
  display: inline-flex; align-items: center; max-width: 100%; gap: 4px; vertical-align: middle;
}
.classic-capture .classic-wallet-picker > summary > :first-child { width: 20px; height: 20px; flex: none; }
.classic-capture .classic-wallet-name {
  border-bottom: 1px dotted; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.classic-capture .classic-wallet-list,.classic-capture .classic-popover {
  position: absolute; left: 0; top: 100%; z-index: 8;
  width: max-content; max-width: min(290px,75vw); max-height: 240px;
  overflow: auto; padding: 6px;
  border: 1px solid #b8bcb0; background: #fff; border-radius: 4px;
  box-shadow: 1px 3px 10px #0003;
}
.classic-capture .classic-wallet-picker:not([open]) > .classic-wallet-list,
.classic-capture details:not([open]) > .classic-popover { display: none; }
.classic-capture button.classic-wallet-item {
  display: flex; align-items: center; gap: 6px; width: 100%;
  padding: 4px 7px; border: 0; border-radius: 1px; background: #fff;
  color: #333; text-align: left; font: 14px/1.3 Arial, Helvetica, sans-serif;
}
.classic-capture .classic-wallet-item:hover,.classic-capture .classic-wallet-item:focus-visible,
.classic-capture .classic-wallet-item[aria-pressed=true] { background: #eef2e3; }
.classic-capture .classic-link,.classic-capture .classic-more summary,.classic-capture .classic-tags summary {
  background: transparent; color: #73796f; border: 0; border-bottom: 1px dotted;
  border-radius: 0; padding: 0; font: 13px/1.15 Arial, Helvetica, sans-serif;
}
.classic-capture .classic-debt,.classic-capture .classic-more { margin-left: auto; white-space: nowrap; }
.classic-capture .classic-article-line { margin-top: 5px; min-height: 27px; }
.classic-capture .classic-article { min-width: 0; }
.classic-capture .classic-article select { max-width: 100%; color:#383838; border-bottom:1px dashed #7b7b73; }
.classic-capture .classic-options { min-height: 26px; }
.classic-capture .classic-more > summary::after { content: ' ▾'; font-size: 10px; }
.classic-capture .classic-more > .classic-popover { left: auto; right: 0; min-width: 200px; }
.classic-capture .classic-popover label { display: block; margin: 3px 0 6px; font-size: 13px; }
.classic-capture .classic-popover .schedule-choice { display: flex; }
.classic-capture .classic-popover :is(input[type=checkbox],input[type=radio]) { width: auto; margin: 0 4px; }
.classic-capture .classic-popover .dir-tags { border: 0; margin: 0; padding: 2px 6px; }
.classic-capture .classic-popover .dir-tags legend { display: none; }
.classic-capture .classic-popover .dir-tags label { display: flex; align-items: center; }
.classic-capture .classic-comment { margin-top: 6px; }
.classic-capture .classic-comment label { display: block; }
.classic-capture .classic-comment textarea { display: block; padding: 5px 7px; min-height: 42px; height: auto; line-height: 15px; resize: vertical; }
.classic-capture .classic-comment textarea::placeholder,.classic-capture .classic-amount input::placeholder { color: #999; }
.classic-capture .tools-actions { margin: 13px 0 0; }
.classic-capture .tools-actions > button[type=submit] { min-width: 141px; }
.classic-capture .quick-entry .error { margin: 8px 0 0; }
.classic-capture .classic-exchange:not(:empty) { margin-top: 5px; }
.classic-capture output { display: block; font-size: 12px; color: #73796f; }
.classic-capture output:empty { display: none; }
@media(max-width: 480px) {
  .classic-capture .capture-tabs { gap: 1px; padding: 0 4px; }
  .classic-capture .capture-tabs button { padding: 4px 7px; font-size: 13px; }
  .classic-capture .capture-area { padding-inline: 12px; }
}
@media(max-width: 350px) {
  .classic-capture .capture-tabs button { padding-inline: 4px; font-size: 12px; }
  .classic-capture .classic-money-line { gap: 5px; }
}

/* Daily register below the entry form */
#history .day-record {
  display: grid;
  position: relative;
  min-height: 50px;
  grid-template-columns: 23px minmax(0,1fr) minmax(86px,23%) minmax(64px,19%);
  grid-template-rows: minmax(21px,auto) auto;
  align-content: start;
  column-gap: 6px;
  padding: 5px 10px 4px;
  border-bottom: 1px solid #e2e2df;
  background: #fff;
  font: 15px/1.25 Arial, Helvetica, sans-serif;
  color: #3b3b39;
}
#history .day-wallet { grid-column:1;grid-row:1;line-height:0;align-self:start; }
#history .day-wallet .wallet-icon { display:inline-flex;max-width:24px;max-height:24px; }
#history .day-article { grid-area:1/2;min-width:0; }
#history .day-title {
  display:inline-block;max-width:100%;padding:0;border:0;border-radius:0;background:none;
  font:inherit;line-height:1.18;color:inherit;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
#history button.day-title { border-bottom:1px dotted #92928c; }
#history .day-record:hover,#history .day-record:focus-within { background:#fafbf6; }
#history .day-amount { grid-area:1/3;align-self:start;min-width:0;text-align:right;font-variant-numeric:tabular-nums; }
#history .day-money { white-space:nowrap; }
#history .day-money small { font:10px/1 Arial, Helvetica, sans-serif; }
#history .day-currency { font:11px/1.1 Arial, Helvetica, sans-serif;color:#888; }
#history .day-received { display:block;white-space:nowrap; }
#history .day-when { grid-area:1/4;align-self:start;padding-top:3px;font:11px/1.2 Arial,sans-serif;text-align:right;color:#888; }
#history .day-comment { grid-column:2/-1;grid-row:2;min-width:0;min-height:13px;padding-right:20px;color:#8b8b87;font:12px/1.3 Arial,Helvetica,sans-serif;overflow-wrap:anywhere; }
#history .day-copy { position:absolute;right:9px;bottom:4px;border:0;background:transparent;color:#676c62;padding:1px 3px;font-size:13px;opacity:0; }
#history .day-record:hover .day-copy,#history .day-record:focus-within .day-copy {opacity:1;}
#history .day-total {display:flex;justify-content:space-between;align-items:baseline;gap:8px;padding:6px 10px;background:#fafbf6;border-top:1px solid #d9dccf;color:#62645c;font:13px/1.3 Arial,sans-serif;}
#history .day-total>div {display:flex;gap:4px 12px;flex-wrap:wrap;justify-content:end;}
#history .day-empty,#history .day-error {margin:0;padding:12px;color:#777;font:13px/1.4 Arial,sans-serif;}
#history .day-error {color:#a53232;}
#history .day-error:empty {display:none;}
#history .day-more {margin:6px 10px;padding:0;border:0;border-bottom:1px dotted;border-radius:0;background:transparent;color:#536f76;font:13px/1.3 Arial,sans-serif;}
@media(pointer:coarse){#history .day-copy{opacity:1;}}
@media(max-width:410px){#history .day-record{grid-template-columns:20px minmax(0,1fr) minmax(64px,24%) 55px;gap:1px 4px;padding-inline:6px;}#history .day-when{font-size:10px;}}
