:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#132d49;background:#f2f6fa;font-size:16px;line-height:1.5;--blue:#0757ad;--line:#d8e3ef}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer;border:1px solid transparent;border-radius:9px;padding:12px 18px;background:var(--blue);color:white;font-weight:650;min-height:46px}button:hover{filter:brightness(.94)}button:disabled{opacity:.55;cursor:wait}button.secondary{background:white;color:#254969;border-color:var(--line)}button.danger{background:#fff1f0;color:#a12620;border-color:#f0cbc7}button:focus-visible,a:focus-visible{outline:3px solid #edb746;outline-offset:3px}input,select,textarea{width:100%;border:1px solid #b9ccdf;border-radius:8px;padding:12px;color:#132d49;background:white;min-width:0}input:focus,select:focus,textarea:focus{outline:2px solid #2681df;outline-offset:1px}textarea{resize:vertical}label{display:block;font-size:.9rem;font-weight:600;margin-bottom:17px}label input,label select,label textarea{display:block;margin-top:7px;font-weight:400}header{background:white;border-bottom:1px solid var(--line);padding:19px max(22px,calc((100vw - 1200px)/2));display:flex;align-items:center;justify-content:space-between;gap:15px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:#084c96;font-weight:850;font-size:1.4rem;letter-spacing:.02em}.brand small{display:block;font-size:.65rem;letter-spacing:.12em;color:#526c86}.mark{display:grid;place-items:center;width:44px;height:48px;background:var(--blue);color:white;border-radius:8px 8px 18px 8px;font-size:1.7rem}#identity{display:flex;align-items:center;gap:15px;font-size:.875rem}#identity small{display:block;color:#62778b}main{max-width:1200px;margin:auto;padding:34px 22px 80px}.eyebrow{color:#447296;font-size:.75rem;font-weight:750;letter-spacing:.12em}h1{font-size:2rem;line-height:1.2;margin:10px 0 12px;letter-spacing:-.035em}h2{font-size:1.25rem;margin:0 0 18px}p{margin:0 0 20px}.muted{color:#597189}.login{max-width:450px;margin:45px auto;background:white;padding:32px;border:1px solid var(--line);border-top:5px solid var(--blue);border-radius:15px;box-shadow:0 12px 45px #19395808}.login>p{margin-bottom:25px}.roles{display:flex;gap:8px;margin:25px 0}.roles button{flex:1}.roles button[aria-pressed=false]{background:#f2f6fa;color:#486480}.full{width:100%}.topline{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:25px}.sync{font-size:.85rem;color:#56718a}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:24px 0}.stat{padding:16px 20px;background:white;border:1px solid var(--line);border-radius:10px;border-top:3px solid #9ab7d7}.stat:first-child{border-top-color:var(--blue)}.stat strong{font-size:1.7rem;display:block}.stat span{font-size:.85rem;color:#57708a}.workspace{display:grid;grid-template-columns:380px 1fr;gap:26px;align-items:start}.panel{border:1px solid var(--line);border-radius:12px;background:white;padding:23px}.pair{display:grid;grid-template-columns:1fr 1fr;gap:14px}.upload{border:1px dashed #83a9cf;padding:20px 14px;text-align:center;background:#f5faff;border-radius:10px;margin-bottom:20px}.upload strong{display:block}.upload input{font-size:.8rem;background:transparent;border:0;padding:10px 0 0}.upload p{font-size:.8rem;margin:4px 0;color:#617b93}.preview{max-height:180px;max-width:100%;border-radius:6px;margin:10px auto;display:block}.tabs{display:flex;gap:8px;overflow-x:auto;padding-bottom:12px;margin-bottom:8px}.tabs button{white-space:nowrap;background:transparent;color:#526a81;padding:9px 14px}.tabs button[aria-pressed=true]{background:#e0edfc;color:#0757ad}.record{border:1px solid var(--line);background:white;border-radius:12px;margin-bottom:15px;overflow:hidden}.record-head{padding:15px 18px;border-bottom:1px solid #edf1f6;display:flex;justify-content:space-between;align-items:center;gap:8px}.record-head strong{font-size:.85rem}.badge{font-size:.75rem;font-weight:700;padding:5px 9px;border-radius:6px;white-space:nowrap}.pending{background:#fff1d4;color:#865000}.approved{background:#ddf3e8;color:#126241}.correction{background:#e8edff;color:#4b4e9a}.rejected{background:#ffe7e6;color:#a6312c}.record-body{display:flex;gap:18px;padding:18px}.photo{background:#edf3f8;padding:0;flex-shrink:0;width:120px;height:120px;overflow:hidden;border-radius:8px}.photo img{width:100%;height:100%;object-fit:cover}.record-data{flex:1;min-width:0}.record-data h3{font-size:1.05rem;margin:0 0 7px}.fish{font-weight:750;color:#0757ad}.record-data p{font-size:.85rem;margin:7px 0;color:#536d86;overflow-wrap:anywhere}.record-data .feedback{padding:8px;background:#f1f5ff;color:#394b7e;border-radius:6px}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:17px}.actions button{font-size:.85rem;padding:9px 12px}.record-foot{font-size:.75rem;color:#607b94;padding:0 18px 15px;overflow-wrap:anywhere}details{margin-top:12px}summary{cursor:pointer;color:#466782}.history{padding-top:8px}.history p{margin:5px 0}.empty{text-align:center;padding:60px 20px;border:1px dashed #b7cadd;border-radius:12px;background:#ffffff80}.empty h3{margin:0 0 8px}.empty p{color:#637b92;font-size:.9rem;margin:0}#notice{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);max-width:calc(100% - 30px);border-radius:10px;background:#123452;color:white;padding:12px 20px;box-shadow:0 6px 25px #122d4930;z-index:5}#notice:empty{display:none}dialog{border:1px solid var(--line);border-radius:14px;padding:28px;width:min(520px,calc(100vw - 24px));max-height:90dvh;overflow:auto;color:#132d49}dialog::backdrop{background:#061d37ba}#viewer{width:auto;max-width:96vw;padding:12px;background:#fff}#viewer img{display:block;max-width:90vw;max-height:80dvh;object-fit:contain}.close{display:block;margin-left:auto;font-size:1.6rem;padding:2px 14px;margin-bottom:10px}.error,#review-error{color:#a32826;font-size:.9rem}.editing{background:#eaf0ff;padding:12px;border-radius:8px;font-size:.85rem;margin-bottom:15px}[hidden]{display:none!important}@media(min-width:1000px){.desk-list{display:grid;grid-template-columns:1fr 1fr;gap:18px}.desk-list .record{margin:0}}@media(max-width:760px){header{padding:14px 16px}.brand{font-size:1.15rem}.brand small{font-size:.55rem}.mark{width:34px;height:40px}#identity{gap:8px}#identity button{padding:8px;font-size:.8rem}#identity .person{display:none}main{padding:25px 16px 70px}h1{font-size:1.65rem}.login{margin:15px auto;padding:25px}.workspace{grid-template-columns:1fr}.stats{gap:7px}.stat{padding:12px 10px}.stat strong{font-size:1.4rem}.stat span{font-size:.75rem}.topline{align-items:start;flex-direction:column;gap:0}.record-body{gap:12px;padding:14px}.photo{width:90px;height:110px}.record-head{padding:13px 14px}.actions{gap:6px}.actions button{flex:1}.panel{padding:20px}.tabs button{padding:9px 10px}.record-foot{padding-left:14px}.pair{gap:10px}}
.admin-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:24px;align-items:start}.admin-hint{font-size:.875rem}.account-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.account-heading h2{margin:0}.account-row{display:flex;align-items:center;gap:10px;padding:6px 0;border-bottom:1px solid var(--line)}.account-row>div{flex:1;min-width:0;overflow-wrap:anywhere}.account-row small{display:block;color:#597189;font-size:.8rem}.account-row button{padding:4px 6px;font-size:.8rem}.account-editor{border-top:3px solid var(--blue);margin-top:24px;padding-top:22px}.range-fill{display:flex;gap:10px;align-items:end;margin-bottom:20px}.range-fill label{flex:1;margin:0;min-width:0}.range-fill button{margin-bottom:1px;font-size:.85rem}label small{display:block;margin-top:6px;font-weight:400;font-size:.8rem}input[readonly]{background:#edf2f7;color:#5d738b}.roles{flex-wrap:wrap}.roles button{padding:10px 12px;font-size:.9rem}@media(max-width:800px){.admin-grid{grid-template-columns:1fr}.account-row{flex-wrap:wrap}.account-row>div{min-width:130px}.range-fill{flex-wrap:wrap}.account-heading{flex-wrap:wrap}}
.team-panel{margin-bottom:24px}.team-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:24px
}

