.dfc-admin-page #wpadminbar,
.dfc-admin-page .topbar,
.dfc-admin-page .nav {
  display: none !important;
}

html:has(body.dfc-admin-page),
body.dfc-admin-page {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.dfc-admin-page #site-content,
.dfc-admin-shell {
  min-height: 100vh;
}

.dfc-admin-page #site-content {
  margin-top: 0;
  padding-top: 0;
}

.dfc-admin-shell {
  background: #fafaf7;
  padding: 0 0 72px;
}

#dfc-admin-app {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

.dfc-admin-gate {
  max-width: 760px;
  margin: 48px auto 0;
  padding: 48px;
  background: #fffefb;
  border: 1px solid rgba(10, 31, 68, 0.12);
  border-radius: 28px;
}

.dfc-admin-gate .eyebrow,
.dfc-admin-eyebrow,
.dfc-status-eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2e59c6;
  font-weight: 700;
}

.dfc-admin-gate h1,
.dfc-admin-title {
  font-size: clamp(44px, 5vw, 72px);
  line-height: 0.94;
  letter-spacing: 0;
  color: #0a1f44;
  margin: 0 0 18px;
}

.dfc-admin-gate h1 em,
.dfc-admin-title em,
.dfc-brand-title em,
.dfc-accent-name em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: #2e59c6;
}

.dfc-admin-gate p,
.dfc-admin-subtitle {
  margin: 0;
  color: rgba(10, 31, 68, 0.68);
  font-size: 17px;
  line-height: 1.6;
  max-width: 58ch;
}

.dfc-admin-gate-actions,
.dfc-actions-row,
.dfc-export-actions,
.dfc-brand-meta,
.dfc-detail-tabs,
.dfc-filter-row,
.dfc-flag-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dfc-stack {
  display: grid;
  gap: 18px;
}

.dfc-admin-brandbar,
.dfc-admin-topbar,
.dfc-card-head,
.dfc-section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.dfc-admin-brandbar {
  align-items: center;
  margin-bottom: 18px;
}

.dfc-brand-title {
  font-size: 18px;
  line-height: 1.2;
  color: #0a1f44;
  font-weight: 700;
}

.dfc-event-badge,
.dfc-ref-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 10px 14px;
  background: #0a1f44;
  color: #f2efe9;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dfc-ref-badge {
  margin-left: 10px;
  background: rgba(255, 255, 255, 0.12);
}

.dfc-admin-avatar {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #2e59c6;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.dfc-live-stats,
.dfc-admin-stats,
.dfc-export-grid,
.dfc-hole-grid,
.dfc-sponsor-grid,
.dfc-grid-2 {
  display: grid;
  gap: 16px;
}

.dfc-live-stats {
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  min-width: min(100%, 760px);
}

.dfc-live-stat,
.dfc-stat-card,
.dfc-export-card,
.dfc-hole-card,
.dfc-sponsor-card {
  background: #fffefb;
  border: 1px solid rgba(10, 31, 68, 0.1);
  border-radius: 22px;
}

.dfc-live-stat {
  padding: 18px 20px;
}

.dfc-live-stat span,
.dfc-stat-label,
.dfc-key,
.dfc-kv .key {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(10, 31, 68, 0.56);
}

.dfc-live-stat strong,
.dfc-stat-value {
  display: block;
  margin-top: 10px;
  font-size: 32px;
  line-height: 1;
  color: #0a1f44;
  font-weight: 800;
}

.dfc-admin-stats {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.dfc-stat-card {
  padding: 20px;
}

.dfc-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin: 20px 0;
}

.dfc-tab,
.dfc-button,
.dfc-filter,
.dfc-detail-tab,
.dfc-source-pill,
.dfc-order-badge,
.dfc-hole-tag,
.dfc-hole-badge,
.dfc-flag,
.dfc-pill {
  border-radius: 999px;
  font-weight: 700;
}

.dfc-tab,
.dfc-filter,
.dfc-button,
.dfc-detail-tab {
  border: 1px solid rgba(10, 31, 68, 0.14);
  background: #fffefb;
  color: rgba(10, 31, 68, 0.72);
  padding: 12px 16px;
  font-size: 13px;
  white-space: nowrap;
}

.dfc-tab.active,
.dfc-detail-tab.active {
  background: #0a1f44;
  border-color: #0a1f44;
  color: #f2efe9;
}

.dfc-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  margin-left: 8px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(46, 89, 198, 0.12);
  color: #2e59c6;
  font-size: 11px;
}

