:root{--red:#b30000;--ink:#191919;--muted:#757575;--line:#e8e8eb}
*{box-sizing:border-box}
body{margin:0;background:#f5f5f7;color:var(--ink);font:14px system-ui,-apple-system,"Segoe UI",sans-serif}
header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 24px;background:white;border-bottom:1px solid var(--line)}
.brand{display:flex;gap:12px;align-items:center}
.brand strong{display:block;font-size:17px}
.logo{display:grid;place-items:center;color:white;background:linear-gradient(135deg,#8b0000,#ed0000);width:46px;height:46px;border-radius:13px;font-size:26px;font-weight:800}
small,.muted,footer{color:var(--muted)}
h1{font-size:27px;margin:18px 0 7px}
h2{font-size:18px;margin:0 0 16px}
.shell{max-width:1280px;margin:auto;padding:24px}
.card{background:white;border:1px solid var(--line);border-radius:16px;padding:20px;margin-bottom:15px;overflow:auto}
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.metric{font-size:26px;font-weight:750;margin-top:12px;overflow-wrap:anywhere}
.metric-card{margin:0}
button,input,select{font:inherit}
button{cursor:pointer;border:1px solid var(--line);border-radius:9px;background:white;padding:10px 14px;color:var(--ink)}
.primary,button.active{background:var(--red);color:white;border-color:var(--red)}
.periods,nav{display:flex;gap:8px;overflow:auto;white-space:nowrap}
nav{margin:18px 0}
.dates{display:flex;gap:12px;align-items:end;flex-wrap:wrap}
label{display:block;font-weight:600;margin:14px 0 7px}
input:not([type=checkbox]),select{width:100%;background:#fafafa;padding:12px;border:1px solid #ddd;border-radius:9px}
input[type=checkbox]{accent-color:var(--red)}
.login{display:grid;place-items:center;min-height:100dvh;padding:20px;background:radial-gradient(ellipse at top right,#900000,transparent 65%),#220707}
.login-card{background:white;width:min(100%,420px);padding:32px;border-radius:24px;box-shadow:0 20px 70px #0005}
.password{position:relative}
.password input{padding-right:80px}
.password button{position:absolute;right:4px;top:4px;padding:7px;border:0;background:transparent}
.remember{display:flex;gap:8px;align-items:center}
.full{width:100%;margin-top:12px;padding:14px}
.error{color:#a00000;background:#fff0f0;border-radius:8px;padding:10px}
.error:empty{display:none}
table{width:100%;border-collapse:collapse;min-width:430px}
td,th{text-align:left;padding:11px 9px;border-bottom:1px solid var(--line)}
th{color:var(--muted);font-size:12px;white-space:nowrap}
footer{text-align:center;padding:22px 0;font-size:12px}
.bar-row{display:grid;grid-template-columns:95px 1fr 100px;gap:9px;align-items:center;margin:9px 0}
progress{width:100%;height:12px;accent-color:var(--red)}
#content>.grid{margin-bottom:15px}
@media(max-width:760px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shell{padding:14px}.card{padding:13px}.metric{font-size:21px}header{padding:13px}.brand strong{font-size:15px}.bar-row{grid-template-columns:75px 1fr 85px}}


.profile{
    display:flex;
    align-items:center;
    gap:12px;
    margin:8px 0 20px;
}

.profile strong,
.profile span,
.profile small{
    display:block;
}

.profile strong{
    font-size:18px;
    margin:3px 0;
}

.avatar{
    background:#ffe5e5;
    color:#b30000;
    border-radius:14px;
    width:50px;
    height:50px;
    display:grid;
    place-items:center;
    font-size:20px;
    font-weight:800;
}

.main-metrics{
    grid-template-columns:repeat(3,minmax(0,1fr));
}

.total-card{
    background:linear-gradient(135deg,#8b0000,#d00000);
    color:white;
    border:0;
}

.main-metrics .metric{
    font-size:32px;
}

@media(max-width:650px){
    .main-metrics{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .main-metrics .total-card{
        grid-column:1/-1;
    }

    .main-metrics .metric{
        font-size:26px;
    }
}


[hidden]{
    display:none!important;
}

body:not(.login){
    padding-bottom:calc(85px + env(safe-area-inset-bottom));
}

header{
    position:sticky;
    top:0;
    z-index:20;
    padding:12px 18px;
}

header .logo{
    width:38px;
    height:38px;
    font-size:22px;
}

header form{
    display:none;
}

.shell{
    max-width:1000px;
    padding:18px;
}

#status{
    font-size:12px;
    margin:4px 0 16px;
}

#nav{
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    z-index:30;
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:0;
    margin:0;
    padding:7px 5px calc(7px + env(safe-area-inset-bottom));
    background:white;
    border-top:1px solid #e8e8eb;
    box-shadow:0 -4px 24px #00000008;
}

#nav button{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    min-width:0;
    border:0;
    border-radius:12px;
    background:transparent;
    padding:8px 1px;
    color:#777;
    font-size:11px;
    font-weight:600;
}

#nav button svg{
    width:23px;
    height:23px;
}

#nav button.active{
    color:#b30000;
    background:#fff1f1;
}

.filters{
    padding:12px;
}

.periods button{
    flex-shrink:0;
    padding:9px 12px;
    font-size:12px;
}

.card{
    border-radius:14px;
    box-shadow:0 2px 8px #00000003;
}

.cancel-link{
    text-align:left;
    border-color:#f0dada;
    color:#9b0000;
}

.cancel-link small{
    display:block;
    margin-top:7px;
}

.cancel-item{
    padding:15px 0;
    border-bottom:1px solid var(--line);
}

.cancel-item:last-child{
    border-bottom:0;
}

.cancel-top{
    display:flex;
    justify-content:space-between;
    gap:14px;
}

.cancel-top strong:last-child{
    white-space:nowrap;
}

.cancel-item p{
    margin:8px 0;
}

.cancel-item small{
    display:block;
    margin-bottom:10px;
}

.action-button{
    color:#b30000;
    font-weight:600;
    margin-bottom:12px;
}

.pagination{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    padding-top:15px;
}

button:disabled{
    opacity:.4;
    cursor:default;
}

@media(max-width:650px){

    header{
        padding:10px 14px;
    }

    .shell{
        padding:12px;
    }

    h1{
        font-size:23px;
        margin:10px 0 4px;
    }

    .card{
        padding:13px;
    }

    .grid{
        gap:9px;
    }

    .metric{
        font-size:22px;
    }

    .main-metrics .metric{
        font-size:25px;
    }

    .main-metrics .total-card .metric{
        font-size:34px;
    }

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

    .dates input{
        min-width:0;
        padding:9px 6px;
        font-size:13px;
    }

    .dates label{
        font-size:12px;
    }

    .dates button{
        grid-column:1/-1;
    }

    .bar-row{
        grid-template-columns:75px minmax(0,1fr) 85px;
        font-size:12px;
    }
}

/* GOVIATO BRAND 2026 */
:root{--red:#b30000;--ink:#251717;--muted:#706565;--line:#f0e4e4}
body:not(.login){background:#fff8f8}
.brand-image{display:block;flex:none;width:48px;height:48px;object-fit:contain;border-radius:12px}
header .brand-image{width:46px;height:46px;border:1px solid #f0e4e4}
.login{background:#b30000;background:linear-gradient(145deg,#8b0000,#b30000 60%,#e00000)}
.login-card{background:#fff;color:#311818}
.login-card .brand-image{width:70px;height:70px;border-radius:16px}
.primary,button.active{background:#b30000;border-color:#b30000;color:white}
.total-card{background:linear-gradient(135deg,#8b0000,#b30000);color:#fff}
.card{border-color:#f0e4e4}
#nav button.active{background:#fff0f0;color:#b30000}
@media(max-width:650px){header .brand-image{width:42px;height:42px}.login-card .brand-image{width:60px;height:60px}}

/* GOVIATO DESIGN STANDARD */

:root{
    --red:#b30000;
    --ink:#202020;
    --muted:#777777;
    --line:#e5e5e8;
    --canvas:#f7f7f8;
}

body{
    background:var(--canvas);
    color:var(--ink);
}

body.login{
    margin:0;
    padding:24px;
    min-height:100vh;
    min-height:100dvh;
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--canvas);
}

.login-card{
    width:100%;
    max-width:420px;
    background:#ffffff;
    border:1px solid var(--line);
    border-radius:24px;
    padding:36px;
    box-shadow:0 12px 45px #00000008;
}

.login-brand{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:14px;
    margin-bottom:32px;
}

.login-brand img{
    width:84px;
    height:84px;
    border-radius:22px;
    object-fit:contain;
}

.login-brand strong{
    color:var(--ink);
    font-size:19px;
    font-weight:800;
    letter-spacing:.7px;
}

.login-card h1{
    text-align:center;
    font-size:28px;
    font-weight:750;
    margin:0 0 28px;
}

.floating-field{
    position:relative;
    margin-bottom:18px;
}

.login .floating-field input{
    width:100%;
    height:60px;
    padding:20px 14px 7px 45px;
    line-height:22px;
    background:#ffffff;
    border:1px solid #d6d6da;
    border-radius:13px;
    font-size:16px;
    outline:none;
    transition:border-color .15s,box-shadow .15s;
}

.login .floating-field input:focus{
    border-color:var(--red);
    box-shadow:0 0 0 3px #b300000b;
}

.login .floating-field label{
    position:absolute;
    left:45px;
    right:12px;
    top:50%;
    transform:translateY(-50%);
    margin:0;
    color:#777;
    font-size:14px;
    font-weight:400;
    pointer-events:none;
    transition:top .15s,font-size .15s,color .15s;
}

.login .floating-field input:focus + label,
.login .floating-field input:not(:placeholder-shown) + label{
    top:12px;
    font-size:11px;
    font-weight:600;
}

.login .floating-field input:focus + label{
    color:var(--red);
}

.field-icon{
    position:absolute;
    width:21px;
    height:21px;
    top:50%;
    left:13px;
    transform:translateY(-50%);
    color:#777;
    pointer-events:none;
}

.floating-field:focus-within .field-icon{
    color:var(--red);
}

.login .password-field input{
    padding-right:52px;
}

.login .password-field label{
    right:52px;
}

.visibility-toggle{
    position:absolute;
    right:4px;
    top:8px;
    width:44px;
    height:44px;
    padding:10px;
    border:0;
    background:transparent;
    color:#666;
    display:grid;
    place-items:center;
    border-radius:10px;
}

.visibility-toggle svg{
    width:23px;
    height:23px;
}

.visibility-toggle .eye-closed{
    display:none;
}

.visibility-toggle[aria-pressed="true"] .eye-open{
    display:none;
}

.visibility-toggle[aria-pressed="true"] .eye-closed{
    display:block;
}

.visibility-toggle:focus-visible{
    outline:2px solid var(--red);
}

.login .remember{
    display:flex;
    align-items:center;
    gap:10px;
    margin:8px 0 22px;
    min-height:36px;
    font-size:14px;
    font-weight:500;
}

.login .remember input{
    width:19px;
    height:19px;
    margin:0;
    accent-color:var(--red);
}

.login .primary.full{
    margin:0;
    width:100%;
    height:54px;
    border:0;
    border-radius:13px;
    background:var(--red);
    color:white;
    font-size:16px;
    font-weight:700;
}

.login .primary.full:hover{
    background:#990000;
}

header{
    background:#ffffff;
}

header .brand-image{
    width:42px;
    height:42px;
    border-radius:12px;
    object-fit:contain;
}

#nav button.active{
    color:var(--red);
    background:#fff0f0;
}

@media(max-width:600px){

    body.login{
        background:#ffffff;
        padding:24px;
    }

    .login-card{
        max-width:420px;
        box-shadow:none;
        border:0;
        border-radius:0;
        padding:0;
    }

    .login-brand{
        gap:12px;
        margin-bottom:34px;
    }

    .login-brand img{
        width:90px;
        height:90px;
    }

    .login-card h1{
        font-size:26px;
    }
}

@media(max-height:520px){
    body.login{
        align-items:flex-start;
    }
}

@media(prefers-reduced-motion:reduce){
    .login *{
        transition:none!important;
    }
}


/* GOVIATO FLOATING DESIGN */

:root{
    --red:#b30000;
    --ink:#330909;
    --muted:#806d6d;
    --line:#eedada;
    --canvas:#faf7f7;
}

/* ORTAK ARKA PLAN */

body:not(.login){
    background:linear-gradient(
        180deg,#fff0f0 0,
        #faf7f7 200px,
        #faf7f7 100%
    );
    padding-bottom:calc(110px + env(safe-area-inset-bottom));
}

/* UST BAR */

body:not(.login) header{
    background:linear-gradient(
        115deg,#8b0000,#c00000 55%,#8b0000
    );
    color:#fff;
    border-bottom:1px solid #d34545;
    box-shadow:0 5px 22px #90000018;
    min-height:66px;
    padding:12px 20px;
}

header .brand strong{
    color:#fff;
    font-size:17px;
    font-weight:750;
}

header .brand small{
    display:none;
}

header .brand img{
    width:42px;
    height:42px;
    object-fit:contain;
    border-radius:11px;
}

/* KARTLAR */

body:not(.login) .card{
    background:#fff;
    border:1px solid #efd8d8;
    border-radius:21px;
    box-shadow:0 7px 20px #80000004;
}

body:not(.login) h1,
body:not(.login) h2{
    color:#400b0b;
    font-weight:750;
}

.metric-card{
    text-align:left;
}

.metric-card>div:first-child{
    color:#806565;
    font-weight:550;
    font-size:13px;
}

.metric-card .metric{
    color:#b30000;
    font-weight:800;
    letter-spacing:-.5px;
}

body:not(.login) .total-card{
    background:linear-gradient(
        135deg,#920000,#cf0000
    );
    border-color:transparent;
}

.total-card>div:first-child,
.total-card .metric{
    color:#fff;
}

.cancel-link{
    background:#fffafa!important;
    border-color:#edcaca!important;
}

.cancel-link .metric{
    color:#b30000;
}

/* YUZEN ALT MENU */

#nav{
    position:fixed;
    z-index:100;

    left:50%;
    right:auto;
    bottom:calc(15px + env(safe-area-inset-bottom));

    transform:translateX(-50%);

    width:calc(100% - 24px);
    max-width:560px;

    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));

    padding:5px;
    gap:3px;
    margin:0;

    border:1px solid #ffffff;
    border-radius:38px;

    background:rgba(230,227,227,.90);

    -webkit-backdrop-filter:blur(20px);
    backdrop-filter:blur(20px);

    box-shadow:
        0 9px 30px #4a000018,
        0 2px 7px #00000008;

    overflow:visible;
}

#nav button{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    min-width:0;
    min-height:58px;

    gap:5px;
    padding:7px 2px;

    border:0;
    border-radius:30px;

    background:transparent;
    color:#960000;

    font-size:10px;
    font-weight:600;

    transition:
        background .18s ease,
        box-shadow .18s ease,
        color .18s ease;
}

#nav button svg{
    width:24px;
    height:24px;
    stroke-width:1.8;
    flex-shrink:0;
}

#nav button span{
    white-space:nowrap;
}

#nav button.active{
    color:#b30000;
    background:#ffffff;

    box-shadow:
        0 4px 12px #65000015,
        0 1px 4px #00000008;

    font-weight:750;
}

#nav button:active{
    background:#fff4f4;
}

/* TARIH SECIMI */

.periods button{
    border:1px solid #ead4d4;
    color:#851818;
    border-radius:12px;
}

.periods button.active{
    background:#b30000;
    border-color:#b30000;
    color:white;
}

/* TELEFON */

@media(max-width:650px){

    .shell{
        padding:14px;
    }

    body:not(.login) header{
        min-height:60px;
        padding:10px 14px;
    }

    h1{
        font-size:23px;
    }

    .grid{
        gap:10px;
    }

    body:not(.login) .card{
        padding:15px;
        border-radius:18px;
    }

    .metric-card{
        min-height:100px;
    }

    .metric-card .metric{
        font-size:23px;
    }

    .main-metrics .total-card .metric{
        font-size:34px;
    }

    #nav{
        width:calc(100% - 18px);
        bottom:calc(10px + env(safe-area-inset-bottom));
    }

    #nav button{
        font-size:9px;
        min-height:56px;
    }

    #nav button svg{
        width:22px;
        height:22px;
    }
}

@media(max-width:350px){
    #nav button{
        font-size:8px;
    }
}

