/* Efe Bobinaj - Motor Takip Sistemi CSS */
/* Modern, Responsive, Mobile-First Design */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f5f7fa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    overscroll-behavior: none;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

/* Desktop icin varsayilan buyukluk - %125 */
@media (min-width: 1024px) {
    body {
        zoom: 1.25;
    }
}

.header {
    background: white;
    padding: 20px 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
}

.title h1 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 5px;
}

.title p {
    color: #7f8c8d;
    font-size: 14px;
}

.btn-new {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

.btn-new:active {
    transform: scale(0.95);
    background: #2980b9;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filters {
    background: white;
    padding: 15px 30px;
    margin-top: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filters-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 15px;
    align-items: center;
}

.filter-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.table-container {
    max-width: 1400px;
    margin: 20px auto;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.motor-table {
    width: 100%;
    border-collapse: collapse;
}

.motor-table thead {
    background: #f8f9fa;
}

.motor-table th {
    padding: 15px 12px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #7f8c8d;
    text-transform: uppercase;
    border-bottom: 2px solid #ecf0f1;
}

.motor-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #ecf0f1;
    font-size: 14px;
}

/* kW inline - masaustunde gizle, sadece mobilde gorunur */
.motor-table .kw-inline {
    display: none;
}

/* Marka model inline - masaustunde gizle, sadece mobilde gorunur */
.motor-table .marka-inline {
    display: none;
}

.motor-table tbody tr:hover {
    background: #f8f9fa;
}

.motor-table tbody tr {
    transition: background 0.2s ease;
}

.motor-table tbody tr:active {
    background: #e8f4f8;
}

/* Desktop'ta mobil checkbox gizle */
.motor-table .mobile-checkbox {
    display: none;
}

/* Mobilde tiklanabilir satirlar icin daha fazla alan */
@media (max-width: 768px) {
    .motor-table tbody tr[style*="cursor: pointer"] {
        min-height: 60px;
    }
    
    .motor-table tbody tr td {
        padding: 14px 8px;
    }
}

.barkod {
    color: #2c3e50;
    font-weight: 600;
}

.status-badge {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.status-geldi {
    background: #e67e22;
    color: white;
}

.status-teklif {
    background: #2980b9;
    color: white;
}

.status-fatura {
    background: #e74c3c;
    color: white;
}

.status-faturalandi {
    background: #1e8449;
    color: white;
}

.status-onay {
    background: #1a8f5c;
    color: white;
}

.status-hazir, .status-tamamlandi, .status-irsaliye_bekliyor {
    background: #117a65;
    color: white;
}

.status-teslim_edildi {
    background: #7d3c98;
    color: white;
}

.status-iade {
    background: #922b21;
    color: white;
}

.status-iptal {
    background: #5d6d7e;
    color: white;
}

.price {
    color: #27ae60;
    font-weight: 700;
}

.actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
    touch-action: manipulation;
}

.btn-icon:active {
    transform: scale(0.9);
    opacity: 0.8;
}

@media (max-width: 768px) {
    .btn-icon {
        width: 44px !important;
        height: 44px !important;
        font-size: 16px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        border-radius: 8px;
    }
}

.btn-view {
    background: #8b4513;
    color: white;
}

.btn-edit {
    background: #f39c12;
    color: white;
}

.btn-teklif {
    background: #9b59b6;
    color: white;
}

.btn-view-teklif {
    background: #9b59b6;
    color: white;
}

.btn-delete {
    background: #e74c3c;
    color: white;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
}

.modal-content {
    background: white;
    padding: 30px;
    padding-bottom: 10px;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: calc(100vh - 30px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Report Modal - teklif/irsaliye PDF gorunum */
#reportModal.active {
    align-items: flex-start;
    padding-top: 10px;
    overflow-y: auto;
}

/* Modal Sticky Footer */
.modal-footer-sticky {
    background: white;
    padding: 10px 0 5px 0;
    margin-top: 15px;
    border-top: 1px solid #eee;
}

@media (max-width: 600px) {
    .modal-content {
        padding-bottom: 220px !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
    }

    .modal-footer-sticky {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        padding: 8px 15px;
        padding-bottom: calc(15px + env(safe-area-inset-bottom, 20px));
        box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
        z-index: 99999;
    }
    .modal-footer-sticky .total-display {
        padding: 6px !important;
        font-size: 13px !important;
        margin-bottom: 5px !important;
    }
    .modal-footer-sticky .btn-bitti {
        padding: 8px !important;
        font-size: 13px !important;
        margin-bottom: 5px !important;
    }
    .modal-footer-sticky .btn-save,
    .modal-footer-sticky .btn-cancel {
        padding: 8px !important;
        font-size: 12px !important;
    }
}

.form-group {
    margin-bottom: 15px;
    position: relative;
}

@media (max-width: 600px) {
    .form-group {
        margin-bottom: 10px;
    }
    #manuelIslemGroup, #islemYapanGroup, #photoGroup, #docGroup {
        margin-bottom: 8px;
    }
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 10px;
    border: 2px solid #ecf0f1;
    border-radius: 6px;
    font-size: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 6px;
}

.checkbox-group input {
    width: 18px;
    height: 18px;
    margin-right: 10px;
}

.manual-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

.manual-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    margin-bottom: 6px;
    -webkit-user-select: text !important;
    user-select: text !important;
}

