/* ==================== CARİ KARTI PANEL STİLLERİ ==================== */
.customer-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

@media (max-width: 1400px) {
    .customer-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .customer-balance-panel {
        grid-column: span 2;
    }
}

@media (max-width: 900px) {
    .customer-card-grid {
        grid-template-columns: 1fr;
    }

    .customer-balance-panel {
        grid-column: span 1;
    }

    .customer-panel[style*="grid-column: span 2"] {
        grid-column: span 1 !important;
    }
}

.customer-panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s;
}

.customer-panel:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.customer-panel-header {
    background: #f8fafc;
    color: #1e293b;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #e5e7eb;
    border-left: 3px solid #10b981;
}

.customer-panel-header.header-purple {
    border-left-color: #8b5cf6;
}

.customer-panel-header.header-amber {
    border-left-color: #f59e0b;
}

.customer-panel-header i {
    font-size: 14px;
    color: #10b981;
    opacity: 1;
}

.customer-panel-header.header-purple i {
    color: #8b5cf6;
}

.customer-panel-header.header-amber i {
    color: #f59e0b;
}

.customer-panel-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.customer-form-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.customer-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.customer-form-group label {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.customer-form-group input,
.customer-form-group select,
.customer-form-group textarea {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 9px 12px;
    color: #1f2937;
    font-size: 13px;
    transition: all 0.2s;
}

.customer-form-group input::placeholder,
.customer-form-group textarea::placeholder {
    color: #9ca3af;
}

.customer-form-group input:hover,
.customer-form-group select:hover,
.customer-form-group textarea:hover {
    border-color: #9ca3af;
}

.customer-form-group input:focus,
.customer-form-group select:focus,
.customer-form-group textarea:focus {
    border-color: #6366f1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.customer-form-group input.readonly-input {
    background: #f9fafb;
    color: #9ca3af;
    cursor: default;
}

.customer-form-group textarea {
    resize: vertical;
    min-height: 60px;
}

.input-with-btn {
    display: flex;
    gap: 4px;
}

.input-with-btn input,
.input-with-btn select {
    flex: 1;
    min-width: 0;
}

.mini-btn {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #6b7280;
    padding: 0 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-btn:hover {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

.customer-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    margin: 0;
    height: 36px;
    transition: all 0.2s;
}

.customer-checkbox:hover {
    border-color: #9ca3af;
}

.customer-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: #6366f1;
}

.customer-checkbox span {
    font-size: 12px;
    color: #374151;
}

/* Bakiye Panel Stilleri */
.customer-balance-panel .customer-panel-body {
    gap: 12px;
}

.balance-card {
    background: #f8fafc;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.balance-card:hover {
    border-color: #d1d5db;
}

.balance-card.balance-main {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.balance-card .balance-label {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.balance-card .balance-value {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    font-family: 'JetBrains Mono', monospace;
}

.balance-card.balance-main .balance-value {
    font-size: 28px;
}

.balance-card .balance-status {
    font-size: 11px;
    margin-top: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-block;
    font-weight: 500;
}

.balance-card .balance-status.positive {
    background: #ecfdf5;
    color: #059669;
}

.balance-card .balance-status.negative {
    background: #fef2f2;
    color: #dc2626;
}

.balance-card .balance-status.neutral {
    background: #f3f4f6;
    color: #6b7280;
}

.balance-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.balance-card.balance-debit {
    border-left: 3px solid #ef4444;
}

.balance-card.balance-debit .balance-value {
    color: #ef4444;
}

.balance-card.balance-credit {
    border-left: 3px solid #10b981;
}

.balance-card.balance-credit .balance-value {
    color: #10b981;
}

.balance-info {
    text-align: center;
    padding: 10px;
    background: #f3f4f6;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.balance-info small {
    color: #6b7280;
    font-size: 11px;
}

.balance-info i {
    margin-right: 4px;
}

/* ==================== ÜLKE TANIMLARI STİLLERİ ==================== */
.country-search-section {
    padding: 16px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-bottom: 1px solid #334155;
}

.country-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid #334155;
    border-radius: 10px;
    padding: 8px 14px;
    transition: all 0.2s;
}

.country-search-box:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.country-search-box i {
    color: #64748b;
    font-size: 16px;
}

.country-search-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: #e2e8f0;
    font-size: 14px;
    outline: none;
}

.country-search-box input::placeholder {
    color: #64748b;
}

.country-search-box .search-btn {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.country-search-box .search-btn:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    transform: translateY(-1px);
}

/* Autocomplete Dropdown */
.country-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    margin-top: 4px;
    max-height: 280px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    display: none;
}

.country-autocomplete.show {
    display: block;
    animation: slideDown 0.15s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.country-autocomplete-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #334155;
    transition: background 0.15s;
}

.country-autocomplete-item:last-child {
    border-bottom: none;
}