@media(prefers-reduced-motion:reduce){
    #nav button{
        transition:none;
    }
}


/* GOVIATO MOBILE V3 */

:root{
    --red:#b30000;
    --red-dark:#8b0000;
    --red-light:#fff0f0;
    --canvas:#faf6f6;
    --line:#eed6d6;
    --ink:#351010;
}

/* SECIM VE SURUKLEME KONTROLU */

body{
    -webkit-user-select:none;
    user-select:none;
    -webkit-tap-highlight-color:transparent;
    overscroll-behavior-x:none;
}

img,svg{
    -webkit-user-drag:none;
    user-select:none;
}

input,textarea,[contenteditable="true"]{
    -webkit-user-select:text;
    user-select:text;
}

button,a{
    touch-action:manipulation;
}

/* GIRIS EKRANI */

body.login{
    margin:0;
    padding:24px;
    min-height:100vh;
    min-height:100dvh;
    background:linear-gradient(
        145deg,#760000,#b30000 55%,#d00000
    );
    display:flex;
    align-items:center;
    justify-content:center;
}

body.login .login-card{
    width:100%;
    max-width:420px;
    padding:0 30px 32px;
    background:#fff;
    border:0;
    border-radius:26px;
    overflow:hidden;
    box-shadow:0 20px 65px #42000035;
}