.btn-add {
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-remove {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.photo-upload {
    border: 2px dashed #3498db;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    background: #f8f9fa;
}

@media (max-width: 600px) {
    .photo-upload {
        padding: 8px;
    }
    .photo-upload p {
        font-size: 11px !important;
        margin: 3px 0 0 0 !important;
    }
    .photo-upload div {
        font-size: 20px !important;
    }
    #photoGroup, #docGroup {
        margin-bottom: 10px !important;
    }
    .form-label {
        font-size: 12px !important;
        margin-bottom: 3px !important;
    }
}

.photo-preview {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.photo-item {
    position: relative;
    width: 80px;
    height: 80px;
}

.photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.photo-x {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
}

.btn-save {
    background: #27ae60;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
}

.btn-cancel {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 14px;
}

.total-display {
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: white;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.autocomplete-items {
    position: absolute;
    border: 1px solid #ddd;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    max-height: 150px;
    overflow-y: auto;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.autocomplete-items div {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.autocomplete-items div:hover {
    background: #e9e9e9;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e9 50%, #e8eaf6 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    background: white;
    padding: 50px 40px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(46, 49, 145, 0.15), 0 8px 25px rgba(46, 139, 87, 0.1);
    width: 90%;
    max-width: 440px;
    border: none;
    position: relative;
    overflow: hidden;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #2E8B57 0%, #2E3191 100%);
}

.login-logo {
    text-align: center;
    margin-bottom: 35px;
}

.login-logo img {
    height: 140px;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.login-logo h1 {
    background: linear-gradient(135deg, #2E8B57 0%, #2E3191 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 32px;
    margin-bottom: 8px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.login-logo p {
    color: #6c757d;
    font-size: 15px;
    font-weight: 500;
}

.login-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.login-tab {
    flex: 1;
    padding: 14px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #fafafa;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.login-tab:hover {
    border-color: #2E8B57;
    background: #f0fff4;
    color: #2E8B57;
    transform: translateY(-2px);
}

.login-tab.active {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.login-tab.admin-tab.active {
    background: linear-gradient(135deg, #2E3191 0%, #1a1d5a 100%);
    border-color: #2E3191;
}

.login-tab.calisan-tab.active {
    background: linear-gradient(135deg, #2E8B57 0%, #1e6e42 100%);
    border-color: #2E8B57;
}

.login-tab.musteri-tab.active {
    background: linear-gradient(135deg, #3CB371 0%, #2E8B57 100%);
    border-color: #3CB371;
}

.login-form {
    display: none;
}

.login-form.active {
    display: block;
}

.login-input {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.login-input:focus {
    outline: none;
    border-color: #2E8B57;
    background: white;
    box-shadow: 0 0 0 4px rgba(46, 139, 87, 0.1);
}

.login-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-btn.admin {
    background: linear-gradient(135deg, #2E3191 0%, #1a1d5a 100%);
    box-shadow: 0 4px 15px rgba(46, 49, 145, 0.4);
}

.login-btn.calisan {
    background: linear-gradient(135deg, #2E8B57 0%, #1e6e42 100%);
    box-shadow: 0 4px 15px rgba(46, 139, 87, 0.4);
}

.login-btn.musteri {
    background: linear-gradient(135deg, #3CB371 0%, #2E8B57 100%);
    box-shadow: 0 4px 15px rgba(60, 179, 113, 0.4);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.login-select {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    margin-bottom: 16px;
    background: #fafafa;
    cursor: pointer;
}

.login-select:focus {
    outline: none;
    border-color: #2E8B57;
    background: white;
}

.user-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.user-badge.admin {
    background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
    color: #2E3191;
}

.user-badge.calisan {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2E8B57;
}

.user-badge.musteri {
    background: linear-gradient(135deg, #e8f5e9 0%, #a5d6a7 100%);
    color: #2E8B57;
}

.btn-logout {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: #2E3191;
}

.hide-price .price,
.hide-price .price-cell,
.hide-price [data-price-info] {
    display: none !important;
}

.hide-price .total-display {
    display: none !important;
}

.hide-price .price-column {
    display: none !important;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 15mm 25mm;
    }

    * {
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }

    html,
    body {
        width: 210mm !important;
        min-height: 297mm !important;
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
        font-size: 12pt !important;
    }

    body>* {
        display: none !important;
        visibility: hidden !important;
    }

    #reportModal {
        display: block !important;
        visibility: visible !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 210mm !important;
        min-height: 297mm !important;
        background: white !important;
        overflow: visible !important;
    }

    #reportModal * {
        visibility: visible !important;
    }

    .modal {
        display: none !important;
        visibility: hidden !important;
    }

    #reportModal .modal-content {
        width: 210mm !important;
        max-width: 210mm !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        background: white !important;
    }

    #reportButtons {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
    }

    #reportContent {
        width: 194mm !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }

    #reportContent>div {
        width: 100% !important;
        padding: 8mm !important;
        border: none !important;
        box-shadow: none !important;
        background: white !important;
    }

    #reportContent table {
        width: 100% !important;
        border-collapse: collapse !important;
    }

    #reportContent img {
        max-width: 100% !important;
        height: auto !important;
    }

    table {
        page-break-inside: avoid !important;
        width: 100% !important;
        border-collapse: collapse !important;
    }

    td,
    th {
        padding: 6px 8px !important;
    }

    img {
        display: block !important;
        max-width: 100% !important;
        height: auto !important;
        page-break-inside: avoid !important;
    }

    img[alt="Efe Logo"] {
        height: 150px !important;
        width: auto !important;
        max-height: 150px !important;
        display: block !important;
        margin: 0 auto !important;
    }

    img[alt="Kase"] {
        max-width: 120px !important;
        max-height: 60px !important;
    }

    div {
        page-break-inside: avoid !important;
    }

    /* Fotograflari kesinlikle 2. sayfaya tasi */
    div > div > h3:contains("Fotograflar") {
        page-break-before: always !important;
    }

    div[style*="page-break-before: always"] {
        page-break-before: always !important;
        margin-top: 0 !important;
        padding-top: 20px !important;
    }
}

/* ============================================
   MOBIL UYUMLULUK - TABLET & BUYUK TELEFONLAR
   ============================================ */
@media (max-width: 768px) {
    /* Header optimizasyonu */
    .header {
        padding: 12px 15px;
    }

    .header-content {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
        justify-content: space-between;
    }

    .logo-section {
        display: flex;
        align-items: center;
        gap: 10px;
        flex: 1;
    }

    .logo-img {
        height: 100px;
    }
    
    /* Login ekranindaki logo kucuk kalsin */
    .login-logo img {
        height: 80px !important;
    }

    .title h1 {
        font-size: 16px;
        margin-bottom: 2px;
    }

    .title p {
        font-size: 11px;
    }

    .header-right {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .btn-new {
        padding: 12px 16px;
        font-size: 14px;
        width: 100%;
        margin-top: 8px;
        border-radius: 10px;
        order: 3;
        flex-basis: 100%;
    }

    .user-badge {
        font-size: 11px;
        padding: 5px 10px;
    }

    .btn-logout {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* Filtreler */
    .filters {
        padding: 12px 15px;
    }

    .filters-content {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .filter-input,
    .filter-select {
        width: 100%;
        font-size: 16px;
        padding: 14px;
        border-radius: 10px;
    }

    /* Tablo - KOMPAKT LISTE GORUNUMU */
    .table-container {
        margin: 8px;
        border-radius: 12px;
        overflow: hidden;
        background: white;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .motor-table {
        min-width: unset;
        width: 100%;
    }

    .motor-table thead {
        display: none;
    }

    .motor-table tbody {
        display: flex;
        flex-direction: column;
    }

    /* KOMPAKT KART - 4 motor sigsin */
    .motor-table tbody tr {
        display: block !important;
        padding: 8px 10px !important;
        border-bottom: 1px solid #e0e0e0 !important;
        background: white;
    }

    .motor-table tbody tr:last-child {
        border-bottom: none;
    }

    .motor-table tbody tr:active {
        background: #f5f9ff;
    }

    /* Once tum TD'leri gizle */
    .motor-table tbody tr td {
        display: none !important;
        padding: 0 !important;
        border: none !important;
        font-size: 12px;
    }

    .motor-table td::before {
        display: none;
    }

    /* Desktop checkbox mobilde tamamen gizle */
    .motor-table tbody tr td.desktop-checkbox {
        display: none !important;
    }

    /* === UST SATIR - Barkod + Musteri (sol), Cihaz Tipi + kW (sag) === */

    /* Barkod - Sol */
    .motor-table td[data-label="Barkod"] {
        display: inline !important;
        font-weight: 700 !important;
        font-size: 14px !important;
        color: #2c3e50 !important;
        margin-right: 6px !important;
    }

    /* Musteri (Fabrika) - Barkod yaninda */
    .motor-table td[data-label="Musteri"] {
        display: inline !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #34495e !important;
    }

    /* Cihaz Tipi + kW - sag tarafa */
    .motor-table td[data-label="Cihaz Tipi"] {
        display: inline !important;
        float: right !important;
    }

    .motor-table td[data-label="Cihaz Tipi"] > span:first-child {
        padding: 1px 3px !important;
        font-size: 10px !important;
        font-weight: 600 !important;
        vertical-align: middle !important;
    }

    /* kW inline - Cihaz Tipi yaninda */
    .motor-table td[data-label="Cihaz Tipi"] .kw-inline {
        display: inline !important;
        background: none !important;
        padding: 0 0 0 3px !important;
        font-size: 10px !important;
        color: #555 !important;
        font-weight: 600 !important;
        vertical-align: middle !important;
    }

    /* Marka model inline - Cihaz Tipi altinda */
    .motor-table td[data-label="Cihaz Tipi"] .marka-inline {
        display: block !important;
        font-size: 10px !important;
        color: #555 !important;
        font-weight: 600 !important;
        margin-top: 1px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 120px !important;
    }

    /* === ALT SATIR: BUTONLAR + CHECKBOX === */
    .motor-table td.actions {
        display: flex !important;
        width: 100% !important;
        gap: 6px !important;
        align-items: center !important;
        justify-content: flex-start !important;
        clear: both !important;
        margin-top: 6px !important;
        padding-top: 6px !important;
        border-top: 1px solid #f0f0f0 !important;
        flex-wrap: nowrap !important;
    }

    .motor-table td.actions .btn-icon {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        max-width: 38px !important;
        flex: 0 0 38px !important;
        font-size: 14px !important;
        padding: 0 !important;
        line-height: 38px !important;
        border-radius: 8px !important;
    }

    /* Mobile checkbox - actions icinde, en sagda */
    .motor-table td.actions .mobile-checkbox {
        display: block !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        max-width: 44px !important;
        max-height: 44px !important;
        margin: 0 !important;
        margin-left: auto !important;
        padding: 0 !important;
        flex: 0 0 44px !important;
        cursor: pointer !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        border: 3px solid #2980b9 !important;
        border-radius: 8px !important;
        background: #eaf2ff !important;
        box-sizing: border-box !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    .motor-table td.actions .mobile-checkbox:checked {
        background: #2980b9 !important;
        border-color: #2980b9 !important;
    }
    .motor-table td.actions .mobile-checkbox:checked::after {
        content: '\2713' !important;
        display: block !important;
        color: white !important;
        font-size: 24px !important;
        font-weight: bold !important;
        text-align: center !important;
        line-height: 38px !important;
    }

    /* Mobilde sil butonunu gizle (Ayarlar'dan barkod ile silinecek) */
    .motor-table td.actions .btn-delete {
        display: none !important;
    }

    /* Atolye ve musteri rollerinde mobile checkbox gizle */
    body.role-atolye .motor-table td.actions .mobile-checkbox,
    body.role-musteri .motor-table td.actions .mobile-checkbox,
    body.is-atolye .motor-table td.actions .mobile-checkbox {
        display: none !important;
    }

    /* Atolye: desktop checkbox da gizle */
    body.role-atolye .motor-table td.desktop-checkbox,
    body.is-atolye .motor-table td.desktop-checkbox {
        display: none !important;
    }

    /* Desktop checkbox - mobilde tamamen gizle (mobile-checkbox kullanilacak) */
    .motor-table td.desktop-checkbox {
        display: none !important;
    }
    
    /* Mobil satirlar tiklanabilir */
    .motor-table tbody tr {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        touch-action: manipulation;
    }

    .motor-table tbody tr:active {
        background-color: #e8f4f8;
    }

    .status-badge {
        padding: 3px 8px;
        font-size: 10px;
        border-radius: 10px;
    }

    .barkod {
        font-size: 14px;
    }

    .price {
        font-size: 14px;
    }

    /* Modal */
    .modal-content {
        padding: 20px 15px;
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 20px 20px 0 0;
        max-height: calc(100vh - 70px);
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }

    .modal.active {
        align-items: flex-end;
    }
    
    /* Modal ustune tiklaninca kapansin - arka plan alani */
    .modal.active::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 70px;
        background: transparent;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .form-input,
    .form-select {
        font-size: 16px;
        padding: 14px;
        border-radius: 10px;
        border: 2px solid #e0e0e0;
    }

    .form-input:focus,
    .form-select:focus {
        border-color: #3498db;
        outline: none;
    }

    .form-label {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .checkbox-group {
        padding: 14px;
        border-radius: 10px;
        margin-bottom: 8px;
    }

    .checkbox-group input {
        width: 22px;
        height: 22px;
        margin-right: 12px;
    }

    .btn-save {
        font-size: 16px;
        padding: 16px;
        border-radius: 12px;
        font-weight: 700;
    }

    .btn-cancel {
        font-size: 15px;
        padding: 14px;
        border-radius: 12px;
    }

    /* Login ekrani */
    .login-box {
        padding: 30px 20px;
        margin: 15px;
        width: calc(100% - 30px);
        max-width: 90%;
        border-radius: 16px;
    }

    .login-logo img {
        height: 100px;
    }

    .login-logo h1 {
        font-size: 26px;
    }

    .login-logo p {
        font-size: 14px;
    }

    .login-tabs {
        gap: 8px;
    }

    .login-tab {
        padding: 14px;
        font-size: 14px;
        border-radius: 10px;
    }

    .login-input,
    .login-select {
        padding: 16px;
        font-size: 16px;
        border-radius: 10px;
    }

    .login-btn {
        padding: 16px;
        font-size: 16px;
        border-radius: 10px;
    }

    /* Empty state */
    .empty-state {
        padding: 40px 15px;
    }

    /* Photo upload */
    .photo-upload {
        padding: 20px;
        font-size: 14px;
        border-radius: 12px;
    }

    .photo-preview {
        gap: 10px;
    }

    .photo-item {
        width: 80px;
        height: 80px;
        border-radius: 10px;
    }

    /* Total display */
    .total-display {
        font-size: 22px;
        padding: 18px;
        border-radius: 12px;
    }

    /* Manual items */
    .manual-box {
        padding: 15px;
        border-radius: 12px;
    }

    .manual-item {
        padding: 12px;
        font-size: 14px;
        flex-wrap: wrap;
        border-radius: 10px;
        -webkit-user-select: text !important;
        user-select: text !important;
    }

    .btn-add {
        font-size: 14px;
        padding: 12px 20px;
        border-radius: 10px;
    }

    .btn-remove {
        font-size: 14px;
        padding: 8px 14px;
        border-radius: 8px;
    }

    /* Report Modal */
    #reportModal .modal-content {
        border-radius: 0;
        max-height: 100vh;
        height: 100vh;
        padding: 10px !important;
        overflow-y: auto !important;
    }
    
    #reportModal #reportContent {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    #reportButtons {
        flex-wrap: wrap;
        gap: 10px;
    }

    #reportButtons button {
        flex: 1;
        min-width: 100px;
        padding: 12px;
        font-size: 14px;
    }
}

/* ============================================
   MOBIL UYUMLULUK - KUCUK TELEFONLAR
   ============================================ */
@media (max-width: 480px) {
    /* Header */
    .header {
        padding: 10px;
    }

    .logo-img {
        height: 35px;
    }

    .title h1 {
        font-size: 16px;
    }

    .title p {
        font-size: 11px;
    }

    .btn-new {
        font-size: 14px;
        padding: 12px 16px;
    }

    .user-badge {
        font-size: 11px;
        padding: 5px 10px;
    }

    /* Login */
    .login-box {
        padding: 25px 15px;
        width: calc(100% - 20px);
        margin: 10px;
    }

    .login-logo img {
        height: 70px;
    }

    .login-logo h1 {
        font-size: 22px;
    }

    .login-logo p {
        font-size: 13px;
    }

    .login-tab {
        padding: 12px 8px;
        font-size: 12px;
    }

    .login-input,
    .login-select,
    .login-btn {
        font-size: 15px;
        padding: 14px;
    }

    /* Kompakt liste - Kucuk ekran */
    .motor-table tbody tr {
        padding: 10px 12px;
    }

    .motor-table td {
        font-size: 12px;
    }

    .motor-table td[data-label="Barkod"] {
        font-size: 13px;
    }

    .motor-table td[data-label="Cihaz Tipi"] {
        margin-left: 80px;
        font-size: 11px;
        padding: 2px 6px;
    }

    .mcrd-btns .btn-icon {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        font-size: 12px !important;
    }

    .motor-table td[data-label="Fiyat"] {
        font-size: 13px;
    }

    .barkod {
        font-size: 13px;
    }

    /* Modal */
    .modal-content {
        padding: 15px 12px;
        max-height: 92vh;
    }

    .form-input,
    .form-select {
        font-size: 15px;
        padding: 12px;
    }

    .form-label {
        font-size: 12px;
    }

    /* Butonlar */
    .btn-save {
        font-size: 15px;
        padding: 14px;
    }

    .btn-cancel {
        font-size: 14px;
        padding: 12px;
    }

    .btn-add,
    .btn-remove {
        font-size: 13px;
        padding: 10px 14px;
    }

    /* Photo */
    .photo-item {
        width: 65px;
        height: 65px;
    }

    .photo-upload {
        padding: 15px;
        font-size: 13px;
    }

    /* Total */
    .total-display {
        font-size: 20px;
        padding: 14px;
    }

    /* Checkbox */
    .checkbox-group {
        padding: 12px 10px;
        font-size: 13px;
    }

    .checkbox-group input {
        width: 20px;
        height: 20px;
    }

    /* Status badge */
    .status-badge {
        padding: 5px 12px;
        font-size: 11px;
    }

    .price {
        font-size: 15px;
    }
}

/* ========================================
   TEKLIF FORMU MOBIL RESPONSIVE
   ======================================== */

/* Teklif ve Motor Detay modal icerigi mobil uyumu */
@media screen and (max-width: 768px) {
    /* Report Modal */
    #reportModal .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px !important;
        box-sizing: border-box !important;
    }
    
    #reportContent {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* Modal icerigi */
    #reportContent > div {
        padding: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    /* Logo */
    #reportContent img[alt="Efe Logo"] {
        height: 45px !important;
        max-height: 45px !important;
        display: block !important;
        margin: 0 auto 10px auto !important;
    }
    
    /* Bilgi grid - 2 SUTUN */
    #reportContent > div > div[style*="grid-template-columns"] {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px 12px !important;
    }
    
    /* Tablolar */
    #reportContent table {
        width: 100% !important;
        table-layout: fixed !important;
    }
    
    #reportContent table th,
    #reportContent table td {
        padding: 6px 8px !important;
        word-wrap: break-word !important;
    }
    
    /* Toplam tutar */
    #reportContent > div > div[style*="linear-gradient"] {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 12px !important;
    }
    
    /* Fotograflar */
    #reportContent div[style*="grid-template-columns: repeat(2"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }
}

@media screen and (max-width: 480px) {
    #reportContent > div {
        padding: 6px !important;
    }
    
    /* Logo */
    #reportContent img[alt="Efe Logo"] {
        height: 35px !important;
        max-height: 35px !important;
    }
    
    /* 2 sutun koru */
    #reportContent > div > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 2px 6px !important;
    }
    
    #reportContent > div > div[style*="grid-template-columns"] span {
        font-size: 8px !important;
    }
    
    #reportContent > div > div[style*="grid-template-columns"] span[style*="font-weight"] {
        font-size: 10px !important;
    }
    
    #reportContent table {
        font-size: 10px !important;
    }
    
    #reportContent table th,
    #reportContent table td {
        font-size: 10px !important;
        padding: 4px 3px !important;
    }
}

