.demo-tag {
  margin-left: auto;
  font-size: 12px;
  font-weight: 650;
  color: #285337;
  padding: 5px 10px;
  border-radius: 16px;
  background: #e1efda;
}
.checkout {
  padding-block: clamp(24px, 6vw, 84px);
}
.checkout-grid {
  max-width: 880px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.card-wallet,
.order-summary {
  padding: clamp(22px, 3vw, 38px);
}
.order-summary {
  background: #153f32;
  color: white;
}
.order-summary h1,
.card-wallet h2 {
  font-size: clamp(25px, 2.3vw, 34px);
}
.summary-label {
  display: block;
  color: #c2dbc8;
  font-size: 13px;
  margin-bottom: 8px;
}
.summary-amount {
  font-size: clamp(30px, 3.3vw, 44px);
  font-weight: 650;
  letter-spacing: -0.06em;
  margin-top: 32px;
}
.order-summary .facts {
  border-color: #49695a;
}
.order-summary .facts dt {
  color: #c5d8cb;
}
.card-wallet > p {
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 14px;
}
.card-wallet fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.wallet-option {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  margin: 7px 0;
  cursor: pointer;
}
.wallet-option:has(:checked) {
  background: #eff7eb;
  border-color: #589472;
}
.wallet-option input {
  width: 16px;
  accent-color: #206b4d;
}
.wallet-option img {
  width: 44px;
  height: 32px;
  object-fit: contain;
}
.wallet-option small,
.wallet-option .digits {
  color: var(--muted);
  font-size: 12px;
}
.wallet-option .digits {
  margin-left: auto;
}
.receipt-view {
  margin-top: 0;
}
.receipt-view > p {
  margin-top: 8px;
}
[hidden] {
  display: none !important;
}
/* Firma çalışma alanı */
.crm-shell {
  --ink: #182c29;
  --muted: #5e706c;
  --line: #dce5e1;
  --deep: #136650;
  display: grid;
  grid-template-columns: 224px minmax(0,1fr);
  min-height: 100dvh;
  background: #f5f7f7;
  color: var(--ink);
}
.crm-rail {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 24px 14px 16px;
  background: #102f2c;
  color: #e7f3ef;
}
.crm-brand, .pay-brand { display: flex; align-items: center; gap: 10px; }
.crm-brand { padding: 4px 9px; }
.crm-brand img, .pay-brand img { display: block; height: auto; }
.crm-tenant { display: flex; align-items: center; gap: 11px; padding: 12px; margin: 29px 0 22px; border: 1px solid #385550; border-radius: 9px; }
.crm-avatar { display: grid; place-items: center; height: 34px; width: 34px; border-radius: 9px; background: #d4e8cb; color: #234739; font-weight: 700; font-size: 13px; }
.crm-tenant b, .crm-tenant small { display: block; }
.crm-tenant b { font-size: 13px; }
.crm-tenant small { font-size: 11px; color: #b3cac1; }
.crm-nav { display: grid; gap: 5px; }
.crm-nav a { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: 7px; color: #d1e3dc; font-weight: 550; font-size: 14px; }
.crm-nav a:hover { background: #1c413a; }
.crm-nav a[aria-current] { color: #f0fff6; background: #245547; box-shadow: inset 3px 0 #91d8a5; }
.crm-rail-end { display: flex; justify-content: space-between; margin-top: auto; border-top: 1px solid #34524d; padding: 16px 5px 0; color: #b7cdc4; font-size: 12px; }
.crm-work { min-width: 0; }
.crm-content { padding: clamp(20px,2.7vw,44px); margin-inline: auto; max-width: 1680px; }
.crm-shell .dash-heading { margin: 0 0 23px; align-items: center; }
.crm-shell h1 { font-size: clamp(26px,2.25vw,36px); letter-spacing: -.045em; font-weight: 680; overflow-wrap: anywhere; }
.crm-shell h2 { font-size: 17px; letter-spacing: -.027em; font-weight: 650; }
.crm-shell .btn { padding: 9px 15px; font-size: 14px; line-height: 1.35; border-radius: 7px; }
.crm-shell .back { margin-bottom: 10px; font-size: 13px; }
.crm-shell .stat-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.crm-shell .stat-grid article, .crm-surface, .crm-shell .table-box, .crm-shell .task-sheet {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 2px 4px #183a2c05;
}
.crm-shell .stat-grid article { padding: 15px 18px; color: var(--ink); }
.crm-shell .stat-grid small { font-size: 13px; color: var(--muted); }
.crm-shell .stat-grid strong { margin-top: 6px; font-size: clamp(20px,2vw,31px); font-weight: 660; font-variant-numeric: tabular-nums; }
.crm-shell .stat-grid strong span { font-size: .7em; color: var(--muted); }
.crm-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; }
.crm-section-head h2 { margin: 0; font-size: 17px; }
.crm-section-head a, .row-action { font-size: 13px; font-weight: 620; color: #1a654c; }
.crm-section-head small, .crm-pending small, .share-info { color: var(--muted); font-size: 12px; }
.crm-overview { margin-top: 16px; display: grid; grid-template-columns: 1fr 1.25fr; gap: 16px; }
.crm-balance { background: #16463b; color: #f7fffa; border-radius: 13px; padding: 20px; }
.crm-balance p { color: #c9e2d8; font-size: 12px; margin-top: 16px; }
.crm-balance strong { display: block; font-size: 27px; font-weight: 650; letter-spacing: -.04em; }
.crm-balance progress { width: 100%; display: block; margin: 15px 0 6px; height: 6px; border: 0; border-radius: 10px; overflow: hidden; color: #a6e1ae; background: #43675c; }
.crm-balance progress::-webkit-progress-bar { background: #43675c; }
.crm-balance progress::-webkit-progress-value { background: #a6e1ae; }
.crm-balance progress::-moz-progress-bar { background: #a6e1ae; }
.crm-balance div { display: flex; justify-content: space-between; font-size: 12px; }
.crm-pending, .crm-pos-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 18px; border-top: 1px solid var(--line); font-size: 14px; }
.crm-pending small, .crm-pos-row small { display: block; font-size: 12px; color: var(--muted); }
.crm-pending:hover, .crm-pos-row:hover, .crm-shell tbody tr:hover { background: #f7faf8; }
.crm-empty { padding: 15px 18px; color: var(--muted); }
.crm-profile { margin-bottom: 16px; }
.crm-profile dl { display: grid; grid-template-columns: 1fr 1.25fr 2fr; gap: 16px; padding: 0 18px 18px; }
.crm-profile dt { font-size: 12px; color: var(--muted); }
.crm-profile dd { margin: 3px 0 0; font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.crm-shell .task-sheet { margin: 0; max-width: 620px; padding: clamp(18px,3vw,32px); }
.crm-shell .task-sheet form { margin-top: 18px; }
.crm-shell .task-sheet .wide { margin-top: 18px; }
.crm-shell .table-box { margin-top: 16px; }
.crm-shell .ledger-search { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.crm-shell .ledger-search:first-child { border-top: 0; }
.crm-shell .ledger-search input { flex: 1; min-width: 0; }
.crm-shell .ledger-search select { width: auto; }
.crm-shell :is(input,select,textarea) { background: #fff; border-color: #cbd8d1; border-radius: 6px; }
.crm-shell .ledger-search :is(input,select) { padding: 8px 10px; font-size: 13px; }
.btn.outline { background: #fff; color: #225b45; border-color: #b9ccc1; }
.crm-shell table { font-size: 14px; }
.crm-shell :is(td,th) { padding: 11px 16px; }
.crm-shell th { background: #f7f9f8; font-weight: 580; }
.crm-shell td small { display: block; color: var(--muted); font-size: 12px; }
.crm-shell tbody td:first-child { overflow-wrap: anywhere; }
.crm-shell .ops-table :nth-child(3) { text-align: left; }
.crm-shell .ops-table :is(th,td):nth-child(n+4), .crm-shell .account-table :is(th,td):nth-child(n+2) { text-align: right; }
.crm-shell .numeric { font-weight: 670; white-space: nowrap; font-variant-numeric: tabular-nums; }
.crm-shell .pill { display: inline-flex; align-items: center; gap: 6px; }
.crm-shell .pill::before, .crm-state::before { content: ''; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.crm-state { display: inline-flex; align-items: center; gap: 7px; color: #765323; background: #fbf2df; border: 1px solid #ebdabc; padding: 4px 9px; border-radius: 15px; font-size: 12px; }
.crm-shell .bank-grid { margin: 0; padding: 0 18px 18px; gap: 12px; }
.crm-shell .bank-choice { border-radius: 9px; }
.crm-shell .bank-image { padding: 13px; background: #f2f5f5; }
.crm-shell .bank-image img { width: min(100%,160px); }
.crm-shell .bank-caption { padding: 9px 12px; }
.crm-shell .bank-caption strong { font-size: 15px; }
.crm-shell .bank-caption small { font-size: 12px; }
.crm-pos-history { margin-top: 16px; }
.crm-pos-row > b { margin-left: auto; white-space: nowrap; }
.crm-pos-row img { width: 40px; height: auto; }
.pay-brand { width: min(880px, calc(100% - 40px)); margin: 24px auto 0; }
.pay-return { display: block; width: fit-content; margin: 18px auto; font-size: 14px; color: #245e45; }
.wallet-option b, .wallet-option small { display: block; }
@media (max-width: 780px) {
  .crm-shell { display: block; }
  .crm-rail { height: auto; position: static; display: grid; grid-template-columns: 1fr auto; padding: 10px 12px 6px; gap: 10px; }
  .crm-brand { padding: 0; }
  .crm-brand img { width: 126px; }
  .crm-tenant { border: 0; padding: 0; margin: 0; gap: 6px; }
  .crm-tenant .crm-avatar { display: none; }
  .crm-tenant b, .crm-tenant small { font-size: 11px; text-align: right; }
  .crm-nav { grid-column: 1/-1; display: flex; gap: 2px; justify-content: space-between; }
  .crm-nav a { flex: 1; justify-content: center; padding: 8px 3px; gap: 4px; white-space: nowrap; font-size: 12px; }
  .crm-nav a[aria-current] { box-shadow: inset 0 -2px #91d8a5; }
  .crm-nav svg { width: 14px; }
  .crm-rail-end { display: none; }
  .crm-content { padding: 20px 12px; }
  .crm-shell .dash-heading { margin-bottom: 15px; }
}
@media (max-width: 620px) {
  .crm-overview, .checkout-grid, .crm-profile dl { grid-template-columns: 1fr; }
  .crm-overview { gap: 10px; }
  .crm-shell .stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .crm-shell .stat-grid article { padding: 10px 12px; grid-column: auto; }
  .crm-shell .stat-grid article:last-child { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; }
  .crm-shell .stat-grid article:last-child strong { margin: 0; }
  .crm-shell .ledger-search { flex-wrap: wrap; }
  .crm-shell .ledger-box .ledger-search input:not([type=hidden]) { flex-basis: 100%; }
  .crm-shell .ledger-search select { flex: 1; min-width: 0; }
  .crm-shell .bank-grid { gap: 8px; padding: 0 10px 10px; }
  .crm-shell .bank-image { padding: 9px; }
  .crm-shell .bank-caption { padding: 7px; }
  .crm-shell :is(td,th) { padding: 9px 7px; }
  .crm-shell .ops-table :is(th,td):nth-child(2) { display: none; }
  .crm-section-head { padding: 14px 12px; }
  .crm-shell .table-box h2 { margin: 0; }
}
@media (min-width: 621px) {
  .crm-shell .table-box :is(td,th):last-child { display: table-cell; }
}
@media (max-width: 380px) {
  .crm-nav svg { display: none; }
}
@media print {
  .pay-brand, .pay-return, [data-print] { display: none; }
  .checkout, .receipt-view { padding: 0; border: 0; }
}
@media (max-width: 620px) {
  .crm-shell .ops-table :is(th,td):last-child,
  .crm-shell .account-table :is(th,td):last-child { display: table-cell; }
  .crm-shell .row-action { font-size: 12px; }
  .crm-shell .ops-table :is(th,td), .crm-shell .account-table :is(th,td) { padding-inline: 5px; }
  .crm-shell .pill { padding: 3px 5px; gap: 3px; }
}
