.muted {
  color: var(--muted);
  font-size: 12px;
}
.danger-text {
  color: #a8543b;
  font-size: 11px;
  line-height: 1.6;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--status);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 9px;
  border: 1px solid color-mix(in srgb, var(--status) 20%, white);
  background: color-mix(in srgb, var(--status) 7%, white);
  border-radius: 6px;
}
.status-badge i {
  background: var(--status);
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
dialog.wide {
  width: 940px;
}
.tabs {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  margin: -6px 0 23px;
  overflow: auto;
}
.tab {
  background: none;
  border: 0;
  padding: 13px 16px;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.tab.active {
  color: var(--green);
  border-bottom-color: var(--green);
  font-weight: 650;
}
.repeat-row {
  background: #f7f9f3;
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 9px;
  margin-bottom: 18px;
}
.repeat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.repeat-row .field {
  margin-bottom: 10px;
}
.category-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 15px;
  flex-wrap: wrap;
}
.category-row input {
  flex: 1;
}
.category-row span {
  font-size: 12px;
  color: var(--muted);
}
.category-row .error {
  flex-basis: 100%;
}
.master-pro {
  white-space: normal;
}
.master-pro td {
  max-width: 360px;
  line-height: 1.5;
}
.master-pro small {
  line-height: 1.6;
}
.selected-partner {
  display: flex;
  gap: 16px;
  background: #f4f7ef;
  border: 1px solid #e1e9d8;
  border-radius: 8px;
  padding: 19px;
  margin-bottom: 24px;
}
.selected-partner p {
  margin: 7px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.selected-partner .docicon {
  align-self: start;
}
.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 275px;
  gap: 20px;
}
.editor-summary .field {
  margin-bottom: 18px;
}
.editor-summary .subtitle {
  font-size: 11px;
}
.compact {
  padding: 32px 20px;
}
.picker-list {
  max-height: 48vh;
  overflow: auto;
  margin-top: 15px;
}
.picker-list table {
  white-space: normal;
}
.picker-list td {
  padding: 15px 12px;
}
.picker-list th {
  padding: 12px;
}
.picker-filters {
  display: flex;
  gap: 12px;
}
.picker-filters select {
  width: 230px;
}
.picker-filters .searchbox {
  flex: 1;
}
.picker-quantity {
  max-width: 105px;
}
.picker-table input[type="checkbox"],
input[data-export-note],
#select-all-export {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
}
.picker-table td:first-child {
  width: 40px;
}
.picker-table td:nth-child(2) {
  min-width: 210px;
}
.picker-count {
  padding: 0 10px 14px;
}
.edit-lines {
  white-space: normal;
  min-width: 660px;
}
.edit-lines th,
.edit-lines td {
  padding: 13px 10px;
}
.edit-lines td:first-child {
  min-width: 150px;
  max-width: 260px;
}
.edit-lines input,
.edit-lines select {
  padding: 9px 7px;
  font-size: 12px;
}
.edit-lines td:nth-child(2) {
  width: 75px;
}
.edit-lines td:nth-child(3) {
  width: 95px;
}
.edit-lines td:nth-child(4) {
  width: 125px;
}
.edit-lines td:nth-child(5) {
  width: 78px;
}
.edit-lines td:last-child {
  width: 38px;
}
.line-total {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
}
.history {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.history summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--green);
}
.history-entry {
  font-size: 12px;
  line-height: 1.8;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.history-entry small {
  color: var(--muted);
}
.history-entry details {
  margin-top: 10px;
}
.history-entry details p {
  font-size: 11px;
  color: var(--muted);
}
.accounting-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 22px;
}
.accounting-actions .field {
  margin: 0;
  flex: 1;
  min-width: 250px;
}
#accounting-filter {
  align-items: flex-end;
}
#accounting-filter .field {
  margin: 0;
}
#accounting-preview {
  overflow: auto;
}
#accounting-preview table {
  white-space: normal;
  min-width: 640px;
}
#accounting-preview th,
#accounting-preview td {
  padding: 14px 12px;
}
.editor-layout .cardhead {
  padding: 20px;
  flex-wrap: wrap;
}
#note-table td:nth-child(2) {
  min-width: 150px;
}
#note-table td:nth-child(6) {
  max-width: none;
}
#note-table table {
  min-width: 850px;
}
#modal .modalbody {
  max-height: 70vh;
  overflow: auto;
}
.field input[type="color"] {
  height: 43px;
  padding: 5px;
}
button.tab:focus-visible {
  outline: 2px solid var(--green);
}
.modalfoot {
  flex-wrap: wrap;
}
.modalfoot > span {
  margin-right: auto;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1300px) {
  .editor-layout {
    grid-template-columns: 1fr;
  }
  .editor-summary .pad {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }
  .editor-summary .error,
  .editor-summary .subtitle,
  .editor-summary .check,
  .editor-summary button {
    grid-column: 1/-1;
  }
}
@media (max-width: 760px) {
  .picker-filters {
    flex-direction: column;
  }
  .picker-filters select {
    width: 100%;
  }
  .editor-summary .pad {
    display: block;
  }
  .tabs {
    margin-left: -10px;
    margin-right: -10px;
  }
  .tab {
    font-size: 12px;
    padding: 12px;
  }
  .repeat-row {
    padding: 13px;
  }
  .accounting-actions {
    display: block;
  }
  .accounting-actions > * {
    margin-top: 15px !important;
  }
  .editor-layout {
    display: block;
  }
  .cardhead .btn {
    padding: 9px 10px;
    font-size: 11px;
  }
  .selected-partner {
    padding: 14px;
  }
  .line-total {
    gap: 15px;
    flex-wrap: wrap;
  }
  .modalfoot .btn {
    font-size: 11px;
    padding: 10px;
  }
}