body.login .login-brand{
    margin:0 -30px 28px;
    padding:27px 18px;
    background:linear-gradient(
        135deg,#8b0000,#c50000
    );
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:12px;
}

body.login .login-brand img{
    width:88px;
    height:88px;
    border-radius:22px;
    border:1px solid #ffffff25;
    object-fit:contain;
}

body.login .login-brand strong{
    color:#fff;
    font-size:19px;
    font-weight:800;
    letter-spacing:1px;
}

body.login .login-card h1{
    color:var(--red-dark);
    text-align:left;
    font-size:26px;
    margin:0 0 25px;
}

/* GOOGLE OTOMATIK DOLDURMA FIX */

body.login .floating-field{
    position:relative;
    margin-bottom:17px;
}

body.login .login-card .floating-field input{
    display:block;
    width:100%;
    height:64px;
    min-width:0;
    box-sizing:border-box;
    padding:26px 14px 8px 45px;
    background:#fff;
    color:#351010;
    caret-color:#b30000;
    border:1px solid #dfcccc;
    border-radius:14px;
    font-size:16px;
    font-weight:500;
    line-height:22px;
    outline:none;
}

body.login .login-card .password-field input{
    padding-right:51px;
}

/* Varsayilan: Etiket ustte kalir.
   Otomatik doldurma algilanmasa bile cakisma olmaz. */

