* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: radial-gradient(circle at top left, #3b82f6 0, #020617 55%);
    color: #e5e7eb;
    min-height: 100vh;
}

/* UYGULAMA KABUĞU */
.app {
    display: flex;
    min-height: 100vh;
}

/* SOL MENÜ */
.sidebar {
    width: 210px;
    background: rgba(15, 23, 42, 0.98);
    border-right: 1px solid rgba(148, 163, 184, 0.5);
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-logo-icon {
    background: #3b82f6;
    color: #eff6ff;
    padding: 6px 9px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 14px;
}

.sidebar-logo-texts {
    display: flex;
    flex-direction: column;
}

.sidebar-logo-title {
    font-size: 14px;
    font-weight: bold;
}

.sidebar-logo-subtitle {
    font-size: 11px;
    color: #9ca3af;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

.menu-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    margin-bottom: 2px;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 8px;
    text-decoration: none;
    color: #e5e7eb;
    font-size: 13px;
    border: 1px solid transparent;
}

.menu-link span.icon {
    width: 20px;
    text-align: center;
}

.menu-link:hover {
    background: rgba(31, 41, 55, 0.9);
    border-color: rgba(148, 163, 184, 0.7);
}

.menu-link.active {
    background: #1d4ed8;
    border-color: #2563eb;
}

/* ALT KISIM */
.sidebar-footer {
    margin-top: auto;
    font-size: 11px;
    color: #6b7280;
}

/* SAĞ TARAF (İÇERİK) */
.content {
    flex: 1;
    padding: 16px 20px 20px;
}

/* ÜST BAR (İÇERİK İÇİ) */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.topbar-title {
    font-size: 18px;
    font-weight: bold;
}

.topbar-subtitle {
    font-size: 12px;
    color: #9ca3af;
}

.topbar-user {
    font-size: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
    color: #d1d5db;
}

.topbar-user a {
    color: #e5e7eb;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    font-size: 11px;
}

.topbar-user a:hover {
    background: rgba(15, 23, 42, 0.9);
}

/* KART & GENEL ÖGELER */
.card {
    background: rgba(15, 23, 42, 0.97);
    border-radius: 14px;
    padding: 12px 14px 14px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.9);
}

.card h2 {
    font-size: 15px;
    margin-bottom: 4px;
}

.card p {
    font-size: 12px;
    color: #9ca3af;
}

.month-filter {
    background: linear-gradient(120deg, rgba(2, 6, 23, 0.95), rgba(30, 41, 59, 0.7));
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 20px 36px rgba(15, 23, 42, 0.6);
}

.month-filter h2 {
    font-size: 16px;
}

.month-filter .form-row {
    align-items: flex-end;
    gap: 14px;
}

.month-filter .form-group {
    margin-bottom: 0;
}

.month-filter input[type="month"] {
    background: rgba(2, 6, 23, 0.9);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    font-weight: 600;
    letter-spacing: 0.2px;
    color-scheme: dark;
    padding-right: 48px;
    appearance: none;
}

.month-filter input[type="month"]:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.7);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.month-filter input[type="month"]::-webkit-calendar-picker-indicator {
    opacity: 1;
    filter: invert(1) brightness(1.1);
    cursor: pointer;
}

.month-field {
    position: relative;
}

.month-input {
    position: relative;
}

.month-picker-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(2, 6, 23, 0.7);
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23e2e8f0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.month-picker-btn:hover {
    transform: translateY(-50%) scale(1.02);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.2);
}

.month-picker-btn:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.8);
    outline-offset: 2px;
}

.month-filter .btn-primary {
    background: linear-gradient(135deg, #3b82f6, #f97316);
    border-color: rgba(249, 115, 22, 0.7);
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 14px 24px rgba(59, 130, 246, 0.25), 0 10px 22px rgba(249, 115, 22, 0.25);
}

.month-filter .btn-primary:hover {
    filter: brightness(1.06);
}

/* ÖZET KARTLARI */
.summary-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.alert-success {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(34, 197, 94, 0.55);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.6);
}

.alert-title {
    font-size: 14px;
    font-weight: 700;
    color: #bbf7d0;
}

.alert-detail {
    font-size: 12px;
    color: #e5e7eb;
    margin-top: 4px;
}

.alert-error {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(239, 68, 68, 0.6);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.6);
}

