/* startup: mission-audit.css */
#admin #upload-pane .upload-mission-audit {
  margin-top: 13px;
  padding: 14px;
  border: 1px solid #b9dfcc;
  border-radius: 13px;
  background: linear-gradient(135deg, #f3fbf7, #fff);
}

#admin #upload-pane .upload-mission-audit.has-warning {
  border-color: #e7c77f;
  background: linear-gradient(135deg, #fffaf0, #fff);
}

#admin #upload-pane .mission-audit-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

#admin #upload-pane .mission-audit-heading div {
  display: grid;
  gap: 3px;
}

#admin #upload-pane .mission-audit-heading b {
  color: #176342;
  font-size: 13px;
}

#admin #upload-pane .upload-mission-audit.has-warning .mission-audit-heading b {
  color: #936018;
}

#admin #upload-pane .mission-audit-heading span,
#admin #upload-pane .mission-audit-heading small {
  color: #64768a;
  font-size: 10px;
  line-height: 1.5;
}

#admin #upload-pane .mission-audit-heading em {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: #dff4e8;
  color: #176342;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

#admin #upload-pane .upload-mission-audit.has-warning .mission-audit-heading em {
  background: #fff0c9;
  color: #86520d;
}

#admin #upload-pane .mission-audit-list {
  display: grid;
  gap: 7px;
  margin-top: 11px;
}

#admin #upload-pane .mission-audit-list article {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) repeat(3, minmax(86px, auto));
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid #ead7ad;
  border-radius: 10px;
  background: #fff;
}

#admin #upload-pane .mission-audit-list article > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

#admin #upload-pane .mission-audit-list b {
  overflow: hidden;
  color: #273b54;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#admin #upload-pane .mission-audit-list small {
  color: #8d651f;
  font-size: 9px;
  line-height: 1.4;
}

#admin #upload-pane .mission-audit-list span {
  display: grid;
  gap: 2px;
  color: #7a899b;
  font-size: 9px;
}

#admin #upload-pane .mission-audit-list strong {
  color: #283f59;
  font-size: 11px;
  white-space: nowrap;
}

@media (max-width: 680px) {
  #admin #upload-pane .mission-audit-heading {
    flex-direction: column;
  }

  #admin #upload-pane .mission-audit-list article {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #admin #upload-pane .mission-audit-list article > div {
    grid-column: 1 / -1;
  }
}

#admin .upload-tax-audit {
  margin-top: 13px;
  padding: 14px;
  border: 1px solid #e7c77f;
  border-radius: 13px;
  background: linear-gradient(135deg, #fff9ec, #fff);
  color: #604517;
}

#admin #upload-pane .upload-review.has-warning {
  border-color: #e7c77f;
  background: linear-gradient(135deg, #fffaf0, #fff);
}

#admin #upload-pane .upload-review.has-warning .upload-review-heading b {
  color: #936018;
}

#admin #upload-pane .upload-review.has-warning .upload-review-heading i {
  background: #fff0c9;
  color: #86520d;
}

#admin .upload-tax-audit[hidden] {
  display: none;
}

#admin .upload-tax-audit-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#admin .upload-tax-audit-heading b {
  font-size: 13px;
}

#admin .upload-tax-audit-heading em {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: #fff0c9;
  color: #86520d;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

#admin .upload-tax-audit p {
  margin: 8px 0 0;
  color: #725a30;
  font-size: 11px;
  line-height: 1.55;
}

#admin .upload-tax-audit-list {
  display: grid;
  gap: 6px;
  max-height: 220px;
  margin: 10px 0 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

#admin .upload-tax-audit-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #f0dfba;
  border-radius: 9px;
  background: #fff;
  color: #35445a;
  font-size: 11px;
}

#admin .upload-tax-audit-list li span {
  min-width: 0;
  overflow-wrap: anywhere;
}

#admin .upload-tax-audit-list li strong {
  flex: 0 0 auto;
  color: #986117;
  font-size: 10px;
}

@media (max-width: 680px) {
  #admin .upload-tax-audit-heading {
    align-items: flex-start;
  }

  #admin .upload-tax-audit-list li {
    align-items: flex-start;
  }
}