.team-list{
    max-height:none;
    overflow:visible;
    padding-right:0
}

.team-editor{
    border-left:0;
    padding-left:0
}}.selected-team{padding:12px 14px;background:#eaf3ff;color:#174e85;border-radius:8px;font-size:.9rem;white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:760px){.team-grid{grid-template-columns:1fr}.team-editor{padding-left:0;border-left:0;border-top:1px solid var(--line);padding-top:20px}}
.camera-dialog{width:min(650px,calc(100vw - 24px))}.camera-dialog video{display:block;width:100%;max-height:60dvh;background:#102c44;border-radius:10px;object-fit:contain}.camera-message{margin:12px 0;font-size:.9rem}#open-camera{margin:12px 0}

/* Grid children must shrink below native file/select controls' intrinsic width. */
.workspace{grid-template-columns:minmax(0,380px) minmax(0,1fr)}
.workspace>*,.panel,form,.pair>*,.team-grid>*,.admin-grid>*,.stat{min-width:0}
.upload,input,select,textarea,.full,.preview{max-width:100%}
.upload input[type=file]{display:block;width:100%;min-width:0}
.upload,.selected-team,.eyebrow{overflow-wrap:anywhere}
@media(max-width:760px){.workspace,.team-grid{grid-template-columns:minmax(0,1fr)}.pair{grid-template-columns:repeat(2,minmax(0,1fr))}.stats{grid-template-columns:repeat(4,minmax(0,1fr))}.stat span{overflow-wrap:anywhere}.full{white-space:normal}}

.brand-logo{width:60px;height:60px;object-fit:contain;border-radius:50%;flex-shrink:0}.archive-panel{margin:24px 0}.archive-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.archive-result{border-top:1px solid var(--line);padding:18px 0}.archive-result img{max-width:100%;max-height:420px;object-fit:contain}.archive-result pre{white-space:pre-wrap;font:inherit}.archive-result p{margin:8px 0}.password-panel{margin:24px 0;max-width:520px}@media(max-width:760px){.brand-logo{width:48px;height:48px}}

/* New server bindings; the base stylesheet is the original Cloudflare UI. */
.signed-out #pageHeading,.signed-out main>nav,.signed-out #identity{display:none}.login{max-width:520px}.login .roles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.roles button{white-space:normal}.primary{background:var(--blue);color:white}.login form>button{width:100%}.rank-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}.rank-grid>.panel{min-width:0}.toolbar{display:flex;justify-content:space-between;gap:15px;margin:20px 0;align-items:center}.toolbar p{font-size:13px;color:#597189;margin:0}.filters{display:flex;gap:8px}.filters input{max-width:230px}.filters select{max-width:160px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left}th,td{padding:12px;border-bottom:1px solid var(--line);font-size:14px}.preserve{white-space:pre-wrap;overflow-wrap:anywhere}.dialog-header{display:flex;justify-content:space-between;gap:16px}.review-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:24px}#reviewDialog{width:min(1000px,95vw)}.photo-button{padding:0;width:100%;background:#f2f6fa}.photo-button img{width:100%;max-height:50vh;object-fit:contain}#zoomDialog{width:95vw}#largePhoto{width:100%;height:80vh;object-fit:contain}#message:not(:empty){padding:14px;background:#fff1d4;border-radius:9px;margin-bottom:20px}#roleWelcome{margin-bottom:20px}.tab>.panel{margin-bottom:24px}nav button.active{background:#e0edfc;color:#0757ad}#fieldPanel{margin-bottom:24px}.record .photo img{display:block}.record-foot{margin:0}.stats .stat strong{margin-top:8px}#management>.rank-grid{margin:24px 0}#recordHistory p{font-size:13px}#disputeForm{margin-top:20px}.queue-row{padding:12px;border-bottom:1px solid var(--line)}
@media(max-width:760px){.login .roles{grid-template-columns:repeat(2,minmax(0,1fr))}.rank-grid,.review-grid{grid-template-columns:1fr}.toolbar{align-items:stretch;flex-direction:column}.filters{flex-wrap:wrap}.filters>*{flex:1;min-width:110px}nav.tabs{flex-wrap:wrap}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
.qr-card{display:grid;grid-template-columns:260px minmax(0,1fr);gap:24px;align-items:center;margin:22px 0}.qr-box{width:260px;max-width:100%;background:white;border:1px solid var(--line);border-radius:12px;padding:12px}.qr-box svg{display:block;width:100%;height:auto}#phoneUrl{font-size:1.05rem;font-weight:700}#copyPhoneUrl{margin-top:8px}
@media(max-width:760px){.qr-card{grid-template-columns:1fr}.qr-box{width:min(100%,280px);margin:auto}}
@media print{
    body>header,main>nav,#pageHeading,#message,button{
        display:none!important;
    }

    #teamRanks tr[hidden]{
        display:table-row!important;
    }

    .rank-grid{display:block;}
    .panel{break-inside:avoid;}
    body.print-teams .rank-grid > article:nth-of-type(2){
    display:none !important;
}

body.print-teams #teamRanksPagination{
    display:none !important;
}
body.print-teams #scoring {
    display: none !important;
}
body.print-fish .rank-grid > article:first-child {
    display: none !important;
}