body.login .login-card .floating-field input + label{
    position:absolute;
    top:13px;
    left:45px;
    right:12px;
    transform:translateY(-50%);
    margin:0;
    font-size:11px;
    line-height:14px;
    font-weight:600;
    color:#886c6c;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    pointer-events:none;
    transition:top .15s,font-size .15s,color .15s;
}

/* Sadece kesinlikle bos alanlarda etiketi ortala. */

body.login .login-card .floating-field.is-empty
input:placeholder-shown:not(:focus) + label{
    top:50%;
    font-size:14px;
    line-height:20px;
    font-weight:400;
}

/* Tarayici otomatik doldurma kurallari. */

body.login .login-card .floating-field
input:-webkit-autofill + label{
    top:13px;
    font-size:11px;
    line-height:14px;
    font-weight:600;
}

body.login .login-card .floating-field
input:autofill + label{
    top:13px;
    font-size:11px;
    line-height:14px;
    font-weight:600;
}

body.login .login-card .floating-field
input:-webkit-autofill{
    -webkit-box-shadow:0 0 0 1000px #ffffff inset!important;
    -webkit-text-fill-color:#351010!important;
    caret-color:#b30000;
    animation-name:goviato-autofill;
    animation-duration:.01s;
}

@keyframes goviato-autofill{
    from{opacity:.99}
    to{opacity:1}
}

