



@import url('sweet-alert.min.css?v=1');
@import url('swal.min.css?v=1');


:root {
    --radius: 8px;
    --border-color: grey;
    --bg-color: rgb(243 243 243);
    --card-bg-color: white;
    --card-bg-color-secondary: rgb(250 248 249);
    --gap: 16px;
    --text-color: #222222;
    --link-color: rgb(111 166 214);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: black;
        --card-bg-color: #2e2e2e;
        --text-color: #f7f7f7;
        --card-bg-color-secondary: rgb(60 60 60);
    }

    html {
        color-scheme: dark;
    }
}


* 	        { margin:0; padding:0; list-style-type: none; outline-width: 0; outline-style: none;   box-sizing: border-box }
i,em 	    { font-style:normal; }
u,s         { text-decoration: none }
a           { text-decoration: none; color: var(--link-color); }
*:not(html) { font-family: inherit; }
textarea:focus::-webkit-input-placeholder,
input:focus::-webkit-input-placeholder      { color: transparent!important }
textarea::-webkit-input-placeholder,
input::-webkit-input-placeholder            { transition: color .15s }
textarea:-webkit-autofill,
select:-webkit-autofill,
input:-webkit-autofill                      { -webkit-box-shadow: 0 0 0 64px white inset !important; }
img                                         { width:100% }



html 	{ 
    font: normal 13px 'Gotham Rounded', 'Open Sans', Arial; 
    color: var(--text-color);
    background-color: var(--bg-color);
    scroll-behavior: smooth;
}


body > main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem;
    padding-top:0;

}

.flex     { display: flex;gap:var(--g,0) }
.flex.dy  { flex-direction: column; }
.flex.mc  { align-items:center; justify-content:center }
.flex.yc  { align-items:center;  }
.flex.bw  { justify-content: space-between  }
.flex.end { justify-content: flex-end  }

.gap\:10 { gap:10px }


.tippy-content                          { font-size:11px; letter-spacing:.8px }
.tippy-arrow                            { left:4px!important; position: relative;}


.sw-ios.sw-load .load                   {  background: url('../img/spin-basic.svg') no-repeat center center;display: block;width: 100%;height: 36px; min-width: 100px; }
.sw-ios.sw-load .swal2-actions          {  display:none!important }
.sw-ios.sw-load .swal2-content          {  width: 100% }
.sw-ios.sw-load .swal2-content > div    {  width: 100% }
.sw-ios.sw-load p                       { padding-top: 8px; letter-spacing: .5px}






/*
 @ main tab *  *  */


.tab-con                    { 
    
    > *                     { display:none  }
    > .on                   { display:block }
}