.dfc-tab.active .dfc-tab-badge,
.dfc-detail-tab.active span {
  background: rgba(255, 255, 255, 0.16);
  color: #f2efe9;
}

.dfc-panel {
  background: #fffefb;
  border: 1px solid rgba(10, 31, 68, 0.1);
  border-radius: 26px;
  overflow: hidden;
}

.dfc-toolbar,
.dfc-section-head,
.dfc-cards,
.dfc-list {
  padding: 20px;
}

.dfc-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid rgba(10, 31, 68, 0.08);
}

.dfc-bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 20px;
  background: rgba(46, 89, 198, 0.035);
  border-bottom: 1px solid rgba(10, 31, 68, 0.08);
}

.dfc-bulk-actions,
.dfc-row-actions,
.dfc-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dfc-check-label {
  color: rgba(10, 31, 68, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.dfc-card-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(10, 31, 68, 0.12);
  border-radius: 999px;
  color: rgba(10, 31, 68, 0.62);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.dfc-select-cell {
  width: 1%;
  white-space: nowrap;
}

.dfc-select-cell input,
.dfc-check-label input,
.dfc-card-select input {
  width: 18px;
  height: 18px;
  accent-color: #2e59c6;
}

.dfc-search {
  flex: 1;
  min-width: 220px;
}

.dfc-search input,
.dfc-field input,
.dfc-field textarea,
.dfc-field select,
.dfc-textarea {
  width: 100%;
  border: 1.5px solid rgba(10, 31, 68, 0.14);
  border-radius: 18px;
  background: #fffefb;
  color: #0a1f44;
  padding: 13px 16px;
  font: inherit;
}

.dfc-filter.active,
.dfc-button.primary {
  background: #2e59c6;
  border-color: #2e59c6;
  color: #fff;
}

.dfc-button.warn {
  background: rgba(184, 114, 28, 0.12);
  border-color: rgba(184, 114, 28, 0.3);
  color: #b8721c;
}

.dfc-button.danger {
  background: rgba(185, 28, 44, 0.08);
  border-color: rgba(185, 28, 44, 0.24);
  color: #b91c2c;
}

.dfc-icon-button {
  border: 1px solid rgba(10, 31, 68, 0.12);
  background: #fffefb;
  color: rgba(10, 31, 68, 0.74);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.dfc-icon-button.success {
  background: rgba(49, 91, 61, 0.09);
  border-color: rgba(49, 91, 61, 0.24);
  color: #315b3d;
}

.dfc-icon-button.warn {
  background: rgba(184, 114, 28, 0.1);
  border-color: rgba(184, 114, 28, 0.24);
  color: #b8721c;
}

.dfc-icon-button.danger {
  background: rgba(185, 28, 44, 0.08);
  border-color: rgba(185, 28, 44, 0.24);
  color: #b91c2c;
}

.dfc-button[disabled],
.dfc-filter[disabled],
.dfc-tab[disabled],
.dfc-icon-button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

#dfc-admin-app.is-busy {
  cursor: wait;
}

.dfc-table-wrap {
  overflow-x: auto;
}

.dfc-table {
  width: 100%;
  border-collapse: collapse;
}

.dfc-table th,
.dfc-table td {
  text-align: left;
  vertical-align: top;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(10, 31, 68, 0.08);
}

.dfc-table th {
  background: #fafaf7;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(10, 31, 68, 0.54);
}

.dfc-table tbody tr {
  cursor: pointer;
}

.dfc-table tbody tr:hover {
  background: rgba(46, 89, 198, 0.04);
}

.dfc-list {
  display: grid;
  gap: 12px;
}

.dfc-list-item,
.dfc-mini-item,
.dfc-export-card,
.dfc-sponsor-card,
.dfc-hole-card {
  padding: 18px;
}

.dfc-list-item,
.dfc-mini-item {
  border: 1px solid rgba(10, 31, 68, 0.1);
  border-radius: 18px;
  background: #fff;
}

.dfc-list-item.compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dfc-card-title,
.dfc-detail-title {
  font-size: 22px;
  line-height: 1.05;
  color: #0a1f44;
  font-weight: 800;
  margin: 0;
}

.dfc-detail-title {
  color: #f2efe9;
  font-size: clamp(28px, 4vw, 44px);
}

.dfc-card-subtitle,
.dfc-muted,
.dfc-hole-empty {
  color: rgba(10, 31, 68, 0.64);
  font-size: 14px;
  line-height: 1.5;
}

.dfc-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.dfc-amount {
  color: #0a1f44;
  font-weight: 800;
}

.dfc-order-badge,
.dfc-source-pill,
.dfc-hole-tag,
.dfc-hole-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(46, 89, 198, 0.1);
  color: #2e59c6;
  padding: 8px 12px;
  font-size: 12px;
}

.dfc-hole-badge {
  background: rgba(30, 142, 90, 0.12);
  color: #1e8e5a;
}

.dfc-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dfc-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.dfc-pill.pending_payment {
  color: #b8721c;
  background: rgba(184, 114, 28, 0.12);
}

.dfc-pill.paid {
  color: #1e8e5a;
  background: rgba(30, 142, 90, 0.12);
}

.dfc-pill.refunded {
  color: #6b46c1;
  background: rgba(107, 70, 193, 0.12);
}

.dfc-pill.cancelled {
  color: #b91c2c;
  background: rgba(185, 28, 44, 0.12);
}

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

.dfc-kv {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 10px 16px;
  margin-top: 18px;
}

.dfc-mini-list {
  display: grid;
  gap: 10px;
}

.dfc-total-block {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #0a1f44;
  color: #f2efe9;
  font-size: 22px;
  font-weight: 800;
}

.dfc-status-block {
  border-radius: 24px;
  padding: 20px;
  display: grid;
  gap: 14px;
}

.dfc-status-block.pending {
  background: rgba(184, 114, 28, 0.1);
  border: 1px solid rgba(184, 114, 28, 0.2);
}

.dfc-status-block.paid {
  background: rgba(30, 142, 90, 0.11);
  border: 1px solid rgba(30, 142, 90, 0.18);
}

.dfc-status-block.refunded {
  background: rgba(107, 70, 193, 0.1);
  border: 1px solid rgba(107, 70, 193, 0.18);
}

.dfc-status-block.cancelled {
  background: rgba(185, 28, 44, 0.1);
  border: 1px solid rgba(185, 28, 44, 0.18);
}

.dfc-status-title {
  font-size: 28px;
  line-height: 1.1;
  color: #0a1f44;
  font-weight: 800;
}

.dfc-sponsor-sections {
  display: grid;
  gap: 18px;
}

.dfc-inventory-form {
  padding: 0 20px 20px;
}

.dfc-capacity-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px;
  margin-bottom: 14px;
  border: 1px solid rgba(46, 89, 198, 0.2);
  border-radius: 16px;
  background: rgba(46, 89, 198, 0.055);
}