body.print-fish #scoring {
    display: none !important;
}
}
#showRegister{display:block;width:100%;margin-top:12px}#registerForm{border-top:1px solid var(--line);margin-top:22px;padding-top:18px}#registerMessage{margin-top:12px;color:#a12620}
/* ===== YARIŞMA ŞARTNAMESİ EDİTÖRÜ ===== */

.competition-editor-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  margin: 6px 0 10px 0;
  background: #f7f9fc;
  border: 1px solid #cbd9e8;
  border-radius: 10px;
  overflow-x: auto;
}

.competition-editor-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto;
  min-width: 42px;
  height: 40px;
  margin: 0;
  padding: 0 12px;
  box-sizing: border-box;

  background: #ffffff;
  color: #0b315c;
  border: 1px solid #cbd9e8;
  border-radius: 7px;

  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.competition-editor-toolbar button:hover {
  background: #eef5fc;
  border-color: #8fb4d9;
}

.competition-editor-toolbar button:active {
  background: #0b63b6;
  color: #ffffff;
}

/* Dikey ayraçlar */
.competition-editor-toolbar .editor-separator {
  display: block;
  flex: 0 0 1px;
  width: 1px;
  height: 28px;
  margin: 0 5px;
  background: #cbd9e8;
}

/* Renk seçici dış kutusu */
.competition-editor-toolbar .editor-color {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  width: 48px;
  min-width: 48px;
  max-width: 48px;
  height: 40px;
  margin: 0;
  padding: 4px;
  box-sizing: border-box;

  background: #ffffff;
  border: 1px solid #cbd9e8;
  border-radius: 7px;
}

/* Renk seçici */
.competition-editor-toolbar .editor-color #competitionTextColor {
  display: block;
  flex: none;
  width: 30px;
  min-width: 30px;
  max-width: 30px;
  height: 28px;
  min-height: 28px;
  margin: 0;
  padding: 0;

  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

/* Biçimi temizle */
.competition-editor-toolbar .editor-clear {
  min-width: 135px;
}

/* Şartname belge alanı */
.competition-rules-editor {
  display: block;
  width: 100%;
  min-height: 520px;
  box-sizing: border-box;
  padding: 20px;
  margin: 0;

  background: #ffffff;
  color: #102a43;

  border: 1px solid #cbd9e8;
  border-radius: 10px;

  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;

  outline: none;
  overflow-y: auto;
}

/* Yazı alanı seçildiğinde */
.competition-rules-editor:focus {
  border-color: #0b63b6;
  box-shadow: 0 0 0 2px rgba(11, 99, 182, 0.08);
}

/* Yarışmacı ekranında şartname metnine eklenmiş ayırıcı çizgileri gösterme. */
body[data-roles="competitor"] #competitionRulesDisplayText hr {
  display: none;
}

html.session-loading body {
  visibility: hidden;
}

