.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);
    backdrop-filter: blur(4px);
    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;
}

.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;
}

    .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);
    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;
}

/* 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;
}

.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;
    box-shadow: 0 0 0 1px #6366f1;
}

.pagination-button:hover {
    background-color: #f3f4f6;
}

.pagination-button:disabled {
    opacity: 0.5;
}

.pagination-input:focus {
    outline: none;
    border-color: #6366f1;
    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;
    padding: 0.2rem 1rem;
    border-radius: 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: 0.15rem solid #8194b0;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
}

    .list-button:hover {
        background-color: #8194b0;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .list-button:active {
        transform: translateY(0);
        box-shadow: none;
    }

.invoice-action-container {
    position: relative;
    display: inline-block;
}

.invoice-action-trigger {
    padding: 0.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
}

    .invoice-action-trigger:hover {
        background-color: #f0f0f0;
    }

.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;
    min-width: 180px;
    padding: 0.5rem 0;
    border: 1px solid #e2e8f0;
}

.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;
    gap: 1rem;
    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);
    }

    .pro-btn:focus {
        outline: none;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 0 0 3px rgba(44, 103, 255, 0.4);
    }

    /* 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;
        }

.invoice-viewer-backdrop {
    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: 1000;
}

.invoice-viewer-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
    width: 90vw;
    height: 90vh;
    max-width: 1000px;
}

.invoice-viewer-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #000;
    opacity: 0.3;
    background: transparent;
    border: 0;
    cursor: pointer;
    z-index: 1001;
}

    .invoice-viewer-close-btn:hover {
        opacity: 0.7;
    }

.invoice-viewer-body {
    flex-grow: 1;
    padding: 20px;
    overflow: hidden;
}

    .invoice-viewer-body iframe {
        width: 100%;
        height: 100%;
        border: none;
    }

[v-cloak] {
    display: none;
}

/* --- Modern Responsive Invoice Viewer Modal --- */
.invoice-modal-dialog-custom {
    max-width: 900px !important;
    width: 90% !important;
    height: 92vh !important;
    margin: 4vh auto !important;
}

.invoice-modal-container {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 16px !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3) !important;
    overflow: hidden !important;
    background: #ffffff !important;
}

.invoice-modal-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #ffffff;
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    z-index: 10;
}

.invoice-header-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.invoice-modal-close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

    .invoice-modal-close-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.08);
    }

.invoice-modal-body-wrapper {
    position: relative;
    flex: 1;
    width: 100%;
    height: 100%;
    background-color: #ffffff !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.invoice-iframe-container {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    border: none !important;
    background-color: #ffffff !important;
    flex: 1;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Afilli Yazdırma Geçiş 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);
    }
}

.invoice-modal-footer {
    padding: 0.8rem 1.5rem;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.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;
    }