/* Rapor butonlari mobil */
@media screen and (max-width: 768px) {
    .report-buttons,
    #reportModal .modal-content > div:last-child {
        flex-direction: column !important;
        gap: 8px !important;
        padding: 10px !important;
    }
    
    .report-buttons button,
    #reportModal button {
        width: 100% !important;
        padding: 12px !important;
        font-size: 14px !important;
    }
}

/* Print stilleri - mobil stillerini kaldir */
@media print {
    #reportContent > div {
        padding: 10mm !important;
    }
    
    #reportContent > div > div:first-child img {
        height: 150px !important;
    }
    
    #reportContent > div > div:first-child > div {
        font-size: 18pt !important;
    }
    
    #reportContent table td {
        display: table-cell !important;
    }
    
    #reportContent > div > div[style*="display: flex"] > div[style*="flex: 1"] {
        max-width: 45% !important;
        background: transparent !important;
    }
}

/* ============================================
   SIFIR MOTOR & TAMIR HESAPLA MOBIL
   ============================================ */

/* Header butonlari mobil */
@media (max-width: 768px) {
    .header-right {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-end;
    }
    
    .header-right .btn-musteri,
    .header-right .btn-settings {
        font-size: 11px !important;
        padding: 8px 10px !important;
        margin-right: 0 !important;
    }
    
    .header-right .btn-logout {
        font-size: 11px !important;
        padding: 6px 10px !important;
    }
    
    .user-badge {
        font-size: 10px !important;
        padding: 4px 8px !important;
    }
}