/* startup: mission-rules.css */
.mission-rules-manager{margin-top:14px;border:1px solid #dce5f2;border-radius:16px;background:#fff;overflow:hidden}.mission-rules-manager>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 18px;cursor:pointer;list-style:none;background:#f8faff}.mission-rules-manager>summary::-webkit-details-marker{display:none}.mission-rules-manager>summary>span{display:flex;min-width:0;flex-direction:column;gap:4px}.mission-rules-manager>summary b{color:#1a3152;font-size:14px}.mission-rules-manager>summary small{color:#738299;font-size:11px;line-height:1.45}.mission-rules-manager>summary i{display:grid;width:28px;height:28px;place-items:center;flex:0 0 auto;border:1px solid #cfdaeb;border-radius:9px;background:#fff;color:#2d65c7;font-style:normal;font-size:18px;font-weight:800;transition:.18s}.mission-rules-manager[open]>summary i{transform:rotate(45deg)}.mission-rules-body{padding:18px;border-top:1px solid #e5ebf4}.mission-rules-current{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px;border-radius:15px;background:linear-gradient(135deg,#102a4f,#275fae);color:#fff}.mission-rules-current>div{display:flex;min-width:0;flex-direction:column;gap:5px}.mission-rules-current span{color:#91b7f7;font-size:9px;font-weight:850;letter-spacing:.16em}.mission-rules-current b{font-size:16px;line-height:1.4}.mission-rules-current small{color:#c7d8f2;font-size:11px;line-height:1.5}.mission-rules-current em{flex:0 0 auto;padding:7px 10px;border:1px solid rgba(255,255,255,.18);border-radius:999px;background:rgba(255,255,255,.1);font-style:normal;font-size:10px;font-weight:800}.mission-rule-safety-note{display:flex;gap:12px;margin-top:13px;padding:13px 14px;border:1px solid #dce7f7;border-radius:12px;background:#f7faff;font-size:11px;line-height:1.55}.mission-rule-safety-note b{flex:0 0 auto;color:#255dbd}.mission-rule-safety-note span{color:#61718a}.mission-rule-safety-note strong{color:#193a6b}.mission-rule-form{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr;gap:10px;margin-top:14px}.mission-rule-form label{position:relative;margin:0;padding:12px;border:1px solid #e0e7f1;border-radius:12px;background:#fbfcfe;color:#4d5e76;font-size:11px}.mission-rule-form input{margin-top:7px;padding:10px 11px;border-radius:9px;font-size:13px;font-weight:750}.mission-rule-form small{display:block;margin-top:6px;color:#8a96a8;font-size:9px}.mission-rule-actions{display:flex;align-items:center;gap:14px;margin-top:13px}.mission-rule-actions .primary{width:auto;min-width:180px;margin:0;padding:11px 16px}.mission-rule-actions .message{margin:0}.mission-rule-actions .message.success{color:#168453}.mission-rule-history{margin-top:18px;padding-top:17px;border-top:1px solid #e7ecf3}.mission-rule-history>div:first-child{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.mission-rule-history>div:first-child b{color:#253b5a;font-size:13px}.mission-rule-history>div:first-child span{color:#8995a7;font-size:10px}.mission-rule-list{display:grid;gap:8px;margin-top:11px}.mission-rule-row{display:grid;grid-template-columns:minmax(120px,.8fr) repeat(3,minmax(100px,1fr));gap:8px;align-items:center;padding:11px 12px;border:1px solid #e2e8f1;border-radius:11px;background:#fff}.mission-rule-row.current{border-color:#b7cef4;background:#f6f9ff}.mission-rule-row>div{display:flex;min-width:0;flex-direction:column;gap:3px}.mission-rule-row span{color:#8491a4;font-size:9px}.mission-rule-row b{overflow:hidden;color:#263d5e;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.mission-rule-row em{display:inline-flex;width:max-content;padding:3px 6px;border-radius:999px;background:#e8f1ff;color:#2764c8;font-style:normal;font-size:8px;font-weight:850}.mission-rule-empty{margin:0;padding:14px;border-radius:10px;background:#f7f9fc;color:#7d899a;font-size:11px}
@media(max-width:900px){.mission-rule-form{grid-template-columns:1fr 1fr}.mission-rule-row{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.mission-rules-manager>summary{padding:14px}.mission-rules-body{padding:14px}.mission-rules-current{align-items:flex-start;flex-direction:column}.mission-rule-safety-note{flex-direction:column;gap:4px}.mission-rule-form{grid-template-columns:1fr}.mission-rule-actions{align-items:stretch;flex-direction:column}.mission-rule-actions .primary{width:100%}.mission-rule-actions .message{width:100%}.mission-rule-history>div:first-child{align-items:flex-start;flex-direction:column;gap:4px}.mission-rule-row{grid-template-columns:1fr 1fr}.mission-rule-row>div:first-child{grid-column:1/-1}}

.mission-rule-context-form{display:grid;grid-template-columns:minmax(180px,.75fr) minmax(220px,1.25fr);gap:10px;margin-top:14px}.mission-rule-context-form label,.mission-tier-row label{position:relative;margin:0;padding:12px;border:1px solid #e0e7f1;border-radius:12px;background:#fbfcfe;color:#4d5e76;font-size:11px}.mission-rule-context-form input,.mission-rule-context-form select,.mission-tier-row input{width:100%;margin-top:7px;padding:10px 11px;border:1px solid #d8e1ee;border-radius:9px;background:#fff;color:#1d3353;font-size:13px;font-weight:750}.mission-rule-form{grid-template-columns:repeat(3,minmax(0,1fr))}.mission-tier-editor{margin-top:14px;padding:14px;border:1px solid #dce6f4;border-radius:14px;background:#f8faff}.mission-tier-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.mission-tier-heading>div{display:flex;min-width:0;flex-direction:column;gap:4px}.mission-tier-heading b{color:#1d385e;font-size:13px}.mission-tier-heading span{color:#74839a;font-size:10px;line-height:1.5}.mission-tier-heading button,.mission-tier-remove{flex:0 0 auto;border:1px solid #c8d8ef;border-radius:9px;background:#fff;color:#2762be;font-size:11px;font-weight:800;cursor:pointer}.mission-tier-heading button{padding:9px 12px}.mission-tier-list{display:grid;gap:8px;margin-top:12px}.mission-tier-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:8px;align-items:stretch}.mission-tier-row label{padding:9px 11px}.mission-tier-row input{margin-top:5px;padding:9px 10px}.mission-tier-remove{align-self:stretch;min-width:54px;padding:0 10px;color:#b34b4b}.mission-tier-empty{margin:0;padding:14px;border-radius:10px;background:#fff;color:#7d899a;font-size:11px;text-align:center}
.mission-rule-row b.mission-rule-tier-summary{overflow:visible;line-height:1.45;text-overflow:clip;white-space:normal;overflow-wrap:anywhere}
@media(max-width:900px){.mission-rule-context-form{grid-template-columns:1fr 1fr}.mission-rule-form{grid-template-columns:1fr 1fr}.mission-rule-form label:last-child{grid-column:1/-1}}
@media(max-width:560px){.mission-rule-context-form,.mission-rule-form{grid-template-columns:1fr}.mission-rule-form label:last-child{grid-column:auto}.mission-tier-heading{align-items:flex-start;flex-direction:column}.mission-tier-heading button{width:100%}.mission-tier-row{grid-template-columns:1fr 1fr}.mission-tier-remove{grid-column:1/-1;min-height:38px}}

.mission-rules-manager.is-always-open>summary{pointer-events:none;cursor:default;user-select:none}.mission-rules-manager.is-always-open>summary i{display:none}

/* Reuse the operating sub-menu palette; only these two labels need an equal,
   wrapping layout. Both forms stay mounted and only the selected one is shown. */
.partner-mission-tabs.partner-mission-settings-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.partner-mission-settings-tabs>button{min-width:0;min-height:44px;white-space:normal;word-break:keep-all;overflow-wrap:anywhere}
[data-partner-mission-settings][hidden]{display:none!important}
@media(max-width:480px){.partner-mission-settings-tabs>button{padding:12px 8px;font-size:12px;line-height:1.5}}

.partner-mission-tabs{display:flex;gap:6px;margin:0 0 20px;border-bottom:1px solid #dce5f2}.partner-mission-tabs button{margin:0 0 -1px;padding:13px 18px;border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;color:#71829b;font-size:13px;font-weight:750;cursor:pointer}.partner-mission-tabs button.active{border-bottom-color:#2d65c7;color:#2257a4}.partner-mission-tabs button:focus-visible,.mission-payout-matches button:focus-visible{outline:3px solid #a7c5ff;outline-offset:2px}.mission-payout-panel>.event-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.mission-payout-panel>.event-panel-heading>button{flex:0 0 auto;width:auto;padding:10px 14px;border:1px solid #d5e0ef;border-radius:10px;background:#fff;color:#285fba;font-size:12px;cursor:pointer}.mission-payout-note{margin:0 0 18px;padding:12px 14px;border:1px solid #e0e8f5;border-radius:12px;background:#f7faff;color:#62758e;font-size:12px;line-height:1.65}.mission-payout-editor{padding:20px;border:1px solid #dce5f2;border-radius:15px;background:#fff}.mission-payout-picker>label,.mission-payout-form label{display:block;margin:0;color:#3b5271;font-size:12px;font-weight:700}.mission-payout-picker>input,.mission-payout-form input,.mission-payout-form select{box-sizing:border-box;width:100%;margin-top:7px;padding:12px;border:1px solid #d6e0ee;border-radius:10px;background:#fff;color:#213b5d;font-size:13px}.mission-payout-picker>input{max-width:560px}.mission-payout-matches{max-width:560px;max-height:260px;overflow-y:auto;margin-top:6px;border:1px solid #d6e0ee;border-radius:10px;background:#fff}.mission-payout-matches[hidden]{display:none}.mission-payout-matches>button{display:flex;width:100%;align-items:flex-start;flex-direction:column;gap:4px;padding:11px 13px;border:0;border-bottom:1px solid #edf1f7;border-radius:0;background:#fff;color:#284565;text-align:left;cursor:pointer}.mission-payout-matches>button:hover{background:#f2f7ff}.mission-payout-matches>button:last-child{border-bottom:0}.mission-payout-matches b{font-size:13px}.mission-payout-matches small{color:#77879d;font-size:11px;overflow-wrap:anywhere}.mission-payout-matches>p{margin:0;padding:13px;color:#7c8ba0;font-size:12px}.mission-payout-selection{margin:10px 0 18px;color:#2d5d9f;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.mission-payout-form{display:grid;grid-template-columns:1.15fr 1.2fr .8fr;gap:14px}.mission-payout-form label>small{display:block;margin-top:6px;color:#7d8ca0;font-size:10px;font-weight:400}.mission-payout-form .mission-payout-reason{grid-column:1/-1}.mission-payout-current{margin:16px 0;color:#667c96;font-size:12px;line-height:1.6}.mission-payout-actions{display:flex;flex-wrap:wrap;gap:9px}.mission-payout-actions>button{width:auto;margin:0;padding:11px 18px;border:1px solid #cfdbed;border-radius:10px;background:#fff;color:#3565a4;font-size:12px;font-weight:700;cursor:pointer}.mission-payout-actions>button.primary{border-color:#2d65c7;background:#2d65c7;color:#fff}.mission-payout-actions>button:disabled,.mission-payout-panel>.event-panel-heading>button:disabled{opacity:.48;cursor:not-allowed}.mission-payout-editor>.message{margin:12px 0 0;font-size:12px;line-height:1.6}.mission-payout-editor>.message.success{color:#168453}.mission-payout-history{margin-top:24px}.mission-payout-history h4{margin:0;color:#29425f;font-size:14px}.mission-payout-history>div>p{margin:6px 0 12px;color:#7a8ba2;font-size:11px;line-height:1.6}.mission-payout-history-list{display:grid;gap:8px;max-height:480px;overflow-y:auto}.mission-payout-history-row{display:grid;grid-template-columns:minmax(100px,.8fr) minmax(150px,1fr) 60px minmax(120px,1.5fr);gap:12px;align-items:center;padding:14px;border:1px solid #e0e8f2;border-radius:11px;background:#fff}.mission-payout-history-row>div{display:flex;min-width:0;flex-direction:column;gap:5px;color:#536c8a;font-size:12px;overflow-wrap:anywhere}.mission-payout-history-row b{color:#29425f}.mission-payout-history-row small{color:#8191a5;font-size:10px;line-height:1.5}.mission-payout-history-row strong{justify-self:center;color:#275faa;font-size:16px}
@media(max-width:760px){.mission-payout-editor{padding:15px}.mission-payout-form{grid-template-columns:1fr 1fr}.mission-payout-history-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 48px}.mission-payout-history-row>div:last-child{grid-column:1/-1;padding-top:8px;border-top:1px solid #edf1f7}.mission-payout-form .mission-payout-reason{grid-column:1/-1}}
@media(max-width:480px){.partner-mission-tabs button{flex:1;padding:12px 8px;font-size:12px}.mission-payout-panel>.event-panel-heading{align-items:flex-start}.mission-payout-panel>.event-panel-heading>button{padding:9px 10px;font-size:11px}.mission-payout-form{grid-template-columns:1fr}.mission-payout-form .mission-payout-reason{grid-column:auto}.mission-payout-actions>button{flex:1;padding:12px 10px}.mission-payout-history-row{gap:8px;padding:12px}.mission-payout-note{font-size:11px}}
.mission-payout-priority{margin:-8px 0 16px;color:#8190a5;font-size:11px;line-height:1.6}
.mission-payout-save-target{flex:1 1 240px;min-width:0;align-self:center;margin:0;padding:10px 12px;border:1px solid #dce5f2;border-radius:10px;color:#71839a;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.mission-payout-save-target.is-selected{border-color:#a9c4eb;color:#234f8b;font-weight:750}
@media(max-width:480px){.mission-payout-actions>.mission-payout-save-target{flex-basis:100%}}

.mission-payout-registry{margin:0 0 20px;padding:20px;border:1px solid #dce5f2;border-radius:15px;background:#fff}.mission-payout-registry-heading h4{margin:0;color:#29425f;font-size:14px}.mission-payout-registry-heading p{margin:6px 0 16px;color:#71839a;font-size:12px;line-height:1.6}.mission-payout-view-filters{display:grid;grid-template-columns:minmax(180px,.65fr) minmax(0,1.35fr);gap:14px}.mission-payout-view-filters label{display:block;min-width:0;margin:0;color:#3b5271;font-size:12px;font-weight:700}.mission-payout-view-filters input{box-sizing:border-box;width:100%;min-width:0;margin-top:7px;padding:12px;border:1px solid #d6e0ee;border-radius:10px;background:#fff;color:#213b5d;font-size:13px}.mission-payout-registered-summary{margin:14px 0 12px;color:#607a9a;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.mission-payout-registered-list{display:grid;gap:10px}.mission-payout-registered-row{display:grid;grid-template-columns:minmax(130px,1fr) minmax(200px,1.4fr) auto;gap:14px;align-items:center;padding:16px;border:1px solid #dce6f3;border-radius:12px;background:#fbfdff}.mission-payout-registered-identity{display:flex;min-width:0;flex-direction:column;gap:5px;color:#29425f;font-size:13px;overflow-wrap:anywhere}.mission-payout-registered-identity small{color:#788ba3;font-size:11px;line-height:1.5}.mission-payout-rates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0}.mission-payout-rate{display:flex;min-width:0;flex-direction:column;gap:5px;padding:10px 12px;border:1px solid #e0e8f4;border-radius:10px;background:#fff;color:#71839b;font-size:11px;line-height:1.5;overflow-wrap:anywhere}.mission-payout-rate strong,.mission-payout-rate b{color:#275faa;font-size:18px;font-weight:800}.mission-payout-rate small{color:#7b8da3;font-size:10px;line-height:1.5}.mission-payout-row-note{grid-column:1/-1;margin:0;padding-top:10px;border-top:1px solid #e5ecf6;color:#7b8ca1;font-size:11px;line-height:1.6;overflow-wrap:anywhere}.mission-payout-registered-row>button,.mission-payout-selection-row>button,.mission-payout-history-heading>button{width:auto;margin:0;padding:10px 13px;border:1px solid #cfdbed;border-radius:10px;background:#fff;color:#3565a4;font-size:12px;font-weight:700;line-height:1.4;cursor:pointer}.mission-payout-registered-row>button{white-space:nowrap}.mission-payout-view-message{margin:12px 0 0;color:#aa4e38;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.mission-payout-selection-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 18px}.mission-payout-selection-row>.mission-payout-selection{min-width:0;margin:0}.mission-payout-selection-row>button{flex:0 0 auto}.mission-payout-history-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.mission-payout-history-heading>div{min-width:0}.mission-payout-history-heading p{margin:6px 0 0;color:#7a8ba2;font-size:11px;line-height:1.6;overflow-wrap:anywhere}.mission-payout-history-heading>button{flex:0 0 auto}.mission-payout-history-note{margin:7px 0 12px;color:#7a8ba2;font-size:11px;line-height:1.6}.mission-payout-registry input:focus-visible,.mission-payout-registered-row>button:focus-visible,.mission-payout-selection-row>button:focus-visible,.mission-payout-history-heading>button:focus-visible,.mission-payout-actions>button:focus-visible,.mission-payout-editor input:focus-visible,.mission-payout-editor select:focus-visible{outline:3px solid #a7c5ff;outline-offset:2px}.mission-payout-registered-row>button:hover,.mission-payout-selection-row>button:hover,.mission-payout-history-heading>button:hover{background:#f2f7ff}.mission-payout-registered-row>button:disabled,.mission-payout-selection-row>button:disabled,.mission-payout-history-heading>button:disabled{opacity:.48;cursor:not-allowed;background:#f6f8fb}
.mission-payout-registered-row>button{grid-column:3;grid-row:1}.mission-payout-rate em{font-style:normal}.mission-payout-registered-row.is-selected{border-color:#92b5e7;box-shadow:0 0 0 1px #dce9fc;background:#f5f9ff}
@media(max-width:760px){.mission-payout-registry{padding:15px}.mission-payout-view-filters{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:12px}.mission-payout-registered-row{grid-template-columns:minmax(0,1fr) auto;padding:14px;gap:12px}.mission-payout-registered-identity{grid-column:1;grid-row:1}.mission-payout-registered-row>button{grid-column:2;grid-row:1}.mission-payout-rates{grid-column:1/-1}.mission-payout-row-note{grid-column:1/-1}}
@media(max-width:480px){.mission-payout-view-filters{grid-template-columns:minmax(0,1fr)}.mission-payout-registered-row{grid-template-columns:minmax(0,1fr);padding:12px}.mission-payout-registered-identity{grid-column:auto;grid-row:auto}.mission-payout-rates{gap:8px}.mission-payout-rate{padding:10px}.mission-payout-registered-row>button{grid-column:1;grid-row:auto;justify-self:stretch;white-space:normal}.mission-payout-selection-row{align-items:flex-start;flex-direction:column;gap:8px}.mission-payout-selection-row>button{align-self:flex-start}.mission-payout-history-heading{flex-direction:column;gap:10px}.mission-payout-history-heading>button{align-self:flex-start}.mission-payout-registry-heading p,.mission-payout-registered-summary{font-size:11px}}

.mission-payment-tabs[hidden],.mission-payment-tabs [hidden]{display:none!important}.mission-payment-tabs>button{min-width:0;white-space:normal;overflow-wrap:anywhere}.mission-payment-tabs>button:disabled{opacity:.48;cursor:not-allowed}
@media(max-width:480px){.mission-payment-tabs{gap:4px}.mission-payment-tabs>button{flex:1;min-height:44px;padding:12px 8px;font-size:12px;line-height:1.5}}

.mission-payout-editor-title{margin:0 0 17px;color:#29425f;font-size:14px;line-height:1.5}details.mission-payout-registry{margin:18px 0 0;padding:0;overflow:hidden}.mission-payout-registry>summary{box-sizing:border-box;display:flex;min-height:44px;align-items:center;justify-content:space-between;gap:14px;padding:16px 20px;list-style:none;background:#f7faff;cursor:pointer}.mission-payout-registry>summary::-webkit-details-marker{display:none}.mission-payout-registry>summary>span{display:flex;min-width:0;flex-direction:column;gap:5px;overflow-wrap:anywhere}.mission-payout-registry>summary b{color:#29425f;font-size:14px;line-height:1.5}.mission-payout-registry>summary small{color:#71839a;font-size:11px;line-height:1.6}.mission-payout-registry>summary i{display:grid;width:28px;height:28px;place-items:center;flex:0 0 auto;border:1px solid #d0dff2;border-radius:8px;background:#fff;color:#3565a4;font-size:19px;font-style:normal;font-weight:800;line-height:1;transition:transform .18s ease}.mission-payout-registry[open]>summary i{transform:rotate(180deg)}.mission-payout-registry>summary:hover{background:#f0f6ff}.mission-payout-registry>summary:focus-visible{outline:3px solid #a7c5ff;outline-offset:-3px}.mission-payout-registry-body{padding:20px;border-top:1px solid #e0e8f4}
@media(max-width:760px){.mission-payout-registry>summary{padding:14px 15px}.mission-payout-registry-body{padding:15px}}
@media(max-width:480px){.mission-payout-registry>summary{gap:10px}.mission-payout-registry>summary b{font-size:13px}.mission-payout-registry>summary small{font-size:10px}.mission-payout-editor-title{margin-bottom:14px}}
@media(prefers-reduced-motion:reduce){.mission-payout-registry>summary i{transition:none}}

/* Explicit Baemin mission-rule correction, separate from new effective-week rules. */
.mission-rule-edit-actions{grid-column:1/-1;display:flex!important;align-items:center;justify-content:flex-end;flex-direction:row!important;gap:12px;padding-top:9px;border-top:1px solid #e2e8f1}.mission-rule-edit-actions small{color:#667a94;font-size:11px;line-height:1.5}.mission-rule-edit-actions button,.mission-rule-edit-cancel{min-height:44px;padding:10px 16px;border:1px solid #becfe5;border-radius:9px;background:#fff;color:#24578f;font-size:12px;font-weight:750;cursor:pointer}.mission-rule-edit-actions button:focus-visible,.mission-rule-edit-cancel:focus-visible{outline:3px solid #9fc2f4;outline-offset:2px}.mission-rule-edit-actions button:disabled,.mission-rule-edit-cancel:disabled{opacity:.5;cursor:not-allowed}.mission-rule-edit-notice{margin:14px 0 0;padding:13px 15px;border:1px solid #b8cdeb;border-radius:12px;background:#edf4ff;color:#264b78;font-size:12px;line-height:1.7;overflow-wrap:anywhere}.mission-rule-edit-notice[hidden],.mission-rule-edit-cancel[hidden]{display:none!important}@media(max-width:560px){.mission-rule-edit-actions{justify-content:space-between}.mission-rule-edit-cancel{width:100%}}

/* mission-payment-roles-v1: scoped layout only; existing colors/active styles stay. */
#admin #rejection-management-pane .mission-payment-tabs[data-mission-payment-layout="roles"]{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px;overflow:visible}
#admin #rejection-management-pane .mission-payment-tabs[data-mission-payment-layout="roles"]>button{min-width:0;min-height:48px;white-space:normal;word-break:keep-all;overflow-wrap:anywhere;line-height:1.5}
@media(max-width:800px){
#admin #rejection-management-pane .mission-payment-tabs[data-mission-payment-layout="roles"]{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
#admin #rejection-management-pane .ba-activity-week-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;align-items:start}
#admin #rejection-management-pane .ba-activity-week-tools>label:first-child{grid-column:1/-1;min-width:0;width:100%;max-width:none}
#admin #rejection-management-pane .ba-activity-week-tools>label:first-child input{box-sizing:border-box;min-width:0;width:100%;max-width:none}
#admin #rejection-management-pane .ba-activity-week-tools>.ba-activity-check{min-width:0;white-space:normal;align-items:center}
#admin #rejection-management-pane .ba-activity-week-tools>.ba-activity-check input[type="checkbox"]{flex:0 0 auto}
}

/* platform-rejection-v2: nested platform navigation; no financial rules. */
#admin #rejection-management-pane .baemin-rejection-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 16px}
#admin #rejection-management-pane .baemin-rejection-tabs>button{min-width:0;min-height:44px;white-space:normal;word-break:keep-all;line-height:1.5}
#admin #rejection-management-pane .rejection-platforms[hidden]{display:none!important}


/* startup: event-management.css */
.event-management-pane {
  --event-navy: #132b50;
  --event-blue: #2f6fdf;
  --event-blue-soft: #eef5ff;
  --event-line: #dbe5f2;
  --event-muted: #6d7f96;
  --event-surface: #f7f9fc;
  overflow: hidden;
}

.event-management-pane [hidden] {
  display: none !important;
}

.event-management-title {
  margin-bottom: 18px;
}

.event-management-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
  padding: 7px;
  border: 1px solid var(--event-line);
  border-radius: 18px;
  background: #f4f7fb;
}

.event-management-tabs button {
  position: relative;
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 94px;
  padding: 17px 20px 17px 22px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #60748e;
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}

.event-management-tabs button::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 3px;
  border-radius: 0 5px 5px 0;
  background: transparent;
}

.event-management-tabs button > span,
.event-panel-heading > div > span,
.referral-card-heading > div > span,
.referral-progress-heading > div > span {
  color: #7890ae;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .13em;
}

.event-management-tabs button > b {
  color: inherit;
  font-size: 16px;
  line-height: 1.35;
}

.event-management-tabs button > small {
  overflow: hidden;
  color: #8392a5;
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-management-tabs button:hover,
.event-management-tabs button:focus-visible {
  border-color: #cbd9ea;
  background: rgba(255, 255, 255, .72);
  outline: none;
}

.event-management-tabs button.active,
.event-management-tabs button[aria-selected="true"] {
  border-color: #cbdcf3;
  color: var(--event-navy);
  background: #fff;
  box-shadow: 0 9px 24px rgba(29, 67, 116, .09);
}

.event-management-tabs button.active::before,
.event-management-tabs button[aria-selected="true"]::before {
  background: var(--event-blue);
}

.event-management-panel {
  min-width: 0;
}

.event-panel-heading,
.referral-card-heading,
.referral-progress-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.event-panel-heading {
  margin-bottom: 14px;
  padding: 0 2px;
}

.event-panel-heading h3,
.referral-card-heading h4,
.referral-progress-heading h4 {
  margin: 5px 0 0;
  color: var(--event-navy);
  line-height: 1.35;
}

.event-panel-heading h3 {
  font-size: 19px;
}

.event-panel-heading p,
.referral-card-heading p,
.referral-progress-heading p {
  margin: 5px 0 0;
  color: var(--event-muted);
  font-size: 12px;
  line-height: 1.65;
}

.event-mission-setting {
  margin-top: 0;
}

.event-referral-heading {
  align-items: center;
  margin-bottom: 16px;
  padding: 18px 20px;
  border: 1px solid #d5e1ef;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
}

#referral-rule-current-badge {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid #c9daef;
  border-radius: 999px;
  color: #4b6686;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
  background: #fff;
}

.referral-rule-workspace,
.referral-link-workspace,
.referral-progress-workspace {
  min-width: 0;
  margin-top: 14px;
  padding: 22px;
  border: 1px solid var(--event-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(27, 58, 99, .055);
}

.referral-card-heading h4,
.referral-progress-heading h4 {
  font-size: 18px;
}

#referral-rule-current-title {
  max-width: 48%;
  padding: 9px 12px;
  border-radius: 10px;
  color: #315b92;
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
  background: var(--event-blue-soft);
}

.referral-rule-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.referral-rule-form label,
.referral-link-form label,
.referral-progress-tools label {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  color: #40546d;
  font-size: 12px;
  font-weight: 800;
}

.referral-rule-form input,
.referral-rule-form select,
.referral-link-form input,
.referral-link-form select,
.referral-progress-tools input,
.referral-progress-tools select {
  width: 100%;
  min-width: 0;
  height: 45px;
  box-sizing: border-box;
  padding: 0 12px;
  border: 1px solid #d4dfec;
  border-radius: 10px;
  color: #172e4e;
  font: inherit;
  font-weight: 700;
  background: #fff;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.referral-rule-form input:focus,
.referral-rule-form select:focus,
.referral-link-form input:focus,
.referral-link-form select:focus,
.referral-progress-tools input:focus,
.referral-progress-tools select:focus {
  border-color: #75a1e7;
  box-shadow: 0 0 0 3px rgba(47, 111, 223, .1);
}

.referral-rule-form label > small {
  min-height: 31px;
  color: #8593a5;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.45;
}

.referral-tax-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #d7e4f4;
  border-radius: 13px;
  background: #f6f9fe;
}

.referral-tax-preview > span {
  flex: 0 0 auto;
  color: #516984;
  font-size: 11px;
  font-weight: 800;
}

.referral-tax-preview dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 8px;
  width: min(100%, 580px);
  margin: 0;
}

.referral-tax-preview dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 0 10px;
  border-left: 1px solid #d9e4f0;
}

.referral-tax-preview dt {
  color: #708198;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.referral-tax-preview dd {
  margin: 0;
  color: #203c62;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

#referral-rule-example-net {
  color: #1f63c9;
}

.referral-rule-actions {
  display: grid;
  grid-template-columns: minmax(190px, 280px) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.referral-rule-actions .primary,
.referral-link-form .primary {
  min-height: 46px;
  border-radius: 11px;
}

.referral-link-form-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

.referral-link-form-actions .primary {
  flex: 1 1 auto;
}

#cancel-referral-link-edit {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid #cfdcea;
  border-radius: 11px;
  color: #49627e;
  font-size: 11px;
  font-weight: 800;
  background: #fff;
  cursor: pointer;
}

#cancel-referral-link-edit:hover,
#cancel-referral-link-edit:focus-visible {
  border-color: #9eb7d2;
  background: #f4f8fc;
}

#cancel-referral-link-edit[hidden] {
  display: none !important;
}

.referral-rule-action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.referral-rule-action-buttons .primary {
  flex: 1 1 auto;
}

#cancel-referral-rule-edit {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 15px;
  border: 1px solid #cbd8e8;
  border-radius: 11px;
  color: #526a86;
  font-size: 11px;
  font-weight: 850;
  background: #fff;
  cursor: pointer;
}

#cancel-referral-rule-edit:hover,
#cancel-referral-rule-edit:focus-visible {
  border-color: #8ba6c8;
  background: #f4f8fd;
  outline: none;
}

.referral-rule-actions .message,
.referral-link-workspace > .message,
.referral-progress-workspace > .message {
  margin: 0;
}

.referral-rule-history {
  margin-top: 16px;
  border-top: 1px solid #e3eaf3;
}

.referral-rule-history summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  color: #2c4768;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.referral-rule-history summary::-webkit-details-marker {
  display: none;
}

.referral-rule-history summary > span {
  color: #8593a5;
  font-size: 10px;
  font-weight: 600;
}

.referral-rule-history summary > i {
  margin-left: auto;
  color: #55749a;
  font-style: normal;
  font-size: 18px;
}

.referral-rule-history[open] summary > i {
  transform: rotate(45deg);
}

#referral-rule-list {
  display: grid;
  gap: 8px;
  padding: 0 0 12px;
}

.referral-rule-history-item {
  display: grid;
  grid-template-columns: minmax(130px, .8fr) repeat(4, minmax(90px, 1fr));
  gap: 8px;
  padding: 12px;
  border: 1px solid #e0e8f2;
  border-radius: 11px;
  color: #425a76;
  font-size: 11px;
  background: #f9fbfd;
}

.referral-rule-history-item > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.referral-rule-history-item > div:last-child {
  grid-column: 2 / -1;
  text-align: right;
}

.referral-rule-history-item b,
.referral-rule-history-item strong {
  color: #183557;
}

.referral-rule-history-item span {
  color: #708198;
  line-height: 1.45;
}

.referral-link-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(150px, .7fr) minmax(160px, .65fr);
  align-items: end;
  gap: 10px;
  margin-top: 18px;
}

