/* Registration table v2: # / driver / team / categories / KG / PACE / trainings / arrival. Payments are hidden for now. */
.registration-table-v2 table{table-layout:fixed;width:100%;border-collapse:collapse}
.registration-table-v2 th:nth-child(1){width:112px}
.registration-table-v2 th:nth-child(2){width:24%}
.registration-table-v2 th:nth-child(3){width:17%}
.registration-table-v2 th:nth-child(4){width:220px}
.registration-table-v2 th:nth-child(5){width:92px}
.registration-table-v2 th:nth-child(6){width:72px}
.registration-table-v2 th:nth-child(7){width:108px}
.registration-table-v2 th:nth-child(8){width:74px;text-align:center}
.registration-table-v2 thead th{border-bottom:1px solid var(--line)}
.registration-table-v2 tbody tr{border-bottom:1px solid var(--line)}
.registration-table-v2 tbody td{border-bottom:0!important;vertical-align:middle}
.registration-driver-v2{min-width:0}
.registration-driver-v2 .participant-name{min-width:0}
.registration-order-v2{white-space:nowrap;vertical-align:middle!important}
.registration-order-v2>b,.registration-order-v2>.order-buttons,.registration-order-v2>.registration-delete-v2{display:inline-flex;vertical-align:middle;align-items:center}
.registration-order-v2>.order-buttons{gap:4px;margin-left:8px}
.registration-delete-v2{margin-left:5px}
.registration-kg-v2{max-width:70px}
.registration-pace-head{text-align:center!important}
.registration-pace-cell{text-align:center}
.registration-arrival-head{text-align:center!important}
.registration-arrival-cell{text-align:center;padding-right:8px!important}
.registration-arrival-v2{display:inline-flex;margin:0 auto}
.registration-training-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:76px;border:1px solid #d5d5d1;background:#fff;border-radius:7px;padding:8px 11px;cursor:pointer;font:inherit}
.registration-training-button:hover{border-color:var(--red);background:var(--red-soft)}
.registration-training-button b{font-size:16px}
.registration-training-button span{color:#999;font-weight:700}
.registration-training-button strong{font-size:13px}
.registration-category-buttons{display:flex;align-items:center;gap:4px;flex-wrap:nowrap}
.driver-category-btn.compact{gap:3px;border-radius:6px;padding:5px 6px;font-size:10px;line-height:1.05;white-space:nowrap;min-width:0}
.driver-category-btn.compact span{width:12px;height:12px;border-radius:3px;font-size:8px}
.driver-category-btn:disabled{cursor:default;opacity:.62}
.pace-level-badge{display:inline-grid!important;place-items:center!important;width:34px;height:34px;border-radius:8px;font-size:18px!important;font-weight:900!important;line-height:1!important;border:1px solid rgba(0,0,0,.09);box-sizing:border-box;text-transform:none!important;text-align:center!important}
.pace-level-badge.pace-s{background:#7c3aed;color:#fff}
.pace-level-badge.pace-a{background:#b7e4b2;color:#17391a}
.pace-level-badge.pace-b{background:#237a3b;color:#fff}
.pace-level-badge.pace-c{background:#f4d84a;color:#2a2600}
.pace-level-badge.pace-d{background:#e3262e;color:#fff}
.pace-level-badge.large{width:44px;height:44px;border-radius:10px;font-size:23px!important}
.driver-profile-pace{display:flex!important;align-items:center;justify-content:flex-start;margin-top:4px!important}
#paymentTotals{display:none!important}

#participantDetailsDialog{width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important;height:calc(100vh - 24px)!important;max-height:calc(100vh - 24px)!important;padding:0!important;overflow:hidden!important;border:0!important;background:#fff!important}
#participantDetailsDialog .participant-details-form-v2{width:100%!important;max-width:none!important;height:100%!important;max-height:none!important;margin:0!important;padding:18px 22px 22px!important;overflow:auto!important;box-sizing:border-box;background:#fff}
.driver-profile-v2-head{position:sticky;top:-18px;z-index:8;display:flex;align-items:center;justify-content:space-between;margin:-18px -22px 14px;padding:18px 22px 14px;background:#fff;border-top:4px solid var(--red);border-bottom:1px solid var(--line)}
.driver-profile-v2-head h2{margin:2px 0 0;font-size:28px}
.driver-profile-stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));border:1px solid var(--line);margin-bottom:14px}
.driver-profile-stats>div{padding:12px 14px;border-right:1px solid var(--line)}
.driver-profile-stats>div:last-child{border-right:0}
.driver-profile-stats>div>span{display:block;font-size:10px;color:#888;font-weight:800;text-transform:uppercase}
.driver-profile-stats>div>b{display:block;margin-top:3px;font-size:24px}
.driver-profile-main-card,.driver-category-card,.driver-activity-card,.driver-profile-admin-card,.driver-pace-card{border:1px solid var(--line);background:#fff;margin-bottom:14px;padding:14px}
.driver-profile-main-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.driver-profile-main-grid label{font-size:11px;font-weight:800;text-transform:uppercase}
.driver-profile-main-grid input{width:100%;margin-top:5px}
.driver-profile-link-field{grid-column:1/-1}
.driver-profile-link-field>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}
.driver-profile-main-actions{display:flex;justify-content:flex-end;margin-top:10px}
.driver-profile-section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.driver-profile-section-title b{font-size:12px;letter-spacing:.04em}
.driver-profile-section-title span{min-width:28px;text-align:center;border-radius:999px;background:#111;color:#fff;padding:3px 8px;font-size:10px;font-weight:800}
.driver-category-buttons{display:flex;gap:9px;flex-wrap:wrap}
.driver-category-btn{display:inline-flex;align-items:center;gap:7px;border:1px solid #cfcfca;background:#fff;border-radius:8px;padding:10px 13px;font-weight:800;cursor:pointer}
.driver-category-btn span{width:16px;height:16px;border:1px solid #bbb;border-radius:4px;display:inline-grid;place-items:center;font-size:11px}
.driver-category-btn.active{border-color:#9bc9a2;background:#f3fbf4}
.driver-category-btn.active span{background:#1e7d32;color:#fff;border-color:#1e7d32}

.driver-pace-overview{display:grid;grid-template-columns:repeat(7,minmax(110px,1fr));border:1px solid var(--line);margin-bottom:10px}
.driver-pace-overview>div{min-height:74px;padding:10px 12px;border-right:1px solid var(--line);display:flex;flex-direction:column;justify-content:center;gap:4px}
.driver-pace-overview>div:last-child{border-right:0}
.driver-pace-overview small{font-size:9px;font-weight:800;color:#888;letter-spacing:.04em}
.driver-pace-overview b{font-size:20px}
.driver-pace-overview em{font-size:9px;font-style:normal;font-weight:900;color:#7c3aed}
.driver-pace-formula{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 12px;background:#f7f7f5;border:1px solid var(--line);margin-bottom:10px}
.driver-pace-formula>b{font-size:11px;letter-spacing:.04em}
.driver-pace-formula span{font-size:13px}
.driver-pace-manual{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 0}
.driver-pace-manual>b{font-size:11px;letter-spacing:.04em}
.driver-pace-manual-buttons{display:flex;gap:7px}
.pace-manual-btn{width:38px;height:38px;border-radius:8px;border:2px solid transparent;font-weight:900;cursor:pointer;opacity:.72}
.pace-manual-btn.active{border-color:#111;opacity:1;box-shadow:0 0 0 2px #fff inset}
.pace-manual-btn.pace-s{background:#7c3aed;color:#fff}
.pace-manual-btn.pace-a{background:#b7e4b2;color:#17391a}
.pace-manual-btn.pace-b{background:#237a3b;color:#fff}
.pace-manual-btn.pace-c{background:#f4d84a;color:#2a2600}
.pace-manual-btn.pace-d{background:#e3262e;color:#fff}
.driver-pace-history{overflow:auto;border-top:1px solid var(--line);padding-top:10px}
.driver-pace-history table{width:100%;border-collapse:collapse;font-size:12px}
.driver-pace-history th,.driver-pace-history td{padding:8px 10px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}
.driver-pace-history th{font-size:10px;text-transform:uppercase;color:#777}

.driver-activity-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.driver-activity-row{display:grid;grid-template-columns:48px minmax(0,1fr) 70px 82px;align-items:center;gap:8px;border:1px solid #e0e0dc;padding:9px 10px;min-width:0}
.driver-activity-kind{display:inline-flex;align-items:center;justify-content:center;height:28px;border-radius:5px;background:#efefed;font-weight:900;font-size:11px}
.driver-activity-row b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.driver-activity-kart{font-weight:900;font-size:15px;text-align:center}
.driver-activity-status{font-size:10px;font-weight:800;text-align:right;color:#999}
.driver-activity-status.done{color:#1e7d32}
.driver-activity-empty{padding:18px;text-align:center;color:#888}
.driver-profile-admin-card{display:flex;gap:24px;flex-wrap:wrap;margin-bottom:0}

@media(max-width:1200px){
  .registration-table-v2{overflow-x:auto}
  .registration-table-v2 table{min-width:1080px}
  .driver-pace-overview{grid-template-columns:repeat(4,1fr)}
  .driver-pace-overview>div:nth-child(4n){border-right:0}
}
@media(max-width:1000px){
  .driver-profile-stats{grid-template-columns:repeat(3,1fr)}
  .driver-profile-stats>div:nth-child(3){border-right:0}
  .driver-profile-stats>div:nth-child(-n+3){border-bottom:1px solid var(--line)}
  .driver-activity-list{grid-template-columns:1fr}
}
@media(max-width:700px){
  #participantDetailsDialog{width:calc(100vw - 8px)!important;max-width:calc(100vw - 8px)!important;height:calc(100vh - 8px)!important;max-height:calc(100vh - 8px)!important}
  #participantDetailsDialog .participant-details-form-v2{padding:14px}
  .driver-profile-v2-head{top:-14px;margin:-14px -14px 12px;padding:14px}
  .driver-profile-stats{grid-template-columns:repeat(2,1fr)}
  .driver-profile-stats>div{border-bottom:1px solid var(--line)}
  .driver-profile-stats>div:nth-child(2n){border-right:0}
  .driver-profile-main-grid{grid-template-columns:1fr}
  .driver-profile-link-field{grid-column:auto}
  .driver-profile-link-field>div{grid-template-columns:1fr}
  .driver-activity-row{grid-template-columns:42px minmax(0,1fr) 54px 64px}
  .driver-pace-overview{grid-template-columns:repeat(2,1fr)}
  .driver-pace-overview>div{border-bottom:1px solid var(--line)}
  .driver-pace-overview>div:nth-child(2n){border-right:0}
  .driver-pace-formula,.driver-pace-manual{align-items:flex-start;flex-direction:column}
}
