
* {
    box-sizing: border-box;
  }
  
  body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #eef3fb;
    color: #0f172a;
  }
  
  .container {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
  }
  
  .admin-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    border-bottom: 1px solid #dde6f2;
  }
  
  .header-row {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
  
  .brand-wrap {
    display: flex;
    gap: 16px;
    align-items: center;
    text-decoration: none;
  }
  
  .brand-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
  }
  
  
.brand {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: 0.05em;
  font-weight: 800;
}

.brand .n { color: #f97316; }
.brand .g { color: #1d4ed8; }
.brand .c { color: #0f766e; }
.brand .x { color: #7c3aed; }
.brand .a { color: #dc2626; }
.brand .i { color: #0891b2; }
.brand .solutions {
  margin-left: 8px;
  color: #0f172a;
  font-size: 0.94rem;
  letter-spacing: 0.14em;
}

.brand-addon {
  margin-left: 10px;
  color: #0b2f6b;
  font-size: 1rem;
  letter-spacing: 0.12em;
}
  
  .brand-subtitle {
    margin: 4px 0 0;
    color: #526173;
    font-size: 14px;
  }
  
  .nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  
  .nav-links a,
  .nav-btn {
    text-decoration: none;
    color: #0b2f6b;
    font-weight: 700;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 10px;
  }
  
  .nav-links a.active,
  .nav-btn:hover,
  .nav-links a:hover {
    background: #e8f0ff;
  }
  
  .admin-shell {
    padding: 24px 0 40px;
  }
  
  .admin-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
  
  .summary-card,
  .table-card,
  .admin-panel,
  .modal-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e7edf5;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
  }
  
  .summary-card {
    padding: 18px;
  }
  
  .summary-card p {
    margin: 0 0 6px;
    color: #64748b;
    font-size: 13px;
    text-transform: uppercase;
  }
  
  .summary-card h3 {
    margin: 0;
    font-size: 24px;
  }
  
  .admin-tabs-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
  }
  
  .tab-btn {
    border: 1px solid #d8e1ef;
    background: #f8fbff;
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 700;
  }
  
  .tab-btn.active {
    background: #0b2f6b;
    color: #ffffff;
  }
  
  .admin-panel {
    margin-top: 20px;
    padding: 20px;
    display: none;
  }
  
  .admin-panel.active {
    display: block;
  }
  
  .panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
  }
  
  .table-card {
    overflow: auto;
    padding: 0;
  }
  
  .data-table {
    width: 100%;
    border-collapse: collapse;
  }
  
  .data-table th,
  .data-table td {
    text-align: left;
    padding: 14px;
    border-bottom: 1px solid #e8edf4;
    vertical-align: top;
  }
  
  .data-table th {
    font-size: 13px;
    text-transform: uppercase;
    color: #64748b;
    background: #f8fbff;
  }
  
  .action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .small-btn {
    border: none;
    border-radius: 10px;
    padding: 8px 12px;
    background: #e8f0ff;
    color: #0b2f6b;
    font-weight: 700;
    cursor: pointer;
  }
  
  .small-btn.primary {
    background: #0b2f6b;
    color: #ffffff;
  }
  
  .status-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef6ff;
    color: #0b2f6b;
    font-weight: 700;
    font-size: 12px;
  }
  
  .modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  
  .modal.hidden {
    display: none;
  }
  
  .modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
  }
  
  .modal-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 680px;
    padding: 20px;
  }
  
  .icon-btn {
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    cursor: pointer;
    background: #eef6ff;
    color: #0b2f6b;
    font-size: 24px;
  }
  
  .modal-form {
    display: grid;
    gap: 14px;
  }
  
  .field {
    display: grid;
    gap: 8px;
  }
  
  .field label {
    font-weight: 700;
  }
  
  .field input,
  .field select,
  .field textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #cad5e3;
    background: #ffffff;
    font: inherit;
  }
  
  .primary-btn {
    border: none;
    border-radius: 12px;
    padding: 12px 18px;
    cursor: pointer;
    font-weight: 700;
    background: #0b2f6b;
    color: #ffffff;
  }
  
  @media (max-width: 1100px) {
    .admin-summary-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  
  @media (max-width: 760px) {
    .admin-summary-grid {
      grid-template-columns: 1fr;
    }
  
    .header-row {
      flex-direction: column;
      align-items: flex-start;
      padding: 14px 0;
    }
  
    .nav-links {
      flex-wrap: wrap;
    }
  }
  

.details-content {
  display: grid;
  gap: 18px;
}

.modal-card-lg {
  max-width: 980px;
}

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

.detail-card {
  border: 1px solid #e7edf5;
  border-radius: 16px;
  padding: 16px;
  background: #f8fbff;
}

.detail-card.full {
  grid-column: 1 / -1;
}

.detail-card h4 {
  margin: 0 0 12px;
  color: #0b2f6b;
}

.detail-list {
  display: grid;
  gap: 8px;
}

.detail-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #e5edf8;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  color: #64748b;
  font-weight: 700;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.note-box {
  padding: 16px;
  border-radius: 14px;
  background: #f8fbff;
  border: 1px dashed #bfd4ff;
  color: #334155;
}

@media (max-width: 900px) {
  .detail-grid,
  .admin-summary-grid {
    grid-template-columns: 1fr;
  }

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


.modal-card {
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.modal-card .panel-head {
  padding: 20px 20px 0;
  margin-bottom: 0;
  flex-shrink: 0;
}

.modal-form,
.details-content {
  padding: 20px;
  overflow: auto;
}

.details-content {
  max-height: calc(100vh - 120px);
}

.modal-card-lg {
  max-width: 1080px;
}

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

.hidden-section {
  display: none;
}

.note-box.compact {
  padding: 12px 14px;
}

.table-wrap-scroll {
  overflow: auto;
  max-width: 100%;
}

@media (max-width: 900px) {
  .modal-section-grid {
    grid-template-columns: 1fr;
  }
}



.admin-flash {
  position: fixed;
  top: 96px;
  right: 24px;
  z-index: 5000;
  width: min(420px, calc(100vw - 32px));
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #cfe0ff;
  background: #eef6ff;
  color: #0b2f6b;
  font-weight: 700;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.18);
}

.admin-flash.hidden {
  display: none;
}

.admin-flash.is-error {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}

.admin-flash.is-success {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #166534;
}


.small-btn.is-loading,
.primary-btn.is-loading {
  opacity: 0.75;
  pointer-events: none;
}


.top-performers-admin-form {
  display: grid;
  gap: 18px;
}

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

.top-performers-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.performer-slot-card {
  border: 1px solid #dbe5f5;
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.performer-slot-card h4 {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.performer-slot-card .field {
  margin-bottom: 12px;
}

.performer-slot-card .field:last-child {
  margin-bottom: 0;
}

.performer-slot-card textarea,
.performer-slot-card input {
  width: 100%;
}

@media (max-width: 900px) {
  .top-performers-meta-grid {
    grid-template-columns: 1fr;
  }
}


.performer-slot-card select,
.performer-slot-card textarea,
.performer-slot-card input {
  width: 100%;
}

.performer-slot-card input[readonly] {
  background: #f8fbff;
  color: #475569;
}

.performer-readonly-note small {
  color: #64748b;
  display: block;
  line-height: 1.5;
}

.table-subtext {
  margin-top: 6px;
  font-size: 12px;
  color: #5b6b82;
}


.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.status-badge.yes {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.status-badge.no {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}


.stacked-actions { display:flex; flex-direction:column; gap:8px; align-items:flex-start; }
.inline-status-chip { display:inline-flex; align-items:center; padding:6px 10px; border-radius:999px; font-size:12px; font-weight:700; }
.inline-status-chip.success { background:#dcfce7; color:#166534; }


.admin-filter-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  margin: 12px 0 10px;
}

.admin-filter-bar .field {
  margin: 0;
}

.admin-filter-bar .field label {
  font-size: 13px;
}

.admin-filter-bar .field input,
.admin-filter-bar .field select {
  min-height: 46px;
}

.filter-action-field .small-btn {
  width: 100%;
  min-height: 46px;
}

.admin-filter-meta {
  margin: 8px 0 14px;
  color: #526173;
  font-size: 14px;
}

@media (max-width: 1180px) {
  .admin-filter-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .admin-filter-bar {
    grid-template-columns: 1fr;
  }
}

.action-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.action-select {
  min-width: 180px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 8px 10px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 600;
}

@media (max-width: 900px) {
  .action-menu {
    flex-direction: column;
    align-items: stretch;
  }

  .action-select {
    width: 100%;
  }
}
