:root {
    --ms-arkaplan: #f3f5f8;
    --ms-kenar: #e2e6ec;
}

html {
    font-size: 15px;
}

body {
    background: var(--ms-arkaplan);
}

.ust-menu .nav-link.active {
    font-weight: 600;
    color: #fff;
}

.sayfa-baslik {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.sayfa-baslik h1 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.kart {
    background: #fff;
    border: 1px solid var(--ms-kenar);
    border-radius: .6rem;
    padding: 1rem;
}

.kart + .kart {
    margin-top: 1rem;
}

/* Hata yokken boş özet kutusu görünmesin */
.validation-summary-valid {
    display: none;
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 1.1rem;
}

.tablo-kaydir {
    max-height: 68vh;
    overflow: auto;
}

.tablo-kaydir thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8f9fa;
}

.table > :not(caption) > * > * {
    vertical-align: middle;
}

.tutar {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.islem-butonlari {
    white-space: nowrap;
    text-align: right;
}

.islem-butonlari form {
    display: inline;
}

/* Ana menü */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 1rem;
}

.menu-kutu {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    min-height: 128px;
    padding: 1rem 1.15rem;
    border: 0;
    border-radius: .8rem;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
    transition: transform .08s ease, box-shadow .08s ease;
}

.menu-kutu small {
    font-size: .85rem;
    font-weight: 400;
    opacity: .92;
}

.menu-kutu:hover,
.menu-kutu:focus-visible {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .16);
}

.renk-satis { background: #1e8e3e; }
.renk-rapor { background: #1a73e8; }
.renk-stok { background: #0d9488; }
.renk-urun { background: #e8710a; }
.renk-fiyat { background: #7b1fa2; }
.renk-veresiye { background: #b45309; }
.renk-ayar { background: #5f6368; }
.renk-yedek { background: #37474f; }
.renk-cikis { background: #c5221f; }

.ozet-kart .etiket {
    color: #5f6368;
    font-size: .85rem;
}

.ozet-kart .deger {
    font-size: 1.45rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Giriş */
.giris-sayfa {
    min-height: calc(100vh - 2rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.giris-kart {
    width: 100%;
    max-width: 380px;
}

/* Normal sayfaları doğrudan yazdırırken menü ve formları gizle */
@media print {
    .ust-menu,
    .yazdirma-gizle,
    .sayfa-baslik .btn,
    .alert,
    .toast-container {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .kart {
        border: 0;
        padding: 0;
    }
}