.country-autocomplete-item:hover {
    background: rgba(99, 102, 241, 0.15);
}

.country-autocomplete-item .flag {
    font-size: 20px;
}

.country-autocomplete-item .info {
    flex: 1;
}

.country-autocomplete-item .name {
    color: #e2e8f0;
    font-weight: 500;
    font-size: 13px;
}

.country-autocomplete-item .code {
    color: #64748b;
    font-size: 11px;
}

.country-autocomplete-empty {
    padding: 16px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
}

.country-autocomplete-loading {
    padding: 16px;
    text-align: center;
    color: #6366f1;
}

.country-search-wrapper {
    position: relative;
}

.country-search-hint {
    margin-top: 10px;
    font-size: 11px;
    color: #64748b;
}

.country-search-hint i {
    margin-right: 4px;
}

.country-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #1e293b;
    border-bottom: 1px solid #334155;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
}

.country-count {
    background: #6366f1;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

.countries-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.country-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.country-card:hover {
    border-color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.country-card.loaded {
    border-left: 3px solid #10b981;
}

.country-card.not-loaded {
    border-left: 3px solid #64748b;
}

.country-flag {
    font-size: 28px;
    line-height: 1;
}

.country-info {
    flex: 1;
    min-width: 0;
}

.country-name {
    font-weight: 600;
    color: #e2e8f0;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.country-code {
    font-size: 10px;
    color: #94a3b8;
    margin-top: 2px;
}

.country-status {
    font-size: 9px;
    margin-top: 4px;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

.country-status.loaded {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.country-status.not-loaded {
    background: rgba(100, 116, 139, 0.2);
    color: #64748b;
}

.country-actions {
    display: flex;
    gap: 4px;
}

.country-actions .mini-btn {
    padding: 5px 8px;
    font-size: 11px;
}

.country-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.country-empty-state i {
    font-size: 48px;
    opacity: 0.3;
    margin-bottom: 16px;
}

.country-empty-state p {
    font-size: 14px;
    margin-bottom: 8px;
}

.country-empty-state small {
    font-size: 12px;
    opacity: 0.7;
}

.country-modal-footer {
    padding: 10px 16px;
    background: #1e293b;
    border-top: 1px solid #334155;
    font-size: 11px;
    color: #64748b;
}

.country-modal-footer i {
    color: #f59e0b;
    margin-right: 6px;
}

/* ==================== CARİ GRUP TANIMLARI STİLLERİ ==================== */
.customer-group-modal-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    background: #0f172a;
}

.customer-group-left-panel {
    width: 320px;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #334155;
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

.customer-group-toolbar {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: #1e293b;
    border-bottom: 1px solid #334155;
}

.customer-group-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(100, 116, 139, 0.2);
    border: 1px solid #475569;
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.customer-group-btn:hover {
    background: rgba(100, 116, 139, 0.4);
}

.customer-group-btn.primary {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-color: #7c3aed;
}

.customer-group-btn.primary:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.customer-group-btn.danger {
    background: rgba(239, 68, 68, 0.2);
    border-color: #dc2626;
    color: #fca5a5;
}

.customer-group-btn.danger:hover {
    background: rgba(239, 68, 68, 0.4);
}

.customer-group-tree {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.customer-group-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #64748b;
}

.customer-group-empty i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.customer-group-item {
    margin-bottom: 4px;
}

.customer-group-main {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.customer-group-main:hover {
    background: rgba(139, 92, 246, 0.25);
}

.customer-group-main.selected {
    background: rgba(139, 92, 246, 0.35);
    border-color: #8b5cf6;
}

.customer-group-main .expand-icon {
    width: 20px;
    color: #a78bfa;
    transition: transform 0.2s;
}

.customer-group-main .expand-icon.expanded {
    transform: rotate(90deg);
}

.customer-group-main .group-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.customer-group-main .group-code {
    background: #8b5cf6;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.customer-group-main .group-name {
    color: #e2e8f0;
    font-weight: 500;
}

.customer-group-main .group-count {
    color: #64748b;
    font-size: 11px;
}

.customer-group-children {
    margin-left: 24px;
    margin-top: 4px;
    display: none;
}

.customer-group-children.show {
    display: block;
}

.customer-group-sub {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: rgba(100, 116, 139, 0.1);
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 6px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.customer-group-sub:hover {
    background: rgba(100, 116, 139, 0.2);
}

.customer-group-sub.selected {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
}

/* Ara Grup (Level 1) */
.customer-group-mid {
    display: flex;
    align-items: center;
    padding: 9px 12px;
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.25);
    border-radius: 6px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.customer-group-mid:hover {
    background: rgba(167, 139, 250, 0.2);
}

.customer-group-mid.selected {
    background: rgba(167, 139, 250, 0.3);
    border-color: rgba(167, 139, 250, 0.5);
}

.customer-group-mid .expand-icon {
    width: 18px;
    color: #a78bfa;
    margin-right: 6px;
}

.customer-group-mid .group-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.customer-group-mid .group-name {
    color: #e2e8f0;
    font-size: 13px;
}

.customer-group-mid .group-count {
    color: #64748b;
    font-size: 11px;
}

.customer-group-sub-children {
    margin-left: 20px;
}

.customer-group-sub .group-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.customer-group-sub .group-code {
    background: #475569;
    color: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
}

.customer-group-sub .group-name {
    color: #cbd5e1;
    font-size: 13px;
}

.customer-group-sub .group-count {
    color: #64748b;
    font-size: 11px;
}

.customer-group-right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #0f172a;
}

.customer-group-edit-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #64748b;
}

.customer-group-edit-empty i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.customer-group-form {
    padding: 20px;
}

.customer-group-form-row {
    margin-bottom: 16px;
}

.customer-group-form-row label {
    display: block;
    color: #94a3b8;
    font-size: 12px;
    margin-bottom: 6px;
}

.customer-group-form-row input,
.customer-group-form-row select,
.customer-group-form-row textarea {
    width: 100%;
    padding: 10px 12px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 13px;
}

.customer-group-form-row input:focus,
.customer-group-form-row select:focus,
.customer-group-form-row textarea:focus {
    border-color: #8b5cf6;
    outline: none;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.customer-group-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #334155;
}

/* İki Panel Düzeni */
.country-modal-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.country-left-panel {
    width: 320px;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #334155;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.country-left-panel .country-search-section {
    padding: 12px;
    border-bottom: 1px solid #334155;
}

.country-left-panel .country-search-box {
    padding: 6px 10px;
}

.country-left-panel .country-search-box input {
    font-size: 13px;
}

.country-left-panel .countries-list-container {
    padding: 8px;
}

.country-left-panel .countries-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.country-left-panel .country-card {
    padding: 10px 12px;
}

.country-left-panel .country-card.selected {
    border-color: #6366f1;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(79, 70, 229, 0.1));
}

.country-left-panel .country-flag {
    font-size: 24px;
}

.country-right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    overflow: hidden;
}

.country-detail-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-align: center;
    padding: 40px;
}

.country-detail-empty i {
    font-size: 48px;
    opacity: 0.3;
    margin-bottom: 16px;
}

.country-detail-empty p {
    font-size: 14px;
    margin-bottom: 8px;
}

.country-detail-empty small {
    font-size: 12px;
    opacity: 0.7;
}

/* İl/İlçe Ağacı */
.country-detail-header {
    padding: 12px 16px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.country-detail-header .flag {
    font-size: 28px;
}

.country-detail-header .info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.country-detail-header .info span {
    font-size: 12px;
    opacity: 0.8;
}

.country-detail-header .actions {
    margin-left: auto;
}

.country-detail-header .actions button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.country-detail-header .actions button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.city-tree-container {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.city-tree-search {
    margin-bottom: 12px;
}

.city-tree-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #334155;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.8);
    color: #e2e8f0;
    font-size: 13px;
}

.city-tree-search input::placeholder {
    color: #64748b;
}

.city-item {
    margin-bottom: 2px;
}

.city-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(71, 85, 105, 0.4);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.city-header:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

.city-header.expanded {
    border-radius: 6px 6px 0 0;
    border-bottom: none;
    background: rgba(99, 102, 241, 0.15);
}

.city-header .expand-icon {
    width: 16px;
    color: #64748b;
    transition: transform 0.2s;
}

.city-header.expanded .expand-icon {
    transform: rotate(90deg);
    color: #6366f1;
}

.city-header .plate-code {
    background: #6366f1;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.city-header .city-name {
    flex: 1;
    font-size: 13px;
    color: #e2e8f0;
}

.city-header .district-count {
    font-size: 11px;
    color: #64748b;
}

.district-list {
    display: none;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(71, 85, 105, 0.3);
    border-top: none;
    border-radius: 0 0 6px 6px;
    padding: 6px;
    margin-bottom: 4px;
}

.district-list.show {
    display: block;
}

.district-item {
    padding: 5px 10px 5px 34px;
    font-size: 12px;
    color: #94a3b8;
    border-radius: 4px;
    transition: all 0.15s;
}

.district-item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #e2e8f0;
}

.city-tree-loading {
    text-align: center;
    padding: 40px;
    color: #64748b;
}

.city-tree-loading i {
    font-size: 24px;
    margin-bottom: 10px;
}

/* Script Package Modal Styles */
.script-package-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.script-package-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.script-package-card.passive {
    opacity: 0.6;
    background: #f8fafc;
}

.script-package-header {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    gap: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.script-package-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    flex-shrink: 0;
}

.script-package-info {
    flex: 1;
    min-width: 0;
}

.script-package-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.script-package-meta {
    font-size: 12px;
    color: #64748b;
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2px 8px;
}

.script-package-meta span {
    color: #334155;
}

.script-package-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.script-package-actions button {
    width: 32px;
    height: 32px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s ease;
}

.script-package-actions button:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.script-package-actions button.danger:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.script-package-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.script-package-status.active {
    background: #dcfce7;
    color: #16a34a;
}

.script-package-status.passive {
    background: #f1f5f9;
    color: #64748b;
}

.script-package-modules {
    padding: 12px 16px;
    background: #f8fafc;
}

.script-package-modules-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.script-package-modules-header span {
    font-size: 11px;
    color: #64748b;
}

.script-package-modules-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.script-module-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
}

.script-module-chip:hover {
    background: #8b5cf6;
    color: white;
    border-color: #8b5cf6;
}

.script-module-chip i {
    font-size: 11px;
    opacity: 0.7;
}

.script-edit-tab {
    padding: 10px 16px;
    border: none;
    background: transparent;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
}

.script-edit-tab:hover {
    color: #8b5cf6;
}

.script-edit-tab.active {
    color: #8b5cf6;
    border-bottom-color: #8b5cf6;
    font-weight: 600;
}

.script-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    gap: 12px;
    transition: all 0.2s ease;
}