.alert-error .alert-title {
    font-size: 14px;
    font-weight: 700;
    color: #fecaca;
}


.summary-card {
    background: rgba(15, 23, 42, 0.97);
    border-radius: 14px;
    padding: 9px 11px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.9);
}

.summary-card .label {
    font-size: 11px;
    color: #9ca3af;
}

.summary-card .value {
    display: block;
    font-size: 19px;
    font-weight: bold;
    margin: 2px 0;
}

.summary-card .hint {
    font-size: 11px;
    color: #9ca3af;
}

/* TABLOLAR */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.table th,
.table td {
    border-bottom: 1px solid #1f2937;
    padding: 6px 6px;
    text-align: left;
}

.table thead {
    background: rgba(15, 23, 42, 0.94);
}

.table th {
    font-size: 11px;
    color: #9ca3af;
    font-weight: normal;
}

/* BADGELER */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.badge-low {
    background: rgba(248, 113, 113, 0.15);
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.7);
}

.badge-ok {
    background: rgba(34, 197, 94, 0.15);
    color: #bbf7d0;
    border: 1px solid rgba(34, 197, 94, 0.7);
}

/* FORM GENEL */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.form-group {
    flex: 1 1 170px;
    margin-bottom: 8px;
}

label {
    display: block;
    font-size: 11px;
    margin-bottom: 3px;
    color: #e5e7eb;
}

input, select, textarea {
    width: 100%;
    padding: 7px 9px;
    border-radius: 8px;
    border: 1px solid #4b5563;
    background: #020617;
    color: #e5e7eb;
    font-size: 13px;
}

textarea {
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: #6b7280;
}

/* BUTONLAR */
.btn-row {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.btn {
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 12px;
    cursor: pointer;
}

.btn-primary {
    background: #3b82f6;
    border-color: #2563eb;
    color: #eff6ff;
}

.btn-secondary {
    background: #020617;
    border-color: #4b5563;
    color: #e5e7eb;
}

.btn:hover {
    filter: brightness(1.05);
}

/* KÜÇÜK NOT */
.note {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 6px;
}

/* GRID YARDIMCI */
.grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 12px;
}

/* ALT YAZI */
.footer {
    text-align: center;
    font-size: 11px;
    color: #9ca3af;
    padding: 10px 16px 16px;
}