/* YARIŞMACI KİMLİK KARTI */
.competitor-card{
    width: min(100%, 620px);
    min-height: 330px;
    margin: 0 0 24px 0;
    padding: 24px 28px;
    box-sizing: border-box;

    border: 2px solid #0b5fa5;
    border-radius: 18px;
    background: linear-gradient(145deg,#ffffff 0%,#f3f9ff 70%,#dcefff 100%);

    box-shadow: 0 8px 24px rgba(0,45,90,.15);
    position: relative;
    overflow: hidden;
}

/* üst başlık */
.competitor-card .eyebrow{
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #0b5fa5;
}

.competitor-card h2{
    margin: 0 0 28px;
    padding-bottom: 14px;
    border-bottom: 2px solid #d5e6f5;

    font-size: 26px;
    color: #082b4c;
}

/* yarışmacı bilgileri */
.competitor-card-info{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.competitor-card-info > div{
    padding: 14px 16px;
    background: rgba(255,255,255,.8);
    border: 1px solid #d3e3f1;
    border-radius: 12px;
}

.competitor-card-info small{
    display: block;
    margin-bottom: 5px;
    font-size: 11px;
    font-weight: 800;
    color: #54718a;
}

.competitor-card-info strong{
    display: block;
    font-size: 18px;
    color: #071f38;
}

/* alttaki deniz şeridi */
.competitor-card::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:16px;
    background:linear-gradient(90deg,#073b70,#087ec1,#073b70);
}

.competitor-card-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:20px;
}

.competitor-card-header > div{
    flex:1;
}

.competitor-card-logo{
    width:105px;
    height:105px;
    object-fit:contain;
    flex-shrink:0;
}

.competitor-card-header h2{
    margin-right:10px;
}

.competitor-top-area{
    display:grid;
    grid-template-columns:620px minmax(280px,1fr);
    gap:20px;
    align-items:stretch;
    margin-bottom:24px;
}

.competitor-top-area .competitor-card{
    width:100%;
    margin:0;
    height:100%;
}

/* YARIŞMACI BİLGİLENDİRME KARTI */
.competitor-info-card{
    margin:0;
    box-sizing:border-box;

    border:2px solid #0b5fa5;
    border-radius:18px;
    background:linear-gradient(145deg,#ffffff 0%,#f3f9ff 70%,#dcefff 100%);

    box-shadow:0 8px 24px rgba(0,45,90,.15);

    position:relative;
    overflow:hidden;
    padding:24px 28px;
}

.competitor-info-card::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:16px;
    background:linear-gradient(90deg,#073b70,#087ec1,#073b70);
}

/* Telefon */
@media (max-width:900px){

    .competitor-top-area{
    grid-template-columns:1fr;
    }

    .competitor-info-card{
        min-height:auto;
    }

    .competitor-card-logo{
        width:75px;
        height:75px;
        max-width:75px;
        max-height:75px;
    }

}

.desk-reply-box{
    margin-top:14px;
    padding-top:14px;
    border-top:1px solid #d5e3ef;
}

.desk-reply-box textarea{
    width:100%;
    box-sizing:border-box;
    min-height:70px;
    resize:vertical;
    margin-bottom:8px;
}

.desk-reply-box button{
    width:auto;
}

.competitor-message-item{
    margin-bottom:18px;
}

.competitor-replies{
    margin-top:18px;
}

#competitorRepliesList{
    max-height:120px;
    overflow-y:auto;
    padding-right:8px;
}

.competitor-reply-item{
    padding:10px 0;
    border-bottom:1px solid #c9dced;
}

.competitor-reply-item:last-child{
    border-bottom:none;
}

.competitor-reply-item p{
    margin:4px 0;
}

.competitor-reply-item small{
    color:#60758a;
    font-size:11px;
}
.competition-settings-grid{
    display:grid;
    grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);
    gap:20px;
    align-items:start;
}

.competition-settings-grid > .panel{
    width:100%;
    box-sizing:border-box;
}

@media (max-width:900px){
    .competition-settings-grid{
        grid-template-columns:1fr;
    }
}
.team-table th,
.team-table td{
    padding:4px 6px;
    vertical-align:middle;
}

.user-toolbar{
    display:grid;
    grid-template-columns:minmax(0,1fr) 220px auto;
    gap:10px;
    align-items:center;
    margin:16px 0;
}

.user-toolbar input,
.user-toolbar select{
    width:100%;
    margin:0;
}

.user-toolbar button{
    margin:0;
    white-space:nowrap;
}

@media (max-width:800px){
    .user-toolbar{
        grid-template-columns:1fr;
    }
}

.role-welcome-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) 150px;
    gap:20px;
    align-items:center;
}

.measurement-example-button{
    display:flex;
    flex-direction:column;
    gap:6px;
    align-items:center;
    justify-content:center;
    padding:8px;
    border:1px solid #dbe4ef;
    border-radius:12px;
    background:#fff;
    cursor:pointer;
}

.measurement-example-button img{
    width:100%;
    max-width:130px;
    height:90px;
    object-fit:cover;
    border-radius:8px;
}

.measurement-example-button span{
    font-size:12px;
    text-align:center;
}

.measurement-example-dialog{
    width:min(92vw, 760px);
    max-height:90vh;
    padding:16px;
    border:0;
    border-radius:14px;
}

.measurement-example-dialog::backdrop{
    background:rgba(0,0,0,.72);
}

.measurement-example-dialog-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:12px;
}

.measurement-example-dialog img{
    display:block;
    max-width:100%;
    max-height:75vh;
    margin:auto;
    object-fit:contain;
    border-radius:10px;
}

@media (max-width:700px){
    .role-welcome-grid{
        grid-template-columns:1fr 100px;
        gap:12px;
    }

    .measurement-example-button img{
        height:70px;
    }
}
.measurement-example-box{
    display:flex;
    flex-direction:column;
    gap:7px;
    align-items:center;
}

.measurement-example-notice{
    font-size:12px;
    font-weight:700;
    text-align:center;
    line-height:1.35;
}

.team-fish-dialog{
    width:min(94vw,1100px);
    max-height:90vh;
    padding:20px;
    border:0;
    border-radius:16px;
}

.team-fish-dialog::backdrop{
    background:rgba(0,0,0,.68);
}

.team-fish-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:20px;
    margin-bottom:16px;
}

.team-fish-head h2{
    margin:0 0 6px;
}

.team-fish-table-wrap{
    overflow:auto;
    max-height:68vh;
}

.team-fish-table{
    width:100%;
    border-collapse:collapse;
    min-width:900px;
}

.team-fish-table th,
.team-fish-table td{
    padding:10px 12px;
    text-align:left;
    border-bottom:1px solid #dbe4ef;
    vertical-align:middle;
}

.team-fish-table th{
    position:sticky;
    top:0;
    background:#fff;
    z-index:1;
}

.team-fish-thumb{
    width:58px;
    height:42px;
    object-fit:cover;
    border-radius:7px;
    cursor:pointer;
    display:block;
}

.team-detail-link{
    color:inherit;
    cursor:pointer;
}

.team-detail-link:hover{
    text-decoration:underline;
}

#teamRanks td{
    padding-top:8px;
    padding-bottom:8px;
}

#teamRanks .team-detail-link{
    line-height:1.2;
}

