/* 薪资增减 */
.sa-panel {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  min-width: 0;
}

.sa-panel-head h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.sa-subnav {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  padding: 4px;
  margin: 4px 0 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #f1f5f9;
  border-radius: 10px;
}

.sa-subnav-item {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.sa-subnav-item:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.7);
}

.sa-subnav-item.active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.sa-body {
  min-width: 0;
}

.sa-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 10px;
}

.sa-toolbar-left,
.sa-toolbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
body.admin-body.admin-embed .sa-toolbar {
  flex-direction: column;
  align-items: stretch;
}
body.admin-body.admin-embed .sa-toolbar-right {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
body.admin-body.admin-embed .sa-toolbar-right .btn {
  width: 100%;
  min-height: 40px;
}

.sa-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.sa-field select,
.sa-field .date-input {
  min-height: 36px;
  font-weight: 500;
}

.sa-note {
  margin: 0 0 12px;
  padding: 8px 12px;
  font-size: 12px;
  color: #64748b;
  background: #f8fafc;
  border-radius: 10px;
  border-left: 3px solid #3b82f6;
}

.sa-table-wrap {
  min-width: 0;
}

.sa-add {
  color: #047857;
  font-weight: 700;
}

/* 移动端从“更多”直达时，宿主菜单已经完成导航，不再重复显示两层切换栏。 */
body.admin-body.admin-embed[data-embed-route="employees-attendance-deduction"] .emp-subnav-primary,
body.admin-body.admin-embed[data-embed-route="employees-attendance-deduction"] .sa-subnav,
body.admin-body.admin-embed[data-embed-route="employees-salary-adj-add"] .emp-subnav-primary,
body.admin-body.admin-embed[data-embed-route="employees-salary-adj-add"] .sa-subnav,
body.admin-body.admin-embed[data-embed-route="employees-salary-addition"] .emp-subnav-primary,
body.admin-body.admin-embed[data-embed-route="employees-salary-addition"] .sa-subnav {
  display: none !important;
}

.sa-deduct {
  color: #b91c1c !important;
  font-weight: 700;
}

.sa-manual-section {
  border-left: 3px solid #dc2626;
}

.sa-add-section {
  margin-top: 14px;
  border-left: 3px solid #059669;
}

.sa-manual-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.sa-add-filter-toolbar {
  margin-top: 0;
  padding: 8px 10px;
  background: #f8fafc;
  border-color: #eef2f7;
}

.sa-manual-head > div {
  min-width: 0;
}

.sa-origin-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.sa-deduct-pill {
  background: #fef2f2;
  color: #b91c1c;
}

.sa-sum-deduct {
  background: #fef2f2;
  border-color: #fecaca;
}

.sa-sum-deduct .v {
  color: #b91c1c;
}

.sa-auto-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 18px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.sa-auto-label span {
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
}

.sa-auto-label small {
  color: #64748b;
  font-size: 12px;
}

.sa-type-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 600;
}

.sa-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.sa-st-void {
  background: #f1f5f9;
  color: #64748b;
  text-decoration: line-through;
}
.sa-st-ok {
  background: #d1fae5;
  color: #047857;
}

.sa-st-draft {
  background: #f1f5f9;
  color: #475569;
}

.sa-st-mid {
  background: #dbeafe;
  color: #1d4ed8;
}

.sa-reason {
  max-width: 220px;
  word-break: break-word;
  font-size: 12px;
  color: #334155;
}

.sa-time {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
}