.referral-link-picker {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
}

.referral-link-picker:focus-within {
  position: relative;
  z-index: 2;
}

.referral-link-search-field {
  position: relative;
  min-width: 0;
}

.referral-link-matches {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  z-index: 3;
  display: grid;
  gap: 5px;
  max-height: 240px;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid #ccd9e9;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(27, 58, 99, .15);
}

.referral-link-matches[hidden],
.referral-link-picker select[hidden] {
  display: none;
}

.referral-link-matches button {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #172d4b;
  text-align: left;
  cursor: pointer;
}

.referral-link-matches button:hover,
.referral-link-matches button:focus-visible {
  outline: 2px solid #b8d1f7;
  background: #edf4ff;
}

.referral-link-matches button strong {
  font-size: 12px;
}

.referral-link-matches button small {
  color: #647992;
  font-size: 10px;
  line-height: 1.4;
}

.referral-link-picker > small {
  min-height: 15px;
  color: #74869d;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.45;
}

@media (min-width: 1101px) {
  .referral-link-form > label,
  .referral-link-form-actions {
    margin-bottom: 22px;
  }
}

.referral-link-workspace > .message {
  margin-top: 10px;
}

.referral-progress-heading {
  align-items: center;
}

#refresh-referral-progress {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #cedbea;
  border-radius: 10px;
  color: #355478;
  font-size: 11px;
  font-weight: 800;
  background: #fff;
  cursor: pointer;
}