body.login .login-card .floating-field input:focus{
    border-color:#b30000;
    box-shadow:0 0 0 3px #b300000b;
}

body.login .login-card .floating-field input:focus + label{
    color:#b30000;
}

body.login .login-card .password-field label{
    right:52px;
}

body.login .field-icon{
    width:22px;
    height:22px;
    color:#9b5555;
}

body.login .visibility-toggle{
    top:10px;
    right:5px;
    width:44px;
    height:44px;
    color:#a00000;
}

body.login .visibility-toggle svg{
    height:23px;
    width:23px;
}

body.login .remember{
    margin:12px 0 20px;
    min-height:42px;
    font-size:14px;
}

body.login .remember input{
    accent-color:#b30000;
    width:20px;
    height:20px;
}

body.login .primary.full{
    background:linear-gradient(
        135deg,#920000,#cf0000
    );
    border-radius:14px;
    height:56px;
    font-size:16px;
    font-weight:750;
    box-shadow:0 5px 15px #b3000018;
}

/* TELEFON GIRIS TASARIMI */

@media(max-width:600px){

    body.login{
        display:block;
        padding:0;
        background:#fff;
        min-height:100dvh;
        overflow-x:hidden;
    }

    body.login .login-card{
        width:100%;
        min-height:100dvh;
        max-width:none;
        padding:0 24px 30px;
        padding-bottom:calc(
            30px + env(safe-area-inset-bottom)
        );
        border-radius:0;
        box-shadow:none;
    }

    body.login .login-brand{
        margin:0 -24px 32px;
        padding:
            calc(32px + env(safe-area-inset-top))
            20px 38px;
        gap:16px;
        border-radius:0 0 34px 34px;
        box-shadow:0 10px 24px #b3000012;
    }

    body.login .login-brand img{
        width:100px;
        height:100px;
        border-radius:24px;
    }

    body.login .login-brand strong{
        font-size:21px;
    }

    body.login .login-card h1{
        font-size:27px;
        margin-bottom:24px;
    }

    body.login .floating-field{
        margin-bottom:18px;
    }

    body.login .login-card .floating-field input{
        height:64px;
        font-size:16px;
    }

    body.login .primary.full{
        height:57px;
    }
}