.sa-ops {
  white-space: nowrap;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.sa-sum {
  margin-top: 10px !important;
}

@media (max-width: 720px) {
  .sa-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .sa-toolbar-left,
  .sa-toolbar-right {
    width: 100%;
  }
  .sa-field {
    width: 100%;
    justify-content: space-between;
  }
  .sa-field select,
  .sa-field .date-input {
    flex: 1 1 auto;
    min-width: 0;
  }
}

/* ===== 薪资增加项 · 移动端 ===== */
.sa-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ecfdf5 0%, #eff6ff 55%, #f8fafc 100%);
  border: 1px solid #dbeafe;
}
.sa-hero-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #10b981;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(16, 185, 129, 0.28);
  flex: 0 0 auto;
}
.sa-hero-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}
.sa-hero-desc {
  margin-top: 2px;
  font-size: 12px;
  color: #64748b;
}
.sa-btn-primary {
  font-weight: 700 !important;
}
.sa-summary-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.sa-sum-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.sa-sum-chip .k {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}
.sa-sum-chip .v {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}
.sa-sum-ok {
  background: #ecfdf5;
  border-color: #a7f3d0;
}
.sa-sum-ok .v { color: #047857; }

.sa-cards { display: none; }
.sa-table-desktop { display: block; }
.sa-empty {
  text-align: center;
  padding: 36px 16px;
  color: #64748b;
  font-size: 14px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  line-height: 1.6;
}
.sa-empty span {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  color: #94a3b8;
}
.sa-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.sa-card + .sa-card { margin-top: 10px; }
.sa-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.sa-card-name {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}
.sa-card-amt {
  font-size: 17px;
  font-weight: 800;
  color: #047857;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sa-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.sa-card-period {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}
.sa-card-reason {
  margin-top: 8px;
  padding: 8px 10px;
  background: #f8fafc;
  border-radius: 10px;
  font-size: 12px;
  color: #334155;
  line-height: 1.45;
  word-break: break-word;
}
.sa-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}
.sa-ops-empty { color: #cbd5e1; font-size: 12px; }

@media (max-width: 720px) {
  .sa-manual-actions {
    width: 100%;
    justify-content: stretch;
  }
  .sa-manual-actions .sa-field,
  .sa-manual-actions .btn {
    width: 100%;
  }
  .sa-cards { display: block; }
  .sa-table-desktop { display: none !important; }
  .sa-sum { display: none; }
  .sa-toolbar {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  }
  .sa-toolbar-right .btn {
    flex: 1 1 auto;
    min-height: 40px;
  }
  .sa-note {
    border-radius: 12px;
    line-height: 1.5;
  }
  .sa-card-foot .sa-ops {
    justify-content: flex-end;
  }
  .sa-card-foot .sa-ops .btn {
    min-height: 34px;
  }
}

body.admin-body.admin-embed .sa-cards { display: block; }
body.admin-body.admin-embed .sa-table-desktop { display: none !important; }
body.admin-body.admin-embed .sa-sum { display: none; }
body.admin-body.admin-embed .sa-hero { margin-top: 2px; }

/* 考核自动减扣 */
.sa-assess-on { color: #15803d; font-weight: 600; }
.sa-assess-off { color: #b45309; font-weight: 600; }
.sa-assess-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.sa-assess-tier-list,
.sa-assess-ov-card ul {
  margin: 6px 0 0;
  padding-left: 18px;
  color: #334155;
  font-size: 13px;
  line-height: 1.55;
}
.sa-assess-overrides { margin-top: 10px; }
.sa-assess-ov-title {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 6px;
}
.sa-assess-ov-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 8px;
}
.sa-assess-ov-name {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}
.sa-assess-mask .sa-assess-editor {
  width: min(720px, 96vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
.sa-assess-editor-body {
  overflow: auto;
  padding: 12px 16px 8px;
}
.sa-assess-enable {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-weight: 600;
}
.sa-assess-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin: 4px 0 8px;
}
.sa-assess-dates .sa-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: #475569;
}
.sa-assess-dates .sa-field .sa-req {
  color: #dc2626;
  font-style: normal;
  font-weight: 700;
}
.sa-assess-dates .date-input {
  min-width: 160px;
}
.sa-assess-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 10px;
  font-size: 13px;
}
.sa-assess-staff-pick {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0 12px;
  font-size: 13px;
  color: #475569;
}
.sa-assess-staff-pick select {
  width: 100%;
  min-height: 110px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px;
}
.sa-assess-h4 {
  margin: 14px 0 4px;
  font-size: 14px;
}
.sa-assess-tier-box,
.sa-assess-period-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0;
}
.sa-assess-period-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.sa-assess-period-row select,
.sa-assess-period-row input[type="date"] {
  padding: 4px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}
.sa-assess-period-row select {
  min-width: 120px;
  flex: 1 1 140px;
}
.sa-assess-ov-dates {
  margin-top: 4px;
}
.sa-assess-tier-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.sa-assess-tier-row input[type="number"] {
  width: 88px;
  padding: 4px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}
.sa-assess-tier-row select {
  padding: 4px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}
.sa-assess-ov-edit {
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 10px 12px;
  margin: 8px 0 12px;
  background: #fff;
}
.sa-assess-ov-edit-head {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.sa-assess-ov-edit-head input {
  flex: 1;
}
.sa-assess-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 16px 14px;
  border-top: 1px solid #e2e8f0;
}

/* 独立考核规则板块 */
.sa-rule-board {
  border-color: #d7e0ea;
  background: #fff;
}
.sa-rule-board-head {
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e7edf3;
}
.sa-rule-board-head > div:first-child {
  min-width: 0;
}
.sa-rule-board-head h4 {
  margin: 0 0 3px;
}
.sa-rule-add {
  flex: 0 0 auto;
  min-height: 34px;
}
.sa-assess-rule-sum {
  padding-top: 14px;
}
.sa-rule-list {
  display: grid;
  gap: 10px;
}
.sa-rule-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 14px 14px 13px;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.sa-rule-card-main {
  min-width: 0;
}
.sa-rule-card-top {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.sa-rule-card-top h5 {
  min-width: 0;
  margin: 0;
  color: #172033;
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: 0;
}
.sa-rule-scope {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 42px;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}
.sa-rule-scope.is-all {
  color: #0f6b61;
  background: #e9f7f3;
  border: 1px solid #b8e2d8;
}
.sa-rule-scope.is-staff {
  color: #2457a7;
  background: #edf4ff;
  border: 1px solid #c7d9f6;
}
.sa-rule-meta {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(190px, 1fr);
  gap: 6px 18px;
  margin-top: 10px;
}
.sa-rule-meta-item {
  min-width: 0;
  color: #4c5b6d;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.sa-rule-meta-item b {
  display: inline-block;
  margin-right: 8px;
  color: #7a8797;
  font-size: 12px;
  font-weight: 600;
}
.sa-rule-tiers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.sa-rule-tiers > span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px 4px 5px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #39485a;
  background: #f8fafc;
  font-size: 12px;
  line-height: 1.35;
}
.sa-rule-tiers i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  border-radius: 50%;
  color: #fff;
  background: #64748b;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}
.sa-rule-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}
.sa-rule-delete {
  color: #b53b35 !important;
}
.sa-rule-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 116px;
  padding: 22px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  text-align: center;
}
.sa-rule-empty strong {
  color: #3f4b5d;
  font-size: 14px;
}
.sa-rule-empty span {
  margin-top: 5px;
  color: #8491a2;
  font-size: 12px;
}

