.accounting-workspace {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 32px 28px;
  color: #d6e5ef;
}
.ac-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.ac-header small {
  color: #61eadc;
  font-size: 10px;
  letter-spacing: 2px;
}
.ac-header h1 {
  font-size: 34px;
  margin: 10px 0;
}
.ac-header p,
.ac-source,
.ac-footnote {
  color: #93a6b9;
  line-height: 1.7;
}
.ac-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.accounting-workspace button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #2a3b50;
  background: #141e2d;
  border-radius: 10px;
  color: #d6e5ef;
  padding: 11px 14px;
  cursor: pointer;
}
.accounting-workspace button:hover:not(:disabled) {
  border-color: #5edbd0;
}
.accounting-workspace button:disabled {
  opacity: 0.45;
  cursor: default;
}
.accounting-workspace a {
  color: #76dede;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ac-summary {
  display: flex;
  gap: 16px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.ac-summary > div {
  border: 1px solid #28384c;
  border-radius: 14px;
  background: #0e1520;
  padding: 18px 24px;
  min-width: 200px;
  display: grid;
  gap: 8px;
}
.ac-summary strong {
  font-size: 24px;
}
.ac-summary span,
.ac-summary small {
  color: #96aabb;
  font-size: 12px;
}
.ac-filter {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px;
  background: #0d1420;
  border: 1px solid #28384c;
  border-radius: 14px;
  margin-bottom: 20px;
}
.accounting-workspace label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  color: #95abbe;
}
.accounting-workspace input,
.accounting-workspace select,
.accounting-workspace textarea {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #304257;
  border-radius: 8px;
  background: #0b111c;
  color: #e3edf5;
  padding: 10px;
  font: inherit;
  font-size: 14px;
  color-scheme: dark;
}
.accounting-workspace input:focus,
.accounting-workspace select:focus,
.accounting-workspace textarea:focus {
  outline: 2px solid #57dacc;
  outline-offset: 1px;
}
.ac-filter label:first-child {
  flex: 1;
  min-width: 180px;
}
.ac-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
.ac-detail-open .ac-body {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
}
.ac-list,
.ac-detail {
  border: 1px solid #2a3a50;
  border-radius: 16px;
  background: #0d121e;
  padding: 20px;
  min-width: 0;
}
.ac-list-heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}
.ac-list-heading small {
  color: #95abbe;
}
.accounting-workspace .ac-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #233045;
  background: transparent;
  border-radius: 0;
  justify-content: start;
  padding: 18px 8px;
  text-align: left;
  gap: 14px;
}
.accounting-workspace .ac-row.active {
  background: #172739;
  border-radius: 10px;
  border-color: #54cbbb;
}
.ac-row-title {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 7px;
}
.ac-row-title b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ac-row small {
  color: #91a9bf;
  font-size: 11px;
  display: block;
  line-height: 1.5;
}
.ac-row strong {
  display: grid;
  gap: 5px;
  text-align: right;
  font-size: 18px;
}
.ac-row-icon {
  background: #1c3043;
  padding: 10px;
  border-radius: 10px;
  color: #99d7e7;
}
.ac-footnote {
  font-size: 11px;
  margin-top: 24px;
}
.ac-more {
  margin: 16px auto;
  display: block !important;
}
.ac-empty {
  text-align: center;
  padding: 65px 18px;
  color: #93a6b9;
}
.ac-empty h2 {
  color: #d6e5ef;
  font-size: 20px;
}
.ac-empty p {
  max-width: 420px;
  margin: 14px auto 25px;
  line-height: 1.8;
}
.ac-detail > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ac-detail h2 {
  font-size: 23px;
  margin: 24px 0 10px;
}
.ac-source {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.ac-detail fieldset {
  border: 0;
  padding: 0;
  margin: 25px 0;
  display: grid;
  gap: 15px;
}
.ac-detail legend {
  margin-bottom: 15px;
  font-weight: bold;
}
.ac-detail textarea {
  min-height: 95px;
  resize: vertical;
}
.ac-detail details {
  border-top: 1px solid #29384b;
  padding-top: 18px;
}
.ac-detail summary {
  cursor: pointer;
  color: #8fdde3;
}
.ac-delete {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  border-top: 1px solid #29384b;
  padding-top: 22px;
}
.ac-delete button {
  color: #efb2c1 !important;
}
.ac-delete small {
  color: #9faab9;
  font-size: 11px;
}
.ac-error {
  color: #efb2c1;
  line-height: 1.7;
}
.ac-modal-backdrop {
  position: fixed;
  inset: 0;
  background: #000b;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ac-modal {
  background: #111a28;
  border: 1px solid #496080;
  border-radius: 18px;
  max-width: 540px;
  padding: 28px;
  overflow: auto;
  max-height: 85vh;
  overflow-wrap: anywhere;
}
.ac-modal p {
  line-height: 1.8;
  color: #b8c8d6;
}
.ac-recovery {
  padding: 20px 0;
  display: grid;
  gap: 12px;
}
.ac-recovery p {
  color: #93a6b9;
  line-height: 1.7;
}
@media (max-width: 1000px) {
  .accounting-workspace .ac-filter-toggle {
    display: inline-flex;
    margin-bottom: 16px;
  }
  .ac-filter:not(.ac-filter-open),
  .ac-detail-open .ac-filter-toggle {
    display: none !important;
  }
  .ac-detail-open .ac-header,
  .ac-detail-open .ac-summary,
  .ac-detail-open .ac-filter {
    display: none;
  }
  .ac-detail-open .ac-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .ac-detail-open .ac-list {
    display: none;
  }
  .ac-header {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  .accounting-workspace {
    padding: 24px 16px;
  }
  .ac-filter label {
    flex: 1;
    min-width: 130px;
  }
  .ac-summary > div {
    min-width: 0;
    flex: 1;
  }
  .ac-row-icon {
    display: none;
  }
  .ac-summary strong {
    font-size: 20px;
  }
  .ac-list,
  .ac-detail {
    padding: 16px;
  }
  .ac-filter {
    padding: 12px;
  }
  .ac-header h1 {
    font-size: 30px;
  }
  .ac-modal {
    padding: 20px;
  }
  .ac-modal .ac-actions button {
    width: 100%;
  }
}
.accounting-workspace .ac-filter-toggle {
  display: none;
}
@media (max-width: 1000px) {
  .accounting-workspace .ac-filter-toggle {
    display: inline-flex;
  }
}