@media(max-width:350px){

    body.login .login-card{
        padding-left:17px;
        padding-right:17px;
    }

    body.login .login-brand{
        margin-left:-17px;
        margin-right:-17px;
    }
}

/* ANA PANEL MARKA RENKLERI */

body:not(.login){
    background:linear-gradient(
        180deg,#ffe8e8 0,#faf6f6 250px
    );
}

body:not(.login) header{
    background:linear-gradient(
        110deg,#780000,#b30000 55%,#970000
    );
}

body:not(.login) .card{
    border-color:#ecd0d0;
}

body:not(.login) .total-card{
    background:linear-gradient(
        135deg,#8b0000,#ca0000
    );
}

/* KIRMIZI YUZEN ALT BAR */

#nav{
    background:rgba(145,0,0,.94);
    border:1px solid #ffffff40;
    border-radius:38px;
    box-shadow:0 8px 26px #80000030;
    padding:5px;
}

#nav button{
    color:#fff;
    background:transparent;
}

#nav button.active{
    background:white;
    color:#b30000;
    box-shadow:0 3px 12px #42000025;
}

#nav button:active:not(.active){
    background:#ffffff20;
}

#nav button:focus-visible{
    outline:2px solid white;
}

@media(prefers-reduced-motion:reduce){
    .floating-field label,
    #nav button{
        transition:none!important;
    }
}