.referral-progress-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.referral-progress-summary article {
  display: grid;
  gap: 6px;
  padding: 15px;
  border: 1px solid #dce6f1;
  border-radius: 13px;
  background: var(--event-surface);
}

.referral-progress-summary span {
  color: #77889d;
  font-size: 10px;
  font-weight: 800;
}

.referral-progress-summary strong {
  color: var(--event-navy);
  font-size: 20px;
  line-height: 1.2;
}

.referral-progress-summary article:nth-child(3) strong,
.referral-progress-summary article:nth-child(4) strong {
  color: #2265ca;
}

.referral-progress-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 220px);
  gap: 10px;
  margin-top: 14px;
  padding: 13px;
  border: 1px solid #e0e8f1;
  border-radius: 13px;
  background: #fafbfd;
}

.referral-progress-tools label {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.referral-progress-tools label > span {
  white-space: nowrap;
}

.referral-progress-tools input,
.referral-progress-tools select {
  height: 40px;
}

.referral-progress-table {
  overflow-x: auto;
  margin-top: 14px;
  border: 1px solid #dce5ef;
  border-radius: 14px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.referral-progress-table-head,
.referral-progress-row {
  display: grid;
  grid-template-columns: minmax(112px, 1.15fr) minmax(112px, 1.15fr) 66px 66px 72px 72px minmax(92px, .85fr) minmax(82px, .75fr) minmax(92px, .85fr) 82px minmax(108px, .9fr);
  align-items: center;
  min-width: 1120px;
}

.referral-progress-table-head {
  min-height: 42px;
  border-bottom: 1px solid #dde6f0;
  color: #667b95;
  font-size: 10px;
  font-weight: 800;
  background: #f3f6fa;
}

.referral-progress-table-head span,
.referral-progress-row > * {
  min-width: 0;
  padding: 10px 8px;
  box-sizing: border-box;
  text-align: center;
}

.referral-progress-row {
  min-height: 66px;
  border-bottom: 1px solid #e7edf4;
  color: #344c69;
  font-size: 11px;
}

.referral-progress-row:last-child {
  border-bottom: 0;
}

.referral-progress-row:hover {
  background: #fbfdff;
}

.referral-progress-row .referral-rider-cell {
  display: grid;
  gap: 3px;
  text-align: left;
}

.referral-rider-cell b {
  overflow: hidden;
  color: #142e50;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.referral-rider-cell small {
  overflow: hidden;
  color: #8796a8;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.referral-review-warning {
  color: #a4511f !important;
  font-weight: 800;
  white-space: normal !important;
}

.referral-target-progress {
  display: grid;
  gap: 4px;
}

.referral-target-progress > b {
  color: #17385f;
  font-size: 10px;
  white-space: nowrap;
}

.referral-target-progress > span {
  overflow: hidden;
  height: 4px;
  border-radius: 999px;
  background: #e5edf7;
}

.referral-target-progress > span > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #2f6fdf;
}

.referral-target-progress > small,
.referral-progress-row [data-label="세금"] small {
  color: #8494a8;
  font-size: 8px;
}

.referral-net-amount {
  color: #165fc7;
}

.referral-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 0 8px;
  border-radius: 999px;
  color: #315b8f;
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
  background: #eaf2fd;
}

.referral-status-badge.is-achieved {
  color: #146344;
  background: #e7f7ef;
}

.referral-status-badge.is-held {
  color: #9a4f1f;
  background: #fff0e5;
}

.referral-status-badge.is-paid {
  color: #5a438d;
  background: #f0eafe;
}

.referral-status-badge.is-cancelled {
  color: #7a8797;
  background: #edf1f5;
}