@media (max-width:720px){

    .team-fish-dialog{
        width:96vw;
        max-height:92vh;
        padding:14px;
        border-radius:12px;
    }

    .team-fish-head{
        display:flex;
        align-items:flex-start;
        justify-content:space-between;
        gap:10px;
        margin-bottom:14px;
    }

    .team-fish-head h2{
        margin:0 0 6px;
        font-size:18px;
        line-height:1.25;
    }

    .team-fish-head .muted{
        margin:0;
    }

    .team-fish-table-wrap{
        max-height:72vh;
        overflow-y:auto;
        overflow-x:hidden;
        -webkit-overflow-scrolling:touch;
    }

    .team-fish-table{
        width:100%;
        min-width:0;
        border-collapse:separate;
        border-spacing:0;
    }

    .team-fish-table thead{
        display:none;
    }

    .team-fish-table,
    .team-fish-table tbody,
    .team-fish-table tr,
    .team-fish-table td{
        display:block;
        width:100%;
        box-sizing:border-box;
    }

    .team-fish-table tr{
        margin-bottom:12px;
        padding:12px;
        border:1px solid #dbe4ef;
        border-radius:12px;
        background:#fff;
    }

    .team-fish-table td{
        display:grid;
        grid-template-columns:125px minmax(0,1fr);
        gap:10px;
        align-items:center;
        padding:6px 0;
        border:0;
        font-size:13px;
        white-space:normal;
    }

    .team-fish-table td::before{
        font-weight:700;
        color:#0f2742;
    }

    .team-fish-table td:nth-child(1)::before{
        content:"#";
    }

    .team-fish-table td:nth-child(2)::before{
        content:"Tür";
    }

    .team-fish-table td:nth-child(3)::before{
        content:"Etap";
    }

    .team-fish-table td:nth-child(4)::before{
        content:"Sektör";
    }

    .team-fish-table td:nth-child(5)::before{
        content:"Gerçek ölçü";
    }

    .team-fish-table td:nth-child(6)::before{
        content:"Puanlama boyu";
    }

    .team-fish-table td:nth-child(7)::before{
        content:"Bonus";
    }

    .team-fish-table td:nth-child(8)::before{
        content:"Puan";
    }

    .team-fish-table td:nth-child(9)::before{
        content:"Fotoğraf";
    }

    .team-fish-thumb{
        width:90px;
        height:65px;
        object-fit:cover;
        border-radius:8px;
        cursor:pointer;
    }
}

.record-team-head{
    padding:8px 15px;
    min-height:0;
    line-height:1.16;
    border-radius:9px;
    font-size:16px;
}

.record-team-head strong{
    font-size:16px;
    font-weight:800;
}

.history-photo{
    width:90px;
    height:68px;
    padding:0;
    margin:0;
    border:0;
    background:none;
    border-radius:8px;
    overflow:hidden;
    cursor:pointer;
    flex:0 0 auto;
}

.history-photo img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}

.record-history-section .record-body{
    display:flex;
    align-items:center;
    gap:16px;
}
.record-history-section .record{
    margin-bottom:8px;
}

.record-history-section .record-head{
    padding:8px 16px;
}

.record-history-section .record-body{
    padding:8px 16px;
}

.record-history-section .record-data strong{
    font-size:14px;
}

.record-history-section .record-data p{
    margin:4px 0 0;
}

.record-section-head{
    text-align:center;
}

.record-section-head h3,
.record-section-head .muted{
    margin-left:auto;
    margin-right:auto;
}

.record-section-head .muted{
    display:block;
    margin-top:-16px;
    margin-bottom:10px;
}

#rulesText{
  font-size:18px;
  line-height:1.7;
}

/* MASA HAKEMİ MESAJLAR */

.desk-message-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
    margin-top:20px;
}

.desk-message-team{
    border:1px solid #d7e2ef;
    border-radius:16px;
    overflow:hidden;
    background:#fff;
    box-shadow:0 8px 20px rgba(8,47,95,.05);
}

.desk-message-team-head{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:16px 18px;
    border:0;
    border-radius:0;
    background:#0b63bd;
    color:#fff;
    text-align:left;
    cursor:pointer;
}

.desk-message-team-head span:first-child{
    display:flex;
    flex-direction:column;
    gap:3px;
}

.desk-message-team-head strong{
    font-size:16px;
}

.desk-message-team-head small{
    color:#dceeff;
    font-size:12px;
    font-weight:700;
}

.desk-message-count{
    flex:0 0 auto;
    background:#fff;
    color:#0b63bd;
    border-radius:999px;
    padding:5px 9px;
    font-size:12px;
    font-weight:900;
}

.desk-message-team-body{
    padding:12px;
    background:#f7fbff;
}

.competitor-message-item{
    border:1px solid #dce6f1;
    border-radius:12px;
    background:#fff;
    margin-bottom:10px;
    overflow:hidden;
}

.competitor-message-item:last-child{
    margin-bottom:0;
}

.competitor-message-toggle{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    border:0;
    background:#fff;
    color:#17324d;
    padding:14px;
    cursor:pointer;
    text-align:left;
}

.competitor-message-toggle span:first-child{
    display:flex;
    flex-direction:column;
    gap:4px;
}

.competitor-message-toggle small{
    color:#6d8095;
    font-size:12px;
}

.message-status{
    flex:0 0 auto;
    background:#fff3cd;
    color:#805b00;
    border-radius:999px;
    padding:5px 9px;
    font-size:12px;
    font-weight:900;
}

.competitor-message-item.open .message-status{
    background:#eaf4ff;
    color:#0757ad;
}

.competitor-message-detail{
    border-top:1px solid #e3ebf4;
    padding:14px;
}

.competitor-message-text{
    margin:0 0 14px;
    padding:12px;
    background:#f4f8fc;
    border-radius:10px;
    line-height:1.5;
}

.desk-reply-box{
    display:grid;
    gap:10px;
}

.desk-reply-box textarea{
    min-height:90px;
}

.has-new-message{
    position:relative;
}

.has-new-message::after{
    content:'';
    position:absolute;
    top:7px;
    right:7px;
    width:8px;
    height:8px;
    border-radius:50%;
    background:#d81920;
}

@media(max-width:820px){
    .desk-message-grid{
        grid-template-columns:1fr;
        gap:12px;
    }

    .desk-message-team-head{
        padding:14px;
    }

    .competitor-message-toggle{
        padding:12px;
    }
}