@media (max-width: 480px) {
    .header-content {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .header-right {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .header-right .btn-musteri,
    .header-right .btn-settings {
        font-size: 10px !important;
        padding: 8px !important;
        flex: 1;
        min-width: 0;
        text-align: center;
    }
    
    .logo-section {
        justify-content: center;
    }
}

/* Sifir Motor Modal - Mobil */
@media (max-width: 768px) {
    #sifirMotorModal .modal-content {
        width: 95% !important;
        max-width: 95% !important;
        padding: 15px !important;
        margin: 10px;
    }
    
    #sifirMotorModal h2 {
        font-size: 18px !important;
        margin-bottom: 15px !important;
    }
    
    #sifirMotorModal table {
        font-size: 12px;
    }
    
    #sifirMotorModal table th,
    #sifirMotorModal table td {
        padding: 8px 6px !important;
    }
    
    #sifirMotorModal table th:nth-child(2),
    #sifirMotorModal table td:nth-child(2) {
        max-width: 100px;
        word-break: break-word;
    }
    
    #sifirMotorModal table td:last-child {
        font-size: 13px !important;
        white-space: nowrap;
    }

    /* Mobilde sol/sag alt alta */
    #sifirMotorModal > .modal-content > div:first-of-type {
        flex-direction: column !important;
        height: auto !important;
        max-height: 90vh;
    }

    /* Sol taraf */
    #sifirMotorModal > .modal-content > div:first-of-type > div:first-child {
        border-right: none !important;
        border-bottom: 2px solid #eee;
        padding: 15px !important;
        max-height: 60vh;
    }

    /* AI Container - mobilde tam genislik */
    #siparisAIContainer {
        width: 100% !important;
        max-height: 35vh;
    }

    #siparisAIInputArea {
        padding: 12px !important;
    }
}