.referral-progress-actions {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.referral-progress-actions button {
  min-height: 28px;
  padding: 0 7px;
  border: 1px solid #cfdcea;
  border-radius: 7px;
  color: #365776;
  font-size: 9px;
  font-weight: 800;
  background: #fff;
  cursor: pointer;
}

.referral-progress-actions button.primary {
  border-color: #2f6fdf;
  color: #fff;
  background: #2f6fdf;
}

.referral-progress-actions button.danger {
  border-color: #efcfcd;
  color: #ae413a;
  background: #fff6f5;
}

.referral-action-complete,
.referral-action-review {
  color: #7b8ba0;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.4;
}

.referral-action-review {
  color: #a4511f;
}

.referral-progress-empty {
  margin: 0;
  padding: 34px 20px;
  color: #8795a7;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 1100px) {
  .referral-rule-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .referral-link-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .event-management-title {
    margin-bottom: 12px;
  }

  .event-management-tabs {
    gap: 7px;
    margin-bottom: 16px;
    padding: 5px;
    border-radius: 14px;
  }

  .event-management-tabs button {
    min-height: 78px;
    padding: 13px 11px 13px 14px;
    border-radius: 10px;
  }

  .event-management-tabs button::before {
    top: 14px;
    bottom: 14px;
  }

  .event-management-tabs button > span {
    font-size: 8px;
    letter-spacing: .08em;
  }

  .event-management-tabs button > b {
    font-size: 13px;
  }

  .event-management-tabs button > small {
    font-size: 9px;
  }

  .event-panel-heading {
    margin-bottom: 10px;
  }

  .event-panel-heading h3 {
    font-size: 16px;
  }

  .event-referral-heading {
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
    border-radius: 14px;
  }

  .event-referral-heading p {
    font-size: 11px;
  }

  #referral-rule-current-badge {
    padding: 6px 8px;
    font-size: 9px;
  }

  .referral-rule-workspace,
  .referral-link-workspace,
  .referral-progress-workspace {
    margin-top: 10px;
    padding: 16px;
    border-radius: 15px;
  }

  .referral-card-heading,
  .referral-progress-heading {
    gap: 10px;
  }

  .referral-card-heading h4,
  .referral-progress-heading h4 {
    font-size: 16px;
  }

  #referral-rule-current-title {
    display: none;
  }

  .referral-rule-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 15px;
  }

  .referral-rule-form label:last-child {
    grid-column: 1 / -1;
  }

  .referral-rule-form input,
  .referral-rule-form select,
  .referral-link-form input,
  .referral-link-form select {
    height: 43px;
    padding: 0 10px;
  }

  .referral-tax-preview {
    display: grid;
    gap: 9px;
    padding: 13px;
  }

  .referral-tax-preview dl {
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
  }

  .referral-tax-preview dl > div {
    padding: 7px 2px;
    border-top: 1px solid #e0e8f2;
    border-left: 0;
  }

  .referral-rule-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .referral-rule-history summary {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 13px 0;
  }

  .referral-rule-history summary > span {
    order: 3;
    width: 100%;
  }

  .referral-rule-history summary > i {
    order: 2;
  }

  .referral-rule-history-item {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .referral-link-form {
    grid-template-columns: 1fr;
    margin-top: 15px;
  }

  .referral-link-form-actions {
    width: 100%;
  }

  #refresh-referral-progress {
    min-height: 34px;
    padding: 0 10px;
    font-size: 10px;
  }

  .referral-progress-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 15px;
  }

  .referral-progress-summary article {
    padding: 12px;
  }

  .referral-progress-summary strong {
    font-size: 17px;
  }

  .referral-progress-tools {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .referral-progress-tools label {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .referral-progress-table {
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  .referral-progress-table-head {
    display: none;
  }

  .referral-progress-list {
    display: grid;
    gap: 10px;
  }

  .referral-progress-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
    padding: 11px;
    border: 1px solid #dbe5f0;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(30, 60, 101, .05);
  }

  .referral-progress-row > * {
    display: grid;
    gap: 3px;
    padding: 7px;
    text-align: left;
  }

  .referral-progress-row > *::before {
    color: #8997a8;
    font-size: 8px;
    font-weight: 800;
  }

  .referral-progress-row > *:nth-child(1)::before { content: "추천 기사"; }
  .referral-progress-row > *:nth-child(2)::before { content: "초대 기사"; }
  .referral-progress-row > *:nth-child(3)::before { content: "배민 건수"; }
  .referral-progress-row > *:nth-child(4)::before { content: "쿠팡 건수"; }
  .referral-progress-row > *:nth-child(5)::before { content: "합계"; }
  .referral-progress-row > *:nth-child(6)::before { content: "목표"; }
  .referral-progress-row > *:nth-child(7)::before { content: "총 미션금"; }
  .referral-progress-row > *:nth-child(8)::before { content: "세금"; }
  .referral-progress-row > *:nth-child(9)::before { content: "실지급"; }
  .referral-progress-row > *:nth-child(10)::before { content: "상태"; }

  .referral-progress-row > *:nth-child(11) {
    grid-column: 1 / -1;
  }

  .referral-progress-row > *:nth-child(11)::before {
    content: "처리";
  }

  .referral-progress-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 430px) {
  .event-management-tabs button > small {
    display: none;
  }

  .event-management-tabs button {
    min-height: 65px;
  }

  .event-referral-heading {
    display: grid;
  }

  #referral-rule-current-badge {
    justify-self: start;
  }

  .referral-rule-form {
    grid-template-columns: 1fr;
  }

  .referral-rule-form label:last-child {
    grid-column: auto;
  }

  .referral-progress-row {
    grid-template-columns: 1fr;
  }

  .referral-progress-row > *:nth-child(11) {
    grid-column: auto;
  }
}

/* Only actionable friend-referral review items are shown here. Normal 0-count
   and not-yet-achieved milestones stay in the regular progress presentation. */
.referral-review-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  margin-top: 3px;
  padding: 4px 8px;
  border: 1px solid #efc994;
  border-radius: 8px;
  color: #8a4d12;
  font: inherit;
  font-size: 9px;
  font-weight: 850;
  line-height: 1.35;
  text-align: left;
  background: #fff9ef;
  cursor: pointer;
}

.referral-review-toggle:hover,
.referral-review-toggle:focus-visible {
  border-color: #d99b49;
  background: #fff3df;
  outline: none;
}

.referral-review-toggle em {
  flex: 0 0 auto;
  color: #9c641f;
  font-size: 8px;
  font-style: normal;
  white-space: nowrap;
}

.referral-review-toggle[aria-expanded="true"] em::after {
  content: " ↑";
}

.referral-review-toggle[aria-expanded="false"] em::after {
  content: " ↓";
}

.referral-progress-table.is-tiered .referral-progress-row > .referral-review-details {
  grid-column: 1 / -1;
  display: block;
  min-width: 0;
  margin: 0 8px 12px;
  padding: 14px;
  border: 1px solid #ead6b8;
  border-radius: 12px;
  color: #394f69;
  text-align: left;
  background: #fffaf2;
}

.referral-review-details-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 11px;
  border-bottom: 1px solid #f0dfc7;
}

.referral-review-details-head > div {
  display: grid;
  gap: 3px;
}

.referral-review-details-head b {
  color: #533719;
  font-size: 12px;
}

.referral-review-details-head p {
  margin: 0;
  color: #806b52;
  font-size: 9px;
  line-height: 1.55;
}

.referral-review-details-head > span {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  color: #8a4d12;
  font-size: 9px;
  font-weight: 900;
  background: #ffedcf;
}

.referral-review-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.referral-review-item {
  display: grid;
  grid-template-columns: minmax(170px, .9fr) minmax(260px, 1.6fr) minmax(112px, auto);
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #eadfce;
  border-radius: 10px;
  background: #fff;
}

.referral-review-period,
.referral-review-reason {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.referral-review-period > span {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 999px;
  color: #596f88;
  font-size: 8px;
  font-weight: 900;
  background: #edf2f8;
}

.referral-review-period > span.is-baemin {
  color: #1761bd;
  background: #e7f1ff;
}

.referral-review-period > span.is-coupang {
  color: #9a5b0d;
  background: #fff1d8;
}

.referral-review-period > span.is-referral {
  color: #28733b;
  background: #eaf7ed;
}

.referral-review-period b {
  overflow-wrap: anywhere;
  color: #203b5c;
  font-size: 11px;
  line-height: 1.45;
}

.referral-review-reason strong {
  color: #8a4d12;
  font-size: 10px;
  line-height: 1.4;
}

.referral-review-reason p {
  margin: 0;
  color: #738299;
  font-size: 9px;
  line-height: 1.55;
}

.referral-review-item-action {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.referral-review-acknowledge {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #d49b4f;
  border-radius: 9px;
  color: #7d470d;
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
  background: #fff8ec;
  cursor: pointer;
}

.referral-review-acknowledge:hover,
.referral-review-acknowledge:focus-visible {
  border-color: #b97924;
  background: #ffedcf;
  outline: none;
}

.referral-review-acknowledge:disabled {
  cursor: wait;
  opacity: .65;
}

.referral-review-guide {
  color: #7a8798;
  font-size: 8px;
  font-weight: 750;
  line-height: 1.5;
  text-align: right;
}

.referral-review-feedback {
  margin: 10px 0 0;
  padding: 9px 11px;
  border: 1px solid #efd3b1;
  border-radius: 9px;
  color: #8b4c15;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.55;
  background: #fff5e8;
}

.referral-review-feedback.success {
  border-color: #c9e4d5;
  color: #1d6d4b;
  background: #edf9f2;
}

@media (max-width: 720px) {
  .referral-review-toggle {
    margin-top: 5px;
  }

  .referral-progress-table.is-tiered .referral-progress-row > .referral-review-details {
    grid-column: 1 / -1;
    margin: 2px 0 4px;
    padding: 12px;
  }

  .referral-review-item {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .referral-review-item-action {
    justify-content: flex-start;
  }

  .referral-review-acknowledge {
    width: 100%;
  }

  .referral-review-guide {
    text-align: left;
  }
}

@media (max-width: 430px) {
  .referral-review-details-head {
    gap: 8px;
  }

  .referral-review-details-head p {
    font-size: 8px;
  }
}

/* Friend-referral milestones are configured as independent cumulative payout
   steps. The original single-target styles above remain as a safe fallback for
   an older cached page, while these rules drive the current tier editor. */
.referral-rule-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.referral-tier-editor {
  margin-top: 15px;
  padding: 15px;
  border: 1px solid #d9e5f2;
  border-radius: 14px;
  background: #f9fbfe;
}

.referral-tier-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.referral-tier-heading > div {
  display: grid;
  gap: 4px;
}

.referral-tier-heading b {
  color: #17375d;
  font-size: 13px;
}

.referral-tier-heading span {
  color: #76879c;
  font-size: 10px;
  line-height: 1.5;
}

.referral-tier-heading button,
.referral-tier-remove {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #cbd9ea;
  border-radius: 9px;
  color: #31577f;
  font-size: 10px;
  font-weight: 850;
  background: #fff;
  cursor: pointer;
}

.referral-tier-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.referral-tier-row {
  display: grid;
  grid-template-columns: 34px minmax(140px, 1fr) minmax(160px, 1fr) auto;
  align-items: end;
  gap: 9px;
  padding: 11px;
  border: 1px solid #e0e8f2;
  border-radius: 11px;
  background: #fff;
}

.referral-tier-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  margin-bottom: 7px;
  border-radius: 9px;
  color: #235fae;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  background: #eaf2fe;
}

.referral-tier-row label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #52667f;
  font-size: 10px;
  font-weight: 800;
}

.referral-tier-row input {
  width: 100%;
  height: 41px;
  box-sizing: border-box;
  padding: 0 11px;
  border: 1px solid #d3deeb;
  border-radius: 9px;
  color: #172e4e;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  background: #fff;
  outline: none;
}

.referral-tier-row input:focus {
  border-color: #75a1e7;
  box-shadow: 0 0 0 3px rgba(47, 111, 223, .1);
}

.referral-tier-remove {
  min-width: 58px;
  height: 41px;
  color: #a04440;
  border-color: #ebd0ce;
  background: #fff8f7;
}

.referral-tier-tax-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(230px, 1fr));
  gap: 8px;
  width: min(100%, 760px);
}

