/* === PROFESYONEL ERP GÃ–RÃœNÃœMÃœ === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Ana Renkler - Office/ERP tarzÄ± */
    --bg-main: #f0f0f0;
    --bg-panel: #e8e8e8;
    --bg-white: #ffffff;
    --bg-header: #4a6785;
    --bg-header-dark: #3d5a73;
    --bg-selected: #fff3cd;
    --bg-hover: #e3f2fd;

    --border-light: #d0d0d0;
    --border-dark: #b0b0b0;

    --text-dark: #333333;
    --text-muted: #666666;
    --text-light: #888888;

    --accent-blue: #1976d2;
    --accent-green: #388e3c;
    --accent-red: #d32f2f;
    --accent-orange: #f57c00;
    --accent-yellow: #ffc107;

    /* Tree Menu */
    --tree-bg: #f5f5f5;
    --tree-hover: #e0e0e0;
    --tree-selected: #cce5ff;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 12px;
    background: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.4;
    min-height: 100vh;
}

/* === APP CONTAINER === */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* === ANA LAYOUT === */
.layout {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* === SOL PANEL - TREE MENÃœ === */
.sidebar {
    width: 240px;
    min-width: 240px;
    background: linear-gradient(180deg, #e8f5e9 0%, #c8e6c9 100%);
    border-right: 2px solid #81c784;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Logo Banner - Resimli */
.logo-banner {
    position: relative;
    width: 100%;
    height: 80px;
    overflow: hidden;
}

.logo-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Logo BaÅŸlÄ±k AlanÄ± */
.logo-title {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 50%, #1b5e20 100%);
    padding: 10px 12px;
    text-align: center;
    border-top: 2px solid #ffd700;
    border-bottom: 2px solid #ffd700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.logo-title-main {
    color: #ffd700;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 2px;
}

.logo-title-sub {
    color: white;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.logo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 8px 12px;
}

.logo-overlay h2 {
    color: white;
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Eski logo stili (yedek) */
.logo {
    background: linear-gradient(180deg, #2e7d32 0%, #1b5e20 100%);
    color: white;
    padding: 12px 16px;
    font-weight: bold;
    font-size: 14px;
    border-bottom: 2px solid #ffd700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo h2 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

/* === TREE MENÃœ === */
.nav-menu {
    list-style: none;
    overflow-y: auto;
    flex: 1;
    padding: 0;
    margin: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
}

.nav-menu>li>a {
    display: block;
    padding: 10px 14px;
    color: #1b5e20;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    border-bottom: 1px solid rgba(46, 125, 50, 0.2);
    transition: all 0.2s;
}

.nav-menu>li>a:hover {
    background: rgba(46, 125, 50, 0.15);
    padding-left: 18px;
}

/* KlasÃ¶r GruplarÄ± */
.nav-group {
    border-bottom: 1px solid rgba(46, 125, 50, 0.2);
}

.nav-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #1b5e20;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
}

.nav-group-header:hover {
    background: rgba(46, 125, 50, 0.15);
}

.nav-group-header .arrow {
    margin-left: auto;
    font-size: 11px;
    color: #2e7d32;
    font-weight: bold;
}

/* Alt MenÃ¼ */
.nav-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(255, 255, 255, 0.7);
    border-left: 3px solid #4caf50;
    margin-left: 10px;
}

.nav-group ul li a {
    display: block;
    padding: 8px 14px 8px 24px;
    color: #2e7d32;
    text-decoration: none;
    font-size: 11px;
    border-bottom: 1px solid rgba(46, 125, 50, 0.1);
    transition: all 0.2s;
}

.nav-group ul li a:hover {
    background: rgba(46, 125, 50, 0.1);
    color: #1b5e20;
    padding-left: 28px;
}

/* Ã‡Ä±kÄ±ÅŸ Butonu - Her zaman gÃ¶rÃ¼nÃ¼r */
.nav-cikis {
    margin-top: auto;
    border-top: 2px solid rgba(46, 125, 50, 0.3);
    background: rgba(244, 67, 54, 0.1);
}

.nav-cikis a {
    display: block;
    padding: 12px 14px;
    color: #c62828;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s;
}

.nav-cikis a:hover {
    background: rgba(244, 67, 54, 0.2);
    color: #b71c1c;
}

/* === ANA Ä°Ã‡ERÄ°K === */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--bg-main);
    min-height: 0;
}

/* === ÃœST TOOLBAR === */
.top-toolbar {
    background: linear-gradient(180deg, #f8f8f8 0%, #e8e8e8 100%);
    border-bottom: 1px solid var(--border-dark);
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.toolbar {
    background: linear-gradient(180deg, #f8f8f8 0%, #e8e8e8 100%);
    border-bottom: 1px solid var(--border-light);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.toolbar-separator {
    width: 1px;
    height: 24px;
    background: var(--border-dark);
    margin: 0 4px;
}

/* === TAB BAR === */
.tab-bar {
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border-dark);
    display: flex;
    padding: 0 8px;
    gap: 2px;
}

.tab {
    padding: 8px 16px;
    background: linear-gradient(180deg, #e8e8e8 0%, #d8d8d8 100%);
    border: 1px solid var(--border-dark);
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-dark);
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tab:hover {
    background: linear-gradient(180deg, #f0f0f0 0%, #e0e0e0 100%);
}

.tab.active {
    background: var(--bg-white);
    border-bottom: 1px solid var(--bg-white);
    margin-bottom: -1px;
    font-weight: 600;
}

.tab .close-btn {
    font-size: 14px;
    color: var(--text-light);
    cursor: pointer;
    padding: 0 2px;
}

.tab .close-btn:hover {
    color: var(--accent-red);
}

/* === SAYFA BAÅžLIÄžI === */
h1 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    padding: 10px 12px;
    background: linear-gradient(180deg, var(--bg-white) 0%, #f5f5f5 100%);
    border-bottom: 1px solid var(--border-light);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

h3 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 12px 0 8px;
    padding: 6px 10px;
    background: var(--bg-panel);
    border: 1px solid var(--border-light);
    border-radius: 3px;
}

h4 {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin: 10px 0 6px;
}

/* === BUTONLAR === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    height: 26px;
    border: 1px solid var(--border-dark);
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    background: linear-gradient(180deg, #ffffff 0%, #e8e8e8 100%);
    color: var(--text-dark);
}

.btn:hover {
    background: linear-gradient(180deg, #f0f0f0 0%, #d8d8d8 100%);
    border-color: var(--accent-blue);
}

.btn:active {
    background: linear-gradient(180deg, #d8d8d8 0%, #e8e8e8 100%);
}

.btn-success {
    background: linear-gradient(180deg, #81c784 0%, #4caf50 100%);
    color: white;
    border-color: #388e3c;
}

.btn-success:hover {
    background: linear-gradient(180deg, #a5d6a7 0%, #66bb6a 100%);
}

.btn-danger {
    background: linear-gradient(180deg, #e57373 0%, #ef5350 100%);
    color: white;
    border-color: #d32f2f;
}

.btn-danger:hover {
    background: linear-gradient(180deg, #ef9a9a 0%, #e57373 100%);
}

.btn-warning {
    background: linear-gradient(180deg, #ffb74d 0%, #ff9800 100%);
    color: var(--text-dark);
    border-color: #f57c00;
}

.btn-secondary {
    background: linear-gradient(180deg, #e0e0e0 0%, #bdbdbd 100%);
    color: var(--text-dark);
    border-color: #9e9e9e;
}

.btn-sm {
    padding: 2px 8px;
    height: 22px;
    font-size: 10px;
    border-radius: 2px;
}

.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* === FORM ALANLARI === */
.form-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    padding: 12px;
    margin: 8px;
    border-radius: 3px;
}

.form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.form-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.form-group label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 4px 8px;
    height: 24px;
    border: 1px solid var(--border-dark);
    border-radius: 2px;
    font-size: 11px;
    background: var(--bg-white);
    transition: border-color 0.15s;
}

.form-group select {
    cursor: pointer;
}

.form-group textarea {
    height: auto;
    min-height: 60px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
}

.form-group input:read-only {
    background: #f5f5f5;
}

.form-group small {
    font-size: 10px;
    color: var(--text-light);
    margin-top: 2px;
}

.form-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

/* === TABLO === */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    background: var(--bg-white);
    border: 1px solid var(--border-dark);
}

thead {
    background: linear-gradient(180deg, #f0f0f0 0%, #e0e0e0 100%);
    position: sticky;
    top: 0;
    z-index: 10;
}

th {
    padding: 6px 8px;
    text-align: left;
    font-weight: 600;
    font-size: 10px;
    color: var(--text-dark);
    border: 1px solid var(--border-dark);
    border-top: none;
    white-space: nowrap;
}

td {
    padding: 4px 8px;
    border: 1px solid var(--border-light);
    vertical-align: middle;
}

tbody tr {
    transition: background 0.1s;
}

tbody tr:nth-child(even) {
    background: #fafafa;
}

tbody tr:hover {
    background: var(--bg-hover) !important;
}

tbody tr.selected,
tbody tr.selected-row {
    background: var(--bg-selected) !important;
}

tbody tr.erp-transferred {
    background: #e8f5e9 !important;
}

tbody tr.borc-row {
    background: #ffebee !important;
}

tbody tr.alacak-row {
    background: #e8f5e9 !important;
}

tfoot {
    background: linear-gradient(180deg, #f0f0f0 0%, #e0e0e0 100%);
    font-weight: 600;
}

tfoot td {
    border: 1px solid var(--border-dark);
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

/* === BADGE === */
.badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success {
    background: #c8e6c9;
    color: #2e7d32;
}

.badge-danger {
    background: #ffcdd2;
    color: #c62828;
}

.badge-warning {
    background: #fff3e0;
    color: #e65100;
}

.badge-info {
    background: #bbdefb;
    color: #1565c0;
}

.badge-secondary {
    background: #e0e0e0;
    color: #616161;
}

.badge-nakdi {
    background: #c8e6c9;
    color: #2e7d32;
}

.badge-ayni {
    background: #fff3e0;
    color: #e65100;
}

/* === ALERT === */
.alert {
    padding: 8px 12px;
    border-radius: 3px;
    margin: 8px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-warning {
    background: #fff8e1;
    border: 1px solid #ffcc02;
    color: #8c6d00;
}

.alert-success {
    background: #e8f5e9;
    border: 1px solid #81c784;
    color: #2e7d32;
}

.alert-danger {
    background: #ffebee;
    border: 1px solid #ef9a9a;
    color: #c62828;
}

.alert-info {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    color: #1565c0;
}

/* === STATS GRID === */
.stats-grid {
    display: flex;
    gap: 12px;
    margin: 8px;
    flex-wrap: wrap;
}

.stat-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    padding: 12px 16px;
    border-radius: 3px;
    min-width: 150px;
    text-align: center;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-blue);
}

.stat-label {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* === KAMPANYA INFO === */
.kampanya-info {
    background: var(--accent-blue);
    color: white;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
}

.kampanya-banner {
    background: linear-gradient(90deg, var(--bg-header) 0%, var(--bg-header-dark) 100%);
    color: white;
    padding: 8px 12px;
    margin: 8px;
    border-radius: 3px;
    font-size: 11px;
}

/* === PAGE CONTENT === */
.page-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    min-height: 0;
}

/* === DATA GRID WRAPPER === */
.data-grid {
    margin: 8px;
    border: 1px solid var(--border-dark);
    border-radius: 3px;
    overflow: hidden;
}

.data-grid table {
    border: none;
}

.data-grid-scroll {
    max-height: calc(100vh - 280px);
    overflow: auto;
}

/* === WIZARD === */
.wizard {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    margin: 8px;
    border-radius: 3px;
}

.wizard-header {
    background: linear-gradient(180deg, var(--bg-header) 0%, var(--bg-header-dark) 100%);
    color: white;
    padding: 12px 16px;
}

.wizard-header h2 {
    font-size: 13px;
    margin-bottom: 10px;
}

.wizard-steps {
    display: flex;
    gap: 6px;
}

.wizard-step {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 10px;
}

.wizard-step.active {
    background: white;
    color: var(--bg-header);
    font-weight: 600;
}

.wizard-step.completed {
    background: var(--accent-green);
}

.wizard-body {
    padding: 16px;
}

.wizard-footer {
    padding: 12px 16px;
    background: var(--bg-panel);
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
}

/* === CHECKBOX LIST === */
.checkbox-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border-dark);
    border-radius: 2px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    font-size: 11px;
}

.checkbox-item:hover {
    background: var(--bg-hover);
}

.checkbox-item.selected {
    background: var(--bg-selected);
}

.checkbox-item input[type="checkbox"],
.checkbox-item input[type="radio"] {
    cursor: pointer;
}

.checkbox-item-info {
    flex: 1;
}

.checkbox-item-info strong {
    display: block;
    font-size: 11px;
}

.checkbox-item-info small {
    color: var(--text-light);
    font-size: 10px;
}

/* === EMPTY STATE === */
.empty-message {
    text-align: center;
    padding: 30px;
    color: var(--text-light);
    font-style: italic;
}

/* === STATUS BAR === */
.status-bar {
    background: linear-gradient(180deg, #f0f0f0 0%, #e0e0e0 100%);
    border-top: 1px solid var(--border-dark);
    padding: 4px 12px;
    font-size: 10px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f0f0f0;
}

::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .stat-card {
        min-width: 100px;
        padding: 8px 12px;
    }

    .stat-value {
        font-size: 14px;
    }
}

@media (max-width: 992px) {
    .sidebar {
        width: 200px;
        min-width: 200px;
    }

    .form-row {
        flex-direction: column;
    }

    .form-group {
        min-width: 100%;
    }

    .data-grid-scroll {
        max-height: calc(100vh - 350px);
    }

    table {
        font-size: 10px;
    }

    table th,
    table td {
        padding: 4px 6px !important;
    }
}

@media (max-width: 768px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-width: 100%;
        height: auto;
        max-height: 50vh;
        position: relative;
    }

    .sidebar.collapsed {
        max-height: 50px;
        overflow: hidden;
    }

    .content {
        width: 100%;
        height: auto;
        flex: 1;
        overflow: auto;
    }

    .toolbar {
        flex-wrap: wrap;
        gap: 4px;
    }

    .btn {
        padding: 3px 8px;
        height: 24px;
        font-size: 10px;
    }

    .stats-grid {
        gap: 6px;
        margin: 4px;
    }

    .stat-card {
        min-width: 80px;
        padding: 6px 8px;
    }

    .stat-value {
        font-size: 12px;
    }

    .stat-label {
        font-size: 9px;
    }

    .form-card {
        margin: 4px;
        padding: 8px;
    }

    .data-grid {
        margin: 4px;
    }

    .data-grid-scroll {
        max-height: calc(100vh - 400px);
        overflow-x: auto;
    }

    table {
        font-size: 9px;
        min-width: 600px;
    }

    table th,
    table td {
        padding: 3px 4px !important;
        white-space: nowrap;
    }

    h3 {
        font-size: 11px;
        padding: 4px 8px;
        margin: 8px 4px 6px;
    }
}

@media (max-width: 480px) {
    .logo h2 {
        font-size: 12px;
    }

    .nav-group>span {
        font-size: 10px;
        padding: 6px 8px;
    }

    .nav-group ul li a {
        font-size: 10px;
        padding: 5px 8px 5px 20px;
    }

    .btn {
        padding: 2px 6px;
        height: 22px;
        font-size: 9px;
    }

    .form-group label {
        font-size: 10px;
    }

    .form-group input,
    .form-group select {
        height: 22px;
        font-size: 10px;
    }

    table {
        font-size: 8px;
    }

    .stat-card {
        min-width: 70px;
        padding: 4px 6px;
    }

    .stat-value {
        font-size: 11px;
    }
}

/* === KOLON FÄ°LTRELEME === */
.th-filterable,
.filterable {
    position: relative;
    cursor: pointer;
}

.th-filterable:hover,
.filterable:hover {
    background: #d0dce8 !important;
}

.filter-icon {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 9px;
    color: #666;
    opacity: 0.6;
    cursor: pointer;
}

.filter-icon:hover {
    opacity: 1;
    color: #1976d2;
}

.filter-icon.active {
    color: #d32f2f;
    opacity: 1;
}

.filter-dropdown {
    position: fixed;
    min-width: 200px;
    max-width: 300px;
    background: white;
    border: 1px solid #b0b0b0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 9999;
}

.filter-dropdown-header {
    background: linear-gradient(180deg, #f8f8f8, #e8e8e8);
    padding: 6px 10px;
    border-bottom: 1px solid #d0d0d0;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-dropdown-header button {
    font-size: 9px;
    padding: 2px 6px;
    cursor: pointer;
    border: 1px solid #b0b0b0;
    background: #f0f0f0;
    border-radius: 2px;
}

.filter-dropdown-header button:hover {
    background: #e0e0e0;
}

.filter-search {
    padding: 6px;
    border-bottom: 1px solid #e0e0e0;
}

.filter-search input {
    width: 100%;
    padding: 4px 8px;
    font-size: 11px;
    border: 1px solid #c0c0c0;
}

.filter-list {
    max-height: 200px;
    overflow-y: auto;
    padding: 4px 0;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 11px;
    cursor: pointer;
}

.filter-item:hover {
    background: #e3f2fd;
}

.filter-item input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.filter-dropdown-footer {
    padding: 6px 10px;
    border-top: 1px solid #d0d0d0;
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.filter-dropdown-footer button {
    padding: 4px 12px;
    font-size: 10px;
    cursor: pointer;
    border: 1px solid #b0b0b0;
    border-radius: 2px;
}

.filter-dropdown-footer .btn-apply {
    background: #1976d2;
    color: white;
    border-color: #1565c0;
}

.filter-dropdown-footer .btn-clear {
    background: #f5f5f5;
}

/* DaÄŸÄ±tÄ±m Åžekli SeÃ§imi */
.distribution-type {
    display: flex;
    gap: 16px;
    padding: 8px 12px;
    background: #f8f8f8;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    margin-bottom: 12px;
}

.distribution-type label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 12px;
    padding: 6px 12px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.distribution-type label:hover {
    background: #e8e8e8;
}

.distribution-type input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.distribution-type label.selected {
    background: #e3f2fd;
    border-color: #1976d2;
}

/* Tekil DaÄŸÄ±tÄ±m - MÃ¼stahsil SeÃ§imi */
.single-distribution {
    background: #fffde7;
    border: 1px solid #ffc107;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.single-distribution h4 {
    margin-bottom: 8px;
    color: #f57c00;
}

/* ===== STATUS BAR ===== */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.app-container .layout {
    flex: 1;
    overflow: hidden;
}

.status-bar {
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #4a5568 0%, #2d3748 100%);
    color: #e2e8f0;
    padding: 6px 16px;
    font-size: 11px;
    border-top: 1px solid #1a202c;
    flex-shrink: 0;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-label {
    color: #a0aec0;
}

.status-value {
    color: #fff;
    font-weight: 500;
}

.status-separator {
    color: #4a5568;
    margin: 0 12px;
}

.status-spacer {
    flex: 1;
}

.status-right {
    color: #a0aec0;
}

.status-aktif {
    color: #68d391 !important;
}

.status-pasif {
    color: #fc8181 !important;
}

.status-kampanya {
    color: #90cdf4 !important;
    font-weight: bold;
}

/* ===== DÃ–NEM SEÃ‡Ä°CÄ° ===== */
.donem-secici {
    padding: 12px 16px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-bottom: 2px solid #ffd700;
    margin-bottom: 0;
}

.donem-secici label {
    display: block;
    font-size: 10px;
    color: #ffd700;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.donem-secici select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ffd700;
    border-radius: 8px;
    background: linear-gradient(180deg, #fff 0%, #f0f0f0 100%);
    color: #1e3c72;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.donem-secici select:hover {
    border-color: #ffed4a;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.donem-secici select:focus {
    outline: none;
    border-color: #ffed4a;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}

.donem-secici select option {
    background: #fff;
    color: #1e3c72;
    padding: 8px;
}

.salt-okunur-uyari {
    margin-top: 10px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    border: 1px solid #ff4757;
    border-radius: 6px;
    color: #fff;
    font-size: 11px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(255, 71, 87, 0.3);
}

/* ===== RESPONSIVE STATUS BAR ===== */
@media (max-width: 1200px) {
    .status-bar {
        font-size: 10px;
    }

    .status-separator {
        margin: 0 8px;
    }
}

@media (max-width: 768px) {
    .status-bar {
        flex-wrap: wrap;
        padding: 4px 8px;
        font-size: 9px;
    }

    .status-item {
        margin: 2px 0;
    }

    .status-separator {
        display: none;
    }

    .status-spacer {
        display: none;
    }
}

/* === SÃœTUN SÃœRÃœKLE-BIRAK === */
th[draggable="true"] {
    cursor: grab;
    user-select: none;
    transition: all 0.2s ease;
}

th[draggable="true"]:active {
    cursor: grabbing;
}

th.column-dragging {
    opacity: 0.5;
    background: #bbdefb !important;
    border: 2px dashed var(--accent-blue) !important;
    transform: scale(0.98);
}

th.column-drag-over {
    background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-blue) 4px, #e3f2fd 4px) !important;
    box-shadow: inset 4px 0 0 var(--accent-blue);
    transition: all 0.15s ease;
}

/* SÃ¼rÃ¼klenebilir gÃ¶stergesi */
th[draggable="true"]::before {
    content: 'â‹®â‹®';
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 9px;
    color: #aaa;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

th[draggable="true"]:hover::before {
    opacity: 0.7;
}

/* SÃ¼tun sÄ±rasÄ± sÄ±fÄ±rlama butonu */
.column-reset-btn {
    font-size: 10px;
    padding: 3px 8px;
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    margin-left: 8px;
    color: #666;
    transition: all 0.2s;
}

.column-reset-btn:hover {
    background: #e0e0e0;
    border-color: #bbb;
    color: #333;
}
/* === MOBÝL RESPONSIVE DÜZENLEMELER === */

/* Varsayýlan olarak mobil menü butonu gizli */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1100;
    background: #1b5e20;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    backdrop-filter: blur(2px);
}

@media (max-width: 768px) {
    /* Mobil Menü Butonu Göster */
    .mobile-menu-toggle {
        display: block;
    }

    /* Sidebar düzenlemeleri */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1100;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: 2px 0 8px rgba(0,0,0,0.2);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .mobile-overlay.active {
        display: block;
    }

    /* Ýçerik alanýný biraz yukarý al ki buton üstüne gelmesin */
    .content {
        padding-top: 40px; 
    }

    /* Toolbar düzenlemesi */
    .top-toolbar, .toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .toolbar-separator {
        display: none;
    }
    
    /* Tablo düzenlemeleri */
    .table-container {
        overflow-x: auto;
    }
    
    /* Login sayfasý responsive */
    .login-container {
        padding: 10px;
    }
    
    .login-card {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
        height: 100vh;
        display: flex;
        flex-direction: column;
    }
    
    .login-footer {
        margin-top: auto;
    }
    
    /* Status Bar gizlenebilir veya küçültülebilir */
    .status-bar {
        font-size: 10px;
        flex-wrap: wrap;
        height: auto;
        padding: 4px;
    }
    
    .status-item {
        margin-bottom: 2px;
    }
}

