#changshaFinancePage {
  width: 100%;
}

#changshaFinancePage .cs-workspace {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
}

#changshaFinancePage .cs-table-wrap {
  width: 100%;
}

#changshaFinancePage .cs-table-wrap table {
  width: 100%;
}

#changshaFinancePage .cs-select-cell {
  width: 52px;
  min-width: 52px;
  text-align: center;
  padding-left: 8px;
  padding-right: 8px;
}

#changshaFinancePage .cs-select-cell input {
  width: 16px;
  height: 16px;
  accent-color: #16738b;
}

#changshaFinancePage .cs-column-filter-cell {
  padding: 6px;
  background: #f8fbfc;
}

#changshaFinancePage .cs-column-filter-cell input {
  box-sizing: border-box;
  width: 100%;
  min-width: 60px;
  border: 1px solid #cbdde4;
  border-radius: 6px;
  background: #fff;
  color: #243e4b;
  padding: 7px 8px;
  font-size: 12px;
}

#changshaFinancePage .cs-column-filter-cell input:focus {
  border-color: #1b8196;
  outline: 2px solid #1b81961c;
}

#changshaFinancePage .cs-column-filter-row th:last-child,
#changshaFinancePage .cs-column-filter-row th:first-child {
  background: #f8fbfc;
}

#changshaFinancePage .cs-summary-number {
  color: #c0392b;
  font-weight: 800;
}

#changshaFinancePage .cs-summary {
  display: block;
  margin: 0 0 14px;
  padding: 14px;
}

#changshaFinancePage .cs-actions {
  align-items: center;
  justify-content: flex-start;
}

#changshaFinancePage .cs-date-range {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 4px 0 8px;
  border: 1px solid #dbe9ed;
  border-radius: 8px;
  background: #fff;
  color: #55717b;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

#changshaFinancePage .cs-date-range input {
  width: 132px;
  min-height: 34px;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  color: #243e4b;
  font: inherit;
  font-weight: 500;
}

#changshaFinancePage .cs-date-range input:focus {
  outline: 2px solid #1b81961c;
  outline-offset: 1px;
}

#changshaFinancePage .cs-date-range button {
  min-height: 30px;
  padding: 5px 8px;
}

#changshaFinancePage .cs-summary-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 12px;
}

#changshaFinancePage .cs-summary-card {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid #dbe9ed;
  border-radius: 10px;
  background: linear-gradient(135deg, #fbfeff, #f1f8fa);
}

#changshaFinancePage .cs-summary-card span {
  color: #46616d;
  font-weight: 700;
}

#changshaFinancePage .cs-summary-card strong {
  font-size: 18px;
  white-space: nowrap;
}

#changshaFinancePage .cs-account-panel {
  margin-top: 14px;
  padding: 14px 16px 16px;
  border: 1px solid #dbe9ed;
  border-radius: 10px;
  background: #fbfdfe;
}

#changshaFinancePage .cs-account-panel-head {
  display: none;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

#changshaFinancePage .cs-account-panel-head h3 {
  margin: 0;
  color: #234b5b;
  font-size: 15px;
}

#changshaFinancePage .cs-account-panel-head span {
  color: #81949c;
  font-size: 12px;
}

#changshaFinancePage .cs-account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

#changshaFinancePage .cs-account-card {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #e2edf0;
  border-radius: 9px;
  background: #fff;
}

#changshaFinancePage .cs-account-card h4 {
  margin: 0 0 10px;
  overflow: hidden;
  color: #234b5b;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#changshaFinancePage .cs-account-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

#changshaFinancePage .cs-account-card dl > div {
  min-width: 0;
}

#changshaFinancePage .cs-account-card dt {
  margin-bottom: 4px;
  color: #81949c;
  font-size: 11px;
  white-space: nowrap;
}

#changshaFinancePage .cs-account-card dd {
  margin: 0;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#changshaFinancePage .cs-account-empty {
  margin: 0;
}

#changshaFinancePage .cs-selected-summary {
  margin: 12px 2px 0;
  padding: 9px 12px;
  border-radius: 8px;
  background: #eef8fa;
  color: #16738b;
  font-weight: 700;
}

@media (max-width: 780px) {
  #changshaFinancePage .cs-summary-overview {
    grid-template-columns: 1fr;
  }

  #changshaFinancePage .cs-date-range {
    width: 100%;
    justify-content: space-between;
  }

  #changshaFinancePage .cs-date-range input {
    flex: 1;
    width: auto;
  }

  #changshaFinancePage .cs-account-card dl {
    grid-template-columns: 1fr;
  }
}

#changshaFinancePage .cs-expense-type-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin: 8px 0;
}

#changshaFinancePage .cs-expense-type-row input {
  box-sizing: border-box;
  width: 100%;
}

.cs-log-fields {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid #e2edf0;
  border-radius: 8px;
  background: #fbfdfe;
}

.cs-log-field {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  line-height: 1.5;
}

.cs-log-field b {
  color: #55717b;
}

.cs-log-field span {
  min-width: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.cs-image-viewer {
  position: fixed;
  z-index: 10020;
  top: 0;
  right: 0;
  bottom: 0;
  left: 230px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 42px;
  box-sizing: border-box;
  background: rgba(8, 25, 34, .84);
}

.cs-image-viewer.open {
  display: flex;
}

.cs-image-viewer img {
  max-width: 94%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, .38);
}

.cs-image-viewer-close {
  position: absolute;
  top: 18px;
  right: 24px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 780px) {
  .cs-image-viewer {
    left: 0;
    padding: 30px 14px;
  }
}
