:root{font-family:Tahoma,Arial,sans-serif;color:#181a1d;background:#f3f4f6}*{box-sizing:border-box}body{margin:0}header{background:#101115;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:15px max(20px,calc((100% - 1120px)/2));gap:16px}.brand{display:flex;align-items:center;gap:15px}.brand img{height:60px;width:60px;object-fit:contain;background:white;border-radius:50%}.brand strong{display:block;font-size:17px}.brand small{color:#e3ad26;display:block;margin-top:5px}.back{color:#e3ad26;text-decoration:none}main{max-width:1120px;margin:35px auto;padding:0 18px}.card{background:white;border:1px solid #e4e5e9;border-radius:13px;padding:22px}.login{max-width:460px;margin:45px auto}.login h1{margin-top:0}.login p,.heading p,.small{color:#69717c}.login label{display:block;font-weight:bold;margin:17px 0 7px}input,select{font:inherit;min-height:44px;border:1px solid #ccd0d5;border-radius:8px;padding:10px;width:100%}button{font:inherit;border:1px solid #ccd0d5;background:white;border-radius:8px;padding:11px 16px;cursor:pointer;min-height:44px}button:disabled{opacity:.5;cursor:wait}.gold{background:#e3ad26;border-color:#e3ad26;color:#101115;font-weight:bold}.login button{width:100%;margin-top:22px}.message:not(:empty){border-radius:8px;padding:12px 16px;background:#fff3d1;margin-bottom:16px}.message.error{background:#ffe7e7;color:#8e2020}.heading,.toolbar,.filters{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.heading h1{margin-bottom:5px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:24px 0}.stats .card{display:flex;flex-direction:column;gap:8px}.stats b{font-size:32px;color:#ac7c09}.stats span{color:#626976}.filters{justify-content:flex-start;margin:15px 0}.filters input{max-width:240px}.filters select{max-width:190px}.tableWrap{overflow-x:auto;padding:0}table{width:100%;border-collapse:collapse;text-align:right}th,td{padding:15px;border-bottom:1px solid #e9eaed}th{background:#fafafa}td button{white-space:nowrap}.small{font-size:12px}.pill{border-radius:99px;padding:6px 12px;background:#f4e9c9;display:inline-block;font-size:12px}.pill.approved{background:#d7f5e1}.pill.rejected{background:#fbe1e1}#details{margin-top:20px}#detailBody{display:grid;gap:16px;margin:22px 0}.detailGroup{border:1px solid #e5e7eb;border-radius:10px;padding:16px}.detailGroup h3{margin:0 0 14px}.kv{display:grid;grid-template-columns:180px 1fr;gap:10px;padding:7px 0;border-bottom:1px solid #f0f0f0;overflow-wrap:anywhere}.kv span:first-child{color:#606773}@media(max-width:650px){header{padding:12px}.brand img{width:44px;height:44px}.brand strong{font-size:12px}.back{font-size:12px}.stats{grid-template-columns:repeat(2,1fr)}.kv{grid-template-columns:1fr}.heading{align-items:flex-start}}

.headerActions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.langSwitch{display:flex;gap:5px}.langSwitch button{min-height:36px;padding:7px 12px;border:1px solid #75632e;background:transparent;color:#fff}.langSwitch button.selected{background:#e3ad26;color:#101115;font-weight:bold}html[dir="ltr"] table{text-align:left}@media(max-width:650px){header{flex-wrap:wrap}.headerActions{width:100%;justify-content:space-between}}

.dashboard-tabs{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0 22px}.dashboard-tabs[hidden]{display:none}.dashboard-tabs button{border:1px solid #e1d4a8;background:#fff;color:#2b2b2b;border-radius:12px;padding:17px 24px;font-weight:bold;font-size:15px;cursor:pointer}.dashboard-tabs button.selected{background:#e3ad26;color:#141414;border-color:#c89b22;box-shadow:0 4px 12px #0001}.store-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:15px 0 24px}.store-stats .card{display:flex;flex-direction:column;gap:8px;padding:20px}.store-stats b{font-size:30px;color:#ac7c09}.store-stats span{font-size:13px;color:#626976}#storeDetail[hidden]{display:none!important}@media(max-width:680px){.store-stats{grid-template-columns:repeat(2,1fr)}.dashboard-tabs button{flex:1;padding:12px 8px;font-size:12px}}

/* Archived entries: clearly differentiated without affecting active orders */
.gtc-archived-row {background:#edf0f2!important;box-shadow:inset 5px 0 0 #bd942c;}
.gtc-archived-row td {background:transparent!important;color:#48515a;}
.gtc-archived-badge {display:inline-block;margin-inline-start:10px;padding:4px 10px;border-radius:30px;background:#e5d4a5;color:#59420c;font-weight:700;font-size:12px;white-space:nowrap;}

/* Archive action aligned with approval and visually distinct */
.gtc-request-actions{display:flex!important;align-items:center;justify-content:flex-start;gap:10px;flex-wrap:wrap;margin-top:14px}
.gtc-request-actions .gtc-archive-action{background:#39434e!important;border:1px solid #39434e!important;color:#fff!important;font-weight:700;min-height:44px;padding:11px 19px;border-radius:8px}
.gtc-request-actions .gtc-archive-action:hover{background:#28313a!important}
.gtc-request-actions button[hidden]{display:none!important}

/* Hide optional hosting badge injected into the page (not application content). */
netlify-badge, #netlify-badge, .netlify-badge,
iframe[src*="netlify.com/badge"], iframe[src*="netlify.app/badge"],
a[href*="netlify.com"][aria-label*="Powered by Netlify"] { display:none !important; }
#profilesDashboard{margin-top:24px}#profilesDashboard[hidden],#profileEditor[hidden]{display:none!important}#profilesSearch{max-width:360px;margin:15px 0}#profileEditor{margin-top:25px}.profile-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.profile-actions h2{margin-inline-end:auto}.profile-section{border:1px solid #e2e2e2;border-radius:12px;padding:18px;margin:18px 0;background:#fff}.profile-section h3{border-bottom:1px solid #eee;padding-bottom:10px}.profile-field{display:block;margin:12px 0}.profile-field span{display:block;margin-bottom:5px;color:#444}.profile-field textarea{font:inherit;width:100%;min-height:44px;resize:none;overflow:hidden;border:1px solid #ccc;border-radius:8px;padding:10px}.profile-field input,.profile-field select{max-width:400px}.profile-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin:15px 0}.profile-facts div{background:#f7f7f7;border-radius:8px;padding:10px}.profile-facts small,.profile-facts strong{display:block}.athlete-photo{display:block;width:125px;height:125px;object-fit:cover;border-radius:50%;background:#eee;margin-bottom:12px}.profile-section video{display:block;max-width:320px;width:100%;margin:12px 0}.profile-section video[hidden]{display:none}@media(max-width:550px){.profile-facts{grid-template-columns:1fr}}@media print{header,#dashboardTabs,#dashboard,#storeDashboard,#profilesDashboard>.heading,#profilesRows,#profilesSearch,.profile-actions button,#profilesDashboard button,#profilesDashboard input[type=file],#profilesDashboard video{display:none!important}#profilesDashboard,#profileEditor{display:block!important}.profile-section{break-inside:avoid}}

/* Distinct payment status in the registration overview */
.pill.paid{background:#e6f5eb;color:#176b3a;border:1px solid #a9dbc0}
.pill.archived{background:#ededed;color:#555;border:1px solid #c5b27c}

/* Mobile administration and athlete profile layout */
@media(max-width:650px){
 html,body{max-width:100%;overflow-x:clip}header{height:auto;flex-wrap:wrap;gap:10px;padding:12px 14px}
 .brand{min-width:0}.brand img{width:50px;height:50px}.headerActions{flex-wrap:wrap;gap:8px}
 .dashboard-tabs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .dashboard-tabs button{min-width:0;width:100%;min-height:54px;white-space:normal;overflow-wrap:anywhere;font-size:14px}
 .toolbar,.filters,.profile-actions{flex-wrap:wrap;gap:10px}.profile-actions h2{width:100%;margin:0}
 .profile-actions button,.toolbar button,.filters button{min-height:44px}
 .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .tableWrap{overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch}
 input,select,textarea{max-width:100%;min-width:0;font-size:16px!important}
 #profileEditor{min-width:0;max-width:100%}#profileEditor iframe{width:100%!important;max-width:100%!important}
}

/* Security-sensitive admin sections must remain invisible while signed out,
   including on mobile where grid/flex rules would otherwise override hidden. */
#dashboardTabs[hidden],#dashboard[hidden],#profilesDashboard[hidden],
#storeDashboard[hidden],#details[hidden],#profileEditor[hidden],
#storeDetail[hidden],#loginBox[hidden]{display:none!important}

.gtc-delete-danger{background:#b42318!important;color:white!important;border:1px solid #8f1d14!important}.gtc-delete-danger:hover{background:#8f1d14!important}.gtc-delete-danger:disabled{opacity:.55;cursor:wait}
/* Archive-only controls: neutral gray, with no destructive action. */
#profilesArchiveToggle,.profile-actions .gtc-archive-action{background:#515963!important;color:#fff!important;border:1px solid #515963!important;border-radius:8px;padding:10px 16px;font-weight:600;min-height:42px}
#profilesArchiveToggle:hover,.profile-actions .gtc-archive-action:hover{background:#3c444d!important}

/* Consistent archive controls across registration, profiles and store. */
#playerArchiveToggle,#storeArchiveToggle,#profilesArchiveToggle{background:#69717b!important;color:#fff!important;border:1px solid #69717b!important;font-weight:600}
#playerArchiveToggle[data-view="active"],#storeArchiveToggle[data-view="active"],#profilesArchiveToggle[data-view="active"]{background:#fff!important;color:#20252a!important;border:1px solid #aeb3b9!important}
.gtc-profile-inline>td{padding:12px!important;background:#fffaf0!important;border-bottom:2px solid #d4ad52!important}
tr.gtc-row-open{background:#fff2c9!important;outline:1px solid #d4ad52;outline-offset:-1px}
.gtc-profile-inline #profileEditor{display:block;width:100%;max-width:100%;margin:0!important}
.gtc-profile-inline #profileEditor iframe{max-width:100%!important}
.store-status-pill{display:inline-block;padding:5px 11px;border-radius:999px;font-size:12px;font-weight:700;border:1px solid transparent}
.store-status-new{background:#e7f0ff;color:#225da6;border-color:#bcd2f7}
.store-status-awaiting_payment{background:#fff0d1;color:#8a5700;border-color:#efce8b}
.store-status-paid{background:#e4f6e9;color:#216a3a;border-color:#adddbb}
.store-status-delivered{background:#d7f3f0;color:#087d78;border-color:#95d9d3}
.store-status-rejected{background:#fbe3e3;color:#a52b2b;border-color:#efb6b6}
@media(max-width:650px){.gtc-profile-inline>td{padding:8px 2px!important}.gtc-profile-inline #profileEditor{padding:4px!important}}

.gtc-pager{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;padding:15px 5px;direction:rtl}.gtc-pager button{background:white;color:#222;border:1px solid #bbb;border-radius:8px;padding:9px 15px;cursor:pointer}.gtc-pager button:disabled{opacity:.4;cursor:default}.gtc-pager span{font-weight:600}.gtc-store-search{margin:12px 0}.gtc-store-search input{width:min(100%,420px);padding:12px;border:1px solid #ccc;border-radius:9px}

/* Adults subscriptions only */
.gtc-adult-sub-stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:16px 0}.gtc-adult-sub-stat{border:1px solid #ddd;border-radius:14px;padding:18px 8px;text-align:center;display:flex;flex-direction:column;gap:8px;background:#fff}.gtc-adult-sub-stat strong{font-size:24px;color:#3b3022}.gtc-adult-sub-stat span{font-size:13px;color:#777}.gtc-adult-sub-filters,.gtc-adult-sub-controls{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.gtc-adult-sub-filters button.selected{background:#d6a217;color:#161616}.gtc-adult-sub-detail{padding:15px 5px}.gtc-adult-sub-detail h3{text-align:right}.gtc-adult-sub-table td button{margin:3px}@media(max-width:900px){.gtc-adult-sub-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Adult-only permanent deletion control */
.gtc-adult-actions .gtc-adult-trash{background:#b4232c!important;border:1px solid #b4232c!important;color:white!important;border-radius:9px;min-width:44px;min-height:40px;font-size:21px;line-height:1;cursor:pointer}
.gtc-adult-actions .gtc-adult-trash:hover{background:#8f1820!important}

/* Adults-only financial report controls */
.gtc-adult-report-controls{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:14px 0}
.gtc-adult-report-controls select{padding:10px 14px;border-radius:9px;min-width:165px}
.gtc-adult-report-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0}
@media(max-width:650px){.gtc-adult-report-summary{grid-template-columns:1fr}}

/* Admin header and spacing correction */
header .headerActions .gtc-home-nav{position:static!important;top:auto!important;left:auto!important;flex:0 0 40px;width:40px;height:40px;box-shadow:none}
header .headerActions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
header .headerActions .langSwitch{display:flex;gap:5px;align-items:center}
@media(max-width:700px){header{gap:10px;padding:12px!important}header .brand img{width:42px;height:42px}header .headerActions{gap:5px}header .headerActions .gtc-home-nav{width:36px;height:36px;flex-basis:36px}}


/* Mobile administration layout repair — presentation only. */
@media (max-width: 700px) {
  html,body{width:100%;max-width:100%;overflow-x:hidden}
  main{width:100%;max-width:100%;margin:16px auto;padding:0 12px}
  header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:12px!important}
  header .brand{display:flex;align-items:center;gap:9px;min-width:0;max-width:100%}
  header .brand img{width:43px;height:43px;flex:0 0 43px}
  header .brand strong{font-size:13px;line-height:1.3}
  header .brand small{font-size:10px;line-height:1.3}
  header .headerActions{width:100%;min-width:0;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:7px}
  header .headerActions .langSwitch{display:flex;gap:5px;flex-wrap:nowrap}
  header .headerActions .langSwitch button{font-size:12px;padding:7px 9px;min-height:36px;white-space:nowrap}
  header .headerActions .gtc-home-nav{position:static!important;width:36px!important;height:36px!important;min-width:36px!important;flex:0 0 36px!important;padding:6px!important}
  header .headerActions .back{font-size:11px;white-space:normal;max-width:130px;line-height:1.3}
  .dashboard-tabs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:14px 0!important;width:100%;align-items:stretch}
  .dashboard-tabs button{display:flex;align-items:center;justify-content:center;gap:5px;width:100%!important;min-width:0!important;max-width:100%;min-height:58px!important;padding:10px 7px!important;font-size:13px!important;line-height:1.4!important;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;hyphens:none!important;text-align:center}
  .dashboard-tabs button .gtc-notice-count{flex-shrink:0}
  .stats,.store-stats,.sub-stats,.gtc-adult-sub-stats,.gtc-adult-report-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .stats .card,.store-stats .card,.gtc-adult-sub-stat{min-width:0;padding:15px 10px!important;overflow-wrap:break-word}
  .heading,.toolbar,.filters,.profile-actions{max-width:100%;gap:8px;flex-wrap:wrap}
  .heading h1{font-size:clamp(22px,6vw,30px);line-height:1.3}
  .toolbar button,.filters button,.profile-actions button{min-height:42px}
  .tableWrap,.gtc-adult-table-scroll{width:100%;max-width:100%;overflow-x:auto!important;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
  .tableWrap table,.gtc-adult-table-scroll table{width:max-content;min-width:100%}
  th,td{padding:10px 12px;white-space:nowrap}
  #details,#detailBody,.card{max-width:100%;min-width:0}
  .kv{grid-template-columns:1fr;min-width:0;overflow-wrap:anywhere}
  #details .detailGroup{min-width:0}
  .gtc-adult-sub-controls{flex-wrap:wrap}
  #profileEditor,#profileEditor iframe{max-width:100%!important}
  #dashboardTabs[hidden],#dashboard[hidden],#profilesDashboard[hidden],#storeDashboard[hidden],#details[hidden],#profileEditor[hidden],#storeDetail[hidden],#loginBox[hidden]{display:none!important}
}
@media(max-width:370px){
 .dashboard-tabs button{font-size:12px!important;padding:9px 5px!important}
 header .headerActions .back{max-width:105px;font-size:10px}
}

/* Approved mobile navigation: first row 3 equal buttons; second row 3 + compact logout.
   Applies to junior management navigation only. Desktop unaffected. */
@media (max-width:700px) {
  #dashboardTabs.dashboard-tabs:not([hidden]) {
    display:grid!important;
    grid-template-columns:repeat(12,minmax(0,1fr))!important;
    gap:7px!important;
    align-items:stretch!important;
    width:100%!important;
    margin:12px 0 20px!important;
  }
  #dashboardTabs.dashboard-tabs > button {
    grid-column:span 4!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    align-items:center!important;
    gap:3px!important;
    min-width:0!important;
    width:100%!important;
    max-width:100%!important;
    min-height:67px!important;
    padding:8px 3px!important;
    font-size:clamp(10px,2.8vw,13px)!important;
    line-height:1.32!important;
    text-align:center!important;
    white-space:normal!important;
    overflow-wrap:normal!important;
    word-break:keep-all!important;
    hyphens:none!important;
  }
  #dashboardTabs.dashboard-tabs > button:nth-child(n+4) {grid-column:span 3!important}
  #dashboardTabs.dashboard-tabs > button#logout {
    grid-column:span 3!important;
    min-height:52px!important;
    padding:5px 2px!important;
    font-size:clamp(9px,2.5vw,11px)!important;
    font-weight:600!important;
  }
  #dashboardTabs.dashboard-tabs .gtc-notice-count {
    position:static!important;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto!important;
    margin:2px auto 0!important;
    font-size:11px!important;
    line-height:1!important;
    min-width:20px;
    height:20px;
  }
  #dashboardTabs.dashboard-tabs .gtc-notice-count[hidden] {display:none!important}
  #dashboardTabs[hidden]{display:none!important}
}

.gtc-inline-pencil{display:inline-flex!important;align-items:center;justify-content:center;flex:none;width:28px!important;height:28px!important;min-width:28px!important;padding:0!important;margin-inline-start:7px!important;border:1px solid #b98c27!important;border-radius:7px!important;background:transparent!important;color:#a77a19!important;font-size:18px!important;line-height:1!important;cursor:pointer}
.gtc-inline-pencil:hover{background:#f8efd9!important}
.gtc-adult-field .gtc-inline-pencil{align-self:flex-end}

/* Minimal edit icon, fixed to visual left edge of each editable field row. */
.kv:has(> .gtc-inline-pencil){position:relative;padding-left:23px!important}
.kv > .gtc-inline-pencil{position:absolute!important;left:0!important;right:auto!important;top:50%!important;transform:translateY(-50%);margin:0!important}
.gtc-adult-field:has(> .gtc-inline-pencil){position:relative;padding-left:23px!important}
.gtc-adult-field > .gtc-inline-pencil{position:absolute!important;left:0!important;right:auto!important;top:50%!important;transform:translateY(-50%);margin:0!important}
.gtc-inline-pencil{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:18px!important;height:20px!important;min-width:18px!important;min-height:20px!important;padding:0!important;border:0!important;box-shadow:none!important;border-radius:0!important;background:transparent!important;color:#ad914e!important;font-size:15px!important;font-weight:400!important;line-height:1!important;opacity:.75;cursor:pointer}
.gtc-inline-pencil:hover,.gtc-inline-pencil:focus-visible{background:transparent!important;color:#8c6b25!important;opacity:1}

.gtc-date-shade{position:fixed;inset:0;z-index:99999;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;padding:16px}
.gtc-date-panel{width:min(360px,100%);box-sizing:border-box;background:#fff;color:#222;border:1px solid #caa54c;border-radius:14px;padding:20px;display:flex;flex-direction:column;gap:16px;direction:rtl;box-shadow:0 12px 35px #0003}
.gtc-date-panel input[type=date]{width:100%;box-sizing:border-box;padding:12px;font-size:17px;border:1px solid #bbb;border-radius:8px;direction:ltr;color:#222;background:#fff}
.gtc-date-actions{display:flex;gap:10px}.gtc-date-actions button{padding:9px 18px;border:1px solid #caa54c;border-radius:8px;background:white;color:#222;cursor:pointer}.gtc-date-actions button:last-child{background:#d9b04a}