.referral-tier-tax-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 12px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #dde7f2;
  border-radius: 10px;
  background: #fff;
}

.referral-tier-tax-row b {
  grid-row: 1 / span 2;
  align-self: center;
  color: #1d5fbd;
  font-size: 12px;
  white-space: nowrap;
}

.referral-tier-tax-row span,
.referral-tier-tax-row small {
  color: #506985;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.45;
  text-align: right;
}

.referral-tier-tax-row small {
  color: #7c8da2;
}

.referral-rule-history-item {
  grid-template-columns: minmax(170px, .75fr) minmax(230px, 1.5fr) minmax(180px, .7fr);
  align-items: center;
}

.referral-rule-history-item > div:last-child {
  grid-column: auto;
}

.referral-rule-history-primary,
.referral-rule-history-tiers {
  align-content: center;
}

.referral-rule-history-status {
  display: flex !important;
  flex-flow: row wrap;
  gap: 5px !important;
  margin-bottom: 3px;
}

.referral-rule-history-status span {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #586f89;
  font-size: 8px;
  font-weight: 900;
  line-height: 1.2;
  background: #edf2f7;
}

.referral-rule-history-status .is-current {
  color: #175fba;
  background: #e5f0ff;
}

.referral-rule-history-status .is-future {
  color: #6951a7;
  background: #f0ebff;
}

.referral-rule-history-status .is-past {
  color: #697789;
  background: #edf1f5;
}

.referral-rule-history-status .is-used {
  color: #8a5419;
  background: #fff1dc;
}

.referral-rule-history-status .is-unused {
  color: #267552;
  background: #e9f8f0;
}

.referral-rule-history-status .is-archived {
  color: #586779;
  background: #e9edf2;
}

.referral-rule-history-toolbar {
  display: flex;
  justify-content: flex-end;
  padding: 8px 0 10px;
}

.referral-rule-history-toolbar button {
  padding: 7px 11px;
  border: 1px solid #d5deea;
  border-radius: 9px;
  background: #fff;
  color: #51647e;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.referral-rule-history-toolbar button[hidden] {
  display: none !important;
}

.referral-rule-history-actions {
  display: flex !important;
  flex-flow: row wrap;
  justify-content: flex-end;
  gap: 7px !important;
  text-align: right !important;
}

.referral-rule-history-actions p {
  flex: 1 0 100%;
  margin: 0;
  color: #75869a;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.5;
}

.referral-rule-history-actions button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #c8d7e8;
  border-radius: 9px;
  color: #2d5f9b;
  font-size: 9px;
  font-weight: 900;
  background: #fff;
  cursor: pointer;
}

.referral-rule-history-actions button:hover,
.referral-rule-history-actions button:focus-visible {
  border-color: #77a1d7;
  background: #f1f7ff;
  outline: none;
}

.referral-rule-history-actions button.danger {
  border-color: #ecd0ce;
  color: #a3443f;
  background: #fff8f7;
}

.referral-rule-history-actions button:disabled {
  cursor: wait;
  opacity: .6;
}

.referral-rule-history-actions.is-locked {
  padding-left: 10px;
  border-left: 2px solid #ead5b6;
}

.referral-progress-table.is-tiered .referral-progress-table-head,
.referral-progress-table.is-tiered .referral-progress-row {
  grid-template-columns: minmax(112px, 1fr) minmax(112px, 1fr) 70px 70px 76px minmax(330px, 2.5fr) minmax(104px, .8fr);
  min-width: 980px;
}

.referral-milestone-cell {
  display: grid;
  gap: 6px;
  text-align: left !important;
}

.referral-overall-progress {
  display: grid;
  gap: 5px;
}

.referral-overall-progress > span {
  overflow: hidden;
  height: 5px;
  border-radius: 999px;
  background: #e5edf7;
}

.referral-overall-progress > span > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f6fdf, #58a0f0);
}

.referral-overall-progress > small {
  color: #72859d;
  font-size: 9px;
  font-weight: 800;
}

.referral-milestone-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.referral-milestone-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 25px;
  padding: 0 8px;
  border: 1px solid #d7e2ef;
  border-radius: 999px;
  color: #526b88;
  font-size: 9px;
  font-weight: 850;
  background: #f7f9fc;
  white-space: nowrap;
}

.referral-milestone-chip.is-scheduled {
  border-color: #bcd4f4;
  color: #215da9;
  background: #eaf3ff;
}

.referral-milestone-chip.is-held {
  border-color: #efd0b6;
  color: #9a541f;
  background: #fff3e9;
}

.referral-milestone-chip.is-paid {
  border-color: #cbe4d7;
  color: #16704b;
  background: #eaf8f1;
}

.referral-milestone-chip.is-cancelled {
  border-color: #dce2ea;
  color: #687589;
  background: #f3f5f8;
}

.referral-milestone-chip.is-review {
  border-color: #eed7ad;
  color: #945f13;
  background: #fff8e8;
}

.referral-milestone-chip b {
  color: inherit;
}

/* The referral payout is a third settlement source, visually distinct from
   Baemin/Coupang while reusing the established period and dashboard cards. */
#admin .period-platform-badge.is-referral,
#admin .dashboard-overdue-platform.is-referral {
  background: #eef8ee;
  color: #28733b;
  border-color: #cbe5d0;
}

#admin .dashboard-period-card .dashboard-platform-badge.is-referral {
  border-color: rgba(178, 235, 189, .52);
  color: #d6f6dc;
  background: rgba(45, 139, 67, .18);
}

.rider-monthly-platform.is-referral:before {
  background: #2e8a49;
}

.rider-monthly-period i.is-referral {
  color: #28733b;
  background: #eaf7ed;
}

.referral-workspace-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
  padding: 8px;
  border: 1px solid #dce6f1;
  border-radius: 18px;
  background: #f6f9fd;
}

.referral-workspace-tabs button {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 9px;
  align-items: center;
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #60738b;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.referral-workspace-tabs button > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #42688f;
  font-size: 10px;
  font-weight: 900;
  background: #e7eef8;
}

.referral-workspace-tabs button b {
  color: #203a59;
  font-size: 13px;
}

.referral-workspace-tabs button small {
  overflow: hidden;
  color: #8392a4;
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.referral-workspace-tabs button.active {
  border-color: #bcd2ef;
  color: #245fae;
  background: #fff;
  box-shadow: 0 8px 20px rgba(37, 79, 125, .08);
}

.referral-workspace-tabs button:hover,
.referral-workspace-tabs button:focus-visible {
  border-color: #bcd2ef;
  background: #fff;
  outline: none;
}

.referral-workspace-tabs button.active > span {
  color: #fff;
  background: linear-gradient(135deg, #2e72db, #2457a8);
}

.referral-target-progress.is-tiered {
  display: grid;
  gap: 8px;
  text-align: left;
}

.referral-target-progress.is-tiered > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.referral-target-progress.is-tiered > span {
  overflow: hidden;
  height: 6px;
  border-radius: 999px;
  background: #e5edf7;
}

.referral-target-progress.is-tiered > span > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f6fdf, #58a0f0);
}

.referral-target-progress.is-tiered .referral-milestone-chip {
  display: grid;
  grid-template-columns: auto auto;
  height: auto;
  padding: 6px 9px;
  border-radius: 10px;
}

.referral-target-progress.is-tiered .referral-milestone-chip small {
  grid-column: 1 / -1;
}

@media (max-width: 720px) {
  .referral-workspace-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    padding: 7px;
  }

  .referral-workspace-tabs button {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    justify-items: center;
    min-height: 67px;
    padding: 8px 4px;
    text-align: center;
  }

  .referral-workspace-tabs button > span {
    grid-row: auto;
    width: 26px;
    height: 26px;
  }

  .referral-workspace-tabs button b {
    font-size: 11px;
    line-height: 1.35;
    word-break: keep-all;
  }

  .referral-workspace-tabs button small {
    display: none;
  }

  .referral-rule-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .referral-rule-actions {
    grid-template-columns: 1fr;
  }

  .referral-rule-history-item {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .referral-rule-history-tiers {
    padding: 9px 0;
    border-top: 1px solid #e7edf4;
    border-bottom: 1px solid #e7edf4;
  }

  .referral-rule-history-actions,
  .referral-rule-history-actions.is-locked {
    justify-content: flex-start;
    padding-left: 0;
    border-left: 0;
    text-align: left !important;
  }

  .referral-tier-heading {
    align-items: flex-start;
  }

  .referral-tier-row {
    grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1fr);
  }

  .referral-tier-remove {
    grid-column: 2 / -1;
    width: 100%;
  }

  .referral-tax-preview {
    display: grid;
  }

  .referral-tier-tax-preview {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .referral-progress-table.is-tiered .referral-progress-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }

  .referral-progress-table.is-tiered .referral-progress-row > *:nth-child(1)::before { content: "추천 기사"; }
  .referral-progress-table.is-tiered .referral-progress-row > *:nth-child(2)::before { content: "초대 기사"; }
  .referral-progress-table.is-tiered .referral-progress-row > *:nth-child(3)::before { content: "배민 건수"; }
  .referral-progress-table.is-tiered .referral-progress-row > *:nth-child(4)::before { content: "쿠팡 건수"; }
  .referral-progress-table.is-tiered .referral-progress-row > *:nth-child(5)::before { content: "합계"; }
  .referral-progress-table.is-tiered .referral-progress-row > *:nth-child(6)::before { content: "구간별 지급 현황"; }
  .referral-progress-table.is-tiered .referral-progress-row > *:nth-child(7)::before { content: "관리"; }

  .referral-progress-table.is-tiered .referral-progress-row > *:nth-child(6),
  .referral-progress-table.is-tiered .referral-progress-row > *:nth-child(7) {
    grid-column: 1 / -1;
  }

  .referral-progress-table.is-tiered .referral-progress-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 430px) {
  .referral-rule-form {
    grid-template-columns: 1fr;
  }

  .referral-rule-action-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  #cancel-referral-rule-edit,
  .referral-rule-history-actions button {
    width: 100%;
  }

  .referral-tier-row {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .referral-tier-row label,
  .referral-tier-remove {
    grid-column: 2;
  }

  .referral-progress-table.is-tiered .referral-progress-row {
    grid-template-columns: 1fr;
  }

  .referral-progress-table.is-tiered .referral-progress-row > *:nth-child(6),
  .referral-progress-table.is-tiered .referral-progress-row > *:nth-child(7) {
    grid-column: auto;
  }
}


/* startup: upload-period-picker.css */
/* Calendar-based settlement period input. Dates stay structured while the
   optional title is appended to the existing settlement-period name format. */
#admin #upload-pane .upload-primary-fields {
  grid-template-columns: minmax(0, 1.3fr) minmax(250px, .7fr);
  align-items: stretch;
}

