@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&display=swap');

:root {
  --mh-primary: #5dbb96;
  --mh-primary-dark: #46a982;
  --mh-primary-soft: #e8f7f0;
  --mh-primary-border: #bfe7d6;
  --mh-text: #0f172a;
  --mh-muted: #64748b;
  --mh-bg: #f8fafc;
  --mh-card: #ffffff;
  --mh-line: #e2e8f0;
  --mh-danger: #fca5a5;
  --mh-gifted: #5dbb96;
  --mh-exceptional: #8b5cf6;
  --mh-promising: #facc15;
  --mh-failed: #fca5a5;
}

html, body {
  font-family: 'Cairo', sans-serif;
  background: var(--mh-bg);
  color: var(--mh-text);
}

body {
  min-height: 100vh;
}

a {
  text-decoration: none;
}

.page-wrap {
  min-height: 100vh;
  padding: 1.75rem 0;
}

.container-app {
  width: min(1220px, calc(100% - 24px));
  margin: 0 auto;
}

.card-surface {
  background: var(--mh-card);
  border: 1px solid var(--mh-line);
  border-radius: 1.75rem;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
}

.auth-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: stretch;
}

.hero-panel {
  border-radius: 2rem;
  padding: 2.5rem;
  color: #fff;
  background: linear-gradient(135deg, #7bc7aa 0%, #5dbb96 55%, #46a982 100%);
  min-height: 620px;
  position: relative;
  overflow: hidden;
}

.brand-logos {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.brand-logos-sidebar {
  margin-bottom: 0.9rem;
}

.brand-logo {
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.08));
}

.brand-logo-moe {
  height: 52px;
  width: auto;
}