/* 单条规则编辑器 */
.sa-assess-mask .sa-rule-editor {
  width: min(780px, 96vw);
  max-height: min(90vh, 820px);
  border-radius: 8px;
}
.sa-rule-editor-head p {
  margin: 3px 0 0;
  color: #758295;
  font-size: 12px;
}
.sa-rule-editor-body {
  padding: 0 20px;
}
.sa-rule-form-section {
  padding: 18px 0;
  border-bottom: 1px solid #e8edf2;
}
.sa-rule-form-section:last-child {
  border-bottom: 0;
}
.sa-rule-form-label {
  margin-bottom: 10px;
  color: #1d2939;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}
.sa-rule-form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.sa-rule-form-head .sa-rule-form-label {
  margin-bottom: 3px;
}
.sa-rule-form-head > div > span {
  color: #7c8898;
  font-size: 12px;
}
.sa-rule-scope-segment {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 430px);
}
.sa-rule-scope-segment label {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 9px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #d5dee8;
  border-radius: 8px;
  color: #526174;
  background: #fff;
  cursor: pointer;
}
.sa-rule-scope-segment label.is-active {
  border-color: #3b78d8;
  background: #f1f6ff;
  box-shadow: 0 0 0 1px #3b78d8 inset;
}
.sa-rule-scope-segment input {
  grid-row: 1 / span 2;
  align-self: center;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #2563b8;
}
.sa-rule-scope-segment strong {
  color: #243247;
  font-size: 13px;
}
.sa-rule-scope-segment span {
  margin-top: 2px;
  color: #8490a0;
  font-size: 11px;
}
.sa-rule-staff-panel {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  background: #f8fafc;
}
.sa-rule-staff-panel[hidden] {
  display: none !important;
}
.sa-rule-staff-tools {
  display: flex;
  gap: 7px;
  align-items: center;
}
.sa-rule-staff-tools .inline-input {
  flex: 1 1 auto;
  min-width: 120px;
  height: 34px;
}
.sa-rule-staff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  max-height: 190px;
  margin-top: 10px;
  overflow: auto;
}
.sa-rule-staff-grid label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid #e0e7ef;
  border-radius: 6px;
  color: #3d4b5d;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
}
.sa-rule-staff-grid label:has(input:checked) {
  border-color: #91b2e5;
  background: #edf4ff;
  color: #234f91;
}
.sa-rule-staff-grid input {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #2563b8;
}
.sa-rule-staff-grid span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sa-rule-staff-empty {
  grid-column: 1 / -1;
  padding: 18px;
  color: #8793a2;
  text-align: center;
  font-size: 12px;
}
.sa-rule-selected-count {
  min-height: 18px;
  margin-top: 7px;
  color: #52709a;
  font-size: 12px;
  text-align: right;
}
.sa-rule-dates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 12px;
  margin: 0;
}
.sa-rule-dates .sa-field span {
  color: #536174;
  font-weight: 600;
}
.sa-rule-dates .sa-field small {
  margin-left: 4px;
  color: #8a96a5;
  font-size: 11px;
  font-weight: 400;
}
.sa-rule-dates .date-input {
  width: 100%;
  min-width: 0;
  min-height: 36px;
}
.sa-rule-tier-box {
  gap: 8px;
  margin-bottom: 0;
}
.sa-rule-tier-box .sa-assess-tier-row {
  display: grid;
  grid-template-columns: 48px minmax(160px, 1fr) minmax(145px, 0.85fr) minmax(96px, 0.55fr) auto;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  background: #f8fafc;
}
.sa-rule-tier-index {
  align-self: center;
  color: #68768a;
  font-size: 12px;
  font-weight: 700;
}
.sa-rule-tier-box label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #5a687a;
  font-size: 12px;
}
.sa-rule-tier-type,
.sa-rule-tier-value {
  flex-direction: column;
  align-items: stretch !important;
  gap: 4px !important;
}
.sa-rule-tier-threshold input[type="number"] {
  width: 66px;
  flex: 0 0 66px;
}
.sa-rule-tier-box .sa-assess-tier-row input[type="number"],
.sa-rule-tier-box .sa-assess-tier-row select {
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
}
.sa-rule-tier-value input[type="number"] {
  width: 100% !important;
}
.sa-rule-tier-delete {
  min-height: 34px;
  color: #aa3d38 !important;
}
.sa-rule-editor-foot {
  padding: 12px 20px;
  background: #f8fafc;
}