.script-item:hover {
    border-color: #8b5cf6;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.1);
}

.script-item-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    font-size: 14px;
    flex-shrink: 0;
}

.script-item-info {
    flex: 1;
    min-width: 0;
}

.script-item-info h4 {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.script-item-info p {
    font-size: 11px;
    color: #64748b;
    margin: 2px 0 0 0;
}

.module-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.module-item:hover {
    background: #f8fafc;
}

.module-item.selected {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border-color: transparent;
}

.module-item.selected .module-item-code {
    color: rgba(255, 255, 255, 0.8);
}

.module-item-icon {
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b5cf6;
    font-size: 12px;
    flex-shrink: 0;
}

.module-item.selected .module-item-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.module-item-info {
    flex: 1;
    min-width: 0;
}

.module-item-name {
    font-size: 12px;
    font-weight: 600;
}

.module-item-code {
    font-size: 10px;
    color: #64748b;
}

.param-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    gap: 12px;
}

.param-item-info {
    flex: 1;
}

.param-item-key {
    font-size: 12px;
    font-weight: 600;
    color: #8b5cf6;
    font-family: monospace;
}

.param-item-label {
    font-size: 13px;
    color: #1e293b;
}

.param-item-type {
    font-size: 11px;
    color: #64748b;
    padding: 2px 8px;
    background: #f1f5f9;
    border-radius: 4px;
}