.brand-logo-talent {
  height: 46px;
  width: auto;
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.hero-panel::before {
  width: 180px;
  height: 180px;
  inset-inline-start: -40px;
  bottom: -60px;
}

.hero-panel::after {
  width: 130px;
  height: 130px;
  inset-inline-end: -30px;
  top: 20px;
}

.hero-kicker {
  font-size: 0.9rem;
  opacity: 0.94;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin: 0 0 0.5rem;
}

.platform-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.platform-title-row .hero-title {
  margin-bottom: 0;
}

.trial-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.trial-badge-hero {
  padding: 0.48rem 0.78rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.hero-subtitle {
  font-size: 1.05rem;
  margin: 0;
}

.hero-box {
  margin-top: 1.75rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.5rem;
  padding: 1.25rem;
  max-width: 420px;
  backdrop-filter: blur(10px);
}

.auth-card {
  padding: 2rem;
  align-self: center;
}

.auth-badge {
  color: var(--mh-muted);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.auth-title {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.4rem;
}

.auth-desc {
  color: var(--mh-muted);
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.form-control,
.form-select,
.form-control:focus,
.form-select:focus {
  border-radius: 1rem;
}

.form-control,
.form-select {
  border-color: var(--mh-line);
  padding: 0.85rem 1rem;
}

.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 0.2rem rgba(93, 187, 150, 0.15);
  border-color: var(--mh-primary);
}

.btn {
  border-radius: 1rem;
  font-weight: 800;
  padding: 0.78rem 1rem;
}

.btn-primary {
  background: var(--mh-primary);
  border-color: var(--mh-primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--mh-primary-dark);
  border-color: var(--mh-primary-dark);
}

.btn-outline-primary {
  color: var(--mh-primary-dark);
  border-color: var(--mh-primary-border);
}

.btn-outline-primary:hover {
  background: var(--mh-primary-soft);
  color: var(--mh-primary-dark);
  border-color: var(--mh-primary-border);
}

.admin-permission-flags {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.permission-groups {
  display: grid;
  gap: 1rem;
}

.permission-groups.compact {
  gap: 0.75rem;
}

.permission-group {
  border: 1px solid var(--mh-line);
  border-radius: 1.25rem;
  padding: 1rem;
  background: #fbfdff;
}

.permission-group-title {
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.permission-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem 1rem;
}

.permission-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.admin-card {
  border: 1px solid var(--mh-line);
  border-radius: 1.5rem;
  padding: 1.25rem;
}

.admin-card + .admin-card {
  margin-top: 1rem;
}

.admin-table th,
.admin-table td {
  vertical-align: middle;
}

.admin-table-expand-row td {
  background: transparent;
}

.admin-inline-panel {
  padding: 1.25rem;
  border-top: 1px solid var(--mh-line);
  background: linear-gradient(180deg, #fcfefe 0%, #f8fbfd 100%);
}

.admin-inline-panel-muted {
  background: #fbfcff;
}

.steps {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.step-circle {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e2e8f0;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 800;
}

.step-circle.active {
  background: var(--mh-primary);
  color: #fff;
}

.step-line {
  flex: 1;
  min-width: 28px;
  height: 1px;
  background: #e2e8f0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.info-box {
  background: #f8fafc;
  border: 1px solid var(--mh-line);
  border-radius: 1rem;
  padding: 0.95rem;
}

.info-box .label {
  font-size: 0.8rem;
  color: var(--mh-muted);
  margin-bottom: 0.25rem;
}

.info-box .value {
  font-weight: 800;
}

.app-shell {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 1.5rem;
}

.sidebar-panel {
  padding: 1rem;
}

.brand-box {
  border-radius: 1.5rem;
  padding: 1.25rem;
  color: #fff;
  background: linear-gradient(135deg, #7bc7aa 0%, #5dbb96 100%);
  margin-bottom: 1rem;
}

.brand-title {
  font-size: 1.55rem;
  font-weight: 900;
}

.trial-badge-sidebar {
  margin-top: 0.55rem;
  margin-bottom: 0.55rem;
  padding: 0.42rem 0.68rem;
  color: #0f5f46;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.58);
}

.brand-subtitle {
  font-size: 0.95rem;
  opacity: 0.92;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-link-shell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 0.9rem;
  border-radius: 1rem;
  color: #334155;
  font-weight: 800;
}

.nav-link-shell:hover {
  background: #f8fafc;
  color: #334155;
}

.nav-link-shell.active {
  background: var(--mh-primary);
  color: #fff;
}

.nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #cbd5e1;
}

.nav-link-shell.active .nav-dot {
  background: #fff;
}

.content-stack {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.content-card {
  padding: 1.5rem;
}

.page-kicker {
  color: var(--mh-muted);
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.page-title {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.35rem;
}

.page-desc {
  color: var(--mh-muted);
  margin-bottom: 0;
}

.stats-overview {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(93, 187, 150, 0.12), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
}

.stats-overview::before {
  content: "";
  position: absolute;
  inset-inline-end: -70px;
  top: -70px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(93, 187, 150, 0.08);
}

.stats-overview-head {
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
}

.stats-overview-title {
  font-size: 1.55rem;
  font-weight: 900;
  margin: 0 0 0.3rem;
}

.stats-overview-desc {
  color: var(--mh-muted);
  margin-bottom: 0;
  max-width: 720px;
}

.stats-overview-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.stats-overview-card {
  --stats-accent: var(--mh-primary);
  min-height: 158px;
  padding: 1.15rem 1.15rem 1rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stats-overview-card::before {
  content: "";
  display: block;
  width: 54px;
  height: 5px;
  border-radius: 999px;
  background: var(--stats-accent);
}

.stats-overview-card.tone-primary {
  --stats-accent: var(--mh-primary);
}

.stats-overview-card.tone-exceptional {
  --stats-accent: var(--mh-exceptional);
}

.stats-overview-card.tone-gifted {
  --stats-accent: var(--mh-gifted);
}

.stats-overview-card.tone-promising {
  --stats-accent: #d3a100;
}

.stats-overview-card.tone-failed {
  --stats-accent: #d9465f;
}

.stats-overview-card.tone-info {
  --stats-accent: #0f766e;
}

.stats-overview-label {
  font-size: 0.95rem;
  font-weight: 800;
  color: #334155;
}

.stats-overview-value {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.1;
  color: #0f172a;
}

.stats-overview-meta {
  margin: auto 0 0;
  color: var(--mh-muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stat-box {
  padding: 1.25rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 900;
}

.stat-label {
  color: var(--mh-muted);
}

.coordinator-stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.65rem;
}

.coordinator-stat-box {
  min-height: 96px;
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
}

.coordinator-stat-box .stat-label {
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.5;
}

.coordinator-stat-box .stat-value {
  font-size: 1.45rem;
  line-height: 1.1;
  margin: 0.15rem 0 0.25rem;
}

.coordinator-stat-meta {
  margin-top: auto;
  color: var(--mh-muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.coordinator-login-details {
  padding: 0;
  overflow: hidden;
}

.coordinator-login-details summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  font-weight: 900;
}

.coordinator-login-details summary::-webkit-details-marker {
  display: none;
}

.coordinator-login-details summary::before {
  content: "+";
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mh-primary-soft);
  color: var(--mh-primary-dark);
  font-weight: 900;
}

.coordinator-login-details[open] summary::before {
  content: "-";
}

.coordinator-login-summary {
  margin-inline-start: auto;
  color: var(--mh-muted);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.coordinator-days-list {
  border-top: 1px solid var(--mh-line);
  padding: 0.45rem 1rem 0.85rem;
}

.coordinator-day-row {
  display: grid;
  grid-template-columns: minmax(70px, 1fr) minmax(95px, 1fr) 42px;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #f1f5f9;
  color: var(--mh-muted);
  font-size: 0.84rem;
}

.coordinator-day-row:last-child {
  border-bottom: 0;
}

.coordinator-day-row strong {
  color: var(--mh-text);
  font-size: 1rem;
  text-align: center;
}

.table-shell {
  overflow: auto;
  border: 1px solid #f1f5f9;
  border-radius: 1.25rem;
}

.table thead th {
  background: #f8fafc;
  color: var(--mh-muted);
  font-weight: 800;
  white-space: nowrap;
}

.table td,
.table th {
  vertical-align: middle;
  white-space: nowrap;
}

.talent-index-admin {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.talent-index-admin .content-card {
  padding: 1.25rem;
}

.talent-index-admin .page-title {
  font-size: clamp(1.55rem, 2.3vw, 1.85rem);
}

.talent-index-admin .page-desc {
  font-size: 0.92rem;
  line-height: 1.8;
  max-width: 78ch;
}

.talent-index-admin .stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
}

.talent-index-admin .stat-box {
  padding: 1rem;
}

.talent-index-admin .stat-value {
  font-size: 1.65rem;
  line-height: 1.1;
}

.ti-toolbar-form .form-label,
.ti-table .form-label {
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.ti-toolbar-form .form-control,
.ti-toolbar-form .form-select,
.ti-table .form-control,
.ti-table .form-select,
.ti-table textarea.form-control {
  font-size: 0.94rem;
  line-height: 1.45;
  padding: 0.65rem 0.8rem;
  min-height: 44px;
}

.ti-table textarea.form-control {
  min-height: 92px;
  resize: vertical;
}

.ti-table-shell {
  border-color: var(--mh-line);
  background: #fff;
}

.ti-table {
  min-width: 100%;
}

.ti-table thead th {
  font-size: 0.86rem;
  padding: 0.85rem 0.9rem;
}

.ti-table td {
  padding: 0.85rem 0.9rem;
  white-space: normal;
  line-height: 1.65;
}

.ti-table .ti-number-cell,
.ti-table .ti-value-cell,
.ti-table .ti-action-cell,
.ti-table .ti-date-cell,
.ti-table .ti-badge-cell {
  white-space: nowrap;
  text-align: center;
}

.ti-table .ti-wrap-cell,
.ti-table .ti-school-cell,
.ti-table .ti-status-cell,
.ti-table .ti-file-cell {
  min-width: 180px;
  overflow-wrap: anywhere;
}

.ti-records-table {
  min-width: 1080px;
}

.ti-records-table .ti-school-cell {
  min-width: 240px;
}

.ti-records-table .ti-status-cell {
  min-width: 220px;
}

.ti-records-table .ti-value-cell {
  width: 132px;
  min-width: 132px;
}

.ti-value-input {
  width: 100%;
  max-width: 6.5rem;
  margin-inline: auto;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.ti-search-input {
  max-width: 420px;
}

.ti-edit-table {
  min-width: 980px;
}

.ti-edit-table .ti-wrap-cell {
  min-width: 220px;
}

.ticket-card {
  border: 1px solid var(--mh-line);
  border-radius: 1.25rem;
  padding: 1rem;
}

.badge-soft {
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-weight: 800;
  font-size: 0.78rem;
}

.badge-exceptional {
  background: rgba(139, 92, 246, 0.12);
  color: var(--mh-exceptional);
}

.badge-gifted {
  background: rgba(93, 187, 150, 0.16);
  color: #1f7a5a;
}

.badge-promising {
  background: rgba(250, 204, 21, 0.2);
  color: #8a6b00;
}

.badge-failed {
  background: rgba(252, 165, 165, 0.25);
  color: #b91c1c;
}

.year-pill {
  background: #edf2f7;
  color: #334155;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 800;
}

.history-row {
  display: none;
  background: #fcfcfd;
}

.history-row.open {
  display: table-row;
}

.history-cell {
  padding: 1rem;
}

.history-list {
  display: grid;
  gap: 0.6rem;
}

.history-item {
  border: 1px solid var(--mh-line);
  border-radius: 1rem;
  padding: 0.8rem;
  background: #fff;
}

.empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--mh-muted);
}

.alert {
  border-radius: 1rem;
}

.page-section-title {
  font-size: 1.25rem;
  font-weight: 900;
}

.batch-processing-modal {
  border: 0;
  border-radius: 1.75rem;
  overflow: hidden;
}

.progress-modern {
  height: 14px;
  border-radius: 999px;
  background: #e8f1ed;
}

.progress-modern .progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, #5dbb96 0%, #46a982 100%);
}

.processing-progress-shell {
  padding: 1.1rem 1.15rem;
  border-radius: 1.25rem;
  background: #f8fafc;
  border: 1px solid var(--mh-line);
}

.processing-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.processing-stat-card {
  padding: 1rem;
  border-radius: 1.2rem;
  background: #f8fafc;
  border: 1px solid var(--mh-line);
}

.participations-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(93, 187, 150, 0.18), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f6fbf8 100%);
}

.participations-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  background: #effaf4;
  color: #13664a;
  border: 1px solid #cfeedd;
  font-weight: 900;
}

.participation-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 210px));
  gap: 0.85rem;
}

.participation-card {
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 100%;
}

.compact-card {
  border-radius: 1.35rem;
}

.coordinator-compact-card .participation-card-desc {
  font-size: 0.88rem;
  line-height: 1.7;
}

.participation-card-image-wrap {
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(180deg, #f6fbf8 0%, #eef7f2 100%);
  border: 1px solid #e3efe8;
}

.participation-card-image {
  width: 100%;
  height: 180px;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 0.5rem;
}

.participation-card.status-ready {
  background: linear-gradient(180deg, #ffffff 0%, #f8fcfa 100%);
}

.participation-card.status-draft {
  background: linear-gradient(180deg, #ffffff 0%, #fafaf9 100%);
}

.participation-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.participation-card-eyebrow {
  color: var(--mh-primary-dark);
  font-size: 0.82rem;
  font-weight: 900;
  margin-bottom: 0.3rem;
}

.participation-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
}

.participation-card-desc {
  color: var(--mh-muted);
  line-height: 1.75;
  margin: 0;
  font-size: 0.9rem;
}

.participation-status-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: #edf8f2;
  color: #17694c;
  border: 1px solid #cbe8d8;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.custom-status-chip {
  color: var(--status-chip-color, #17694c);
  background: color-mix(in srgb, var(--status-chip-color, #17694c) 12%, white);
  border-color: color-mix(in srgb, var(--status-chip-color, #17694c) 28%, white);
}

.participation-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.participation-meta-box {
  padding: 0.9rem;
  border-radius: 1rem;
  border: 1px solid #edf2f7;
  background: #fbfcfd;
}

.participation-meta-box .label {
  color: var(--mh-muted);
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.participation-meta-box .value {
  font-weight: 900;
  line-height: 1.7;
}

.participation-card-note {
  padding: 0.65rem 0.75rem;
  border-radius: 0.9rem;
  background: #f8fafc;
  color: #334155;
  border: 1px dashed #d8e2ec;
  font-weight: 700;
  font-size: 0.82rem;
}

.participation-school-list,
.participation-tags,
.participation-flow-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.participation-school-list span,
.participation-tags span,
.participation-flow-item {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-weight: 800;
}

.participation-card-actions {
  margin-top: auto;
}

.participation-quick-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.participation-quick-list span {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.55rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.74rem;
  font-weight: 800;
}

.participation-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1rem;
}

.participation-hero-media {
  width: min(260px, 100%);
  padding: 0.85rem;
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #e0efe6;
}

.participation-hero-logo {
  width: 100%;
  height: auto;
  display: block;
}

.participation-detail-block + .participation-detail-block {
  margin-top: 1.25rem;
}

.participation-block-title {
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
}

.participation-ranking-list {
  display: grid;
  gap: 0.75rem;
}

.participation-ranking-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem;
  border: 1px solid #edf2f7;
  border-radius: 1rem;
  background: #fbfcfd;
}

.participation-ranking-number {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--mh-primary);
  color: #fff;
  font-weight: 900;
}

.participation-ranking-name {
  font-weight: 900;
}

.participation-ranking-meta {
  color: var(--mh-muted);
  font-size: 0.85rem;
}

.participation-status-inline {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
}

.participation-status-inline.is-approved {
  background: rgba(93, 187, 150, 0.16);
  color: #1f7a5a;
}

.participation-status-inline.is-cancelled {
  background: rgba(252, 165, 165, 0.2);
  color: #b42318;
}

@media (max-width: 767.98px) {
  .stats-overview-card {
    min-height: 140px;
  }

  .stats-overview-title {
    font-size: 1.3rem;
  }

  .stats-overview-value {
    font-size: 1.7rem;
  }
}

.processing-stat-label {
  color: var(--mh-muted);
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.processing-stat-value {
  font-size: 1.45rem;
  font-weight: 900;
}

.processing-log-card {
  padding: 1rem 1.05rem;
  border-radius: 1.25rem;
  background: #fbfcfd;
  border: 1px solid var(--mh-line);
}

.processing-log-list {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  max-height: 220px;
  overflow: auto;
}

.processing-log-list li {
  padding: 0.7rem 0.85rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid #edf2f7;
  line-height: 1.8;
}

.documents-grid,
.template-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.2rem;
}

.template-layout {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

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

.document-inline-form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(180px, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
  min-width: 520px;
}

.document-editor-toolbar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  padding: 0.75rem;
  border: 1px solid var(--mh-line);
  border-radius: 1rem;
  background: #f8fafc;
}

.document-editor-select {
  width: auto;
  min-width: 120px;
}

.document-color-tool {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid var(--mh-line);
  color: #334155;
  font-size: 0.85rem;
  font-weight: 800;
}

.document-color-tool input {
  width: 34px;
  height: 28px;
  border: 0;
  background: transparent;
  padding: 0;
}

.document-editor-shell {
  overflow: auto;
  padding: 1rem;
  border: 1px solid var(--mh-line);
  border-radius: 1.25rem;
  background: #edf2f7;
}

.document-editor-page {
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto;
  padding: 18mm;
  background: #fff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  outline: none;
  line-height: 1.9;
}

.document-editor-page.landscape {
  width: 297mm;
  min-height: 210mm;
}

.document-editor-page:focus {
  border-color: var(--mh-primary);
}

.tag-palette {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 360px;
  overflow: auto;
}

.tag-chip {
  width: 100%;
  border: 1px solid var(--mh-line);
  border-radius: 0.8rem;
  background: #fff;
  color: #0f172a;
  padding: 0.65rem 0.75rem;
  text-align: start;
  font-weight: 800;
}

.tag-chip span {
  display: block;
  margin-top: 0.15rem;
  color: var(--mh-muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.document-tags-cell {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  min-width: 260px;
}

.document-tags-cell span {
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
}

.print-body {
  margin: 0;
  background: #dfe6ed;
}

.print-sheet-wrap {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: 16px;
}

.print-sheet {
  position: relative;
  width: 210mm;
  height: 297mm;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
}

.print-sheet.landscape {
  width: 297mm;
  height: 210mm;
}

.print-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.print-content {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.print-content > *:first-child {
  margin-top: 0;
}

@media print {
  html,
  body,
  .print-sheet-wrap {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
  }

  .print-sheet {
    box-shadow: none;
    margin: 0;
    page-break-after: avoid;
  }
}

@media (max-width: 991px) {
  .auth-layout,
  .app-shell,
  .stats-grid,
  .info-grid,
  .processing-stats-grid,
  .participation-detail-layout,
  .template-tags-grid,
  .template-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: auto;
  }

  .brand-logos {
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .talent-index-admin .content-card {
    padding: 1rem;
  }

  .talent-index-admin .page-title {
    font-size: 1.45rem;
  }

  .ti-toolbar-form .form-control,
  .ti-toolbar-form .form-select,
  .ti-table .form-control,
  .ti-table .form-select,
  .ti-table textarea.form-control {
    font-size: 0.9rem;
    min-height: 42px;
  }

  .ti-search-input {
    max-width: 100%;
  }

  .document-editor-page,
  .document-editor-page.landscape {
    width: 100%;
    min-height: 520px;
    padding: 1rem;
  }

  .document-inline-form {
    min-width: 360px;
    grid-template-columns: 1fr;
  }

  .participation-meta-grid {
    grid-template-columns: 1fr;
  }
}