#admin #upload-pane .upload-primary-fields > .upload-period-field {
  min-height: 218px;
  margin: 0;
  padding: 14px;
  border: 1px solid #e0e6ee;
  border-radius: 11px;
  background: #fff;
  color: #3c4e67;
}

#admin #upload-pane .upload-primary-fields > .upload-file-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 218px;
  margin: 0;
  padding: 14px;
}

#admin #upload-pane .upload-field-heading {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
}

#admin #upload-pane .upload-date-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 8px;
  margin-top: 10px;
}

#admin #upload-pane .upload-date-range label,
#admin #upload-pane .upload-period-title {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #64768d;
  font-size: 10px;
  font-weight: 800;
}

#admin #upload-pane .upload-date-range input,
#admin #upload-pane .upload-period-title input {
  width: 100%;
  min-height: 42px;
  margin-top: 5px;
  padding: 9px 11px;
  border: 1px solid #cbd7e5;
  border-radius: 10px;
  background: #fbfcfe;
  color: #243c5b;
  font-size: 13px;
  font-weight: 750;
}

#admin #upload-pane .upload-date-separator {
  padding-bottom: 12px;
  color: #6f829a;
  font-size: 13px;
  font-weight: 900;
}

#admin #upload-pane .upload-period-title {
  display: block;
  margin-top: 9px;
}

#admin #upload-pane .upload-period-title small {
  margin-left: 4px;
  color: #98a5b5;
  font-size: 9px;
  font-weight: 750;
}

#admin #upload-pane .upload-period-preview {
  margin: 9px 0 0;
  padding: 9px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #f6f8fb;
  color: #728198;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

#admin #upload-pane .upload-period-preview.is-ready {
  border-color: #c8d9ee;
  background: #eef5ff;
  color: #245a9b;
}

#admin #upload-pane .upload-file-field .file-field {
  display: flex;
  align-items: center;
  flex: 1;
  min-height: 98px;
  margin-top: 10px;
  padding: 13px;
  border: 1px dashed #c7d5e5;
  border-radius: 10px;
  background: #f8fafc;
}

#admin #upload-pane .upload-file-field .file-field input {
  min-width: 0;
  min-height: 42px;
  margin: 0;
  background: #fff;
}

#admin #upload-pane .upload-file-help {
  display: block;
  margin-top: 9px;
  color: #7b8ba0;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
}

@media (max-width: 920px) {
  #admin #upload-pane .upload-primary-fields {
    grid-template-columns: 1fr;
  }

  #admin #upload-pane .upload-primary-fields > .upload-period-field,
  #admin #upload-pane .upload-primary-fields > .upload-file-field {
    min-height: 0;
  }

  #admin #upload-pane .upload-file-field .file-field {
    min-height: 74px;
  }
}

@media (max-width: 650px) {
  #admin #upload-pane .upload-primary-fields { padding: 7px; gap: 8px; }
  #admin #upload-pane .upload-date-range { gap: 6px; }
  #admin #upload-pane .upload-date-range input,
  #admin #upload-pane .upload-period-title input { font-size: 16px; }
  #admin #upload-pane .upload-file-field .file-field { min-height: 66px; padding: 10px; }
}

@media (max-width: 390px) {
  #admin #upload-pane .upload-date-range { grid-template-columns: 1fr; }
  #admin #upload-pane .upload-date-separator { display: none; }
}


/* startup: upload-workspace-cleanup.css */
/* Keep the everyday upload flow visually separate from occasional settings. */
#admin #upload-pane .upload-setup {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

#admin #upload-pane .upload-setup > .upload-scope-bar,
#admin #upload-pane .upload-setup > .upload-platform-bar,
#admin #upload-pane .upload-setup > .upload-primary-fields {
  margin: 0 !important;
}

#admin #upload-pane .format-note {
  align-items: center;
  margin-top: 10px;
  padding: 11px 13px 11px 15px;
  background: #f8fafc;
}

#admin #upload-pane .format-note::before {
  top: 11px;
  bottom: 11px;
}

#admin #upload-pane .format-note b {
  font-size: 11px;
}

#admin #upload-pane .format-note span {
  font-size: 10px;
}

#admin #upload-pane .upload-actions {
  margin-top: 14px;
}

#admin #upload-pane .upload-secondary-setting {
  margin-top: 20px;
  border-color: #e4e9f0;
  border-radius: 12px;
  background: transparent;
}

#admin #upload-pane .upload-secondary-setting > summary {
  min-height: 50px;
  padding: 11px 13px;
  background: #f8fafc;
}

#admin #upload-pane .upload-secondary-setting > summary > span {
  flex-direction: row;
  align-items: baseline;
  gap: 9px;
}

#admin #upload-pane .upload-secondary-setting > summary b {
  color: #43566f;
  font-size: 12px;
}

#admin #upload-pane .upload-secondary-setting > summary small {
  color: #8996a8;
  font-size: 10px;
}

#admin #upload-pane .upload-secondary-setting > summary i {
  width: 25px;
  height: 25px;
  border-color: #d8e0ea;
  border-radius: 8px;
  color: #60758e;
  font-size: 16px;
}

#admin #upload-pane .upload-secondary-setting[open] {
  border-color: #d7e2ef;
  background: #fff;
}

@media (max-width: 650px) {
  #admin #upload-pane .format-note {
    align-items: flex-start;
    padding: 10px 12px 10px 14px;
  }

  #admin #upload-pane .upload-secondary-setting {
    margin-top: 15px;
  }

  #admin #upload-pane .upload-secondary-setting > summary > span {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}

/* One unified input panel: less card nesting, clearer left-to-right workflow. */
#admin #upload-pane .upload-primary-fields {
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d9e3ef;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 9px 24px rgba(35, 58, 90, .055);
}

#admin #upload-pane .upload-primary-fields > .upload-period-field {
  min-height: 208px;
  padding: 17px 18px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff;
}

#admin #upload-pane .upload-primary-fields > .upload-file-field {
  min-height: 208px;
  padding: 17px 18px !important;
  border: 0 !important;
  border-left: 1px solid #e1e8f1 !important;
  border-radius: 0 !important;
  background: #fafbfd !important;
}

#admin #upload-pane .upload-primary-fields .upload-field-heading {
  color: #2c405b;
  font-size: 12px;
}

#admin #upload-pane .upload-primary-fields .field-number {
  background: #244b7a;
}

#admin #upload-pane .upload-date-range input,
#admin #upload-pane .upload-period-title input {
  border-color: #d4dee9;
  background: #fff;
}

#admin #upload-pane .upload-period-preview {
  padding: 8px 10px;
  border: 0;
  background: #f3f6fa;
}

#admin #upload-pane .upload-period-preview.is-ready {
  border: 0;
  background: #eef4fc;
}

#admin #upload-pane .upload-file-field .file-field {
  min-height: 92px;
  padding: 13px;
  border-color: #c7d4e3;
  background: #fff;
}

#admin #upload-pane .upload-file-field .file-field input {
  padding: 0 !important;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #62748a;
  font-size: 11px;
  box-shadow: none;
}

#admin #upload-pane .upload-file-field .file-field input::file-selector-button {
  margin-right: 9px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: #244b7a;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

#admin #upload-pane .upload-file-help {
  margin-top: 10px;
  color: #8492a4;
}

@media (max-width: 920px) {
  #admin #upload-pane .upload-primary-fields > .upload-period-field,
  #admin #upload-pane .upload-primary-fields > .upload-file-field {
    min-height: 0;
  }

  #admin #upload-pane .upload-primary-fields > .upload-file-field {
    border-left: 0 !important;
    border-top: 1px solid #e1e8f1 !important;
  }

  #admin #upload-pane .upload-file-field .file-field {
    min-height: 68px;
  }
}

@media (max-width: 650px) {
  #admin #upload-pane .upload-primary-fields {
    padding: 0;
  }

  #admin #upload-pane .upload-primary-fields > .upload-period-field,
  #admin #upload-pane .upload-primary-fields > .upload-file-field {
    padding: 15px !important;
  }
}


/* startup: period-editor-fields.css */
#admin .period-editor-name-fields {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 17px;
  border: 1px solid #dfe7f1;
  border-radius: 13px;
  background: #fff;
}

#admin .period-editor-date-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr);
  align-items: end;
  gap: 8px;
}

#admin .period-editor-name-fields label {
  min-width: 0;
  margin: 0;
  color: #4f6077;
  font-size: 12px;
  font-weight: 800;
}

#admin .period-editor-name-fields input {
  width: 100%;
  min-width: 0;
  min-height: 43px;
  margin-top: 7px;
  padding: 10px 12px;
  border: 1px solid #d7e0eb;
  border-radius: 10px;
  background: #fbfcfe;
  color: #243650;
  font: inherit;
  font-size: 13px;
}

#admin .period-editor-name-fields input:focus {
  border-color: #83a8ea;
  outline: 3px solid rgba(55, 111, 216, .11);
  background: #fff;
}

#admin .period-editor-date-separator {
  display: grid;
  place-items: center;
  min-height: 43px;
  color: #8190a3;
  font-size: 15px;
  font-weight: 900;
}

#admin .period-editor-name-preview {
  margin: 0;
  padding: 10px 12px;
  border-radius: 9px;
  background: #f2f6fc;
  color: #617188;
  font-size: 11px;
  line-height: 1.45;
}

#admin .period-editor-name-preview.is-ready {
  background: #edf4ff;
  color: #315fba;
}

