﻿:root {
    --slytio-orange: #FD5E0F;
    --slytio-accent: #0078D7;
}

html, body {
    font-family: "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
    font-size: 16px;
    overflow-x: auto;
}
th small {
    font-weight: normal;
    font-size: 11px;
    color: #555;
}
/* Header / Footer */
.site-header {
    background-color: var(--slytio-orange);
    color: #fff;
}

.site-footer {
    background-color: var(--slytio-orange);
    color: #eee;
    padding: 1rem 0;
    text-align: center;
}

/* Navbar links */
.nav-link {
    color: #fff !important;
}

    .nav-link:hover {
        opacity: 0.9;
    }

/* Rapor sayfalarında geniş tablolar için */
.report-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

    .report-table-wrap table {
        width: max-content;
        min-width: 100%;
        border-collapse: collapse;
    }
:root {
    --slytio-orange: #FD5E0F;
}

.site-header {
    background-color: var(--slytio-orange);
    color: #fff;
}

.site-footer {
    background-color: var(--slytio-orange);
    color: #eee;
    padding: 1rem 0;
    text-align: center;
 
}
main{
    min-height:700px;
}

/* Accueil - modern card */
.home-wrap {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.home-card {
    width: 100%;
    max-width: 920px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.home-title {
    margin: 0 0 .75rem 0;
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.home-subtitle {
    margin: 0;
    color: rgba(0,0,0,.70);
    line-height: 1.6;
}

.home-chip {
    display: inline-flex;
    align-items: center;
    padding: .4rem .75rem;
    border-radius: 999px;
    background: rgba(253,94,15,.12);
    color: #7a2d07;
    font-weight: 600;
    margin-top: 1rem;
}

.home-divider {
    height: 1px;
    background: rgba(0,0,0,.08);
    margin: 1.25rem 0;
}

.home-greeting {
    margin: 0 0 .75rem 0;
    color: rgba(0,0,0,.78);
}

.home-hint {
    margin: 0 0 1rem 0;
    color: rgba(0,0,0,.60);
}

.home-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: .5rem;
}

.home-btn {
    background-color: #FD5E0F;
    border-color: #FD5E0F;
}

    .home-btn:hover {
        background-color: #e6530d;
        border-color: #e6530d;
    }


.home-alert {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    padding: .9rem 1rem;
    border-radius: 12px;
    background: rgba(0,0,0,.04);
    color: rgba(0,0,0,.78);
}

/* Mobil */
@media (max-width:768px) {
    .home-card {
        padding: 1.25rem;
        border-radius: 14px;
    }

    .home-title {
        font-size: 1.75rem;
    }
}

/* Reports - Index */
.reports-wrap {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.reports-card {
    max-width: 1400px;
    width: calc(100vw - 80px);
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
@media (max-width: 768px) {
    .reports-card {
        width: calc(100vw - 24px);
        padding: 1.25rem;
    }
}
.reports-content,
.report-table-wrap,
.table-wrapper {
    width: 100%;
    overflow-x: auto; /* yatay scroll */
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch; /* mobilde kaydırma akıcı */
}
    .reports-content table {
        border-collapse: collapse;
        width: max-content; /* çok kolon varsa genişleyebilir */
        min-width: 100%; /* az kolon varsa karta yay */
        max-width: none;
    }
    .reports-content th,
    .reports-content td {
        white-space: nowrap;
        vertical-align: middle;
    }

@media (max-width: 1940px) {
    .reports-content table, th small {
        font-size: 11px;
    }
    .reports-content th,
    .reports-content td {
        padding: 6px 8px;
    }
}
@media (max-width: 1440px) {
    .reports-content table, th small {
        font-size: 10px;
    }

    .reports-content th,
    .reports-content td {
        padding: 4px 5px;
    }
}

@media (max-width: 1145px) {
    .reports-content table, th small {
        font-size: 9px;
    }

    .reports-content th,
    .reports-content td {
        padding: 3px 5px;
    }
}
@media (max-width: 1050px) {
    .reports-content table, th small {
        font-size: 8px;
    }
    .reports-content th,
    .reports-content td {
        padding: 3px 5px;
    }
}
@media (max-width: 980px) {
    .reports-content table, th small {
        font-size: 7px;
    }

    .reports-content th,
    .reports-content td {
        padding: 3px 5px;
    }
}
@media (max-width: 900px) {
    .reports-content table, th small {
        font-size: 7px;
    }
    .reports-card {
        padding: 10px;
        margin: 10px;
    }
    .reports-content th,
    .reports-content td {
        padding: 3px 5px;
    }
}
@media (max-width: 860px) {
    .reports-content table, th small {
        font-size: 6px;
    }

    .reports-content th,
    .reports-content td {
        padding: 3px 5px;
    }
}
@media (max-width: 800px) {
    .reports-content table, th small {
        font-size: 6px;
    }

    .reports-content th,
    .reports-content td {
        padding: 3px 5px;
    }
}
@media (max-width: 780px) {
    .reports-content table, th small {
        font-size: 5px;
    }
    .reports-card {
        padding: 7px;
        margin: 7px;
    }
    .reports-content th,
    .reports-content td {
        padding: 2px 4px;
    }
}
@media (max-width: 640px) {
    .reports-content table, th small {
        font-size: 4px;
    }

    .reports-card {
        padding: 6px;
        margin: 6px;
    }

    .reports-content th,
    .reports-content td {
        padding: 2px 4px;
    }
}
@media (max-width: 600px) {
    .reports-content table, th small {
        font-size: 4px;
    }

    .reports-card {
        padding: 2px;
        margin: 2px;
    }

    .reports-content th,
    .reports-content td {
        padding: 2px 2px;
    }
}
@media (max-width: 460px) {
    .reports-content table, th small {
        font-size: 3px;
    }

    .reports-card {
        padding: 1px;
        margin: 1px;
    }

    .reports-content th,
    .reports-content td {
        padding: 1px 1px;
    }
}
.reports-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.reports-subtitle {
    margin: .35rem 0 0 0;
    color: rgba(0,0,0,.62);
}



.reports-divider {
    height: 1px;
    background: rgba(0,0,0,.08);
    margin: 1.25rem 0;
}

.reports-content {
    width: 100%;
}

    /* ViewBag.ReportContent içinden gelen tablolar için otomatik yatay scroll */
    .reports-content .report-table-wrap {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Eğer içerikte direkt table geliyorsa */
    .reports-content table {
        width: max-content;
        min-width: 100%;
    }

/* boş durum mesajı */
.reports-empty {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    padding: .9rem 1rem;
    border-radius: 12px;
    background: rgba(0,0,0,.04);
    color: rgba(0,0,0,.78);
}

/* Mobil */
@media (max-width:768px) {
    .reports-card {
        padding: 1.25rem;
        border-radius: 14px;
    }

    .reports-title {
        font-size: 1.6rem;
    }
}
/* === Reports buttons – Slytio Orange theme === */
/* ===== Reports buttons – Slytio Orange theme (CLEAN) ===== */

.reports-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.reports-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--slytio-orange);
    background: #fff;
    color: var(--slytio-orange);
    text-decoration: none !important;
    font-weight: 600;
    line-height: 1;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease, transform .05s ease;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    user-select: none;
}

    .reports-btn i {
        color: currentColor;
    }

    /* Normal hover (outline butonlar) */
    .reports-btn:hover {
        background: rgba(253,94,15,.20);
        color: var(--slytio-orange);
        box-shadow: 0 6px 18px rgba(0,0,0,.06);
    }

    /* Focus ring mavi olmasın */
    .reports-btn:focus,
    .reports-btn:focus-visible {
        outline: none !important;
        border-color: var(--slytio-orange) !important;
        box-shadow: 0 0 0 .2rem rgba(253,94,15,.25) !important;
    }

    /* Basılı tutunca mavi olmasın */
    .reports-btn:active {
        transform: translateY(1px);
        background: rgba(253,94,15,.20) !important;
        color: var(--slytio-orange) !important;
        border-color: var(--slytio-orange) !important;
    }

/* Active state */
.reports-btn--active {
    background: var(--slytio-orange);
    color: #fff;
    border-color: var(--slytio-orange);
    box-shadow: 0 10px 24px rgba(253,94,15,.22);
}

    /* Active hover: TURUNCU zemin + BEYAZ yazı (kritik) */
    .reports-btn--active:hover {
        background: var(--slytio-orange) !important;
        color: #fff !important;
        border-color: var(--slytio-orange) !important;
        box-shadow: 0 10px 24px rgba(253,94,15,.22);
    }

    /* Active basılı: yine turuncu + beyaz */
    .reports-btn--active:active {
        background: var(--slytio-orange) !important;
        color: #fff !important;
        border-color: var(--slytio-orange) !important;
    }

/* visited mavi/purple olmasın ama ACTIVE'i bozmasın */
.reports-btn:link,
.reports-btn:visited {
    color: var(--slytio-orange);
}

.reports-btn--active:link,
.reports-btn--active:visited {
    color: #fff;
}

/* FIX: Reports ilk sayfada görünen mavi focus/hover kenarlığı */
.reports-actions .reports-btn:focus,
.reports-actions .reports-btn:focus-visible,
.reports-actions .reports-btn:hover {
    outline: none !important;
    border-color: var(--slytio-orange) !important;
    box-shadow: none !important;
}

/* Active olanın hover/focus'u da turuncu kalsın */
.reports-actions .reports-btn--active:focus,
.reports-actions .reports-btn--active:focus-visible,
.reports-actions .reports-btn--active:hover {
    outline: none !important;
    border-color: var(--slytio-orange) !important;
    box-shadow: none !important;
}



/* a/button basılı tutunca çıkan mavi highlight */
.home-btn,
.btn-slytio {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    user-select: none;
}

    /* Bootstrap'in mavi focus ring'ini bu butonlarda kapat */
    .home-btn:focus,
    .home-btn:focus-visible,
    .btn-slytio:focus,
    .btn-slytio:focus-visible {
        outline: none !important;
        box-shadow: 0 0 0 .2rem rgba(253, 94, 15, .25) !important; /* turuncu ring */
    }



/* Home / login butonları basılıyken de mavi olmasın */
.home-btn:active,
.btn-slytio:active {
    background: #e6530d !important;
    border-color: #e6530d !important;
    color: #fff !important;
}

/* Reports period indicator */
.reports-period {
    font-size: .9rem;
    font-weight: 600;
    color: rgba(0,0,0,.55);
    margin-left: .5rem;
}
/* Date range chip (Week / S-1 / S-2) */
.report-range {
    display: inline-flex;
    align-items: center;
    padding: .35rem .75rem;
    border-radius: 999px;
    background: rgba(253,94,15,.10);
    color: #7a2d07;
    font-weight: 600;
    font-size: .9rem;
    margin: .25rem 0 1rem 0;
}
/* ---------- Auth (Login) ---------- */
.auth-wrap {
    display: flex;
    justify-content: center;
    padding: 2.25rem 0 3rem;
}

.auth-card {
    width: 100%;
    max-width: 820px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    padding: 2rem;
}

.auth-header {
    margin-bottom: 1.25rem;
}

.auth-title {
    font-weight: 800;
    font-size: 2rem;
    margin: 0;
}

.auth-subtitle {
    margin: .35rem 0 0 0;
    opacity: .8;
}

.auth-form {
    margin-top: 1.25rem;
}

.auth-field {
    margin-bottom: 1rem;
}

.auth-label {
    display: block;
    font-weight: 600;
    margin-bottom: .35rem;
}

.auth-input {
    border-radius: 10px;
    padding: .65rem .85rem;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: .25rem 0 1rem;
}

.auth-check {
    display: flex;
    align-items: center;
    gap: .5rem;
    user-select: none;
}

.auth-actions {
    margin-top: .5rem;
}

.btn-slytio {
    background: var(--slytio-orange);
    border: 1px solid var(--slytio-orange);
    color: #fff;
    border-radius: 12px;
    padding: .65rem 1rem;
    font-weight: 700;
}

    .btn-slytio:hover {
        background: var(--slytio-orange);
        filter: brightness(.96);
        color: #fff;
    }

.auth-alert {
    border-radius: 12px;
    padding: .75rem 1rem;
    margin-bottom: 1rem;
}

.auth-alert--danger {
    background: rgba(220,53,69,.08);
    border: 1px solid rgba(220,53,69,.2);
    color: #b02a37;
}

.auth-validation {
    display: block;
    margin-top: .35rem;
}