.dfc-capacity-setting div,
.dfc-inventory-name {
  display: grid;
  gap: 4px;
}

.dfc-capacity-setting span,
.dfc-inventory-name span,
.dfc-stat-note {
  color: rgba(10, 31, 68, 0.62);
  font-size: 12px;
}

.dfc-capacity-setting input {
  width: 120px;
  font-size: 22px;
  font-weight: 800;
  text-align: center;
}

.dfc-inventory-grid {
  display: grid;
  gap: 8px;
}

.dfc-inventory-row {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) 132px 90px minmax(150px, auto);
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(10, 31, 68, 0.1);
  border-radius: 14px;
  background: #fffefb;
}

.dfc-inventory-row.is-blocked {
  border-color: rgba(185, 28, 44, 0.18);
  background: rgba(185, 28, 44, 0.025);
}

.dfc-availability-state {
  justify-self: end;
  font-size: 12px;
  font-weight: 800;
}

.dfc-availability-state.open { color: #16704a; }
.dfc-availability-state.blocked { color: #a32936; }

.dfc-inventory-form .dfc-field label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.dfc-inventory-form .dfc-field label span {
  color: #2e59c6;
  letter-spacing: 0;
  text-transform: none;
}

.dfc-sponsor-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  padding: 0 20px 20px;
}

.dfc-sponsor-card {
  text-align: left;
  display: grid;
  gap: 14px;
  cursor: pointer;
}

.dfc-logo-badge,
.dfc-export-icon {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(46, 89, 198, 0.1);
  color: #2e59c6;
  font-weight: 800;
  font-size: 18px;
}

.dfc-accent-name {
  font-size: 28px;
  line-height: 1;
  color: #0a1f44;
}

.dfc-sponsor-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: rgba(10, 31, 68, 0.7);
  font-size: 14px;
}

