.dp-v3-stocktake-page { color: #1f2329; }
.dp-v3-stocktake-tabs { display: flex; gap: 20px; margin: 14px 0 0; padding: 0 18px; border: 1px solid #e5e7eb; border-bottom: 0; border-radius: 8px 8px 0 0; background: #fff; }
.dp-v3-stocktake-tabs button { position: relative; height: 48px; padding: 0 2px; border: 0; background: transparent; color: #646a73; font: inherit; cursor: pointer; }
.dp-v3-stocktake-tabs button.is-active { color: #245bdb; font-weight: 600; }
.dp-v3-stocktake-tabs button.is-active::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: #3370ff; content: ''; }
.dp-v3-stocktake-panel { border: 1px solid #e5e7eb; border-radius: 0 0 8px 8px; background: #fff; }
.dp-v3-stocktake-panel__header { display: flex; align-items: center; justify-content: space-between; min-height: 66px; padding: 14px 18px; border-bottom: 1px solid #edf0f3; }
.dp-v3-stocktake-panel__header h2 { margin: 0; font-size: 15px; }
.dp-v3-stocktake-panel__header p { margin: 5px 0 0; color: #8f959e; font-size: 12px; }
.dp-v3-stocktake-toolbar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #edf0f3; background: #fafbfc; }
.dp-v3-stocktake-toolbar .el-select { width: 230px; }
.dp-v3-stocktake-toolbar .el-input { width: min(360px, 42vw); }
.dp-v3-stocktake-toolbar--tasks .el-select { width: 190px; }
.dp-v3-stocktake-table-shell { overflow-x: auto; }
.dp-v3-stocktake-table-shell .el-table { min-width: 1040px; }
.dp-v3-stocktake-table-shell .el-table__cell { padding: 8px 0; }
.dp-v3-stocktake-table-shell .cell { line-height: 1.4; }
.dp-v3-stocktake-code { font-family: Consolas, "SFMono-Regular", monospace; font-size: 12px; font-variant-numeric: tabular-nums; }
.dp-v3-stocktake-subtext { display: block; margin-top: 2px; color: #8f959e; font-size: 11px; }
.dp-v3-stocktake-quantity { font-variant-numeric: tabular-nums; white-space: nowrap; }
.dp-v3-stocktake-pagination { display: flex; justify-content: flex-end; padding: 12px 16px; border-top: 1px solid #edf0f3; }
.dp-v3-count-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 18px; border-bottom: 1px solid #e5e7eb; }
.dp-v3-count-header__identity { display: grid; grid-template-columns: auto 1fr; align-items: center; min-width: 0; }
.dp-v3-count-header__identity .el-button { grid-row: 1 / span 3; margin-right: 12px; }
.dp-v3-count-header__identity > span { color: #8f959e; font-size: 11px; }
.dp-v3-count-header__identity > strong { font-size: 17px; font-family: Consolas, monospace; }
.dp-v3-count-header__identity > small { overflow: hidden; color: #646a73; text-overflow: ellipsis; white-space: nowrap; }
.dp-v3-count-summary { display: flex; align-items: center; gap: 20px; }
.dp-v3-count-summary > div { min-width: 62px; text-align: right; }
.dp-v3-count-summary span { display: block; color: #8f959e; font-size: 11px; }
.dp-v3-count-summary strong { display: block; margin-top: 3px; font-size: 16px; font-variant-numeric: tabular-nums; }
.dp-v3-count-summary strong.is-warning { color: #d46b08; }
.dp-v3-unsaved-mark { margin-left: auto; color: #d46b08; font-size: 12px; }
.dp-v3-count-input .el-input { width: 100%; }
.dp-v3-count-input .el-input-group__append { min-width: 48px; padding: 0 8px; color: #646a73; }
.dp-v3-count-input.has-error .el-input__wrapper { box-shadow: 0 0 0 1px #d94a4a inset; }
.dp-v3-count-input > small { color: #d94a4a; font-size: 11px; }
.dp-v3-count-state { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 4px; font-size: 12px; }
.dp-v3-count-state.is-uncounted { background: #f2f3f5; color: #646a73; }
.dp-v3-count-state.is-counted { background: #edf8f0; color: #237b4b; }
.dp-v3-count-footer { position: sticky; bottom: -16px; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-top: 1px solid #dfe3e8; background: rgba(255, 255, 255, .98); box-shadow: 0 -5px 14px rgba(31, 35, 41, .04); }
.dp-v3-count-footer__actions { display: flex; align-items: center; gap: 10px; }
.dp-v3-count-footer__actions > span { color: #8f959e; font-size: 11px; }
.dp-v3-form-help { width: 100%; margin: 6px 0 0; color: #8f959e; font-size: 12px; line-height: 1.5; }
.dp-v3-option-note { float: right; color: #8f959e; }

@media (max-width: 900px) {
  .dp-v3-stocktake-toolbar { align-items: stretch; flex-wrap: wrap; }
  .dp-v3-stocktake-toolbar .el-select,
  .dp-v3-stocktake-toolbar .el-input { width: 100%; }
  .dp-v3-count-header { align-items: flex-start; flex-direction: column; }
  .dp-v3-count-summary { width: 100%; justify-content: flex-end; }
  .dp-v3-count-footer { align-items: flex-end; flex-direction: column; }
}