@media (max-width: 760px) {
  .sa-rule-card {
    grid-template-columns: 1fr;
  }
  .sa-rule-meta {
    grid-template-columns: 1fr;
  }
  .sa-rule-actions {
    justify-content: flex-end;
    padding-top: 2px;
  }
  .sa-rule-staff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sa-rule-tier-box .sa-assess-tier-row {
    grid-template-columns: 44px minmax(150px, 1fr) minmax(135px, 1fr);
  }
  .sa-rule-tier-value {
    grid-column: 2;
  }
  .sa-rule-tier-delete {
    grid-column: 3;
    justify-self: end;
  }
}

@media (max-width: 520px) {
  .sa-rule-board-head {
    align-items: flex-end;
  }
  .sa-rule-add {
    min-width: 104px;
  }
  .sa-rule-editor-body {
    padding: 0 14px;
  }
  .sa-rule-scope-segment,
  .sa-rule-dates {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .sa-rule-staff-tools {
    flex-wrap: wrap;
  }
  .sa-rule-staff-tools .inline-input {
    flex-basis: 100%;
  }
  .sa-rule-staff-grid {
    grid-template-columns: 1fr;
  }
  .sa-rule-tier-box .sa-assess-tier-row {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
  .sa-rule-tier-index {
    grid-column: 1 / -1;
  }
  .sa-rule-tier-threshold {
    grid-column: 1 / -1;
  }
  .sa-rule-tier-type,
  .sa-rule-tier-value {
    grid-column: auto;
  }
  .sa-rule-tier-delete {
    grid-column: 2;
  }
  .sa-rule-editor-foot {
    padding-inline: 14px;
  }
}