@media (max-width: 480px) {
    #sifirMotorModal .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 12px 12px 0 0 !important;
        margin: 0;
        position: fixed;
        bottom: 0;
        max-height: 85vh !important;
    }
    
    #sifirMotorModal h2 {
        font-size: 16px !important;
    }
    
    #sifirMotorModal > .modal-content > div:first-of-type {
        flex-direction: column !important;
    }
    
    #sifirMotorModal select {
        width: 100% !important;
    }
    
    #sifirMotorModal table {
        font-size: 11px;
    }
    
    #sifirMotorModal table th:nth-child(1),
    #sifirMotorModal table td:nth-child(1) {
        padding-left: 4px !important;
    }
    
    #sifirMotorModal table th:nth-child(2),
    #sifirMotorModal table td:nth-child(2) {
        font-size: 10px !important;
        max-width: 80px;
    }
    
    #sifirMotorModal table th:nth-child(3),
    #sifirMotorModal table td:nth-child(3) {
        width: 40px;
        text-align: center;
    }
    
    #sifirMotorModal table td:last-child {
        font-size: 12px !important;
        padding-right: 4px !important;
    }

    /* AI Container - mobilde tam genislik */
    #siparisAIContainer {
        width: 100% !important;
        min-height: 200px;
    }

    /* Input bar - mobilde kompakt */
    #siparisAIInputArea {
        padding: 12px !important;
    }

    #siparisAIInputArea textarea {
        font-size: 13px !important;
    }

    /* Segment butonlari - mobilde */
    #siparisSegments .siparis-segment {
        padding: 10px 0 !important;
        font-size: 12px !important;
    }

    /* Input bar butonlari - mobilde kucult */
    #siparisAIInputArea button,
    #siparisAIInputArea label {
        width: 32px !important;
        height: 32px !important;
    }

    #siparisAIInputArea button svg,
    #siparisAIInputArea label svg {
        width: 16px !important;
        height: 16px !important;
    }
}

/* Tamir Hesapla Modal - Mobil */
@media (max-width: 768px) {
    #tamirHesaplaModal .modal-content {
        width: 95% !important;
        max-width: 95% !important;
        padding: 15px !important;
    }
    
    #tamirHesaplaModal h2 {
        font-size: 18px !important;
    }
    
    #musteriTasks label {
        font-size: 13px !important;
        padding: 12px 8px !important;
    }
    
    #musteriTasks label span:last-child {
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    #tamirHesaplaModal .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 12px 12px 0 0 !important;
        position: fixed;
        bottom: 0;
        margin: 0;
        max-height: 90vh !important;
    }
    
    #tamirHesaplaModal h2 {
        font-size: 16px !important;
        padding-bottom: 10px !important;
    }
    
    #tamirHesaplaModal .form-label {
        font-size: 12px !important;
    }
    
    #tamirHesaplaModal .form-input {
        font-size: 14px !important;
        padding: 10px !important;
    }
    
    #musteriTasks {
        max-height: 200px !important;
    }
    
    #musteriTasks label {
        font-size: 12px !important;
        padding: 10px 6px !important;
    }
    
    #musteriTasks label input {
        width: 20px !important;
        height: 20px !important;
    }
    
    #musteriTasks label span:last-child {
        font-size: 11px !important;
    }
}

/* Admin Modal - Mobil */
@media (max-width: 768px) {
    #adminModal .modal-content {
        width: 95% !important;
        max-width: 95% !important;
        padding: 15px !important;
    }
    
    #adminModal h2 {
        font-size: 18px !important;
    }
    
    #adminModal h3 {
        font-size: 14px !important;
    }
    
    #adminModal .admin-section {
        padding: 15px !important;
    }
    
    #adminModal button {
        font-size: 13px !important;
        padding: 10px 16px !important;
    }
    
}

@media (max-width: 480px) {
    #adminModal .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 12px 12px 0 0 !important;
        position: fixed;
        bottom: 0;
        margin: 0;
        max-height: 90vh !important;
    }
    
    #adminModal h2 {
        font-size: 16px !important;
    }
    
    #adminModal .admin-section > div[style*="flex"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    
    #adminModal .admin-section label {
        width: 100% !important;
        font-size: 13px !important;
    }
    
    #adminModal .admin-section input[type="number"] {
        width: 100% !important;
    }
    
    
    #adminModal > .modal-content > .admin-section > div:last-child {
        flex-direction: column !important;
    }
    
    #adminModal > .modal-content > .admin-section > div:last-child button {
        width: 100% !important;
        margin-left: 0 !important;
        margin-top: 8px;
    }
}