.message-stats{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
    margin:18px 0 20px;
}

.message-stat{
    background:#f7fbff;
    border:1px solid #d8e4f0;
    border-radius:14px;
    padding:14px 16px;
}

.message-stat small{
    display:block;
    color:#61758a;
    font-size:12px;
    font-weight:800;
}

.message-stat strong{
    display:block;
    margin-top:5px;
    font-size:24px;
    color:#0b4f94;
}

@media(max-width:700px){
    .message-stats{
        grid-template-columns:1fr;
    }
}

.message-tools{
    display:grid;
    grid-template-columns:minmax(0,1fr) 220px;
    gap:12px;
    margin:0 0 20px;
}

.message-tools input,
.message-tools select{
    width:100%;
    min-height:46px;
    border:1px solid #c9d8e8;
    border-radius:12px;
    padding:10px 12px;
    background:#fff;
    color:#17324d;
}

.message-tools input:focus,
.message-tools select:focus{
    outline:2px solid #0b63bd;
    outline-offset:1px;
}

@media(max-width:700px){
    .message-tools{
        grid-template-columns:1fr;
    }
}

.record-history-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:18px;
    margin-top:18px;
    width:100%;
}

#historyRows{
    width:100%;
    max-width:none;
}

.record-history-grid .record-team-group{
    width:100%;
}

@media(max-width:1100px){
    .record-history-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:700px){
    .record-history-grid{
        grid-template-columns:1fr;
        gap:12px;
    }
}

.record-history-grid .record-team-group{
    border:1px solid #d7e2ef;
    border-radius:16px;
    overflow:hidden;
    background:#fff;
    box-shadow:0 8px 20px rgba(8,47,95,.05);
}

.record-history-grid .record-team-head{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:16px 18px;
    border:0;
    border-radius:0;
    background:#0b63bd;
    color:#fff;
    text-align:left;
    cursor:pointer;
    font-weight:800;
}

.record-history-grid .record-team-head strong{
    font-size:16px;
}

.record-history-grid .record-team-body{
    padding:12px;
    background:#f7fbff;
}

.record-history-grid .record{
    margin-bottom:10px;
    border:1px solid #dce6f1;
    border-radius:12px;
    background:#fff;
    overflow:hidden;
}

.record-history-grid .record:last-child{
    margin-bottom:0;
}

@media(max-width:820px){
    .record-history-grid{
        grid-template-columns:1fr;
        gap:12px;
    }
}
/* TAKIM KAYIT GEÇMİŞİ - 4 SÜTUN DÜZELTME */

#historyRows{
    width:100%;
    max-width:none;
}

.record-history-grid{
    width:100%;
    max-width:none;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:18px;
    align-items:start;
}

.record-history-grid .record-team-group{
    width:100%;
    align-self:start;
}

.record-history-grid .record-team-head{
    width:100%;
    min-height:72px;
    padding:16px 18px;
    display:flex;
    align-items:center;
    border-radius:14px;
}

.record-history-grid .record-team-head strong{
    font-size:16px;
    line-height:1.25;
}

@media(max-width:1100px){
    .record-history-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:700px){
    .record-history-grid{
        grid-template-columns:1fr;
    }
}
#historyRows{
    display:block !important;
    width:100%;
    max-width:none;
}

#historyRows .record-history-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:18px;
    width:100%;
}

@media(max-width:1100px){
    #historyRows .record-history-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:700px){
    #historyRows .record-history-grid{
        grid-template-columns:1fr;
    }
}
#historyRows .record-team-head{
    min-height:56px;
    padding:12px 18px;
}
.record-history-detail{
    width:100%;
    margin-top:18px;
    padding:14px;
    border:1px solid #d7e2ef;
    border-radius:16px;
    background:#f7fbff;
}

.record-history-detail .record-team-body{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
    padding:0;
    background:transparent;
}

.record-history-detail .record{
    margin:0;
    height:100%;
}

.record-history-grid .record-team-group.open .record-team-head{
    background:#084f9e;
    box-shadow:0 8px 18px rgba(8,79,158,.18);
}

@media(max-width:1100px){
    .record-history-detail .record-team-body{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:700px){
    .record-history-detail .record-team-body{
        grid-template-columns:1fr;
    }
}
.record-history-detail{
    grid-column:1 / -1;
    width:100%;
}
.record-history-grid .record-team-group.open .record-team-head{
    background:#ffd54f;
    color:#17324d;
    border:1px solid #e0b93f;
    box-shadow:0 6px 16px rgba(224,185,63,.18);
}

.record-history-grid .record-team-group.open .record-team-head strong{
    color:#17324d;
}
#rankings .rank-grid{
    align-items:stretch;
}

#rankings .rank-grid > .panel{
    display:flex;
    flex-direction:column;
    height:100%;
}

#rankings .rank-grid > .panel > button{
    margin-top:auto;
    align-self:flex-start;
}
.fish-limits-table td:first-child{
    font-weight:800;
    color:#0b4f94;
}

.fish-limits-table td:nth-child(2){
    font-weight:900;
    color:#7a4d00;
}

