.invoice-reject-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.invoice-reject-modal-card {
    background: #fff;
    width: 450px;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.invoice-reject-modal-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.invoice-reject-modal-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
}

    .invoice-reject-modal-textarea:focus {
        border-color: #d9534f; /* Odaklanınca hafif kırmızı */
        outline: none;
    }

.invoice-reject-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.invoice-reject-btn-cancel {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    color: #333;
}

.invoice-reject-btn-confirm {
    background-color: #d9534f; /* btn-destructive rengine yakın */
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    color: white;
    font-weight: bold;
}

    .invoice-reject-btn-confirm:hover {
        background-color: #c9302c;
    }

.sys-log-overlay {
    --sys-bg: #ffffff;
    --sys-text-main: #1f2937;
    --sys-text-muted: #6b7280;
    --sys-border: #e5e7eb;
    --sys-primary: #2563eb;
    --sys-success-bg: #d1fae5;
    --sys-success-text: #065f46;
    --sys-success-dot: #10b981;
    --sys-error-bg: #fee2e2;
    --sys-error-text: #991b1b;
    --sys-error-dot: #ef4444;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.6); /* Hafif koyu backdrop */
    backdrop-filter: blur(4px); /* Blur efekti premium his verir */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* --- Modal Container --- */
.sys-log-container {
    background: var(--sys-bg);
    width: 600px;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

/* --- Header --- */
.sys-log-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--sys-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
}

.sys-header-info h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--sys-text-main);
}

.sys-subtitle {
    font-size: 0.85rem;
    color: var(--sys-text-muted);
    font-family: monospace; /* ID olduğu için monospace havalı durur */
}

.sys-close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--sys-text-muted);
    transition: color 0.2s;
    padding: 4px;
}

    .sys-close-btn:hover {
        color: var(--sys-text-main);
    }

/* --- Body & Scrollbar --- */
.sys-log-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    background-color: #fff;
}

    /* Custom Scrollbar for obsessives */
    .sys-log-body::-webkit-scrollbar {
        width: 6px;
    }

    .sys-log-body::-webkit-scrollbar-track {
        background: transparent;
    }

    .sys-log-body::-webkit-scrollbar-thumb {
        background-color: #d1d5db;
        border-radius: 10px;
    }

        .sys-log-body::-webkit-scrollbar-thumb:hover {
            background-color: #9ca3af;
        }

/* --- Timeline Structure --- */
.sys-timeline {
    position: relative;
    padding-left: 10px;
}

.sys-timeline-item {
    display: flex;
    margin-bottom: 24px;
    position: relative;
}

    .sys-timeline-item:last-child {
        margin-bottom: 0;
    }

/* Marker (Dot & Line) */
.sys-timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 16px;
    min-width: 16px;
}

.sys-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--sys-border); /* Ring effect */
    background: var(--sys-border);
    z-index: 2;
    flex-shrink: 0;
}

.sys-line {
    width: 2px;
    background-color: #f3f4f6;
    flex-grow: 1;
    margin-top: 4px;
    margin-bottom: -20px; /* Connect to next item */
}

/* Status Colors */
.sys-status-success .sys-dot {
    background: var(--sys-success-dot);
    box-shadow: 0 0 0 3px var(--sys-success-bg);
}

.sys-status-success.sys-badge {
    background: var(--sys-success-bg);
    color: var(--sys-success-text);
}

.sys-status-error .sys-dot {
    background: var(--sys-error-dot);
    box-shadow: 0 0 0 3px var(--sys-error-bg);
}

.sys-status-error.sys-badge {
    background: var(--sys-error-bg);
    color: var(--sys-error-text);
}

.sys-status-warning .sys-dot {
    background: #f59e0b;
    box-shadow: 0 0 0 3px #fef3c7;
}

.sys-status-warning.sys-badge {
    background: #fef3c7;
    color: #92400e;
}

.sys-status-info .sys-dot {
    background: #3b82f6;
    box-shadow: 0 0 0 3px #dbeafe;
}

.sys-status-info.sys-badge {
    background: #dbeafe;
    color: #1e40af;
}

.sys-status-default .sys-dot {
    background: #9ca3af;
    box-shadow: 0 0 0 3px #f3f4f6;
}

.sys-status-default.sys-badge {
    background: #f3f4f6;
    color: #374151;
}

/* Content Card */
.sys-content-card {
    flex: 1;
    background: #fff;
    /* Hafif bir kart görünümü */
    /* border: 1px solid var(--sys-border); */
    /* border-radius: 8px; */
    /* padding: 12px; */
    /* Not: Kart yapısı yerine temiz metin yapısı daha modern duruyor, border'ı kaldırdım. */
}

.sys-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.sys-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    margin-right: 10px;
    letter-spacing: 0.5px;
}

