/* TAHE Professional Partner Program
 * Deliberately reuses the black/white TAHE Academy design language.
 */
.tahe-partner-app,.tahe-partner-admin{
  --tp-black:#111111;
  --tp-white:#ffffff;
  --tp-gray-50:#fafafa;
  --tp-gray-100:#f3f3f3;
  --tp-gray-200:#e8e8e8;
  --tp-gray-300:#d5d5d5;
  --tp-gray-500:#717171;
  --tp-gray-700:#3b3b3b;
  --tp-radius:8px;
}
.tahe-partner-app{
  display:grid;
  gap:20px;
  color:var(--tp-black);
  font-family:inherit;
}
.tahe-partner-hero{padding:28px;border:1px solid var(--tp-black);border-radius:var(--tp-radius);background:var(--tp-black);color:#fff}
.tahe-partner-hero .tahe-kicker,.tahe-partner-card .tahe-kicker{display:block;margin:0 0 6px;color:inherit;font-size:11px;font-weight:700;letter-spacing:.09em;text-transform:uppercase}
.tahe-partner-card .tahe-kicker{color:var(--tp-gray-500)}
.tahe-partner-hero h1{margin:0 0 7px;color:#fff;font-size:clamp(28px,3.5vw,40px);line-height:1.15}
.tahe-partner-hero p{margin:0;color:#f1f1f1}
.tahe-level-badge{display:inline-flex;margin-top:16px;padding:6px 10px;border:1px solid rgba(255,255,255,.4);border-radius:999px;font-size:12px;font-weight:700}

.tahe-partner-alert{display:flex;flex-direction:column;gap:3px;padding:14px 16px;border:1px solid var(--tp-gray-300);border-left:3px solid var(--tp-black);border-radius:6px;background:var(--tp-gray-50)}
.tahe-partner-alert.is-warning{background:#fffdf5}
.tahe-partner-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.tahe-partner-metric,.tahe-partner-card{min-width:0;padding:20px;border:1px solid var(--tp-gray-300);border-radius:var(--tp-radius);background:#fff;box-shadow:none}
.tahe-partner-metric{display:flex;flex-direction:column;min-height:118px}
.tahe-partner-metric span,.tahe-partner-metric small{color:var(--tp-gray-500)}
.tahe-partner-metric strong{display:block;margin:auto 0 4px;color:var(--tp-black);font-size:25px;line-height:1.1}
.tahe-partner-card h2{margin:0 0 8px;font-size:22px;line-height:1.25}
.tahe-partner-card h3{margin:4px 0 5px;font-size:17px}
.tahe-section-head,.tahe-progress-card,.tahe-member{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.tahe-section-head{margin-bottom:17px}
.tahe-section-head p{margin:5px 0 0;color:var(--tp-gray-700)}

.tahe-module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.tahe-module{display:flex;flex-direction:column;min-height:175px;padding:17px;border:1px solid var(--tp-gray-300);border-radius:6px;background:#fff}
.tahe-module.is-active{border-color:var(--tp-black)}
.tahe-module.is-available,.tahe-module.is-chosen{background:var(--tp-gray-50)}
.tahe-module-state{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.tahe-module p{margin:0 0 8px;color:var(--tp-gray-500)}
.tahe-module small{display:block;margin-bottom:12px;color:var(--tp-gray-700)}
.tahe-module>strong{margin-top:auto;font-size:12px}

.tahe-benefit-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.tahe-benefit-grid>div{padding:14px;border:1px solid var(--tp-gray-200);border-radius:6px;background:var(--tp-gray-50)}
.tahe-benefit-grid span,.tahe-benefit-grid strong{display:block}
.tahe-benefit-grid span{color:var(--tp-gray-500);font-size:12px}
.tahe-benefit-grid strong{margin-top:5px}

.tahe-member-list{border-top:1px solid var(--tp-gray-200)}
.tahe-member{padding:13px 0;border-bottom:1px solid var(--tp-gray-200)}
.tahe-member small{display:block;color:var(--tp-gray-500)}
.tahe-member-modules{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}
.tahe-member-module{display:inline-flex;padding:3px 7px;border:1px solid var(--tp-gray-300);border-radius:999px;background:#fff;font-size:10px;font-weight:700}
.tahe-member-module.is-overdue{border-style:dashed}
.tahe-add-member{display:grid;grid-template-columns:1fr 1fr 1fr 1.2fr auto;gap:10px;align-items:end;margin-top:18px}
.tahe-member-module-select{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:700}
.tahe-member-module-select select{min-height:76px}

.tahe-cert-table{overflow:auto;margin-top:20px;border:1px solid var(--tp-gray-300);border-radius:6px}
.tahe-cert-row{display:grid;grid-template-columns:1.2fr 1.5fr 1fr 1fr;gap:10px;padding:10px 12px;border-bottom:1px solid var(--tp-gray-200)}
.tahe-cert-row:last-child{border-bottom:0}
.tahe-cert-row.head{background:var(--tp-gray-50);font-weight:700}
.status-good{font-weight:700}.status-warn{font-weight:700;text-decoration:underline;text-decoration-style:dotted}.status-bad{font-weight:700;text-decoration:line-through}

.tahe-order-table{overflow:auto;border:1px solid var(--tp-gray-300);border-radius:6px}
.tahe-order-row{display:grid;grid-template-columns:1fr 1fr 1.3fr 1fr;gap:10px;padding:10px 12px;border-bottom:1px solid var(--tp-gray-200)}
.tahe-order-row:last-child{border-bottom:0}.tahe-order-row.head{background:var(--tp-gray-50);font-weight:700}
.tahe-credit-history{display:grid;gap:0;border-top:1px solid var(--tp-gray-200)}
.tahe-credit-history>div{display:flex;justify-content:space-between;gap:16px;padding:11px 0;border-bottom:1px solid var(--tp-gray-200)}
.tahe-credit-history span{color:var(--tp-gray-700)}
.tahe-credit-history strong{white-space:nowrap}.tahe-credit-history .is-debit:before{content:"− "}.tahe-credit-history .is-credit:before{content:"+ "}

.tahe-product-access{padding:11px 0;margin:8px 0;font-weight:700}
.tahe-access-ok{border-left:3px solid var(--tp-black);padding-left:10px}.tahe-access-locked{border-left:3px dashed var(--tp-black);padding-left:10px}
.tahe-payment-benefit-note{padding:12px 14px;margin:10px 0;border:1px solid var(--tp-gray-300);border-left:3px solid var(--tp-black);border-radius:5px;background:var(--tp-gray-50)}

/* Real WooCommerce Partner credit */
.tahe-partner-credit-box{margin:0 0 18px;padding:17px;border:1px solid var(--tp-black);border-radius:var(--tp-radius);background:#fff}
.tahe-partner-credit-box h3{margin:0 0 6px;font-size:18px}.tahe-partner-credit-box p{margin:5px 0 0}
.tahe-partner-credit-form{display:flex;flex-wrap:wrap;align-items:end;gap:8px;margin-top:13px}
.tahe-partner-credit-form label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:700}
.tahe-partner-credit-form input{width:135px!important;min-height:40px}

/* Training integration */
.tahe-partner-education-use,.tahe-training-attendee{margin:12px 0;padding:13px;border:1px solid var(--tp-gray-300);border-radius:6px;background:var(--tp-gray-50)}
.tahe-partner-education-use label,.tahe-training-attendee label{font-weight:700}
.tahe-partner-education-use p,.tahe-training-attendee p{margin:5px 0 0;color:var(--tp-gray-500);font-size:12px}
.tahe-training-attendee select{display:block;width:100%;margin-top:5px}

/* Admin */
.tahe-partner-admin{max-width:1180px}.tahe-partner-admin>h1{margin-bottom:4px}
.tahe-admin-grid,.tahe-member-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}
.tahe-member-admin-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.tahe-admin-panel,.tahe-admin-salon-head{padding:17px;border:1px solid #dcdcde;border-radius:6px;background:#fff}
.tahe-admin-panel h2,.tahe-admin-panel h3{margin-top:0}.tahe-admin-salon-head{margin:15px 0}
.tahe-inline-form{display:flex;gap:10px;align-items:end;margin:15px 0}
.tahe-inline-field{display:inline-flex;align-items:center;gap:5px;margin:0 12px 8px 0}.tahe-inline-field input{width:95px}
.tahe-check{display:inline-block;margin:0 16px 8px 0}
.tahe-module-admin-form{overflow:auto}
.tahe-partner-cert-form{display:grid;grid-template-columns:1.1fr 1.2fr 1fr 1fr 1.3fr auto;gap:10px;align-items:end;margin:10px 0 24px}
.tahe-partner-cert-form label,.tahe-partner-cert-edit label{display:flex;flex-direction:column;gap:4px;font-weight:600}
.tahe-partner-cert-form input,.tahe-partner-cert-form select,.tahe-partner-cert-edit input,.tahe-partner-cert-edit select,.tahe-partner-cert-edit textarea{width:100%}
.tahe-admin-cert-card{margin:8px 0;border:1px solid #dcdcde;border-radius:6px;background:#fff}
.tahe-admin-cert-card>summary{padding:12px 14px;cursor:pointer}.tahe-admin-cert-actions{padding:14px;border-top:1px solid #dcdcde}
.tahe-partner-cert-edit{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.tahe-partner-cert-edit p{grid-column:1/-1}
.tahe-cert-secondary-actions{display:flex;flex-wrap:wrap;gap:8px;padding-top:10px;border-top:1px solid #eee}
.tahe-member-module-form{margin:0}.tahe-member-module-check{display:grid;grid-template-columns:auto 1fr;gap:0 7px;padding:7px 0;border-bottom:1px solid #eee}.tahe-member-module-check small{grid-column:2;color:#646970}.tahe-member-module-check:last-of-type{border-bottom:0}

@media(max-width:980px){
  .tahe-partner-grid,.tahe-benefit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tahe-member-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tahe-add-member,.tahe-partner-cert-form{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  .tahe-partner-grid,.tahe-module-grid,.tahe-benefit-grid,.tahe-admin-grid,.tahe-member-admin-grid,.tahe-add-member,.tahe-partner-cert-form,.tahe-partner-cert-edit{grid-template-columns:1fr}
  .tahe-progress-card,.tahe-section-head{flex-direction:column;align-items:flex-start}
  .tahe-cert-row,.tahe-order-row{grid-template-columns:1fr 1fr}.tahe-cert-row.head,.tahe-order-row.head{display:none}
  .tahe-partner-credit-form{align-items:stretch}.tahe-partner-credit-form label,.tahe-partner-credit-form input,.tahe-partner-credit-form button{width:100%!important}
}

/* Dashboardniveau + kwartaalvoortgang */
.tahe-partner-account-summary{
  --tp-black:#111111;--tp-white:#ffffff;--tp-gray-50:#fafafa;--tp-gray-100:#f3f3f3;--tp-gray-200:#e8e8e8;--tp-gray-300:#d5d5d5;--tp-gray-500:#717171;--tp-gray-700:#3b3b3b;--tp-radius:8px;
  margin:0 0 24px;padding:22px;border:1px solid var(--tp-black);border-radius:var(--tp-radius);background:#fff;color:var(--tp-black)
}
.tahe-partner-account-summary .tahe-kicker{display:block;margin:0 0 5px;color:var(--tp-gray-500);font-size:11px;font-weight:700;letter-spacing:.09em;text-transform:uppercase}
.tahe-partner-account-summary h2{margin:0 0 5px;font-size:26px;line-height:1.2}.tahe-partner-account-summary p{margin:0;color:var(--tp-gray-700)}
.tahe-partner-account-summary-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}
.tahe-quarter-card{display:grid;gap:12px}.tahe-quarter-progress{display:grid;gap:8px}.tahe-quarter-progress-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px}.tahe-quarter-progress-head>span,.tahe-quarter-progress-head>strong{white-space:nowrap}
.tahe-quarter-progress-track{position:relative;height:14px;overflow:hidden;border:1px solid var(--tp-black);border-radius:999px;background:var(--tp-gray-100)}
.tahe-quarter-progress-track>span{display:block;height:100%;min-width:0;border-radius:999px;background:var(--tp-black);transition:width .25s ease}
.tahe-quarter-progress-foot{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;color:var(--tp-gray-700);font-size:12px}.tahe-quarter-progress-foot>span{font-weight:700;white-space:nowrap}.tahe-quarter-progress-foot small{max-width:620px;text-align:right;color:var(--tp-gray-500)}
.tahe-partner-account-actions{display:flex;gap:12px;margin-top:16px;padding-top:14px;border-top:1px solid var(--tp-gray-200)}.tahe-partner-account-actions a{font-weight:700;text-decoration:underline;text-underline-offset:3px}
.tahe-empty-orders{padding:18px;border:1px solid var(--tp-gray-200);border-radius:6px;background:var(--tp-gray-50)}.tahe-empty-orders p{margin:5px 0 0;color:var(--tp-gray-700)}

@media(max-width:700px){
  .tahe-partner-account-summary-head,.tahe-quarter-progress-head,.tahe-quarter-progress-foot{flex-direction:column;align-items:flex-start}.tahe-quarter-progress-foot small{text-align:left}.tahe-quarter-progress-head>span,.tahe-quarter-progress-head>strong{white-space:normal}
}