@media (max-width: 650px) {
    .grid-2 {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* SERVİS KAYITLARI - FİLTRE ALANI */
.filter-bar {
    margin-top: 8px;
    margin-bottom: 8px;
    border-radius: 10px;
    padding: 8px 9px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(55,65,81,0.8);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-row + .filter-row {
    margin-top: 6px;
}

/* Chip tarzı hızlı filtreler */
.filter-chips {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11px;
}

.chip {
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid #4b5563;
    background: #020617;
    color: #e5e7eb;
    cursor: pointer;
}

.chip-active {
    background: #3b82f6;
    border-color: #2563eb;
}

/* Tablo kaydırma alanı */
.table-scroll {
    margin-top: 6px;
    max-height: 260px;       /* istersen değiştir */
    overflow: auto;
    border-radius: 10px;
    border: 1px solid #111827;
}

/* Detay linki */
.link-detail {
    color: #60a5fa;
    font-size: 11px;
    text-decoration: underline;
    cursor: pointer;
}

/* Sayfalama (tasarım) */
.pagination {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #9ca3af;
    flex-wrap: wrap;
    gap: 6px;
}

.page-buttons {
    display: flex;
    gap: 4px;
}

.page-btn {
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid #4b5563;
    background: #020617;
    color: #e5e7eb;
    font-size: 11px;
    cursor: pointer;
}

.page-btn[disabled] {
    opacity: 0.5;
    cursor: default;
}

.page-current {
    background: #3b82f6;
    border-color: #2563eb;
}

/* Stok için ekstra durum rozeti */
.badge-high {
    background: rgba(59, 130, 246, 0.18);
    color: #bfdbfe;
    border: 1px solid rgba(59, 130, 246, 0.8);
}

/* Eğer daha önce yoksa, stok filtresinde kullanılıyor */
.filter-bar {
    margin-top: 8px;
    margin-bottom: 8px;
    border-radius: 10px;
    padding: 8px 9px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(55,65,81,0.8);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-row + .filter-row {
    margin-top: 6px;
}

.filter-chips {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11px;
}

.chip {
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid #4b5563;
    background: #020617;
    color: #e5e7eb;
    cursor: pointer;
}

.chip-active {
    background: #3b82f6;
    border-color: #2563eb;
}

/* Tablo için dikey kaydırma alanı */
.table-scroll {
    margin-top: 6px;
    max-height: 260px;
    overflow: auto;
    border-radius: 10px;
    border: 1px solid #111827;
}

/* Sayfalama (stok ve servis tabloları için) */
.pagination {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #9ca3af;
    flex-wrap: wrap;
    gap: 6px;
}

.page-buttons {
    display: flex;
    gap: 4px;
}

.page-btn {
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid #4b5563;
    background: #020617;
    color: #e5e7eb;
    font-size: 11px;
    cursor: pointer;
}

.page-btn[disabled] {
    opacity: 0.5;
    cursor: default;
}

.page-current {
    background: #3b82f6;
    border-color: #2563eb;
}

.table-scroll {
    margin-top: 6px;
    max-height: 260px;
    overflow: auto;
    border-radius: 10px;
    border: 1px solid #111827;
}

/* Hızlı tarih seçimi (tag butonlar) */
.range-quick {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11px;
    align-items: center;
}

.range-quick span {
    color: #9ca3af;
}

.tag {
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid #4b5563;
    background: #020617;
    color: #e5e7eb;
    cursor: pointer;
    font-size: 11px;
}

.tag-active {
    background: #3b82f6;
    border-color: #2563eb;
}

/* Gelir / gider pill'leri */
.pill {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.pill-income {
    background: rgba(34, 197, 94, 0.18);
    color: #bbf7d0;
    border: 1px solid rgba(34, 197, 94, 0.8);
}

.pill-expense {
    background: rgba(239, 68, 68, 0.18);
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.8);
}

/* Chip renkleri (satış/harcama filtreleri) */
.chip-income {
    border-color: rgba(34, 197, 94, 0.8);
    color: #bbf7d0;
}

.chip-expense {
    border-color: rgba(248, 113, 113, 0.9);
    color: #fecaca;
}


/* Aylık sayfa - seçilen gün detayı grid'i */
.day-detail-grid {
    margin-top: 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
}

/* İç kart görüntüsü */
.card-inner {
    background: rgba(15, 23, 42, 0.96);
    border-radius: 12px;
    padding: 8px 8px 9px;
    border: 1px solid rgba(55, 65, 81, 0.9);
}

.card-inner h4 {
    font-size: 13px;
    margin-bottom: 4px;
}

/* Küçük scroll'lu tablolar */
.table-scroll.small-scroll {
    max-height: 180px;
}

/* Seçili gün satırını vurgulama */
.day-selected {
    background: rgba(59, 130, 246, 0.12);
}
.day-selected td {
    border-bottom-color: rgba(59, 130, 246, 0.4);
}

/* Başlık */
.day-detail-title {
    margin-top: 10px;
    font-size: 13px;
}
    
@media (max-width: 950px) {
    .day-detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Kullanıcılar sayfası - rol ve durum rozetleri */
.badge-role-tech {
    background: rgba(59, 130, 246, 0.18);
    color: #bfdbfe;
    border: 1px solid rgba(59, 130, 246, 0.85);
}

.badge-role-owner {
    background: rgba(245, 158, 11, 0.18);
    color: #fde68a;
    border: 1px solid rgba(245, 158, 11, 0.9);
}

.badge-status-passive {
    background: rgba(107, 114, 128, 0.25);
    color: #d1d5db;
    border: 1px solid rgba(75, 85, 99, 0.9);
}

/* Tablodaki işlem linkleri */
.link-action {
    font-size: 11px;
    color: #60a5fa;
    text-decoration: underline;
    cursor: pointer;
}

.btn-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(248, 113, 113, 0.7);
    background: rgba(239, 68, 68, 0.15);
    color: #fecaca;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.25);
    box-shadow: 0 8px 16px rgba(239, 68, 68, 0.25);
    transform: translateY(-1px);
}

.btn-delete:focus-visible {
    outline: 2px solid rgba(248, 113, 113, 0.8);
    outline-offset: 2px;
}


/* ===========================================
   🔥 YENİ MODERN SIDEBAR TASARIMI
   =========================================== */

.sidebar {
    width: 240px;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(148, 163, 184, 0.2);
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 6px 0 20px rgba(0,0,0,0.4);
}

.sidebar-top {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* LOGO */
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-logo-icon {
    background: linear-gradient(135deg, #3b82f6, #f97316);
    color: white;
    padding: 10px 12px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
}

.sidebar-logo-title {
    font-size: 16px;
    font-weight: bold;
}

.sidebar-logo-subtitle {
    font-size: 11px;
    color: #94a3b8;
}

/* MENU BAŞLIK */
.menu-title {
    font-size: 11px;
    color: #64748b;
    margin: 6px 0 4px;
    letter-spacing: 0.06em;
}

/* MENU ITEMLER */
.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    text-decoration: none;
    color: #e2e8f0;
    font-size: 14px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    position: relative;
}

/* ikon */
.menu-item .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 30px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #e2e8f0;
    background: rgba(2, 6, 23, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.menu-item .text {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.15px;
    line-height: 1.2;
    color: #f8fafc;
    flex: 1;
    text-align: left;
}

/* hover efekti */
.menu-item:hover {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.12), rgba(249, 115, 22, 0.08));
    border-color: rgba(148, 163, 184, 0.45);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.45);
    transform: translateX(2px);
}

/* solda ışıklı accent çizgisi */
.menu-item::before {
    content: "";
    position: absolute;
    left: 0;
    width: 3px;
    height: 0%;
    background: linear-gradient(#3b82f6, #f97316);
    border-radius: 0 6px 6px 0;
    transition: height 0.25s ease;
}

.menu-item:hover::before {
    height: 70%;
}

/* aktif menü */
.menu-item.active {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.2), rgba(2, 6, 23, 0.6));
    border-color: rgba(59, 130, 246, 0.5);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.25);
    transform: translateX(2px);
}

.menu-item.active::before {
    height: 100%;
}

/* FOOTER */
.sidebar-footer {
    font-size: 11px;
    color: #64748b;
    margin-top: 10px;
    text-align: left;
}

.sidebar-footer-note {
    margin-top: 10px;
}

.sidebar-footer .btn {
    width: 100%;
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #fff7ed;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(249, 115, 22, 0.95));
    border: 1px solid rgba(248, 113, 113, 0.7);
    box-shadow: 0 12px 22px rgba(239, 68, 68, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.sidebar-footer .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(249, 115, 22, 0.3);
    filter: brightness(1.05);
}

/* RESPONSIVE - PANEL DASHBOARD */
.menu-toggle-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.menu-toggle-btn,
.menu-overlay {
    display: none;
}

@media (max-width: 1100px) {
    .app {
        display: block;
    }
    .content {
        padding: 14px 16px 18px;
    }
    .sidebar {
        width: 230px;
        padding: 14px 12px;
        position: fixed;
        top: 0;
        left: 0;
        right: auto;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
        z-index: 30;
        overflow-y: auto;
    }
    .menu-toggle-input:checked ~ .sidebar {
        transform: translateX(0);
    }
    .sidebar-top {
        gap: 10px;
    }
    .sidebar-menu {
        gap: 6px;
    }
    .menu-item {
        padding: 8px 10px;
    }
    .menu-item .text {
        font-size: 13px;
    }
    .sidebar-footer .btn {
        padding: 9px 10px;
        font-size: 12px;
    }
    .menu-toggle-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 14px;
        right: 14px;
        left: auto;
        z-index: 40;
        padding: 8px 12px;
        border-radius: 999px;
        background: rgba(15, 23, 42, 0.92);
        border: 1px solid rgba(148, 163, 184, 0.5);
        color: #e5e7eb;
        font-size: 12px;
        font-weight: 700;
        cursor: pointer;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.6);
    }
    .menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(2, 6, 23, 0.55);
        z-index: 20;
    }
    .menu-toggle-input:checked ~ .menu-overlay {
        display: block;
    }
    .grid-2 {
        grid-template-columns: minmax(0, 1fr);
    }
    .summary-row {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

@media (max-width: 750px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .topbar-user {
        width: 100%;
        justify-content: flex-start;
    }
    .summary-row {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    .card {
        overflow-x: auto;
    }
    .table {
        min-width: 520px;
    }
}

@media (max-width: 520px) {
    .sidebar-menu {
        grid-template-columns: minmax(0, 1fr);
    }
    .menu-item {
        padding: 9px 10px;
    }
    .summary-card .value {
        font-size: 17px;
    }
}