.fish-limits-table td:nth-child(2)::before{
    content:'Limit ';
    display:inline-block;
    margin-right:6px;
    padding:3px 7px;
    border-radius:999px;
    background:#fff1b8;
    color:#7a4d00;
    font-size:11px;
    font-weight:900;
}
@media (max-width: 760px){

    /* MASA HAKEMİ - MESAJLAR MOBİL */

    .desk-message-grid{
        display:block;
    }

    .desk-message-team{
        width:100%;
        margin-bottom:10px;
    }

    .desk-message-team-head{
        width:100%;
        padding:12px 14px;
        border-radius:12px;
        font-size:15px;
        text-align:left;
    }

    .desk-message-team-head > span:first-child{
        display:flex;
        align-items:center;
        gap:6px;
        min-width:0;
    }

    .desk-message-team-head strong{
        font-size:15px;
        line-height:1.2;
    }

    .desk-message-team-head small{
        font-size:12px;
        white-space:nowrap;
    }

    .desk-message-count{
        font-size:12px;
        white-space:nowrap;
    }

    .competitor-message-item{
        margin:8px 0 0;
    }

    .competitor-message-toggle{
        width:100%;
        padding:11px 12px;
        border-radius:10px;
        font-size:14px;
        text-align:left;
    }

    .competitor-message-toggle > span:first-child{
        display:flex;
        flex-direction:column;
        align-items:flex-start;
        gap:2px;
    }

    .competitor-message-toggle strong{
        font-size:14px;
    }

    .competitor-message-toggle small{
        font-size:11px;
    }

    .message-status{
        font-size:11px;
        white-space:nowrap;
    }

    .competitor-message-detail{
        padding:10px 4px 4px;
    }

    .competitor-message-text{
        font-size:14px;
        line-height:1.4;
        margin:6px 0 10px;
        overflow-wrap:anywhere;
    }

    .desk-reply-box{
        margin-top:8px;
        padding-top:8px;
    }

    .desk-reply-box textarea{
        min-height:75px;
        font-size:14px;
        padding:10px;
    }

    .desk-reply-box button{
        width:100%;
        padding:11px 12px;
        font-size:14px;
    }

    #messageSearch,
    #messageFilter{
        width:100%;
        box-sizing:border-box;
    }
}
.audit-measurements{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
    margin-bottom:16px;
}

.audit-measurements > div{
    padding:12px;
    border:1px solid #d6e2ee;
    border-radius:10px;
    background:#f7fbff;
}

.audit-measurements small{
    display:block;
    margin-bottom:4px;
    color:#60758a;
    font-size:11px;
    font-weight:700;
}

.audit-measurements strong{
    display:block;
    font-size:18px;
}

@media (max-width:760px){
    .audit-measurements{
        grid-template-columns:1fr;
    }
}
.event-status-badge{
    display:inline-block;
    padding:4px 10px;
    border-radius:6px;
    color:#fff;
    font-weight:800;
    font-size:12px;
    letter-spacing:.5px;
    margin-right:4px;
}

.event-status-badge.active{
    background:#1565c0;
}

.event-status-badge.ended{
    background:#d32f2f;
}

.team-competitor-details{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
    margin:20px 0;
}

.competitor-detail{
    margin:0;
    padding:18px;
}

.competitor-detail h3{
    margin-top:0;
    margin-bottom:16px;
}

.competitor-detail label{
    display:block;
    margin-bottom:12px;
}

.competitor-detail input,
.competitor-detail select{
    width:100%;
    box-sizing:border-box;
}

@media (max-width: 800px){
    .team-competitor-details{
        grid-template-columns:1fr;
    }
}
#team-form textarea[name="name"]{
    min-height: 48px;
    height: 48px;
    resize: none;
    padding: 12px;
}

/* =========================================================
   KULLANICI PANELİ - MOBİL DÜZEN
   ========================================================= */