.dfc-roster-stats {
  color: rgba(10, 31, 68, 0.72);
  font-size: 15px;
  line-height: 1.5;
}

.dfc-flag {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  font-size: 11px;
}

.dfc-flag.amber {
  background: rgba(184, 114, 28, 0.12);
  color: #b8721c;
}

.dfc-flag.red {
  background: rgba(185, 28, 44, 0.12);
  color: #b91c2c;
}

.dfc-flag.green {
  background: rgba(30, 142, 90, 0.12);
  color: #1e8e5a;
}

.dfc-hole-board {
  padding-bottom: 20px;
}

.dfc-hole-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding: 0 20px;
}

.dfc-hole-card {
  text-align: left;
  display: grid;
  gap: 10px;
  cursor: pointer;
}

.dfc-hole-card.assigned {
  background: rgba(30, 142, 90, 0.08);
}

.dfc-hole-number {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2e59c6;
  font-weight: 700;
}

.dfc-hole-team {
  font-size: 22px;
  line-height: 1.1;
  color: #0a1f44;
  font-weight: 800;
}

.dfc-hole-sponsor {
  font-size: 13px;
  color: rgba(10, 31, 68, 0.68);
}

.dfc-export-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.dfc-export-card {
  display: grid;
  gap: 12px;
}

.dfc-export-count {
  font-size: 13px;
  color: rgba(10, 31, 68, 0.62);
}

.dfc-export-note {
  padding: 0 4px;
  color: rgba(10, 31, 68, 0.62);
  font-size: 14px;
  line-height: 1.55;
}

.dfc-detail-overlay,
.dfc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 31, 68, 0.42);
  z-index: 1200;
}

.dfc-detail-overlay {
  opacity: 0;
  pointer-events: none;
}

.dfc-detail-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.dfc-detail-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(760px, 96vw);
  background: #fafaf7;
  box-shadow: -24px 0 54px rgba(10, 31, 68, 0.16);
  transform: translateX(100%);
  transition: transform 0.24s ease;
  z-index: 1201;
  overflow-y: auto;
}

.dfc-detail-drawer.open {
  transform: translateX(0);
}

.dfc-detail-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #0a1f44;
  color: #f2efe9;
  padding: 28px 24px 18px;
}

.dfc-detail-meta {
  color: rgba(242, 239, 233, 0.78);
  margin-top: 10px;
}