.sys-date {
    font-size: 0.8rem;
    color: var(--sys-text-muted);
}

.sys-message {
    font-size: 0.95rem;
    color: var(--sys-text-main);
    line-height: 1.5;
}

.sys-exception-box {
    margin-top: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 10px;
    font-size: 0.85rem;
    color: #b91c1c;
}

    .sys-exception-box pre {
        margin: 5px 0 0 0;
        white-space: pre-wrap;
        word-break: break-all;
    }

/* --- Footer --- */
.sys-log-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--sys-border);
    background: #f9fafb;
    text-align: right;
}

.sys-btn-primary {
    background: var(--sys-text-main);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.1s;
}

    .sys-btn-primary:active {
        transform: scale(0.98);
    }

/* --- Animations --- */
.sys-modal-fade-enter-active, .sys-modal-fade-leave-active {
    transition: opacity 0.3s;
}

.sys-modal-fade-enter, .sys-modal-fade-leave-to {
    opacity: 0;
}

.TableHeaderFilter {
    position: relative;
}

.TableHeaderFilter__Content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.TableHeaderFilter__Icon {
    cursor: pointer;
    color: #6c757d;
}

    .TableHeaderFilter__Icon:hover {
        color: #007bff;
    }

.TableHeaderFilter__Dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    min-width: 150px;
    margin-top: 4px;
    display: block;
    width: auto;
    padding: .375rem 1.75rem .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
/* ----- Yükleniyor Animasyonu ----- */
.half-circle-spinner, .half-circle-spinner * {
    box-sizing: border-box;
}

.half-circle-spinner {
    width: 60px;
    height: 60px;
    border-radius: 100%;
    position: relative;
}

    .half-circle-spinner .circle {
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 100%;
        border: calc(60px / 10) solid transparent;
    }

        .half-circle-spinner .circle.circle-1 {
            border-top-color: #5f78a8;
            animation: half-circle-spinner-animation 1s infinite;
        }

        .half-circle-spinner .circle.circle-2 {
            border-bottom-color: #305b9f;
            animation: half-circle-spinner-animation 1s infinite alternate;
        }

