.promotion-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px 22px;
  margin-top: 23px;
}
.promotion-form-grid > label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  font-size: 10px;
  color: var(--muted);
}
.promotion-form-grid > label:has(textarea) {
  grid-column: 1/-1;
}
.promotion-create-form > p {
  max-width: 790px;
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
}
.promotion-create-form h3 {
  font-size: 22px;
  font-weight: 450;
  margin-bottom: 11px;
}
.promotion-form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  margin-top: 23px;
}
.promotion-form-grid small {
  font-size: 8px;
  color: var(--subtle);
}
.cash-actions,
.cash-periods,
.cash-view,
.cash-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.cash-actions {
  margin: 23px 0 25px;
}
.cash-periods {
  margin: 25px 0;
}
.cash-periods button,
.cash-view button,
.cash-chips button {
  font: inherit;
  font-size: 10px;
  min-height: 39px;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.cash-periods button[aria-pressed=true],
.cash-view button[aria-pressed=true] {
  background: var(--cream);
  color: #242529;
  border-color: var(--cream);
}
.cash-view button:disabled {
  opacity: 1;
  color: #949ba6;
  border-color: #ffffff1f;
  background: #24262a;
}
.cash-totals {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 19px;
}
.cash-totals article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 0;
  padding: 27px 29px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
}
.cash-totals article:first-child {
  background:
    linear-gradient(
      115deg,
      #272222,
      #212326);
}
.cash-totals article > span {
  font-size: 12px;
  font-weight: 400;
}
.cash-totals article > strong {
  font-size: clamp(27px, 2.8vw, 44px);
  font-weight: 450;
  letter-spacing: -.05em;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.cash-totals article > small {
  color: var(--subtle);
  font-size: 9px;
  line-height: 1.9;
}
.cash-balance-parts {
  display: grid;
  gap: 13px;
  width: 100%;
  padding: 20px 0 9px;
  margin: 0;
  border-top: 1px solid var(--line);
}
.cash-balance-parts > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.cash-balance-parts dt {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.8;
}
.cash-balance-parts dd {
  margin: 0;
  white-space: nowrap;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.cash-chart-panel {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}
.cash-chart {
  min-height: 265px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.cash-chart svg {
  width: min(100%, 360px);
  height: auto;
  overflow: visible;
}
.cash-chart svg text {
  fill: var(--muted);
  font-family: inherit;
  font-size: 11px;
}
.cash-chart .cash-ring-total {
  fill: var(--text);
  font-size: 20px;
  font-weight: 450;
}
.cash-view {
  justify-content: center;
  margin: 20px 0;
}
.cash-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.cash-chips button {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.cash-chips button i {
  height: 10px;
  width: 10px;
  border-radius: 3px;
  flex-shrink: 0;
  background: var(--category-color,#fa604b);
}
.cash-chips button strong {
  font-weight: 450;
}
.cash-chips button[aria-pressed=true] {
  border-color: var(--accent);
  color: var(--text);
}
.cash-history {
  margin-top: 34px;
}
.cash-history h2 {
  font-size: 25px;
  font-weight: 450;
  margin-bottom: 25px;
}
.cash-day {
  margin: 25px 0;
}
.cash-day-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}
.cash-day-heading h3 {
  font-size: 14px;
  font-weight: 450;
}
.cash-day-heading span {
  font-size: 10px;
  color: var(--subtle);
}
.cash-operation {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}
.cash-operation > div {
  min-width: 0;
}
.cash-operation strong {
  font-size: 13px;
  font-weight: 450;
  overflow-wrap: anywhere;
}
.cash-operation small {
  display: block;
  font-size: 9px;
  color: var(--subtle);
  line-height: 1.8;
  margin-top: 8px;
}
.cash-operation p {
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
  margin-top: 9px;
  overflow-wrap: anywhere;
}
.cash-operation-amount {
  text-align: right;
  flex-shrink: 0;
}
.cash-operation-amount strong {
  white-space: nowrap;
}
.cash-operation-amount button {
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 9px;
  padding: 10px 0 0 12px;
  cursor: pointer;
}
.cash-operation.is-void {
  opacity: .6;
}
.cash-operation.is-void .cash-operation-amount strong {
  text-decoration: line-through;
}
.cash-empty {
  padding: 40px 8px;
  font-size: 11px;
  color: var(--subtle);
  text-align: center;
}
.cash-bars {
  display: flex;
  width: 100%;
  height: 235px;
  gap: 7px;
  align-items: flex-end;
  overflow-x: auto;
  padding: 10px 2px 25px;
}
.cash-bars button {
  position: relative;
  flex: 1;
  min-width: 25px;
  height: 100%;
  border: 0;
  background: none;
  color: var(--subtle);
  padding: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  cursor: pointer;
}
.cash-bars button i {
  display: block;
  width: 72%;
  height: var(--bar-height);
  background: var(--accent);
  border-radius: 4px 4px 0 0;
}
.cash-bars small {
  position: absolute;
  bottom: -20px;
  white-space: nowrap;
  font-size: 8px;
}
.cash-bar-detail {
  font-size: 10px;
  line-height: 1.9;
  color: var(--muted);
}
.cash-dialog,
.date-picker {
  margin: auto;
  inset: 0;
  width: min(550px, calc(100vw - 36px));
  max-height: calc(100svh - 48px);
  overflow: auto;
  padding: 30px;
  border: 1px solid var(--line-bright);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 35px 100px #0007;
}
.cash-dialog::backdrop,
.date-picker::backdrop {
  background: #08090cc9;
  backdrop-filter: blur(6px);
}
.cash-dialog header,
.date-picker header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 27px;
}
.cash-dialog h2,
.date-picker h2 {
  font-size: 23px;
  font-weight: 450;
  letter-spacing: -.05em;
}
.cash-dialog header > button,
.date-picker header > button {
  height: 33px;
  width: 33px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  color: var(--muted);
  font-size: 23px;
  cursor: pointer;
}
.cash-dialog form {
  display: grid;
  gap: 20px;
}
.cash-dialog label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 10px;
  color: var(--muted);
}
.cash-dialog input[type=color] {
  height: 48px;
  padding: 5px;
}
.cash-dialog textarea {
  min-height: 100px;
}
.cash-dialog .cash-confirm {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-size: 9px;
  line-height: 1.9;
}
.cash-confirm input {
  width: 17px;
  height: 17px;
  min-height: 17px;
  flex-shrink: 0;
  margin-top: 1px;
}
.cash-help {
  font-size: 9px;
  line-height: 1.9;
  color: var(--subtle);
  margin: 0;
}
.cash-dialog [data-form-message] {
  font-size: 10px;
  line-height: 1.9;
  color: #ff9c89;
}
.cash-form-actions {
  margin-top: 4px;
}
.cash-category-list {
  display: grid;
  gap: 9px;
  margin-bottom: 25px;
}
.cash-category-list button {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  font: inherit;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.cash-category-list i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}
.cash-category-list span {
  margin-left: auto;
  color: var(--subtle);
  font-size: 8px;
}
.date-picker-month {
  display: flex;
  gap: 9px;
  align-items: flex-end;
  margin-bottom: 22px;
}
.date-picker-month label {
  font-size: 9px;
  color: var(--muted);
  flex: 1;
  min-width: 0;
}
.date-picker-month select {
  margin-top: 8px;
  font-size: 12px;
  padding: 10px 6px;
  min-height: 41px;
}
.date-picker-month > button {
  border: 1px solid var(--line);
  background: var(--surface-raised);
  color: var(--text);
  border-radius: 8px;
  width: 39px;
  height: 41px;
  flex-shrink: 0;
  font-size: 24px;
  cursor: pointer;
}
.date-picker-month .custom-select{margin-top:8px}
.date-picker-month .custom-select-trigger{width:100%;min-height:41px;height:41px;padding:10px 8px;gap:6px;font-size:12px}
@media(max-width:480px){.date-picker-month{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.date-picker-month>label{grid-row:1}.date-picker-month>button{grid-row:2}.date-picker-month>button:last-child{justify-self:end}}
.date-picker-week,
.date-picker-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  text-align: center;
}
.date-picker-week {
  font-size: 9px;
  color: var(--subtle);
  margin-bottom: 10px;
}
.date-picker-days button {
  aspect-ratio: 1;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  min-width: 0;
  padding: 0;
  cursor: pointer;
}
.date-picker-days .outside-month {
  color: var(--subtle);
}
.date-picker-days .selected {
  background: var(--accent);
  color: #241e1b;
}
.date-picker-days .endpoint {
  box-shadow: inset 0 0 0 2px #ffffff55;
}
.date-picker-days button:disabled {
  color: #62666e;
  cursor: default;
}
.date-picker-selection {
  font-size: 10px;
  line-height: 1.9;
  min-height: 22px;
  text-align: center;
  color: var(--muted);
  margin: 20px 0;
}
.date-picker-actions {
  display: grid;
  gap: 9px;
}
.date-picker-actions .button {
  width: 100%;
  font-size: 10px;
  justify-content: center;
}
@media (max-width: 700px) {
  .promotion-form-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .promotion-create-form h3 {
    font-size: 19px;
  }
  .promotion-create-form > p {
    font-size: 10px;
  }
  .promotion-form-actions > .button {
    width: 100%;
  }
  .cash-totals {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .cash-totals article {
    padding: 23px;
  }
  .cash-totals article > strong {
    font-size: 35px;
  }
  .cash-actions {
    gap: 8px;
  }
  .cash-actions .button {
    font-size: 9px;
    padding: 10px 12px;
  }
  .cash-periods {
    gap: 7px;
  }
  .cash-periods button,
  .cash-view button,
  .cash-chips button {
    font-size: 8px;
    min-height: 36px;
    padding: 9px 12px;
  }
  .cash-chart-panel {
    padding: 20px 15px;
  }
  .cash-chart {
    min-height: 210px;
    font-size: 10px;
  }
  .cash-history h2 {
    font-size: 22px;
  }
  .cash-operation {
    gap: 10px;
  }
  .cash-operation strong {
    font-size: 11px;
  }
  .cash-operation small {
    font-size: 8px;
  }
  .cash-dialog,
  .date-picker {
    padding: 24px 20px;
    border-radius: 15px;
  }
  .cash-dialog h2,
  .date-picker h2 {
    font-size: 21px;
  }
  .cash-balance-parts dt {
    font-size: 8px;
  }
  .cash-balance-parts dd {
    font-size: 10px;
  }
}
.api-income-panel{margin-top:24px;min-width:0}
.api-income-panel[hidden]{display:none}
.api-income-panel>.panel-heading{align-items:flex-start;gap:18px;flex-wrap:wrap}
.api-income-description{max-width:720px;font-size:10px;line-height:1.9;color:var(--subtle);margin:12px 0 0}
.api-income-period{font-size:9px;color:var(--subtle);white-space:nowrap;padding-top:5px}
.api-income-metrics{margin:24px 0;gap:12px}
.api-income-metrics .metric-card{min-width:0;padding:20px 16px}
.api-income-metrics .metric-card>strong{font-size:clamp(16px,1.7vw,25px);white-space:nowrap;max-width:100%;font-variant-numeric:tabular-nums}
.api-income-metrics .metric-card>small{line-height:1.8}
.api-income-chart-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:28px}
.api-income-panel h3{font-size:12px;font-weight:450;margin:0;line-height:1.8}
.api-income-products:empty{display:none}
.employee-registry-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:24px}
.employee-registry-heading h2{font-size:18px;line-height:1.7}
.employee-period-note{font-size:10px;line-height:1.9;color:var(--muted);margin:12px 0 20px}
#dashboardEmployees{min-width:0}
#dashboardEmployees .user-table-wrap{max-width:100%;margin-bottom:28px}
#dashboardEmployees .user-table td:not(:first-child):not(:nth-child(2)){white-space:nowrap;font-variant-numeric:tabular-nums}
.employee-registry td:first-child{overflow-wrap:anywhere;min-width:180px}
.employee-assignment-form select{width:100%;min-height:48px;padding:12px 14px;border:1px solid var(--line-bright);border-radius:9px;background:var(--field);color:var(--text);font-size:12px}
.employee-assignment-form .employee-active{display:flex;flex-direction:row;align-items:center;grid-column:1/-1}
.employee-assignment-form .employee-active input{width:18px;min-height:18px;height:18px;accent-color:#FA604B}
.employee-assignment-form>#employeeAssignSubmit{grid-column:1/-1;justify-self:start}
#employeeOperationRetry{margin-bottom:24px}
@media(max-width:700px){.employee-assignment-form>#employeeAssignSubmit{width:100%;justify-self:stretch}.employee-registry-heading h2{font-size:16px}}
.api-income-products>h3{margin-top:28px}
.api-income-product-list{margin-top:14px}
.api-income-product{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:16px 0;border-bottom:1px solid var(--line);min-width:0}
.api-income-product>div{min-width:0}
.api-income-product strong{display:block;font-size:10px;font-weight:400;line-height:1.8;overflow-wrap:anywhere}
.api-income-product small{display:block;font-size:9px;line-height:1.8;color:var(--subtle);margin-top:7px}
.api-income-product>b{font-size:11px;font-weight:450;white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:1100px){.api-income-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.api-income-metrics{gap:8px}.api-income-metrics .metric-card{padding:16px 10px}.api-income-product{align-items:flex-start;flex-direction:column;gap:10px}.api-income-description{font-size:9px}}