.dfc-detail-tabs {
  margin-top: 18px;
}

.dfc-detail-tab {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(242, 239, 233, 0.82);
}

.dfc-detail-tab span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  margin-left: 8px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.dfc-detail-close {
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 16px;
  line-height: 1;
}

.dfc-detail-head .dfc-detail-close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.dfc-detail-body {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.dfc-modal {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  margin: 16px auto;
  background: #fffefb;
  border-radius: 26px;
  border: 1px solid rgba(10, 31, 68, 0.12);
  padding: 24px;
  position: relative;
  z-index: 1202;
}

.dfc-modal-wide {
  width: min(980px, calc(100vw - 32px));
}

body.dfc-overlay-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

.dfc-drawer-overlay {
  display: flex;
  justify-content: flex-end;
  z-index: 1300;
}

.dfc-form-drawer {
  width: min(620px, 100vw);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fafaf7;
  box-shadow: -26px 0 64px rgba(10, 31, 68, 0.24);
  position: relative;
  z-index: 1301;
  animation: dfc-drawer-in 0.22s ease-out both;
}

@keyframes dfc-drawer-in {
  from { transform: translateX(32px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.dfc-form-drawer-head {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  color: #f2efe9;
  background: #0a1f44;
}

.dfc-form-drawer-head .dfc-card-title { color: #f2efe9; }

.dfc-step-form {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dfc-step-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid rgba(10, 31, 68, 0.1);
  background: #fffefb;
}

.dfc-step-dot {
  min-width: 0;
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 11px 5px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: rgba(10, 31, 68, 0.56);
  font-size: 10px;
  font-weight: 700;
}

.dfc-step-dot span {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(10, 31, 68, 0.08);
}

.dfc-step-dot.active {
  color: #0a1f44;
  border-bottom-color: #2e59c6;
}

.dfc-step-dot.active span { color: #fff; background: #2e59c6; }

.dfc-form-drawer-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 22px;
}

.dfc-step-panel { display: none; gap: 16px; }
.dfc-step-panel.active { display: grid; }

.dfc-step-heading {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(10, 31, 68, 0.1);
}

.dfc-step-heading strong { color: #0a1f44; font-size: 20px; }
.dfc-step-heading span { color: rgba(10, 31, 68, 0.62); font-size: 13px; line-height: 1.45; }

.dfc-form-drawer-actions {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px;
  border-top: 1px solid rgba(10, 31, 68, 0.1);
  background: #fffefb;
}

.dfc-form-drawer-actions > span {
  margin-right: auto;
  color: rgba(10, 31, 68, 0.6);
  font-size: 12px;
}

.dfc-capacity-callout,
.dfc-review-card {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(46, 89, 198, 0.07);
  color: #0a1f44;
  font-size: 13px;
  line-height: 1.5;
}

.dfc-review-card ul { margin: 8px 0 0; padding-left: 18px; }
.dfc-player-entry-grid.compact { grid-template-columns: 1fr; }
.dfc-player-entry-grid.compact .dfc-player-entry { padding: 13px; }
.dfc-email-option { margin: 4px 0 14px; }
.dfc-balance-preview { padding: 11px 13px; border-radius: 10px; background: rgba(10, 31, 68, 0.05); color: rgba(10, 31, 68, 0.7); font-size: 13px; font-weight: 700; }
.dfc-balance-preview.is-due { color: #9b5e12; background: rgba(184, 114, 28, 0.1); }
.dfc-balance-preview.is-credit { color: #16704a; background: rgba(30, 142, 90, 0.1); }

.dfc-audit-list { display: grid; gap: 8px; }
.dfc-audit-list > div { display: grid; grid-template-columns: auto auto; gap: 3px 10px; padding: 10px 12px; border-radius: 10px; background: rgba(10, 31, 68, 0.045); }
.dfc-audit-list span { color: rgba(10, 31, 68, 0.58); font-size: 11px; }
.dfc-audit-list b { justify-self: end; color: #0a1f44; font-size: 12px; }
.dfc-audit-list small { grid-column: 1 / -1; }
.dfc-detail-edit { margin-top: 14px; }

#dfc-admin-app :is(button, a, input, select, textarea):focus-visible {
  outline: 3px solid rgba(46, 89, 198, 0.42);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .dfc-form-drawer,
  .dfc-detail-drawer {
    animation: none;
    transition: none;
  }
}

.dfc-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dfc-form-section {
  display: grid;
  gap: 14px;
  margin: 22px 0;
  padding-top: 20px;
  border-top: 1px solid rgba(10, 31, 68, 0.12);
}

.dfc-player-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dfc-player-entry {
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(10, 31, 68, 0.12);
  border-radius: 18px;
  background: rgba(46, 89, 198, 0.03);
}

.dfc-player-entry legend {
  padding: 0 8px;
  color: #0a1f44;
  font-size: 13px;
  font-weight: 800;
}

.dfc-custom-field-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(220px, 1.4fr) auto;
  gap: 12px;
  align-items: end;
}

.dfc-custom-detail-list {
  margin-top: 16px;
}

.dfc-field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.dfc-field label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(10, 31, 68, 0.62);
  font-weight: 700;
}

.dfc-field textarea,
.dfc-textarea {
  min-height: 120px;
  resize: vertical;
}

.checkbox-field label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.dfc-tip-box,
.dfc-error-banner,
.dfc-loading-panel,
.dfc-admin-loading,
.dfc-toast {
  border-radius: 18px;
  padding: 16px 18px;
}

.dfc-tip-box {
  background: rgba(46, 89, 198, 0.08);
  color: rgba(10, 31, 68, 0.72);
  font-size: 14px;
  line-height: 1.55;
}

.dfc-error-banner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  background: rgba(185, 28, 44, 0.08);
  border: 1px solid rgba(185, 28, 44, 0.18);
  color: #b91c2c;
  margin-bottom: 18px;
}

.dfc-loading-panel,
.dfc-admin-loading {
  border: 1px solid rgba(10, 31, 68, 0.1);
  background: #fffefb;
  color: rgba(10, 31, 68, 0.66);
}

.dfc-skeleton-card {
  min-height: 102px;
  background: linear-gradient(90deg, rgba(10, 31, 68, 0.05), rgba(10, 31, 68, 0.09), rgba(10, 31, 68, 0.05));
  background-size: 220% 100%;
  animation: dfcSkeleton 1.25s linear infinite;
}

@keyframes dfcSkeleton {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -20% 0;
  }
}

.dfc-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  background: #0a1f44;
  color: #f2efe9;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 18px 38px rgba(10, 31, 68, 0.18);
  z-index: 1300;
}

.dfc-toast.error {
  background: #b91c2c;
}

.dfc-busy-overlay {
  position: fixed;
  inset: 0;
  z-index: 1290;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(250, 250, 247, 0.58);
  backdrop-filter: blur(2px);
  cursor: wait;
}

.dfc-busy-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  justify-content: center;
  padding: 16px 20px;
  border: 1px solid rgba(10, 31, 68, 0.12);
  border-radius: 14px;
  background: #fffefb;
  color: #0a1f44;
  font-weight: 700;
  box-shadow: 0 18px 42px rgba(10, 31, 68, 0.18);
}

.dfc-busy-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid rgba(53, 89, 199, 0.18);
  border-top-color: #3559c7;
  animation: dfcBusySpin 0.72s linear infinite;
}

@keyframes dfcBusySpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1200px) {
  .dfc-live-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .dfc-admin-topbar,
  .dfc-admin-brandbar,
  .dfc-card-head,
  .dfc-section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .dfc-field-grid,
  .dfc-grid-2,
  .dfc-player-entry-grid,
  .dfc-custom-field-row {
    grid-template-columns: 1fr;
  }

  .dfc-kv {
    grid-template-columns: 1fr;
  }

  .dfc-detail-drawer {
    width: 92vw;
  }
}