/* Bireysel Musteri Alanlari */
#bireyselMusteriGroup {
    background: #f0f9ff;
    border: 2px dashed #3498db;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

/* Bitti Butonu - Atolye */
.btn-bitti {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 6px;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-bitti:hover {
    background: linear-gradient(135deg, #219a52 0%, #27ae60 100%);
}

.btn-bitti:active {
    transform: scale(0.98);
}

/* Mobil buton optimizasyonu */
@media (max-width: 600px) {
    .btn-bitti {
        padding: 10px;
        font-size: 14px;
        margin-bottom: 5px;
    }
    .btn-save, .btn-cancel {
        padding: 10px !important;
        font-size: 13px !important;
    }
    .total-display {
        padding: 8px !important;
        font-size: 14px !important;
        margin-bottom: 5px !important;
    }
}

/* Gitti Butonu - Yonetici */
.btn-gitti {
    background: #9b59b6;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

#bireyselMusteriGroup .form-group {
    margin-bottom: 10px;
}

#bireyselMusteriGroup .form-group:last-child {
    margin-bottom: 0;
}

#bireyselMusteriGroup .form-label {
    color: #2980b9;
    font-weight: 600;
}

#bireyselMusteriGroup .form-input {
    border: 2px solid #3498db;
}

@media (max-width: 768px) {
    #bireyselMusteriGroup {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    #bireyselMusteriGroup .form-input {
        font-size: 16px;
        padding: 14px;
    }
}
/* AI Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   BELGE BUTONLARI - MOBIL UYUMLU
   ============================================ */

/* Belge Butonlari - Tum ekranlarda altta */
#belgeButonlari {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    transform: none;
    z-index: 1000;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    border-top: 1px solid #e0e0e0;
}

#belgeButonlari button {
    background: #27ae60;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 100px;
}

#belgeButonlari button:hover {
    background: #1e8449;
    transform: scale(1.02);
}

#belgeButonlari button:active {
    transform: scale(0.98);
}

/* Alt bar icin body padding - tum ekranlar */
body.has-belge-bar {
    padding-bottom: 70px;
}

/* Motor listesi padding */
body.has-belge-bar .motor-table-container {
    padding-bottom: 80px;
}

/* Mobil icin daha fazla padding */
@media (max-width: 768px) {
    body.has-belge-bar {
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 20px));
    }
    
    body.has-belge-bar .motor-table-container {
        padding-bottom: calc(90px + env(safe-area-inset-bottom, 20px));
    }
}

/* MOBIL - Butonlar BUYUK ve tam genislik */
@media (max-width: 768px) {
    #belgeButonlari {
        gap: 8px;
        padding: 12px 10px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 20px));
    }
    
    #belgeButonlari button {
        flex: 1;
        max-width: none;
        padding: 16px 10px;
        font-size: 15px;
        font-weight: 700;
        min-width: auto;
        border-radius: 10px;
    }
}

/* MOBIL - Modal ve Checkbox iyilestirmeleri */
@media (max-width: 768px) {
    /* Modal ust kismi - kapatmak icin tiklanabilir alan */
    .modal.active {
        align-items: flex-start;
        padding-top: 60px;
    }
    
    .modal-content {
        margin-top: 0;
        max-height: calc(100vh - 80px);
    }
    
    /* Motor secme checkbox'i buyut */
    .motor-checkbox {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px;
        min-height: 28px;
        cursor: pointer;
    }
    
    /* Tablo header'daki selectAll checkbox */
    #selectAllMotors {
        width: 26px !important;
        height: 26px !important;
    }
    
    /* Checkbox td/th padding */
    .motor-table th:first-child,
    .motor-table td:first-child {
        width: 50px !important;
        min-width: 50px !important;
        text-align: center;
    }
}

/* ============================================
   MOBIL MOTOR KART - KOMPAKT GORUNTULEME
   Ust query (995) ile birlikte calisir
   Bu blok kaldirildi - tum mobil kart stilleri
   995 numarali media query icerisinde tanimli
   ============================================ */

/* =============================================
   MODAL UST BOSLUK - MOBIL KAPATMA ALANI
   EN SON KURAL - TUM DIGER KURALLARI EZER
   ============================================= */
@media (max-width: 768px) {
    .modal.active {
        padding-top: 80px !important;
        align-items: flex-start !important;
    }
    
    .modal-content {
        max-height: calc(100vh - 100px) !important;
        margin-top: 0 !important;
        position: relative !important;
        bottom: auto !important;
    }
    
    #modal .modal-content,
    #reportModal .modal-content,
    #teklifModal .modal-content,
    #photosModal .modal-content,
    #docsModal .modal-content {
        max-height: calc(100vh - 100px) !important;
    }
}

/* Gelismis Filtreler - Mobil */
@media (max-width: 768px) {
    #advancedFilters {
        padding: 10px !important;
    }
    
    #advancedFilters > div {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    #advancedFilters input[type="date"],
    #advancedFilters select {
        width: 100% !important;
        max-width: none !important;
        padding: 10px !important;
        font-size: 14px !important;
    }
    
    #advancedFilters label {
        font-size: 11px !important;
    }
    
    #advancedFilterBtn {
        padding: 10px 15px !important;
        font-size: 14px !important;
    }
    
    #filterSummary {
        font-size: 11px !important;
        line-height: 1.4;
    }
    
    .filters-content {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    
    .filter-input {
        min-width: 100% !important;
        order: 1;
    }
    
    .filter-select {
        flex: 1 !important;
        min-width: 45% !important;
        order: 2;
    }
    
    #advancedFilterBtn {
        order: 3;
        flex: 1;
        min-width: 45% !important;
    }
}

/* Offline Indicator */
.offline-indicator {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #e74c3c;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    z-index: 99999;
    display: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    animation: slideUpOffline 0.3s ease;
}

.offline-indicator.show {
    display: block;
}

@keyframes slideUpOffline {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Etiket Modal */
#etiketModal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

#etiketModal .modal-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#etiketPreview {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f5f5;
    border-radius: 8px;
}

/* Etiket buton stili */
.btn-icon[title="Etiket Yazdir"] {
    font-size: 10px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobil iÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â§in etiket modal */
@media (max-width: 768px) {
    #etiketModal .modal-content {
        margin: 10px;
        max-width: calc(100% - 20px) !important;
    }
    
    #etiketContent {
        transform: scale(0.9);
    }
}
/* ============================================
   EFE ELEKTROMEKANIK - CSS IYILESTIRMELERI
   Bu dosyayi style.css'in SONUNA ekleyin
   Mevcut kurallari degistirmez, sadece ekler
   ============================================ */