.tab-nav.m                 { padding: 20px 0; display: flex; justify-content:space-between; align-items: center;

    ul                     { display:flex; gap:12px;
        li                 { font-size: 15px;background: white;border-radius: 8px;padding: 12px 20px;font-weight: 700;display: block;letter-spacing: .3px;line-height: 1;}
        li.on              { background: #444; }
        li:not(.on):hover a{ color: #111 }
        li.on, li.on a     { color: #fff }

    }

    nav                     { display:flex ; align-items: center;
        span                { color:#777; font-size:10px; letter-spacing:.8px; padding-right:25px ;}
        a                   { font-size: 14px;
            i               { font-size:10px; color:#222; margin-right:5px }
        }
    }
}

.of-tab .tab-nav           { display:none }

/*
 @ stock : tab stock */


.sec-stk                {

    &.mod-up            {
        .up-form,
        .stk-list       { display:none }
    }
    
    &:not(.mod-up)      {

        .up-view        { display:none }
    }

}


.frm                {

    .f              {    border-radius: var(--radius); border:0; background:#f5f5f5; font-weight:400; color:#444;  }
    
    input.t,
    select          { height:46px; width:100%; padding:0 8px; }

    &.f-xl          {

        input.t,
        select          { height:62px;  padding:0 12px; font-size: 15px;}
    }

    .fl             { margin-bottom:1rem; }
    .fe             { height:100%; position:relative; display:block  }

    .fe .f          { z-index:1 }
    .fi             { position:absolute; z-index:2; height:100% }
    .fi             { height:100%; display:flex; align-items:center; justify-content:center ;
        i           { position:relative}
        &.l         { left: 13px;color: #67c6ff;font-size: 15px;top: 1px; }
        &.r         { right:10px;  }
        &.f-down    { right:0; background:#f5f5f5; width:32px; border-radius:0 10px 10px 0; pointer-events: none;
            i       { color:#555; font-size:9px; position: relative; top:2px  }
        }
    }
     .f-firma .f      { padding-left:31px }
     .f-search .fi i  { color: #67c6ff; top:1px; ;  }

}



body.login                              { background:url('../img/bg3.jpg') no-repeat center center; background-size:cover;
    > div                               { background:rgba(0,0,0,.4); height:100vh }
    main                                { height: 100vh; max-width: 1200px; margin: 0 auto; display:flex;   align-items: end; background:  none}
    main                                { padding-bottom: 6%}
    form                                { width:90%; color:white;  max-width:520px; background: rgba(83, 85, 89, 0.6); padding: 40px; border-radius: 18px;
        h1                              { padding-bottom:8px }
        ul                              { padding-top:40px }
        nav                             { padding-top:20px }
        nav input                       { height:50px; min-width:120px; color:white; background:#333; border:0;border-radius:10px }
    }
    .frm .f                             { background:rgba(14,14,14,.3); color:#fff ; border:0;;

            &:-webkit-autofill,
            &:-webkit-autofill:hover, 
            &:-webkit-autofill:focus, 
            &:-webkit-autofill:active  {
                
            
           
            -webkit-box-shadow: 0 0 0 60px #0f0f0f inset !important;
            -webkit-text-fill-color: #fff !important;
            opacity: .6;
    
           
        }

        &::placeholder      { /*background:rgba(14,14,14,.2); */  color:#bbb;}
    }
}



/*
 @ stock : stock list  */

.stk-list               { margin-top: var(--gap); border-radius: var(--radius);

    .list-body  ul      { display: grid; grid-template-columns: repeat(7, 1fr);gap: var(--gap); padding-top: 18px;

        /*
        > div           { border-radius: var(--radius); overflow: hidden; background-color: var(--card-bg-color-secondary); padding: calc(var(--gap) / 4); }*/
        
        img             { width: 100%; display: block; aspect-ratio: 1 / 1; }

        li              { background:white; border-radius: 10px; padding: 9px; color:#898787; position: relative;
            &:hover     { box-shadow: 0 0 10px rgba(30,30,30,.1); }
            &:hover .btn-quick-crop { opacity: 1; }

            &.no-image {
                background: #fbfbfd;
                img {
                    opacity: 0.4;
                    filter: grayscale(100%);
                }
                .btn-quick-crop {
                    display: none !important;
                    pointer-events: none !important;
                }
            }
        }
        label           { position:relative; display:block; }
        
        .btn-quick-crop {
            position: absolute;
            top: -2px;
            left: -2px;
            z-index: 2;
            width: 26px;
            height: 26px;
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.92);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            border: 1px solid rgba(0, 0, 0, 0.1);
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            color: #475569;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            opacity: 0;
            transition: all 0.2s ease;
            padding: 0;

            &:hover {
                background: #3b82f6;
                color: #ffffff;
                border-color: #3b82f6;
                transform: scale(1.1);
                box-shadow: 0 3px 8px rgba(59, 130, 246, 0.4);
            }

            i {
                font-size: 13px;
                line-height: 1;
            }
        }
        
        div              { height:50px }
        div span         { display:block }
        span.n           { text-overflow: ellipsis ; white-space: nowrap;overflow: hidden ; max-width: 115px; font-size: 11px;     color: #9f9f9f;letter-spacing: .5px;}
        span.c           { font-size:11.5px; font-weight:400; letter-spacing:.7px; padding-top:6px  }

        div             { padding-top:4px; }
        b               { overflow: hidden; width: 28px; height: 28px; position: absolute; right: 0; bottom: 0; z-index: 10; cursor: pointer; }
        b input         { width: 100%; height: 100%; opacity: 0; z-index: 2; position: absolute; left: 0; top: 0; cursor: pointer; margin: 0; }
        b i             { position: absolute; z-index: 1; left: 0; top: 0; border: 2px solid #eae8e8; border-radius: 11px 4px; color: #f3f3f3; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; padding-top: 3px; transition: all 0.15s ease; pointer-events: none; }
        b:hover i       { border-color: #93c5fd; color: #93c5fd; }
        b input:checked+i { color: #fff !important; border-color: #3b82f6 !important; background: #3b82f6 !important; }

        &.f1            {

            div         { height:33px; padding-top:5px  }
            .n          { display:none }
        }

    }

    .list-head           { background:var(--bg-color); padding:8px 0 0 0;  transition: .3s; margin-bottom: 20px;position:sticky; top:0; z-index:13;


        .in              { background:white; border-radius:10px; padding:14px; transition: .3s; }
        
        .go              { margin-right: 25px; display:flex;;width: 48px;
            a            { background: #f5f5f5; border-radius:7px; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 20px;  }
            
        }

        .f-firma .f      { padding-left:50px; }
        .f-firma .fi.l   { width:46px; left:0; border-right:2px solid white;
            a            { display:flex; width:100%; height:100%; align-items:center; justify-content:center;border-radius: 8px 0 0 8px; 
                &:hover  { background: #f0eded;}
            }
            img          { width:52% }
        }
        

    }

}


body[stick*="392"]               {
    
    .stk-list .list-head        { margin: 0 -15px;
        .in                     { box-shadow:0 0 16px rgba(0, 0, 0,.1) }
    }
}


/*
 @ stock : stock list  */

.sec-stk .up-form              { 
    
    padding: 26px 26px 21px 26px;
    border-radius: 10px;
    margin-bottom: 40px;

    background-color: var(--card-bg-color);
   
    label {

        border: 2px dashed #e6e6e6;
        display: block;
        border-radius: 8px ; 
        cursor: pointer;
        height: 192px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    label  i        { font-size: 3rem!important; color: #e2e2e2; }
    label h6        { font-size: .92rem;color: #595959;font-weight: 400;letter-spacing: .7px; }
    summary         { margin-top: 20px;font-size: 11px;letter-spacing: .5px;color: #7d7d7d; }

}




.actions {
    display: flex;
    background: #f8f8f8;
    border-radius: var(--radius);

    > li{ min-width:62px; border-left:1px solid #e1e1e1; height:100%;
        
        &:first-child { border:0; border-radius:8px 0 0 8px }
        &:last-child { border-radius: 0 8px 8px 0 }
        i{ position:relative; }
        &:hover{ background:#f2f2f2 }
    }

    li .check {  position: relative;
       input  { width:100%; height:100%; opacity:0; position:absolute; left:0; top:0 ;z-index: 1}
       i      { top:2px; color:#6f6e70;font-size:12px }
       input:checked+i { color:#2aa8f4 }

    }

}

.actions li > *  {
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    width: 100%;
    background: none;
    height: 100%;
   
}

.actions button:disabled {
    opacity: .5;
}

.actions button i {
    font-size: 16px;
    top:2px;
}

.actions button i.ss-download {
    color: #7cc228;

}

.actions button i.ss-upload {
    color: #9d6ce8eb;
}

.actions button i.ss-trash {
    color: #de786e;
    font-size: 15px;
    top:3px;

}


.up-view {
    
    z-index: 3;
    background-color: var(--bg-color);
}





/*.up-view > div:first-child {
    height: 192px;
    max-width: 1280px;
    width: 72vw;
    padding: var(--gap);
    display: flex;
    justify-content: space-between;
}*/

#upload {
    background-color: rgb(68 171 245);
    width: 120px;
    height: 42px;
    border: none;
    border-radius: 21px;
    cursor: pointer;
    transition: opacity 48ms ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

#upload:hover {
    opacity: .8;
}

#upload:active {
    opacity: .6;
}

#upload:disabled {
    opacity: .5;
}


.up-head                    { padding: 30px 0 30px 0;    display: flex; justify-content: space-between; z-index: 3;
 
    .sol                    { letter-spacing: 1.2px;
        h1                  { font-weight:5s00; font-size:24px; padding-bottom:10px }
        p                   { font-weight:300 }
    }

    .sag                     {

        button               { color:white; font-weight:500; position: relative;
        }
    }

}

body[stick*="100"]               {
    
    .stk-form .up-head          { 

        position: sticky;
        top: 0;
        
        background: #f8f8f8;
        margin: 0 -82px;
        padding: 15px 19px 16px 20px;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 0 11px rgba(0,0,0,.2);
    }

}

  



.up-list        { margin-top: var(--gap);
    
    > ul         { 

        display: flex;
        flex-direction: column;
        row-gap: var(--gap);
        height: calc(100% - 192px);
    }

    figure              { width: 166px; aspect-ratio: 1 / 1; background: #f5f5f5; border-radius: 8px; overflow: hidden;
        img             { width: 100% ; display:block; mix-blend-mode: multiply;  }
    }


    .upload-item        { position: relative; background: white; border-radius:12px; padding:26px 30px; border:2px solid #fff }
    .upload-item        { display: flex; justify-content: space-between; background: white; border-radius: 8px;position: relative; min-height: 192px; 
        .sol            { display:flex; gap:30px;
            h6          { font-weight:400; font-size: 30px; color: #333; letter-spacing:1.5px }
            .a          { display: block; padding-bottom: 22px; display: block; font-weight: 300; color:#888; font-size: 11px; letter-spacing: 1px; b{ padding-left: 5px; color:#111; font-weight:400  } }
            .b          { font-weight:500; display: block; padding-left: 20px; position: relative; margin-bottom: 15px; margin-top: 4px; letter-spacing: .8px;
                &:before{ color:#50acfb;font-family: SSPika; top:0px; position: absolute; left:0;font-style: normal;font-weight: 400;text-decoration: none;text-rendering: optimizeLegibility;white-space: nowrap;     content: '';}
            }
            div a       { color:#50acfb;
                i       { color:#ee602f; top:3px; position:relative; }
            }
        }


        &:has(.f-default input:checked) { order:-1; background:#fffef5 }
    }

}





/*
.up-list .upload-item .meta-data {
    margin-right: auto;
    display: flex;
    flex-direction: column;
    row-gap: var(--gap);
}


.up-list .upload-item .meta-data .file-size {
    display: flex;
    align-items: center;
    column-gap: calc(var(--gap) / 2);
    line-height: 24px;
}
*/

.up-list .upload-item .servers > div:first-child {
    display: flex;
}


.up-list .us            { display:flex; gap:20px;
    .f-firma            { width:250px ;


    }



}


.up-list .us ol         { display:flex;align-items: center; gap:10px;
    li                  { background:#efecec; border-radius:8px; width:40px;
        label           { width:100%; height:100%; display:flex; align-items:center; justify-content:center;
            input       { opacity:0; top:10px;position:absolute; }
        }

        &.f-default i   { position:relative; z-index:2; font-size:17px; width:1em; height:1em; border-radius:1em;    background: #fff; border: 5px solid white; }
        &.f-inherit i   { position:relative; z-index:2; font-size: 13px; color:#fff; top: 2px;left: 1px; }
        
        &.f-default     { label:has(input:checked) i {   background: #77c569; }  }
        &.f-inherit     { label:has(input:checked) i {   color: #3793ff; }  }

        &:hover         { background:#ebe8e8 }
    }
}

.up-list .sag           { position: relative;

    summary             { font-size: 10px; padding-top: 10px;color: #888;letter-spacing: .5px; width: 100%; position: absolute;

        p               { display:none ; padding-left: 2px}
        .f1 a           { left: -22px;position: absolute;top: 11px; 
            &:hover     { color:#2180d0 }
        }

    }   

    &:has(.f-inherit input:checked) summary .f1{ display:block }


    
    &:has(.f-inherit:hover input:checked) summary p:not(.f2) { display:none  }
    &:has(.f-inherit:hover input:checked) summary p.f2       { display:block }


    &:has(.f-inherit input:not(:checked)) summary .f3{ display:block }

    &:has(.f-inherit:hover input:not(:checked)) summary p:not(.f4) { display:none  }
    &:has(.f-inherit:hover input:not(:checked)) summary p.f4       { display:block }
    

}



.servers:has(input[name="inherit"]:checked):has(input[name="default"]:not(:checked)) .f-firma {
    pointer-events: none;
    filter: grayscale(100%);
    .f { color:#b4b4b4 }
    .fi i { color:#c8c1c1 }
    
}

.servers:has(input[name="inherit"]:checked):has(input[name="default"]:not(:checked)) > .selected-servers {
    color: red;
    opacity: .5;
    pointer-events: none;
    text-decoration: line-through;
}

.upload-item:has(input[name="default"]:checked):has(.selected-servers:empty){
    border:2px dashed #ffccc3;
    
    

    
    


}

.upload-item:has(input[name="default"]:checked){

    .sag .us .f-inherit { display:none }
    .sag .f-firma       { width: 296px}

    .sag summary p:not(.f5)    { display:none  }
    .sag summary p.f5          { display:block }

}

.upload-item:has(input[name="default"]:checked):has(.selected-servers:empty) .f-firma {
    
    select      { background: #ffebe7;color: #bc8585; }
    .f-down {  background: #ffebe7; color:#c27e73 }
    .fi.l   {  color: #c27e73; }    
    
    

    /*
    color: red;
    box-shadow: 0 0 2px 2px red;
    border: none;*/
}

.up-list .upload-item .servers .selected-servers {
    
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 6px;
    padding-top: 38px;
}

.up-list .upload-item .servers .selected-servers li {
    font-family: monospace;
    position: relative;
    cursor: pointer;
    user-select: none;
    transition: opacity 48ms ease-in-out;
    width: max-content;
    padding-left: 18px;
    font-size: 11px;
    letter-spacing: 1px;
}

.up-list .upload-item .servers .selected-servers li:hover {
    opacity: .8;
}

.up-list .upload-item .servers .selected-servers li::before {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    left:0;
    border-radius: 50%;
    top:2px;
    background-color: rgb(244, 122, 80);
}

.up-list .upload-item button[data-method="removeUploadItem"] {
    color: rgb(244, 122, 80);
    font-size: 18px;
    width: 46px;
    height: 46px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    right: calc(var(--gap) * -1 - 48px);
    cursor: pointer;
    background-color: var(--card-bg-color);
    border: none;
    border-radius: var(--radius);
    transition: opacity 48ms ease-in-out;

}


.up-list .upload-item button[data-method="removeUploadItem"]:hover {
    background: #e98c79;
    color: white;
}

.up-list .upload-item button[data-method="removeUploadItem"] i {
    margin-bottom: -6px!important;
}

@media (max-width: 1536px) {
    body > main {
        max-width: 1024px;        
    }
}

/* ==========================================================================
   CROP & TUVAL STÜDYOSU / VALIDATION BADGE STYLES
   ========================================================================== */

.upload-item.invalid-format {
    border: 2px solid #fca5a5 !important;
    background: #fff8f8 !important;
}

.upload-item.formatted-ready {
    border: 2px solid #bfdbfe !important;
    background: #f8fbff !important;
}

.meta-data .badge-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
    line-height: 1.4;
    cursor: default;
}

.meta-data .badge-status i {
    font-size: 11px;
    
}
.meta-data .badge-status i.ss-alert{

    top: 1px;
    position: relative;
    left: -2px;
    font-size: 11px;

}

.meta-data .badge-success {
    background: #e6f9ed;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.meta-data .badge-warning {
    background: #fefce8;
    color: #854d0e;
    border: 1px solid #fef08a;
}

.meta-data .badge-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px dashed #fca5a5;
    animation: pulseBorder 2s infinite ease-in-out;
}

/* Editable Stock Code in Upload Card */
.code-edit-wrapper {
    position: relative;
    margin-bottom: 2px;
}

.input-stock-code {
    font-size: 26px;
    font-weight: 600;
    color: #1e293b;
    border: 0 dashed #fff;
    background:none;
    border-radius: 6px;
    padding: 4px 8px 0px 0px;
    width: calc(100% - 10px);
    max-width: 220px;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
    font-family: inherit;
    margin-bottom: 3px;
}

.input-stock-code:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}

.input-stock-code:focus {
    border: 1px dashed #a5b0c2;
    background:none;
    outline: none;
    padding: 4px 8px 0px 0px;
    margin-bottom: 10px;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.stock-matched-name {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #16a34a;
    margin: 2px 0 6px 4px;
    letter-spacing: 0.2px;
}

@keyframes pulseBorder {
    0%, 100% { border-color: #fca5a5; }
    50% { border-color: #ef4444; }
}

.meta-data .badge-formatted {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.meta-actions-row {
    display: flex;
    align-items: center;
    gap: 10px;
    
    margin: 0 0 9px 0;
}

.btn-crop-studio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #3793ff 0%, #1e6bd6 100%);
    color: #ffffff !important;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(30, 107, 214, 0.25);
    transition: all 0.2s ease;
}

.btn-crop-studio:hover {
    background: linear-gradient(135deg, #2581f0 0%, #1557b5 100%);
    box-shadow: 0 4px 10px rgba(30, 107, 214, 0.35);
    transform: translateY(-1px);
}

.btn-crop-studio.urgent {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
}

.btn-crop-studio.urgent:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.btn-crop-studio i {
    font-size: 13px;
}

/* ==========================================================================
   CROP STUDIO MODAL DIALOG
   ========================================================================== */

.crop-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.crop-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.crop-modal-dialog {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 960px;
    max-height: 94vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.crop-modal-overlay.open .crop-modal-dialog {
    transform: scale(1) translateY(0);
}

.crop-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.crop-badge-top {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #2563eb;
    background: #eff6ff;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

.crop-modal-title-area h2 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.2px;
}

.crop-modal-title-area p {
    font-size: 12px;
    color: #64748b;
    margin: 3px 0 0 0;
}

.crop-close-btn {
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
}

.crop-close-btn:hover {
    background: #fee2e2;
    color: #dc2626;
}

.crop-modal-body {
    display: flex;
    flex: 1;
    min-height: 0;
    background: #f8fafc;
    overflow: hidden;
}

/* Sol Canvas Bölümü */
.crop-canvas-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #0f172a;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    overflow: hidden;
    gap: 14px;
}

.crop-canvas-wrapper {
    position: relative;
    width: 480px;
    height: 480px;
    max-width: calc(100vw - 420px);
    max-height: 60vh;
    aspect-ratio: 1 / 1;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    cursor: grab;
    overflow: hidden;
}

.crop-canvas-wrapper.dragging {
    cursor: grabbing;
}

#cropDisplayCanvas {
    width: 100%;
    height: 100%;
    display: block;
    background-color: #ffffff;
}

.crop-guide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.2s ease;
}

.crop-guide-overlay.hidden {
    opacity: 0;
}

/* AI Overlay on Canvas */
.crop-ai-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(6px);
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border-radius: 4px;
}

.crop-ai-spinner-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 320px;
    width: 100%;
}

.crop-ai-spinner {
    width: 46px;
    height: 46px;
    border: 3.5px solid rgba(255, 255, 255, 0.15);
    border-top-color: #818cf8;
    border-right-color: #c084fc;
    border-radius: 50%;
    animation: cropAiSpin 0.85s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    margin-bottom: 14px;
}

@keyframes cropAiSpin {
    to { transform: rotate(360deg); }
}

.crop-ai-status-text {
    color: #f8fafc;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.crop-ai-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.crop-ai-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899);
    border-radius: 6px;
    transition: width 0.3s ease;
}

.crop-ai-sub-note {
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.4;
}

.crop-canvas-hint {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    font-size: 11px;
    padding: 6px 16px;
    border-radius: 20px;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.crop-canvas-hint i {
    color: #38bdf8;
    font-size: 12px;
}

/* Sağ Kontroller */
.crop-controls-sidebar {
    width: 320px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #ffffff;
    border-left: 1px solid #e2e8f0;
    overflow-y: auto;
}

.crop-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
}

.crop-card-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.crop-info-card {
    background: #eff6ff;
    border-color: #dbeafe;
}

.crop-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    padding: 3px 0;
}

.crop-info-label {
    color: #64748b;
}

.crop-info-val {
    color: #1e293b;
}

.text-success {
    color: #16a34a !important;
}

.crop-btn-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.crop-tool-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 6px;
    font-size: 11px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
}

.crop-tool-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.crop-tool-btn.primary {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
    font-weight: 600;
}

.crop-tool-btn.primary:hover {
    background: #dbeafe;
    border-color: #60a5fa;
}

/* AI Card & Button Styles */
.crop-ai-card {
    background: linear-gradient(135deg, #f8faff 0%, #f1f5fd 100%) !important;
    border: 1px solid #dbeafe !important;
}

.crop-ai-badge {
    background: #4f46e5;
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    letter-spacing: 0.2px;
}

.crop-ai-actions {
    display: flex;
    gap: 8px;
}

.crop-tool-btn.ai-btn {
    flex: 1;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    border: none;
    padding: 10px 8px;
    box-shadow: 0 3px 8px rgba(99, 102, 241, 0.28);
    font-weight: 600;
}

.crop-tool-btn.ai-btn:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.38);
    transform: translateY(-1px);
    color: #ffffff;
}

.crop-tool-btn.ai-btn i {
    color: #fde047;
    font-size: 15px;
}

.crop-tool-btn.ai-restore-btn {
    flex: 1;
    background: #ffffff;
    border: 1px solid #c7d2fe;
    color: #4338ca;
}

.crop-tool-btn.ai-restore-btn:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1e40af;
}

.crop-ai-hint {
    font-size: 11px;
    color: #6366f1;
    line-height: 1.35;
    margin-top: 8px;
        text-align: justify;
    padding: 0 8px 0 3px;
}

/* Eraser Tool Styles */
.crop-eraser-cursor {
    position: absolute;
    pointer-events: none;
    border: 2px dashed #ea580c;
    background: rgba(234, 88, 12, 0.18);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 25;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.crop-canvas-wrapper.eraser-mode {
    cursor: crosshair !important;
}

.crop-eraser-card {
    background: linear-gradient(135deg, #fffaf5 0%, #fff7ed 100%) !important;
    border: 1px solid #fed7aa !important;
}

.crop-eraser-badge {
    background: #e2e8f0;
    color: #64748b;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    letter-spacing: 0.2px;
    transition: all 0.2s ease;
}

.crop-eraser-badge.active {
    background: #ea580c;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.35);
}

.crop-tool-btn.active {
    background: #ea580c !important;
    border-color: #c2410c !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.3);
}

.crop-tool-btn.active i {
    color: #ffffff !important;
}

.crop-eraser-slider-area {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #fed7aa;
}

.crop-eraser-slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: #9a3412;
    font-weight: 600;
}


.crop-eraser-card .bb { flex-direction: row; position: relative;}
.crop-eraser-card .bb.a i{    position: absolute;left: 17px;top: 10px;font-size: 12px;}
.crop-eraser-card .bb.a span{padding-left: 4px;}
.crop-eraser-card .bb.b i{     position: absolute;font-size: 9px;left: 14px;top: 12px;}
.crop-eraser-card .bb.b span{   padding-left: 4px;}

.crop-tool-btn i {
    font-size: 16px;
}

.crop-zoom-label {
    font-weight: 700;
    color: #2563eb;
    font-size: 12px;
}

.crop-slider-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.crop-step-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    font-weight: 700;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crop-step-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.crop-range-slider {
    flex: 1;
    accent-color: #2563eb;
    cursor: pointer;
}

.crop-toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #334155;
    cursor: pointer;
    user-select: none;
}

.crop-toggle-label input {
    accent-color: #2563eb;
    cursor: pointer;
}

.crop-tip-box {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    font-size: 11px;
    line-height: 1.45;
    color: #64748b;
}

.crop-tip-box i {
    font-size: 13px;
    color: #3b82f6;
    margin-top: 1px;
    flex-shrink: 0;
}

/* Modal Footer */
.crop-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
}

.crop-btn-cancel {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.crop-btn-cancel:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.crop-btn-save {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: all 0.2s ease;
}

.crop-btn-save:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

.crop-btn-save i {
    font-size: 14px;
}

@media (max-width: 768px) {
    .crop-modal-body {
        flex-direction: column;
    }
    .crop-controls-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid #e2e8f0;
    }
    .crop-canvas-wrapper {
        width: 320px;
        height: 320px;
    }
}

/* ==========================================================================
   VIRTUAL GRID & STOCK LIST PERFORMANCE STYLES
   ========================================================================== */

.stock-counter-pill {
    background: #e2e8f0;
    color: #475569;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.stock-counter-pill .highlight {
    color: #2563eb;
    font-weight: 700;
}

.virtual-scroll-sentinel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
    width: 100%;
}

.virtual-scroll-loader {
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 3px solid rgba(55, 147, 255, 0.2);
    border-radius: 50%;
    border-top-color: #3793ff;
    animation: spinSentinel 0.8s linear infinite;
}

@keyframes spinSentinel {
    to { transform: rotate(360deg); }
}

.empty-search-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #94a3b8;
    width: 100%;
    grid-column: 1 / -1;
}

.empty-search-state i {
    font-size: 40px;
    color: #cbd5e1;
    margin-bottom: 12px;
}

.empty-search-state p {
    font-size: 15px;
    color: #64748b;
    margin: 0;
}

/* ==========================================================================
   ERP TEKİL STOK GÖRSEL MODU (body.on-add)
   ========================================================================== */

body.on-add {
    background: #f8fafc;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body.on-add .tab-nav,
body.on-add .stk-form,
body.on-add .stk-list {
    display: none !important;
}

body.on-add .crop-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #f8fafc;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    opacity: 1;
    pointer-events: auto;
    z-index: 99999;
}

body.on-add .crop-modal-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    display: flex;
    flex-direction: column;
}

body.on-add .crop-close-btn {
    display: none !important;
}

/* Header Ekstra Alanlar */
.crop-header-top-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.crop-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.crop-stock-code-pill {
    font-weight: 700;
    color: #0f172a;
    font-size: 12px;
    font-family: monospace;
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
}

.crop-stock-name {
    font-size: 13px;
    color: #334155;
    font-weight: 600;
}

.crop-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.crop-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    text-decoration: none;
    user-select: none;
}

.crop-header-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.crop-header-btn.danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #dc2626;
}

.crop-header-btn.danger:hover {
    background: #fee2e2;
    border-color: #f87171;
    color: #b91c1c;
}

/* Karşılama / Görsel Yokken Dropzone */
.crop-empty-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 480px;
    background: #ffffff;
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    padding: 40px 20px;
    box-sizing: border-box;
    text-align: center;
    transition: all 0.25s ease;
    cursor: pointer;
}

.crop-empty-dropzone:hover,
.crop-empty-dropzone.dragover {
    border-color: #3b82f6;
    background: #f0f7ff;
    transform: scale(0.995);
}

.crop-dropzone-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    cursor: pointer;
}

.crop-dropzone-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 16px;
    transition: transform 0.2s ease;
}

.crop-empty-dropzone:hover .crop-dropzone-icon {
    transform: translateY(-3px) scale(1.05);
}

.crop-dropzone-inner h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.crop-dropzone-inner p {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 20px 0;
    max-width: 420px;
    line-height: 1.5;
}

.crop-dropzone-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2563eb;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease;
}

.crop-dropzone-button:hover {
    background: #1d4ed8;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}