@media (max-width: 767px) {
  .dfc-admin-shell {
    padding-top: 0;
  }

  #dfc-admin-app {
    padding: 0 12px;
  }

  .dfc-live-stats,
  .dfc-admin-stats,
  .dfc-export-grid,
  .dfc-hole-grid,
  .dfc-sponsor-grid {
    grid-template-columns: 1fr;
  }

  .dfc-detail-drawer {
    width: 100vw;
  }

  .dfc-modal {
    width: calc(100vw - 20px);
    margin: 10px auto;
    padding: 18px;
  }

  .dfc-capacity-setting {
    align-items: stretch;
    flex-direction: column;
  }

  .dfc-capacity-setting input { width: 100%; }

  .dfc-inventory-row {
    grid-template-columns: 1fr 1fr;
  }

  .dfc-inventory-name { grid-column: 1 / -1; }
  .dfc-availability-state { justify-self: start; }

  .dfc-form-drawer { width: 100vw; }
  .dfc-form-drawer-body { padding: 16px; }
  .dfc-form-drawer-actions { padding: 12px 16px; }
  .dfc-form-drawer-actions { flex-wrap: wrap; }
  .dfc-step-dot { font-size: 0; }
  .dfc-step-dot span { font-size: 11px; }

  .dfc-toolbar,
  .dfc-section-head,
  .dfc-list,
  .dfc-detail-body {
    padding: 16px;
  }

  .dfc-table th,
  .dfc-table td {
    padding: 14px 12px;
  }
}