/* ============================================
   GENEL IYILESTIRMELER
   ============================================ */

/* Daha yumusak gecisler */
*, *::before, *::after {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus states - erisilebilirlik */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

/* Daha iyi text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ============================================
   BUTTON IYILESTIRMELERI
   ============================================ */

/* Hover efekti */
.btn:hover,
button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Active efekti */
.btn:active,
button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Disabled state */
.btn:disabled,
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ============================================
   LOADING ANIMASYONLARI
   ============================================ */

/* Pulse animasyonu */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading-pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Skeleton loading */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

/* Spinner - spin keyframes zaten yukarida tanimli */

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

/* ============================================
   CARD IYILESTIRMELERI
   ============================================ */

.card,
.motor-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover,
.motor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* ============================================
   TABLE IYILESTIRMELERI
   ============================================ */

/* Row hover */
table tbody tr {
    transition: background-color 0.15s ease;
}

table tbody tr:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

/* Zebra striping */
table tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

table tbody tr:nth-child(even):hover {
    background-color: rgba(52, 152, 219, 0.08);
}

/* ============================================
   INPUT IYILESTIRMELERI
   ============================================ */

input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="password"],
input[type="date"],
select,
textarea {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

/* Placeholder styling */
::placeholder {
    color: #adb5bd;
    opacity: 1;
}

/* ============================================
   MODAL IYILESTIRMELERI
   ============================================ */

.modal {
    animation: fadeIn 0.2s ease;
}

.modal > div,
.modal-content {
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   TOAST / NOTIFICATION STYLES
   ============================================ */

.toast {
    animation: toastIn 0.3s ease;
}

@keyframes toastIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

/* Webkit browsers */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

/* ============================================
   RESPONSIVE IYILESTIRMELERI
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .hide-tablet {
        display: none !important;
    }
    
    /* Daha buyuk touch targets */
    button, .btn, input, select {
        min-height: 44px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
    
    /* Stack buttons */
    .button-group {
        flex-direction: column;
    }
    
    .button-group > * {
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Full width modals */
    .modal > div,
    .modal-content {
        width: 95% !important;
        max-width: none !important;
        margin: 10px;
    }
    
    /* Larger tap targets */
    button, .btn {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    /* Prevent zoom on input focus */
    input, select, textarea {
        font-size: 16px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    /* Hide non-essential elements */
    .no-print,
    button:not(.print-btn),
    .btn:not(.print-btn),
    nav,
    .sidebar,
    .toast-container {
        display: none !important;
    }
    
    /* Reset backgrounds */
    body {
        background: white !important;
    }
    
    /* Ensure only reportModal is visible */
    #reportModal {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        background: none !important;
    }

    #reportModal .modal-content {
        box-shadow: none !important;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Text utilities */
.text-success { color: #27ae60 !important; }
.text-error { color: #e74c3c !important; }
.text-warning { color: #f39c12 !important; }
.text-info { color: #3498db !important; }
.text-muted { color: #7f8c8d !important; }

/* Background utilities */
.bg-success { background-color: #27ae60 !important; }
.bg-error { background-color: #e74c3c !important; }
.bg-warning { background-color: #f39c12 !important; }
.bg-info { background-color: #3498db !important; }

/* Spacing utilities */
.mt-1 { margin-top: 5px !important; }
.mt-2 { margin-top: 10px !important; }
.mt-3 { margin-top: 15px !important; }
.mt-4 { margin-top: 20px !important; }
.mb-1 { margin-bottom: 5px !important; }
.mb-2 { margin-bottom: 10px !important; }
.mb-3 { margin-bottom: 15px !important; }
.mb-4 { margin-bottom: 20px !important; }

/* Flex utilities */
.d-flex { display: flex !important; }
.flex-wrap { flex-wrap: wrap !important; }
.justify-between { justify-content: space-between !important; }
.justify-center { justify-content: center !important; }
.align-center { align-items: center !important; }
.gap-1 { gap: 5px !important; }
.gap-2 { gap: 10px !important; }
.gap-3 { gap: 15px !important; }

/* Visibility */
.hidden { display: none !important; }
.visible { display: block !important; }

/* ============================================
   DARK MODE DESTEĞI (OPSIYONEL)
   ============================================ */

@media (prefers-color-scheme: dark) {
    /* Simdilik devre disi - ileride aktif edilebilir */
    /*
    body {
        background-color: #1a1a2e;
        color: #eee;
    }
    
    .card, .modal-content {
        background-color: #16213e;
        color: #eee;
    }
    
    input, select, textarea {
        background-color: #0f3460;
        color: #eee;
        border-color: #1a1a2e;
    }
    */
}

/* =============================================
   ADMIN PANEL - TAB YAPISI
   ============================================= */

.admin-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-tab-btn {
    flex: 1;
    min-width: 0;
    padding: 12px 8px;
    border: none;
    background: #f0f0f0;
    color: #666;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px 10px 0 0;
    transition: all 0.2s ease;
    text-align: center;
    white-space: nowrap;
    position: relative;
    bottom: -2px;
    border-bottom: 2px solid transparent;
}

.admin-tab-btn:hover {
    background: #e8e8e8;
    color: #333;
}

.admin-tab-btn.active {
    background: #fff;
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    font-weight: 700;
}

.admin-tab-btn .tab-icon {
    display: block;
    font-size: 20px;
    margin-bottom: 4px;
}

.admin-tab-btn .tab-label {
    display: block;
    font-size: 11px;
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
    animation: tabFadeIn 0.2s ease;
}

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Accordion */
.admin-accordion {
    margin-bottom: 12px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.admin-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #f8f9fa;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #2c3e50;
    transition: background 0.2s;
    user-select: none;
}

.admin-accordion-header:hover {
    background: #eef2f7;
}

.admin-accordion-header .acc-icon {
    font-size: 12px;
    transition: transform 0.25s ease;
    color: #888;
}

.admin-accordion.open .admin-accordion-header .acc-icon {
    transform: rotate(180deg);
}

.admin-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.admin-accordion.open .admin-accordion-body {
    max-height: 2000px;
}

.admin-accordion-body-inner {
    padding: 15px 18px;
}

/* Mobil uyumluluk */
@media (max-width: 600px) {
    .admin-tabs {
        gap: 3px;
    }
    .admin-tab-btn {
        padding: 10px 4px;
        font-size: 10px;
    }
    .admin-tab-btn .tab-icon {
        font-size: 18px;
    }
    .admin-tab-btn .tab-label {
        font-size: 9px;
    }
}

/* ========== TAKVIM / IS PLANLAMA ========== */

.takvim-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.takvim-gun-header {
    text-align: center;
    font-weight: 700;
    padding: 8px 4px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 12px;
    color: #555;
}

.takvim-gun {
    min-height: 85px;
    border: 1px solid #e0e0e0;
    padding: 4px;
    cursor: pointer;
    border-radius: 6px;
    background: #fff;
    transition: all 0.15s ease;
    position: relative;
}

.takvim-gun:hover {
    background: #f0f4ff;
    border-color: #9b59b6;
}

.takvim-gun.bugun {
    border: 2px solid #3498db;
    background: #eef6ff;
}

.takvim-gun.secili {
    border: 2px solid #9b59b6;
    background: #f5f0ff;
    box-shadow: 0 2px 8px rgba(155, 89, 182, 0.2);
}

.takvim-gun.bos-ay {
    background: #fafafa;
    opacity: 0.4;
    cursor: default;
}

.takvim-gun.bos-ay:hover {
    background: #fafafa;
    border-color: #e0e0e0;
}

.takvim-gun-no {
    font-size: 13px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 3px;
}

.takvim-gun.bugun .takvim-gun-no {
    color: #3498db;
}

.takvim-gun-pazar .takvim-gun-no {
    color: #e74c3c;
}

/* Motor badge (gun icinde) */
.takvim-motor-badge {
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 3px;
    margin: 1px 0;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.takvim-motor-badge.gecikmis {
    background: #fdecea;
    color: #c0392b;
}

.takvim-motor-badge.bugun-badge {
    background: #fff3cd;
    color: #856404;
}

.takvim-motor-badge.gelecek {
    background: #d5f5e3;
    color: #1e8449;
}

.takvim-motor-fazla {
    font-size: 10px;
    color: #7f8c8d;
    text-align: center;
    margin-top: 2px;
}

/* Kapasite bari */
.kapasite-bar {
    height: 10px;
    border-radius: 5px;
    background: #ecf0f1;
    overflow: hidden;
    margin-top: 4px;
}

.kapasite-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.3s ease;
}

.kapasite-bar-fill.dusuk {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
}

.kapasite-bar-fill.orta {
    background: linear-gradient(90deg, #f39c12, #e67e22);
}

.kapasite-bar-fill.yuksek {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

/* Gun detay motor listesi */
.takvim-detay-motor {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 6px;
    transition: all 0.15s ease;
}

.takvim-detay-motor:hover {
    border-color: #9b59b6;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.takvim-detay-motor .motor-id {
    font-weight: 700;
    color: #2c3e50;
    min-width: 80px;
}

.takvim-detay-motor .motor-bilgi {
    flex: 1;
    font-size: 13px;
    color: #555;
}

.takvim-detay-motor .motor-durum {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* Planlanmamis motorlar listesi */
.planlanmamis-liste {
    max-height: 300px;
    overflow-y: auto;
}

.planlanmamis-motor {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #ffe0b2;
    border-radius: 8px;
    margin-bottom: 6px;
    gap: 8px;
    flex-wrap: wrap;
}

.planlanmamis-motor:hover {
    border-color: #ff9800;
    background: #fff8e1;
}

.planlanmamis-motor .motor-info {
    flex: 1;
    min-width: 150px;
}

.planlanmamis-motor .motor-info .barkod {
    font-weight: 700;
    color: #2c3e50;
}

.planlanmamis-motor .motor-info .detay {
    font-size: 12px;
    color: #777;
}

.planlanmamis-motor .atama-btn {
    background: #9b59b6;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.planlanmamis-motor .atama-btn:hover {
    background: #8e44ad;
}

.planlanmamis-motor .tarih-input {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
}

/* Mobil responsive */
@media (max-width: 768px) {
    .takvim-grid {
        gap: 1px;
    }
    .takvim-gun {
        min-height: 55px;
        padding: 3px;
    }
    .takvim-gun-header {
        padding: 5px 2px;
        font-size: 10px;
    }
    .takvim-gun-no {
        font-size: 11px;
    }
    .takvim-motor-badge {
        font-size: 8px;
        padding: 1px 3px;
    }
    .takvim-detay-motor {
        flex-wrap: wrap;
        gap: 6px;
    }
    .planlanmamis-motor {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/* ============================================ */
/* MUSTERI GORUNUMU - Desktop + Mobil            */
/* ============================================ */

/* Desktop: normal tablo satiri goster, card gizle */
body.customer-view .customer-mobile-row {
    display: none !important;
}
body.customer-view .customer-desktop-row {
    display: table-row !important;
}

/* Mobil: card goster, tablo satiri gizle */
@media (max-width: 768px) {
    body.customer-view .customer-mobile-row {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
    }
    body.customer-view .customer-mobile-row td[colspan] {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    body.customer-view .customer-desktop-row {
        display: none !important;
    }

    /* ===== MUSTERI MOBIL KART STILLERI ===== */
    .mcrd-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        margin-bottom: 4px;
    }

    .mcrd-id {
        font-weight: 700;
        font-size: 15px;
        color: #2c3e50;
        line-height: 1.2;
    }

    .mcrd-fab {
        display: block;
        font-size: 10px;
        color: #8e44ad;
        font-weight: 600;
        margin-top: 2px;
    }

    .mcrd-type {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
    }

    .mcrd-cihaz {
        background: #e3f2fd;
        padding: 3px 8px;
        border-radius: 6px;
        font-size: 11px;
        color: #1976d2;
        font-weight: 600;
    }

    .mcrd-kw {
        font-size: 13px;
        font-weight: 700;
        color: #2c3e50;
    }

    .mcrd-model {
        font-size: 13px;
        font-weight: 600;
        color: #555;
        margin-bottom: 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mcrd-foot {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 10px;
        border-top: 1px solid #f0f0f0;
        gap: 8px;
    }

    .mcrd-meta {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        min-width: 0;
    }

    .mcrd-date {
        font-size: 11px;
        color: #999;
    }

    .mcrd-sat {
        font-size: 10px;
        color: #888;
        background: #f5f5f5;
        padding: 2px 6px;
        border-radius: 4px;
    }

    .mcrd-btns {
        display: flex;
        gap: 6px;
        flex-shrink: 0;
    }

    .mcrd-btns .btn-icon {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        font-size: 13px !important;
        border-radius: 8px !important;
    }
}

/* ===== FABRIKA ONIZLEME MODU ===== */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

body.preview-mode #previewBanner {
    animation: pulse 2s infinite;
}

#fabrikaOnizlemeDropdown .fabrika-onizleme-item:last-child {
    border-bottom: none;
}