@@keyframes half-circle-spinner-animation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ----- Tablo Genel Stilleri ----- */
.table-container {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.table-wrapper {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
}

    .data-table th,
    .data-table td {
        padding: 8px 7px;
        text-align: left;
        border-bottom: 1px solid #ddd;
        vertical-align: middle !important;
    }

    .data-table td {
        padding: 6px 7px !important;
        border: 1px solid #eeeeee;
    }

    .data-table th {
        font-weight: bold;
    }

    .data-table thead tr {
        background-color: #abc4ed;
        text-align: center;
    }

    .data-table tr:hover {
        background-color: #c0d1ed !important;
    }

    .data-table .gear-icon-header {
        text-align: center;
        font-size: 1rem;
    }

/* ----- Medya Sorgusu ----- */
@@media screen and (max-width: 1400px) {
    .hide-on-small-screen {
        display: none !important;
    }
}

.pagination-select:focus {
    border-color: #6366f1; /* indigo-500 */
    box-shadow: 0 0 0 1px #6366f1;
}

.pagination-button:hover {
    background-color: #f3f4f6; /* gray-100 */
}

.pagination-button:disabled {
    opacity: 0.5;
}

.pagination-input:focus {
    outline: none;
    border-color: #6366f1; /* indigo-500 */
    box-shadow: 0 0 0 1px #6366f1;
}
/* Geçiş efektleri için */
.transitionable {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, box-shadow;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.border {
    border: 2px solid rgb(48 91 159 / 48%) !important;
    border-radius: 0.5rem;
}

label {
    font-weight: 600;
    color: #4d4d4d;
}

.list-button {
    background-color: aliceblue;
    color: #334e68; /* Metin rengi ekledik */
    padding: 0.2rem 1rem;
    border-radius: 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: 0.15rem solid #8194b0;
    /* Efektlerin pürüzsüz olması için geçiş (transition) ekliyoruz */
    transition: all 0.2s ease-in-out;
    /* Tıklanabilir olduğunu belirtmek için imleci el işareti yapıyoruz */
    cursor: pointer;
    /* Metnin seçilmesini engellemek için (isteğe bağlı) */
    user-select: none;
    /* <a> etiketinin varsayılan alt çizgisini kaldırır */
    text-decoration: none;
}

    /* Fareyle üzerine gelindiğinde (hover) uygulanacak stiller */
    .list-button:hover {
        background-color: #8194b0; /* Arka planı kenarlık rengi yap */
        color: white; /* Metin rengini beyaz yap */
        transform: translateY(-2px); /* Hafifçe yukarı kaydır */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Gölgelik ekle */
    }

    /* Butona tıklandığı andaki (active) efekt */
    .list-button:active {
        transform: translateY(0); /* Yukarı kaydırmayı iptal et */
        box-shadow: none; /* Gölgeliği kaldır */
    }

.invoice-action-container {
    position: relative;
    display: inline-block;
}

/* The button that triggers the menu */
.invoice-action-trigger {
    padding: 0.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
}

    .invoice-action-trigger:hover {
        background-color: #f0f0f0;
    }

/* The dropdown menu that floats over the content */
.invoice-action-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background-color: white;
    border-radius: 0.375rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 50; /* High z-index to ensure it appears on top */
    min-width: 180px;
    padding: 0.5rem 0;
    border: 1px solid #e2e8f0;
}

/* The links inside the dropdown */
.invoice-action-link {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #374151;
    text-decoration: none;
    white-space: nowrap;
}

    .invoice-action-link:hover {
        background-color: #f3f4f6;
    }

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    max-width: 200px;
    height: 1rem;
    padding: 0 0.1rem;
    background-color: #faca19;
    color: #4f4f4f;
    font-size: 12px;
    font-weight: bold;
    border-radius: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.button-container {
    display: flex;
    flex-wrap: wrap; /* Butonlar sığmazsa alt satıra geçsin */
    gap: 1rem; /* Butonlar arası boşluk */
    padding: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Tüm butonlar için temel stil (ANA SINIF) */
.pro-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 1rem !important;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

    .pro-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }

    .pro-btn:active {
        transform: translateY(0);
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    /* --- YENİ EKLENEN BÖLÜM: Tıklama/Odaklanma Efekti --- */
    .pro-btn:focus {
        outline: none; /* Tarayıcının varsayılan çerçevesini kaldır */
        /* Kendi özel odaklanma efektimizi ekle (erişilebilirlik için) */
        /* Mevcut gölgeyi koruyup yanına yeni bir parlama efekti ekliyoruz */
        box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 0 0 3px rgba(44, 103, 255, 0.4);
    }


    /* --- Stil Çeşitleri (MODİFİYE EDİCİ SINIFLAR) --- */

    /* 1. Birincil Buton */
    .pro-btn.btn-primary {
        background-color: #2c67ff57;
        color: #383838;
    }

        .pro-btn.btn-primary:hover {
            background-color: #2c67ff99;
        }

    /* 2. Başarı Butonu */
    .pro-btn.btn-success {
        background-color: #26a69a57;
        color: #383838;
    }

        .pro-btn.btn-success:hover {
            background-color: #26a69a99;
        }

    /* 3. Yıkıcı Buton */
    .pro-btn.btn-destructive {
        background-color: #e5393557;
        color: #383838;
    }

        .pro-btn.btn-destructive:hover {
            background-color: #e5393599;
        }

    /* 4. Uyarı Butonu */
    .pro-btn.btn-warning {
        background-color: #ff980057;
        color: #383838;
    }

        .pro-btn.btn-warning:hover {
            background-color: #ff980099;
        }

    /* 5. İkincil Buton */
    .pro-btn.btn-secondary {
        background-color: transparent;
        color: #4b5563;
        border: 2px solid #d1d5db;
    }

        .pro-btn.btn-secondary:hover {
            background-color: #f9fafb;
            border-color: #9ca3af;
            color: #1f2937;
        }

[v-cloak] {
    display: none;
}

.print-action-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3) !important;
    transition: all 0.25s ease !important;
}

.print-action-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.4) !important;
}

/* --- Afilli Yazdirma Gecis Efektleri (Print Animation) --- */
.invoice-print-animating .invoice-iframe-container {
    transform: scale(0.975);
    filter: brightness(0.92) contrast(1.05);
    border-radius: 8px;
}

.print-scan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(2px);
}

.print-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 12px;
    background: linear-gradient(90deg, transparent 0%, #3b82f6 20%, #60a5fa 50%, #3b82f6 80%, transparent 100%);
    box-shadow: 0 0 20px 6px #3b82f6, 0 0 40px 12px rgba(59, 130, 246, 0.6);
    animation: invoiceScanBeam 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes invoiceScanBeam {
    0% {
        top: -20px;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.print-ripple-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(59, 130, 246, 0.6);
    color: #ffffff;
    padding: 1.1rem 2.2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 0 35px rgba(59, 130, 246, 0.5);
    animation: printBadgePulse 0.8s ease-in-out infinite alternate;
    z-index: 60;
}

@keyframes printBadgePulse {
    0% {
        transform: translate(-50%, -50%) scale(0.95);
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    }

    100% {
        transform: translate(-50%, -50%) scale(1.05);
        box-shadow: 0 0 45px rgba(59, 130, 246, 0.8);
    }
}