/* Dashboard filtering and exports. Keep controls usable on narrow admin screens. */
.dfc-admin-shell .dfc-search { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.dfc-admin-shell .dfc-search > input { flex: 1 1 260px; }
.dfc-admin-shell .dfc-filter-field { display: grid; gap: 4px; font-size: 12px; color: #5e675f; }
.dfc-admin-shell .dfc-filter-field input { width: 130px; min-width: 0; }
.dfc-admin-shell .dfc-filter-toolbar { gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.dfc-admin-shell .dfc-filter-toolbar input { flex: 1 1 240px; }
.dfc-admin-shell .dfc-export-toolbar { margin: 16px 0; gap: 12px; flex-wrap: wrap; }
.dfc-admin-shell select[data-filter-input], .dfc-admin-shell input[data-filter-input] { padding: 10px 12px; border: 1px solid #d7ded8; border-radius: 6px; background: #fff; color: #26382e; }
.dfc-admin-shell .dfc-modal [data-modal-error] { margin-bottom: 16px; padding: 12px; background: #fff1eb; color: #8a3424; }

.dfc-pagination { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; padding: 18px 0 0; color: #536458; font-size: 13px; }
.dfc-pagination > span:first-child { margin-right: auto; }
.dfc-pagination label { display: flex; align-items: center; gap: 8px; }
.dfc-pagination select { padding: 8px; border: 1px solid #d7ded8; background: #fff; border-radius: 6px; }
.dfc-pagination button:disabled { opacity: .45; cursor: default; }

/* Keep status controls compact when search/date fields wrap. */
.dfc-admin-shell .dfc-toolbar:has(> .dfc-filter-row) { flex-direction: column; align-items: stretch; }
.dfc-admin-shell .dfc-toolbar > .dfc-filter-row { align-items: center; align-content: flex-start; gap: 8px; }
.dfc-admin-shell .dfc-filter-row > .dfc-filter { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-height: 40px; height: auto; padding: 9px 16px; line-height: 20px; }
.dfc-admin-shell .dfc-filter-field { flex: 0 1 140px; min-width: 0; }
.dfc-admin-shell .dfc-filter-field input { width: 100%; box-sizing: border-box; }
.dfc-admin-shell .dfc-search > input { min-width: 0; box-sizing: border-box; }