.floating-header {
    padding: 0 16px;
    height: 48px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: grab;
    flex-shrink: 0;
    user-select: none;
}

.floating-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.floating-header-left i {
    color: var(--primary);
    font-size: 16px;
}

.floating-header-left span {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.floating-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.floating-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 12px;
    transition: all 0.15s;
}

.floating-btn:hover {
    background: var(--gray-light);
    color: var(--dark);
}

.floating-btn.close:hover {
    background: var(--danger);
    color: white;
}

.floating-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 24px;
    background: white;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.floating-body::-webkit-scrollbar {
    width: 8px;
}

.floating-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.floating-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.floating-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.floating-footer {
    padding: 14px 24px;
    border-top: 1px solid var(--gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafbfc;
    flex-shrink: 0;
}

.floating-footer-left {
    font-size: 12px;
    color: var(--gray);
}

.floating-footer-right {
    display: flex;
    gap: 10px;
}

/* Floating window overlay (optional dim) - Scroll bar alanını kaplamaz */
.floating-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 18px;
    /* Scroll bar alanını kapatmaz */
    background: rgba(0, 0, 0, 0.15);
    z-index: 99998;
    display: none;
}

/* Sağ Tık Context Menu */
.table-context-menu {
    position: fixed;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 6px 0;
    min-width: 220px;
    z-index: 9999999;
    display: none;
    animation: contextMenuFadeIn 0.15s ease-out;
    pointer-events: auto;
}

@keyframes contextMenuFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.table-context-menu.show {
    display: block;
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 13px;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s;
}

.context-menu-item:hover {
    background: linear-gradient(to right, #f1f5f9, #e2e8f0);
    color: #1e293b;
}

.context-menu-item i {
    width: 18px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.context-menu-item:hover i {
    color: #6366f1;
}

.context-menu-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 6px 12px;
}

.context-menu-header {
    padding: 8px 16px 6px;
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.context-menu-item.success i {
    color: #22c55e;
}

.context-menu-item.danger i {
    color: #ef4444;
}

.context-menu-item.warning i {
    color: #f59e0b;
}

