﻿/* =========================
   LAYOUT
   ========================= */
.page {
    display: flex;
    min-height: 100vh;
}

/* Sol Sidebar */
.asr-side {
    width: 280px;
    border-right: 1px solid #e5e7eb;
    background: linear-gradient(180deg,#ffffff,#f8fafc);
    display: flex;
    flex-direction: column;
}

    .asr-side.is-collapsed {
        width: 80px;
    }

.asr-side-head {
    height: 56px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    border-bottom: 1px solid #e5e7eb;
}

.asr-side-body {
    padding: 10px;
    overflow: auto;
    min-height: 0;
}

/* Sağ içerik */
.asr-main {
    flex: 1;
    min-width: 0;
}

/* Mobilde sidebar yok */
@media(max-width:991px) {
    .asr-side {
        display: none !important;
    }
}

/* Küçük ikon butonu */
.asr-iconbtn-sm {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
}

/* AsrNavMenu eski düzeni için */
.asr-side .sidebar {
    width: 100%;
}

/* =========================
   QUICK (Favori / Son)
   ========================= */
.asr-quickcard {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: linear-gradient(180deg,#fff,#f8fafc);
    padding: 10px;
    margin-bottom: 10px;
}

.asr-quicktitle {
    font-weight: 900;
    font-size: 12px;
    color: #334155;
}

.asr-quickchips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.asr-qchip {
    border: 1px solid #dbeafe;
    background: linear-gradient(180deg,#eef4ff,#fff);
    border-radius: 999px;
    padding: 7px 9px;
    font-weight: 800;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.asr-qchip-soft {
    border-color: #e5e7eb;
    background: #fff;
}

.asr-qtext {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =========================
   HEX GRID
   ========================= */
.asr-hexgrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
}

.asr-hex {
    height: 82px;
    border: 0;
    padding: 0;
    background: transparent;
}

.asr-hexgrid-sub .asr-hex {
    height: 78px;
}

/* =========================
   HEX TILE (TEK KAYNAK)
   ========================= */
.asr-hex-inner {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px;
    border-radius: 16px;
    clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0% 50%);
    overflow: hidden;
    background: var(--hex-bg, linear-gradient(135deg,#2563eb,#1e40af));
    color: var(--hex-text, #fff);
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 6px 14px rgba(15,23,42,.10);
    transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}

    .asr-hex-inner i {
        font-size: 18px;
        color: var(--hex-icon,#fff);
    }

/* Yazı: 2 satır */
.asr-hex-text {
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    padding: 0 6px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    word-break: break-word;
}

/* Hover */
.asr-hex:hover .asr-hex-inner {
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(15,23,42,.16);
}

/* ALT PETEK: %20 koyu */
.hex-sub .asr-hex-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0% 50%);
    background: rgba(2,6,23,.20);
    pointer-events: none;
}

/* Fav / Lock */
.asr-hex-fav, .asr-hex-lock {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    z-index: 2;
}

.asr-hex-fav {
    background: rgba(255,255,255,.92);
}

    .asr-hex-fav i {
        font-size: 14px;
        color: #f59e0b;
    }

.asr-hex-lock {
    background: rgba(226,232,240,.95);
}

    .asr-hex-lock i {
        font-size: 14px;
        color: #475569;
    }

/* Yetkisiz */
.is-disabled {
    cursor: not-allowed;
}

    .is-disabled .asr-hex-inner {
        background: linear-gradient(135deg,#e5e7eb,#cbd5e1);
        color: #64748b;
        filter: grayscale(1);
        box-shadow: none;
    }

        .is-disabled .asr-hex-inner i {
            color: #64748b;
        }

    .is-disabled.hex-sub .asr-hex-inner::after {
        background: rgba(2,6,23,.06);
    }

/* =========================
   CANLI KATEGORİ RENKLERİ
   ========================= */
.hex-cat-muhasebe {
    --hex-bg: linear-gradient(135deg,#2563eb,#1e40af);
    --hex-text: #fff;
    --hex-icon: #fff;
}

.hex-cat-stok {
    --hex-bg: linear-gradient(135deg,#22c55e,#15803d);
    --hex-text: #fff;
    --hex-icon: #fff;
}

.hex-cat-satis {
    --hex-bg: linear-gradient(135deg,#ef4444,#b91c1c);
    --hex-text: #fff;
    --hex-icon: #fff;
}

.hex-cat-finans {
    --hex-bg: linear-gradient(135deg,#a855f7,#6d28d9);
    --hex-text: #fff;
    --hex-icon: #fff;
}

.hex-cat-ayarlar {
    --hex-bg: linear-gradient(135deg,#64748b,#334155);
    --hex-text: #fff;
    --hex-icon: #fff;
}

/* Sarı kategori (istersen CatClass ile bağlarız) */
.hex-cat-sari {
    --hex-bg: linear-gradient(135deg,#f59e0b,#b45309);
    --hex-text: #111827;
    --hex-icon: #111827;
}

/* =========================
   CHIP (Başlık etiketi)
   ========================= */
.asr-chip {
    font-size: 11px;
    font-weight: 900;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.chip-muhasebe {
    background: #eef4ff;
    border-color: #93c5fd;
    color: #1e3a8a;
}

.chip-stok {
    background: #ecfdf5;
    border-color: #86efac;
    color: #065f46;
}

.chip-satis {
    background: #fff1f2;
    border-color: #fecaca;
    color: #7f1d1d;
}

.chip-ayarlar {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}

.chip-finans {
    background: #faf5ff;
    border-color: #e9d5ff;
    color: #581c87;
}

.chip-sari {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}