@media (max-width: 760px){

    /* Rol filtre butonları */
    #users .user-role-quick{
        display:grid;
        grid-template-columns:repeat(2, minmax(0,1fr));
        gap:10px;
        width:100%;
        margin:16px 0 18px;
    }

    #users .user-role-quick button{
        width:100%;
        min-width:0;
        margin:0;
        padding:11px 8px;
        min-height:48px;
        font-size:14px;
        line-height:1.2;
        white-space:normal;
    }

    /* Son buton tek kalırsa tam genişlik */
    #users .user-role-quick button:last-child:nth-child(odd){
        grid-column:1 / -1;
    }

    /* Kullanıcı paneli dış taşmayı engelle */
    #users,
    #users .panel,
    #usersPageContent,
    #users .table-wrap{
        width:100%;
        max-width:100%;
        min-width:0;
        box-sizing:border-box;
    }

    /* Masaüstü tablo başlıklarını mobilde gizle */
    #users .table-wrap table thead{
        display:none;
    }

    /* Tabloyu mobil kart yapısına çevir */
    #users .table-wrap table,
    #users .table-wrap tbody,
    #users .table-wrap tr,
    #users .table-wrap td{
        display:block;
        width:100%;
        min-width:0;
        box-sizing:border-box;
    }

    #users .table-wrap table{
        border-collapse:separate;
        border-spacing:0;
    }

    #users .table-wrap tr{
        margin:0 0 14px;
        padding:12px 14px;
        border:1px solid #d8e3ef;
        border-radius:12px;
        background:#fff;
    }

    #users .table-wrap td{
        display:grid;
        grid-template-columns:115px minmax(0,1fr);
        gap:10px;
        align-items:center;
        padding:8px 0;
        border:0;
        font-size:14px;
        line-height:1.35;
        overflow-wrap:anywhere;
        word-break:normal;
    }

    #users .table-wrap td::before{
        font-weight:800;
        color:#526a81;
        font-size:12px;
    }

    #users .table-wrap td:nth-child(1)::before{
        content:"Seç";
    }

    #users .table-wrap td:nth-child(2)::before{
        content:"Ad Soyad";
    }

    #users .table-wrap td:nth-child(3)::before{
        content:"Kullanıcı";
    }

    #users .table-wrap td:nth-child(4)::before{
        content:"Rol";
    }

    #users .table-wrap td:nth-child(5)::before{
        content:"Takım";
    }

    #users .table-wrap td:nth-child(6)::before{
        content:"Sektör";
    }

    #users .table-wrap td:nth-child(7)::before{
        content:"Durum";
    }

    #users .table-wrap td:nth-child(8)::before{
        content:"İşlem";
    }

    /* Checkbox normal boyutta kalsın */
    #users .table-wrap td:first-child input[type="checkbox"]{
        width:24px;
        height:24px;
        margin:0;
    }

    /* İşlem butonları taşmasın */
    #users .table-wrap td:last-child button{
        width:100%;
        max-width:100%;
        margin:3px 0;
        white-space:normal;
    }
}
/* Mesajlaşma Merkezi v2 */
.message-v2-layout{display:grid;grid-template-columns:minmax(230px,320px) minmax(0,1fr);gap:16px;min-height:430px}.message-v2-threads{display:flex;flex-direction:column;gap:8px}.message-v2-threads h2{margin:0 0 6px}.message-v2-thread{text-align:left;padding:13px;border:1px solid #d7e2ec;border-radius:12px;background:#fff;color:#17324d}.message-v2-thread.active{border-color:#1674bb;background:#eef8ff}.message-v2-thread strong,.message-v2-thread small,.message-v2-thread span{display:block}.message-v2-thread small{margin-top:3px;color:#607891}.message-v2-thread span{margin-top:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-v2-pane,.message-v2-empty{padding:16px;border:1px solid #d7e2ec;border-radius:14px;background:#fbfdff}.message-v2-stream{display:flex;flex-direction:column;gap:10px;max-height:390px;overflow:auto;padding-right:4px}.message-v2-entry{max-width:80%;padding:11px 13px;border-radius:13px;background:#eef3f7}.message-v2-entry.mine{align-self:flex-end;background:#dff2ff}.message-v2-entry-head{display:flex;justify-content:space-between;gap:14px}.message-v2-entry p{margin:7px 0 0;white-space:pre-wrap}.message-v2-composer{display:grid;gap:8px;margin-top:14px}.message-v2-composer textarea{resize:vertical}@media(max-width:720px){.message-v2-layout{grid-template-columns:1fr}.message-v2-pane{min-height:260px}}
/* Mesajlaşma Merkezi: tüm panellerde iki satırlık yazı alanı. */
#messages #messageCenter .message-v2-composer textarea{min-height:64px!important;height:64px!important;padding:10px 14px!important;}
/* Ölçüm çağrı kuyruğu: dar ekranlarda taşma olmadan okunur. */
.measurement-call{margin:16px 0}.measurement-list{display:grid;gap:10px}.measurement-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;align-items:center;padding:12px;border:1px solid #c8d9e4;border-radius:12px}.measurement-item strong,.measurement-item span,.measurement-item small{min-width:0;overflow-wrap:anywhere}.measurement-item span,.measurement-item small{color:#527087}.measurement-item button{grid-row:1/4;grid-column:2;align-self:center}.measurement-status{padding:12px;border-radius:12px;background:#eaf6ff;border:1px solid #a7d2ef}@media(max-width:600px){.measurement-item{grid-template-columns:1fr}.measurement-item button{grid-row:auto;grid-column:auto;width:100%}.measurement-call{margin-inline:0}.tabs{max-width:100%;overflow-x:auto}.toolbar,.filters{min-width:0}.filters input,.filters select{max-width:100%}}

/* MASA HAKEMİ - BALIK LİMİTLERİ MOBİL DÜZELTME */
@media (max-width: 760px) {
    #fishLimitsList {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #fishLimitsList .fish-limits-table {
        width: max-content;
        min-width: 100%;
    }

    #fishLimitsList .fish-limits-table th,
    #fishLimitsList .fish-limits-table td {
        white-space: nowrap;
    }
}
/* MOBİL BALIK LİMİTLERİ - SÜTUNLARI SIĞDIR */
@media (max-width: 760px) {
  .fish-limits-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: auto;
  }

  .fish-limits-table th,
  .fish-limits-table td {
    padding-left: 5px !important;
    padding-right: 5px !important;
    font-size: 12px !important;
    white-space: normal !important;
  }
}
/* MASA HAKEMİ - TAKIM SIRALAMASI MOBİL */
@media (max-width: 760px) {

  .rank-grid,
  .rank-grid > .panel {
    min-width: 0;
    max-width: 100%;
  }

  .team-ranks-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .team-ranks-scroll table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  .team-ranks-scroll th,
  .team-ranks-scroll td {
    padding: 8px 4px;
    font-size: 12px;
    overflow-wrap: anywhere;
  }

  .team-ranks-scroll th:nth-child(1) {
    width: 12%;
  }

  .team-ranks-scroll th:nth-child(2) {
    width: 48%;
  }

  .team-ranks-scroll th:nth-child(3) {
    width: 18%;
  }

  .team-ranks-scroll th:nth-child(4) {
    width: 22%;
  }
}
/* MOBİL SIRALAMA TABLOLARI - SON DÜZELTME */
@media (max-width: 760px) {

  .rank-grid {
    display: block !important;
    width: 100%;
    min-width: 0;
  }

  .rank-grid > .panel {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .team-ranks-scroll,
  .fish-ranks-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .team-ranks-scroll table,
  .fish-ranks-scroll table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
  }

  .team-ranks-scroll th,
  .team-ranks-scroll td,
  .fish-ranks-scroll th,
  .fish-ranks-scroll td {
    padding: 7px 3px !important;
    font-size: 11px !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    box-sizing: border-box;
  }

  /* Takım sıralaması: 4 sütun */
  .team-ranks-scroll th:nth-child(1) { width: 12%; }
  .team-ranks-scroll th:nth-child(2) { width: 43%; }
  .team-ranks-scroll th:nth-child(3) { width: 17%; }
  .team-ranks-scroll th:nth-child(4) { width: 28%; }

  /* En büyük balık: 5 sütun */
  .fish-ranks-scroll th:nth-child(1) { width: 10%; }
  .fish-ranks-scroll th:nth-child(2) { width: 27%; }
  .fish-ranks-scroll th:nth-child(3) { width: 27%; }
  .fish-ranks-scroll th:nth-child(4) { width: 19%; }
  .fish-ranks-scroll th:nth-child(5) { width: 17%; }
}

/* Hakem mesaj ve duyuru uyarıları: mevcut ölçüm çağrısı animasyonundan bağımsız. */
body.field-premium-mode nav button.has-new-message,
body.desk-premium-mode nav button.has-new-message{
    animation:biasderJudgeUnreadPulse 1.2s ease-in-out infinite;
}
@keyframes biasderJudgeUnreadPulse{
    0%,100%{box-shadow:0 0 0 0 rgba(255,70,80,0)}
    50%{box-shadow:0 0 0 3px rgba(255,70,80,.85)}
}
@media(prefers-reduced-motion:reduce){
    body.field-premium-mode nav button.has-new-message,
    body.desk-premium-mode nav button.has-new-message{animation:none}
}
