/* Zemhan System UI v19 — yapısal finans çalışma alanı */
.finance-page > .finance-page-heading { order: 1; }
.finance-page > .finance-command-center { order: 2; }
.finance-page > .expense-manager { order: 3; }

.finance-command-center {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr);
  gap: 14px;
}
.finance-system-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #b9c3d3;
  background: #0f1727;
  border: 1px solid #26334a;
  border-radius: 13px;
  padding: 11px 15px;
  box-shadow: 0 12px 30px #0f172720;
}
.finance-system-bar > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.finance-system-bar strong {
  color: #fff;
  font-size: 12px;
}
.finance-system-bar small {
  color: #8390a3;
  text-transform: capitalize;
}
.system-live-dot {
  width: 8px;
  height: 8px;
  background: #4bd39c;
  border-radius: 50%;
  box-shadow: 0 0 0 5px #4bd39c17, 0 0 14px #4bd39c70;
}
.system-bar-stats span {
  color: #8390a3;
  border-left: 1px solid #2b374b;
  padding-left: 12px;
  font-size: 10px;
}
.system-bar-stats b {
  color: #dabb82;
  font-size: 12px;
}
.finance-module {
  min-width: 0;
  background: #fff;
  border: 1px solid #e3e7ee;
  border-radius: 18px;
  padding: 17px;
  box-shadow: 0 14px 35px #1720330b;
}
.finance-module > header {
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid #e8ebf0;
  margin-bottom: 13px;
  padding-bottom: 12px;
}
.finance-module > header > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #8a652f;
  background: #f3e8d5;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 900;
}
.finance-module header h3 {
  color: #111827;
  margin: 0 0 2px;
  font-size: 15px;
}
.finance-module header p {
  color: #8b94a4;
  margin: 0;
  font-size: 10px;
}
.finance-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.finance-module-grid .summary-card,
.finance-module-grid .summary-card:nth-child(n) {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 77px;
  padding: 10px;
  border: 1px solid #e8ebf0;
  border-radius: 12px;
  box-shadow: none;
}
.finance-module-grid .summary-symbol,
.finance-module-grid .summary-card:nth-child(n) .summary-symbol {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}
.finance-module-grid .summary-card p {
  margin: 0 0 4px;
  font-size: 8px;
}
.finance-module-grid .summary-card strong.compact-value {
  font-size: 17px;
  line-height: 1;
}
.profit-data-board {
  display: grid;
  gap: 10px;
}
.profit-primary {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 95% 0, #d6b47345, transparent 35%),
    linear-gradient(135deg, #1b2942, #101727);
  border-radius: 14px;
  padding: 20px;
}
.profit-primary:after {
  content: "↗";
  position: absolute;
  right: 16px;
  bottom: 7px;
  color: #d6b4732c;
  font-size: 62px;
  font-weight: 300;
}
.profit-primary small {
  display: block;
  color: #d9bd87;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-size: 8px;
  font-weight: 900;
}
.profit-primary strong {
  display: block;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 6px;
  font-size: clamp(24px, 3vw, 34px);
}
.profit-primary span {
  color: #9eabba;
  font-size: 9px;
}
.profit-ledger {
  display: grid;
  border: 1px solid #e5e8ee;
  border-radius: 13px;
  overflow: hidden;
}
.profit-ledger > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 11px 12px;
  border-bottom: 1px solid #e8ebf0;
}
.profit-ledger > div:last-child { border-bottom: 0; }
.profit-ledger span {
  color: #788294;
  font-size: 10px;
}
.profit-ledger b {
  color: #1e293b;
  font-size: 12px;
}
.profit-ledger .ledger-net {
  background: #f4f7fa;
}
.profit-ledger .ledger-net span,
.profit-ledger .ledger-net b {
  color: #26775c;
  font-weight: 850;
}
.expense-manager {
  display: grid;
  grid-template-columns: minmax(210px, .35fr) minmax(0, 1fr);
  gap: 16px;
}
.expense-manager-head {
  display: block;
  border: 0;
  border-right: 1px solid #e5e8ee;
  margin: 0;
  padding: 4px 17px 4px 3px;
}
.expense-manager-head > strong {
  display: inline-block;
  margin-top: 16px;
}
.expense-entry-form {
  align-self: start;
}
.expense-message,
.expense-record-list {
  grid-column: 2;
}
@media (max-width: 980px) {
  .finance-command-center {
    grid-template-columns: 1fr;
  }
  .finance-system-bar { grid-column: 1; }
  .expense-manager {
    grid-template-columns: 1fr;
  }
  .expense-manager-head {
    border-right: 0;
    border-bottom: 1px solid #e5e8ee;
    padding: 2px 2px 13px;
  }
  .expense-message,
  .expense-record-list { grid-column: 1; }
}
@media (max-width: 760px) {
  .finance-command-center { gap: 10px; }
  .finance-system-bar {
    align-items: flex-start;
    padding: 10px 11px;
  }
  .finance-system-bar > div:first-child {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .finance-system-bar small {
    width: 100%;
    padding-left: 17px;
  }
  .system-bar-stats {
    display: none !important;
  }
  .finance-module {
    border-radius: 15px;
    padding: 12px;
  }
  .finance-module-grid {
    gap: 7px;
  }
  .finance-module-grid .summary-card,
  .finance-module-grid .summary-card:nth-child(n) {
    grid-template-columns: 31px minmax(0, 1fr);
    min-height: 70px;
    gap: 7px;
    padding: 8px 7px;
  }
  .finance-module-grid .summary-symbol,
  .finance-module-grid .summary-card:nth-child(n) .summary-symbol {
    width: 30px;
    height: 30px;
  }
  .finance-module-grid .summary-card strong.compact-value {
    font-size: clamp(13px, 4vw, 16px);
  }
  .profit-primary { padding: 17px; }
  .expense-manager { padding: 13px; }
}