@media (max-width: 650px) {
  #admin .period-editor-name-fields { padding: 14px; }
  #admin .period-editor-date-fields { grid-template-columns: 1fr; gap: 12px; }
  #admin .period-editor-date-separator { display: none; }
}

#admin .period-row-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
}

#admin .period-row-actions .period-row-action {
  margin: 0;
}

#admin .period-row-export-action {
  color: #2861b8;
  border-color: #cbdcf6;
  background: #f1f6ff;
}

#admin .period-row-export-action:hover {
  color: #184d9e;
  border-color: #9fc0f0;
  background: #e8f1ff;
}

#admin .period-row-export-action:disabled {
  cursor: wait;
  opacity: .65;
}

@media (max-width: 760px) {
  #admin .period-row-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  #admin .period-row-actions .period-row-action {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 350px) {
  #admin .period-row-actions { grid-template-columns: 1fr; }
}


/* startup: insurance-report.css */
.insurance-report-view {
  display: grid;
  min-width: 0;
  gap: 18px;
  margin-top: 20px;
}

.insurance-report-view[hidden],
.insurance-report-result[hidden] {
  display: none !important;
}

.insurance-report-heading,
.insurance-report-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.insurance-report-heading span,
.insurance-report-result-head span {
  color: #3472df;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
}

.insurance-report-heading h3,
.insurance-report-result-head h4 {
  margin: 5px 0 4px;
  color: #122845;
  font-size: 22px;
}

.insurance-report-heading p,
.insurance-report-result-head p {
  margin: 0;
  color: #6c7d92;
  line-height: 1.55;
}

.insurance-report-heading em {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid #cfe0fb;
  border-radius: 999px;
  background: #edf4ff;
  color: #245fbf;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.insurance-report-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) minmax(150px, .7fr) auto;
  align-items: start;
  gap: 12px;
  padding: 18px;
  border: 1px solid #dce6f3;
  border-radius: 18px;
  background: #f7faff;
}

.insurance-report-controls label {
  display: grid;
  gap: 7px;
  margin: 0;
  color: #2a405e;
  font-size: 12px;
  font-weight: 800;
}

.insurance-report-controls > button {
  min-height: 46px;
  margin: 25px 0 0;
}

.insurance-report-controls label small {
  color: #74869d;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.45;
}

.insurance-report-rider-picker {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.insurance-report-rider-picker > small {
  color: #617792;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.insurance-report-rider-matches {
  display: grid;
  gap: 5px;
  max-height: 240px;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid #ccd9e9;
  border-radius: 12px;
  background: #fff;
}

.insurance-report-rider-matches[hidden] {
  display: none;
}

.insurance-report-rider-matches button {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #172d4b;
  text-align: left;
  cursor: pointer;
}

.insurance-report-rider-matches button:hover,
.insurance-report-rider-matches button:focus-visible {
  outline: 2px solid #b8d1f7;
  background: #edf4ff;
}

.insurance-report-rider-matches button strong {
  font-size: 12px;
}

.insurance-report-rider-matches button small {
  color: #647992;
  font-size: 10px;
  line-height: 1.4;
}

.insurance-report-controls select,
.insurance-report-controls input {
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 0 13px;
  border: 1px solid #ccd9e9;
  border-radius: 12px;
  background: #fff;
  color: #172d4b;
  font: inherit;
}

.insurance-report-controls :disabled,
.insurance-report-actions :disabled {
  cursor: not-allowed;
  opacity: .58;
}

.insurance-report-safety {
  margin: -4px 2px 0;
  color: #75859a;
  font-size: 12px;
  line-height: 1.6;
}

.insurance-report-result {
  display: grid;
  min-width: 0;
  gap: 16px;
  padding: 20px;
  border: 1px solid #dce5f1;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(22, 48, 82, .06);
}

.insurance-report-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.insurance-report-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.insurance-report-summary article {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 14px;
  border-radius: 14px;
  background: #f3f7fc;
}

.insurance-report-summary span {
  color: #73839a;
  font-size: 11px;
  font-weight: 700;
}

.insurance-report-summary strong {
  overflow-wrap: anywhere;
  color: #16365f;
  font-size: 18px;
}

.insurance-report-table-wrap {
  overflow: auto;
  border: 1px solid #e0e8f2;
  border-radius: 14px;
}

.insurance-report-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  color: #253c59;
  font-size: 12px;
}

.insurance-report-table th,
.insurance-report-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #e7edf5;
  text-align: right;
  white-space: nowrap;
}

.insurance-report-table th {
  background: #f3f7fc;
  color: #526985;
  font-weight: 800;
}

.insurance-report-table th:first-child,
.insurance-report-table td:first-child,
.insurance-report-table th:nth-child(2),
.insurance-report-table td:nth-child(2),
.insurance-report-table th:nth-child(3),
.insurance-report-table td:nth-child(3) {
  text-align: left;
}

.insurance-report-table tfoot td {
  background: #eef4fd;
  color: #123b76;
  font-weight: 900;
}

.insurance-report-activity {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.insurance-report-basis,
.insurance-report-notices p {
  margin: 0;
  color: #637892;
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.insurance-report-notices {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid #efd6a9;
  border-radius: 12px;
  background: #fff9ef;
}

.insurance-report-notices p {
  color: #866121;
}

.insurance-report-month-section {
  display: grid;
  min-width: 0;
  gap: 9px;
}

.insurance-report-month-section h5 {
  margin: 0;
  color: #1c3d66;
  font-size: 15px;
}

.insurance-report-month-table {
  min-width: 540px;
}

.insurance-report-reference {
  min-width: 0;
  border-top: 1px solid #e3eaf4;
  padding-top: 14px;
}

.insurance-report-reference > summary {
  margin-bottom: 12px;
  color: #596f8c;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

/* The desktop sidebar leaves a narrow content column on tablet screens. */
@media (max-width: 1100px) {
  .insurance-report-controls {
    grid-template-columns: 1fr;
  }

  .insurance-report-controls > button {
    margin-top: 0;
  }

  .insurance-report-heading,
  .insurance-report-result-head {
    display: grid;
  }

  .insurance-report-heading em {
    justify-self: start;
  }

  .insurance-report-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  #admin .settlement-history-view-switch {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .insurance-report-heading,
  .insurance-report-result-head {
    display: grid;
  }

  .insurance-report-heading em {
    justify-self: start;
  }

  .insurance-report-controls {
    grid-template-columns: 1fr;
  }

  .insurance-report-controls > button {
    margin-top: 0;
  }

  .insurance-report-controls button,
  .insurance-report-actions button {
    width: 100%;
  }

  .insurance-report-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  #download-insurance-pdf {
    grid-column: 1 / -1;
  }

  .insurance-report-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .insurance-report-actions,
  .insurance-report-summary {
    grid-template-columns: 1fr;
  }

  #download-insurance-pdf {
    grid-column: auto;
  }
}

/* Compact monthly summary; the underlying operation and payment dates differ. */
.monthly-tax-summary {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #dce5f1;
  border-radius: 14px;
  background: #fff;
  scrollbar-color: #bccde3 #f0f5fb;
  scrollbar-width: thin;
}
.monthly-tax-summary table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  color: #253c59;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.monthly-tax-summary th,
.monthly-tax-summary td {
  padding: 12px;
  border-bottom: 1px solid #e8eef5;
  text-align: right;
  white-space: nowrap;
}
.monthly-tax-summary th {background: #f3f7fc;color: #60738d;font-size: 11px;font-weight: 800;}
.monthly-tax-summary th:first-child,
.monthly-tax-summary td:first-child {text-align: left;}
.monthly-tax-summary tbody tr:last-child td {border-bottom: 0;}
.monthly-tax-summary td:last-child {color: #1f5caa;font-weight: 850;}
.monthly-tax-summary tr.is-total td {border-top: 1px solid #dce5f1;background: #f5f8fd;font-weight: 850;}
.monthly-tax-summary .insurance-report-table th:not(:first-child),
.monthly-tax-summary .insurance-report-table td:not(:first-child) {text-align: right;}
.insurance-report-summary.is-financial strong {line-height: 1.4;overflow-wrap: anywhere;}
.monthly-tax-breakdown {
  display: block;
  margin-top: 5px;
  color: #72829a;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: normal;
}
.monthly-tax-status {color: #986b27;font-size: 11px;font-weight: 750;}
.monthly-report-fold {
  min-width: 0;
  padding: 0 14px;
  border: 1px solid #e0e8f2;
  border-radius: 13px;
  background: #fff;
}
.monthly-report-fold > summary {
  padding: 13px 0;
  color: #415d7d;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  cursor: pointer;
}
.monthly-report-fold > summary:focus-visible {outline: 2px solid #a6c5ee;outline-offset: 3px;border-radius: 5px;}
.monthly-report-fold[open] {border-color: #cbdbee;}
.monthly-tax-detail {display: grid;min-width: 0;gap: 12px;padding-bottom: 14px;}
.monthly-tax-detail > p {margin: 0;color: #73839a;font-size: 11px;line-height: 1.65;overflow-wrap: anywhere;}
@media (max-width: 620px) {
  .monthly-tax-summary {overflow: visible;border: 0;border-radius: 0;background: transparent;}
  .monthly-tax-summary table {display: block;min-width: 0;width: 100%;}
  .monthly-tax-summary thead {position: absolute;width: 1px;height: 1px;overflow: hidden;clip-path: inset(50%);white-space: nowrap;}
  .monthly-tax-summary tbody {display: grid;gap: 9px;}
  .monthly-tax-summary tbody tr {display: grid;grid-template-columns: repeat(2,minmax(0,1fr));padding: 2px 12px 8px;border: 1px solid #e0e8f2;border-radius: 12px;background: #fff;}
  .monthly-tax-summary td {min-width: 0;padding: 8px 0;border: 0;text-align: left;white-space: normal;overflow-wrap: anywhere;}
  .monthly-tax-summary td:first-child {grid-column: 1 / -1;margin-bottom: 2px;padding: 11px 0 10px;border-bottom: 1px solid #edf1f7;color: #36577f;font-size: 12px;font-weight: 850;}
  .monthly-tax-summary td::before {display: block;margin-bottom: 4px;color: #8191a7;font-size: 9px;font-weight: 600;content: attr(data-label);}
  .monthly-tax-summary td:first-child::before {display: none;}
  .monthly-tax-summary td:last-child {color: #1f5caa;}
  .monthly-tax-summary .insurance-report-table th:not(:first-child),
  .monthly-tax-summary .insurance-report-table td:not(:first-child) {text-align: left;}
}

