.service-card {
    border-right: 3px solid #fff;
}
/* Sadece mobilde görünen alt boşluk */
.mobile-bottom-spacer {
    display: none;
/* (fazladan kapatıcı süslü parantez silindi) */
@media (max-width: 900px) {
    .mobile-bottom-spacer {
        display: block;
        width: 100%;
        height: 80px;
        pointer-events: none;
        background: transparent;
    }
    #page-content {
        padding-bottom: 80px !important;
    }
}
/* Sadece Kâr Payı Popup'ı için izole modal stilleri */
.profit-share-modal {
    background: var(--color-surface, #fff);
    border-radius: var(--radius-lg, 12px);
    box-shadow: var(--shadow-lg, 0 10px 25px rgba(0,0,0,0.12));
    padding: 28px 28px 22px 28px;
    max-width: 420px;
    width: 95%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    z-index: 2;
}
.profit-share-modal h3 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 20px;
    color: var(--color-primary-700, #1d4ed8);
    display: flex;
    align-items: center;
    gap: 8px;
}
.profit-share-modal .form-group {
    margin-bottom: 18px;
}
.profit-share-modal .form-group label {
    font-weight: 600;
    color: var(--color-text, #111827);
    margin-bottom: 6px;
    display: block;
}
.profit-share-modal input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border-dark, #d1d5db);
    border-radius: var(--radius-md, 10px);
    background: var(--color-surface, #fff);
    font-size: 15px;
    color: var(--color-text, #111827);
    margin-top: 4px;
    margin-bottom: 2px;
    box-sizing: border-box;
}
.profit-share-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 10px;
}
.profit-share-modal .btn {
    padding: 10px 22px;
    border-radius: var(--radius-md, 10px);
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.profit-share-modal .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}
.profit-share-modal .btn-primary:hover {
    filter: brightness(0.95);
}
.profit-share-modal .btn-secondary {
    background: #f3f4f6;
    color: #333;
}
.profit-share-modal .btn-secondary:hover {
    background: #e5e7eb;
}
/*
Servis Uygulaması - Stil Dosyası
Açıklama: Bağımsız (standalone) servis yönetim uygulaması için temel ve bileşen stilleri.
Not: WordPress tema meta verileri ve WP'ye özgü sınıflar kaldırıldı.
Tarih: 2025-10-27
*/

/* ==========================================================================
   Global Styles - Tema için genel stil tanımlamaları
   ========================================================================== */

:root {
    /* Kurumsal Renkler */
    --color-bg: #f3f4f6; /* slate-100 */
    --color-surface: #ffffff;
    --color-elevated: #f9fafb; /* slate-50 */
    --color-text: #111827; /* gray-900 */
    --color-text-muted: #6b7280; /* gray-500 */
    --color-border: #e5e7eb; /* gray-200 */
    --color-border-dark: #d1d5db; /* gray-300 */

    /* Tema Renkleri */
    --color-primary: #2563eb; /* blue-600 */
    --color-primary-600: #2563eb;
    --color-primary-700: #1d4ed8;
    --color-primary-50: #eff6ff;
    --color-accent: #0ea5e9; /* sky-500 */
    --color-success: #16a34a; /* green-600 */
    --color-warning: #f59e0b; /* amber-500 */
    --color-danger: #dc2626; /* red-600 */
    --color-info: #0284c7; /* sky-600 */
    --color-purple: #7c3aed; /* violet-600 */

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;

    /* Radius & Shadows */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 10px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);

    /* Z-index */
    --z-modal: 100000;

    /* Typography */
    --font-size-sm: 12px;
    --font-size-base: 14px;
    --font-size-md: 15px;
    --font-size-lg: 16px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --line-height: 1.6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* (Yukarıdaki hatalı body stilleri kaldırıldı, aşağıda tek body tanımı var) */
}
/* Local Font Awesome 7 ve Inter fontlarını kullanmak için font-face tanımları */
@font-face {
    font-family: 'FontAwesome';
    src: url('/font/otfs/Font Awesome 7 Free-Solid-900.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'FontAwesome';
    src: url('/font/otfs/Font Awesome 7 Free-Regular-400.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'FontAwesomeBrands';
    src: url('/font/otfs/Font Awesome 7 Brands-Regular-400.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

body {
        font-family: 'FontAwesome', 'FontAwesomeBrands', Arial, sans-serif;
        line-height: var(--line-height);
        color: var(--color-text);
        background: linear-gradient(180deg, #f8fafc 0%, #f3f4f6 100%);
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        min-height: 100dvh;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        padding-top: env(safe-area-inset-top, 0px);
        box-sizing: border-box;
}

/* Font Awesome ikonları için temel class */
.fa, .fas, .far, .fab {
    font-family: 'FontAwesome', 'FontAwesomeBrands', sans-serif !important;
    font-style: normal;
    font-weight: 400;
    font-variant: normal;
    text-rendering: auto;
    display: inline-block;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.fas { font-weight: 900; }
.fab { font-family: 'FontAwesomeBrands', 'FontAwesome', sans-serif !important; font-weight: 400; }
.fa-solid { font-family: 'FontAwesome', sans-serif !important; font-weight: 900; }
.fa-regular, .far { font-family: 'FontAwesome', sans-serif !important; font-weight: 400; }
.fa-brands, .fab { font-family: 'FontAwesomeBrands', sans-serif !important; font-weight: 400; }
/* Modal form - iki numeric alanı aynı satıra getirme (Alınan Ücret & Masraf) */
.form-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.form-row .form-group {
    flex: 1 1 0;
}

/* Küçük ekranlarda alt alta diz */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
    }
}
/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-5);
}

/* Buton temel stilleri */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 10px 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: var(--font-size-md);
    font-family: inherit;
}
.btn i { margin-right: 0px; }
.btn:hover { filter: brightness(0.75); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(37,99,235,0.35); outline-offset: 2px; }

/* Varyantlar (hem "btn-xxx" hem de "btn xxx" desteği) */
.btn-primary, .btn.primary { background: var(--color-primary-600); color: #fff; border-color: transparent; }
.btn-primary:hover, .btn.primary:hover { background: var(--color-primary-700); }

.btn-secondary, .btn.secondary { background: var(--color-primary-50); color: var(--color-primary-700); border-color: var(--color-primary-600); }

.btn-success, .btn.success { background: var(--color-success); color: #fff; border-color: transparent; }
.btn-success:hover, .btn.success:hover { filter: brightness(0.92); }

.btn-warning, .btn.warning { background: #ff9800 !important; color: #fff !important; border-color: transparent !important; }
.btn-warning:hover, .btn.warning:hover { background: #f57c00 !important; }

.btn-danger, .btn.danger { background: var(--color-danger); color: #fff; border-color: transparent; }
.btn-danger:hover, .btn.danger:hover { filter: brightness(0.92); }

.btn-info, .btn.info { background: var(--color-info); color: #fff; border-color: transparent; }
.btn-info:hover, .btn.info:hover { filter: brightness(0.92); }

.btn-ghost, .btn.ghost { background: transparent; border-color: var(--color-border); color: var(--color-text); }
.btn-ghost:hover, .btn.ghost:hover { background: var(--color-elevated); }

/* Boyut varyantları */
.btn-sm { padding: 6px 10px; font-size: var(--font-size-base); border-radius: var(--radius-sm); }
.btn-lg { padding: 12px 18px; font-size: var(--font-size-lg); border-radius: var(--radius-lg); }

/* Yardımcı metin */
.text-muted { color: var(--color-text-muted); }

/* Aksiyon generic butonları için ikincil görünüm */
.btn-action-generic { background: var(--color-primary-50); color: var(--color-primary-700); border: 1px solid var(--color-primary-600); }
.btn-action-generic:hover { background: #e6efff; }

/* Form bileşenleri */
.form-group { margin-bottom: var(--space-5); }
/*.form-group label { display: block; font-weight: 600; color: var(--color-text); margin-bottom: 0px; }*/
.form-input {
    padding: 10px 10px;
    border: 1px solid var(--color-border-dark);
    border-radius: 10px;
    background: var(--color-surface);
    font-size: 14px;
    color: var(--color-text);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus { outline: none; border-color: var(--color-primary-600); box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }
.form-input[readonly], .form-input:disabled { background: #f3f4f6; color: #6b7280; }
.form-help { font-size: 12px; color: var(--color-text-muted); margin-top: 6px; }
/* Eski tanımlarla çakışan ve hatalı iç içe yazımları temizledik */

/* Uygulama bağımsızdır; WordPress admin bar paddinglemesi kaldırıldı */

/* WordPress hizalama ve caption sınıfları kaldırıldı */

/* Text meant only for screen readers */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ==========================================================================
   Uygulama için özel stiller app.html'de yüklenir
   ========================================================================== */

/* ===================================== */
/* ===== MODAL GENEL STİLLERİ ===== */
/* ===================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100000 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(180deg, #5c6573 0%, #2f3031 100%) !important;
    padding: 10px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 500px;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    max-height: 90dvh;
    overflow-y: auto;
    padding-bottom: calc(25px + env(safe-area-inset-bottom, 0px));
    padding-top: calc(25px + env(safe-area-inset-top, 0px));
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.modal-header h2 {
    margin: 0;
    font-size: var(--font-size-2xl);
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header .fas {
    color: var(--color-primary-600);
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #666;
}

.modal-close:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.modal-body {
    flex-grow: 1;
    padding-bottom: 20px;
}

.modal-footer {
    border-top: 1px solid var(--color-border);
    padding-top: 15px;
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Detay Modal Özel Stilleri */
.detail-modal .modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-section {
    background-color: var(--color-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 15px;
}

.detail-section h3 {
    font-size: 18px;
    color: #555;
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px dashed var(--color-border-dark);
    padding-bottom: 10px;
}

.detail-section h3 .fas {
    color: var(--color-accent);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-label {
    font-weight: bold;
    color: var(--color-text-muted);
    font-size: 13px;
    margin-bottom: 3px;
}

.detail-value {
    color: var(--color-text);
    font-size: 15px;
    word-break: break-word;
}

.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.timeline {
    position: relative;
    padding: 10px 0 0 25px;
    border-left: 2px solid #e0e0e0;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
    padding-left: 25px;
}

.timeline-icon {
    position: absolute;
    left: -20px;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.timeline-content {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 10px 15px;
    box-shadow: var(--shadow-sm);
}

.timeline-title {
    font-weight: bold;
    color: var(--color-text);
    margin-bottom: 5px;
}

.timeline-date, .timeline-user {
    font-size: 12px;
    color: var(--color-text-muted);
}

/* Özel Durum Renkleri */
.customer-section h3 .fas { color: var(--color-info); } /* Mavi */
.job-section h3 .fas { color: var(--color-warning); } /* Turuncu */
.assignment-section h3 .fas { color: var(--color-purple); } /* Mor */
.payment-section h3 .fas { color: var(--color-success); } /* Yeşil */
.cancel-section h3 .fas { color: var(--color-danger); } /* Kırmızı */
.timeline-section h3 .fas { color: var(--color-accent); } /* Gri-Mavi */

/* Erişilebilirlik: Hareketi azaltma tercihi */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Responsive Ayarlamalar */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 15px;
    }
    .modal-header h2 {
        font-size: 18px;
    }
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-footer .btn {
        width: 100%;
        border-radius: 14px;
    }
}

/* Çok küçük ekranlar için ek iyileştirmeler */
@media (max-width: 480px) {
    .modal-content {
        padding: 12px;
        max-height: 95vh;
    }
    
    .modal-header {
        padding-bottom: 12px;
        margin-bottom: 15px;
    }
    
    .modal-header h2 {
        font-size: 16px;
        gap: 6px;
    }
    
    .modal-close {
        font-size: 24px;
    }
    
    .detail-section {
        padding: 12px;
    }
    
    .detail-section h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .timeline {
        padding-left: 18px;
        border-left-width: 2px;
    }
    
    .timeline-item {
        padding-left: 20px;
        margin-bottom: 15px;
    }
    
    .timeline-icon {
        left: -18px;
        width: 34px;
        height: 34px;
        font-size: 16px;
    }
    
    .timeline-content {
        padding: 8px 12px;
    }
}

/* Strong override to ensure consistent modal appearance (higher specificity) */
.modal-overlay.active .modal-content,
.modal-overlay .modal-content {
    background: linear-gradient(180deg, #5c6573 0%, #2f3031 100%) !important;
    padding: 10px !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    width: 90% !important;
    max-width: 500px !important;
    transform: translateY(-20px) !important;
    transition: transform 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    max-height: 90dvh !important;
    overflow-y: auto !important;
    padding-bottom: calc(25px + env(safe-area-inset-bottom, 0px)) !important;
    padding-top: calc(25px + env(safe-area-inset-top, 0px)) !important;
}

/* ==========================================================================
   İş Kartları (Job Cards) - Liste görünümü için kart stilleri
   ========================================================================== */

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 5px;
}

.job-card {
    background: #17adb433;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid #17adb4fa;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.job-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.job-card-overdue { border-left: 4px solid var(--color-danger); }


.service-card.has-date-note {
    border-right: 3px solid #8500b5; /* Kırmızı kenarlık */
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--color-elevated);
    border-bottom: 1px solid var(--color-border);
    gap: 10px;
    flex-wrap: wrap;
}

.badge-creator {
    flex-shrink: 0;
}

.card-status { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0; }

.card-date-top-right { margin-left: auto; font-size: 11px; color: var(--color-text-muted); }

.card-body { 
    padding: 16px; flex: 1;
    background: #8dcaca;
    border-radius: 10px; 
}

.customer-name { font-size: 18px; font-weight: 700; color: var(--color-text); margin-bottom: 8px; }

.customer-phone { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--color-text-muted); margin-bottom: 10px; }

.customer-phone i { color: var(--color-primary-600); }

.job-description { font-size: 14px; color: var(--color-text-muted); line-height: 1.5; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.card-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--color-text-muted); padding-top: 10px; border-top: 1px solid var(--color-border); }

.card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-meta i { color: var(--color-primary-600); }

.assigned-info { margin-top: 10px; padding: 8px 10px; background: #eff6ff; border-radius: 6px; font-size: 12px; color: var(--color-primary-700); }

.card-footer { padding: 12px 15px; background: var(--color-elevated); border-top: 1px solid var(--color-border); display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.card-footer small {
    font-size: 15px;
    color: #b90000;
}

.card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.card-actions .btn { padding: 8px 12px; font-size: 13px; border-radius: 8px; }

.btn-assign { background: var(--color-primary-600); color: #fff; border: none; }
.btn-assign:hover { background: var(--color-primary-700); }

.btn-calendar { background: var(--color-success); color: #fff; border: none; }
.btn-calendar:hover { filter: brightness(0.95); }

.btn-content { background: var(--color-purple); color: #fff; border: none; }
.btn-content:hover { filter: brightness(0.95); }

.btn-cancel,
.btn-delete,
.btn-danger { background: linear-gradient(135deg, rgba(127, 29, 29, 0.65), rgb(127, 29, 29)) !important; color: #fff; border: none; }
.btn-cancel:hover,
.btn-delete:hover,
.btn-danger:hover { filter: brightness(0.95); }

/* Responsive kart düzeni */
@media (max-width: 900px) {
    .jobs-grid { grid-template-columns: 1fr; gap: 5px; }
    .card-actions { width: 100%; justify-content: flex-start; }
    .card-actions .btn { flex: 1; min-width: 80px; }
}

/* ==========================================================================
   Header Yenile Butonu - Modern Tasarım
   ========================================================================== */

.btn-refresh-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-refresh-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-refresh-header:hover::before {
    opacity: 1;
}

.btn-refresh-header i {
    position: relative;
    z-index: 1;
    transition: transform 0.6s ease;
}

.btn-refresh-header:hover i {
    transform: rotate(360deg);
}

.btn-refresh-header:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Mobil responsive */
@media (max-width: 768px) {
    .btn-refresh-header {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}

/* =================================================================
   YENİ İŞ FORMU - MASAÜSTÜ GÖRÜNÜM (769px ve üstü)
   ================================================================= */
@media (min-width: 769px) {
    /* Satır 1: Müşteri Adı | Telefon | Alternatif Telefon */
    /* Satır 2: Bölge/Semt | Adres */
    .customer-fields {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 12px;
    }
    
    /* 4. alan (Bölge) yeni satırın başında */
    .customer-fields .form-group:nth-child(4) {
        grid-column: 1;
    }
    
    /* 5. alan (Adres) 2 sütun kaplayacak */
    .customer-fields .form-group:nth-child(5) {
        grid-column: 2 / 4;
    }
    
    /* Satır 3: İş Açıklaması + İşin Çeşidi butonları */
    .form-section .job-description-row {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 16px;
        align-items: start;
    }
    
    /* İş açıklaması form-group'unun yüksekliği */
    .job-description-row > .form-group:first-child {
        display: flex;
        flex-direction: column;
    }
    
    .job-description-row > .form-group:first-child textarea {
        flex: 1;
        min-height: 120px;
        resize: vertical;
    }
    
    /* İşin çeşidi butonları wrapper */
    .job-description-row > .form-group:last-child {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    
    .job-type-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        margin-top: 28px !important;
        flex: 1;
        justify-content: flex-start;
    }
    
    .job-type-btn {
        padding: 8px 16px !important;
        font-size: 13px !important;
        min-width: 100px;
        height: 36px;
    }
    
    /* Satır 4: Tercih Edilen Gün | Zaman | Butonlar */
    .form-section .schedule-row {
        display: grid;
        grid-template-columns: 1fr 1fr auto;
        gap: 12px;
        align-items: flex-end;
    }
    
    /* Tüm çocuklar aynı hizaya gelsin */
    .schedule-row > .form-group {
        margin-bottom: 0 !important;
    }
    
    .schedule-row > .form-group label {
        margin-bottom: 5px;
        display: block;
    }
    
    .schedule-row > .form-group select {
        height: 42px;
    }
    
    .form-actions {
        display: flex;
        gap: 8px;
        align-self: flex-end;
        margin-bottom: 0;
    }
    
    .form-actions .btn {
        padding: 10px 16px !important;
        font-size: 13px !important;
        height: 42px;
        display: flex;
        align-items: center;
    }
}

/* Kart butonlarında ikon altı metin */
.btn .btn-text, .btn-text {
  display: block !important;
  font-size: 11px;
  margin-top: 4px;
  text-align: center;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: inherit;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Dikey hizalama için buton içeriği */
.btn-flex-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Vertical buton stili - Icon üstte, text altta */
.btn-vertical {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  min-width: 70px;
  min-height: 60px;
  padding: 8px 10px !important;
}

.btn-vertical svg {
  flex-shrink: 0;
  display: block;
}

.btn-vertical .btn-text {
  display: block !important;
  margin-top: 0;
  white-space: nowrap;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Service card içindeki butonlar için özel ayarlar */
.service-card .card-actions .btn-vertical {
  min-width: 70px;
  min-height: 40px;
}

/* Buton yüksekliği ve padding ayarı */
.service-card .btn {
  min-width: 56px;
  min-height: 48px;
  padding: 4px 8px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Card actions içindeki tüm butonlar için text görünür olsun */
.card-actions .btn .btn-text,
.card-actions .btn-vertical .btn-text,
.service-card .card-actions .btn .btn-text,
.service-card .card-actions .btn-vertical .btn-text {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  color: currentColor !important;
  font-size: 11px !important;
  margin-top: 4px !important;
}

/* Header butonlarının textlerini tüm ekranlarda gizle (sadece masaustu gösterecek) */
.new-record-btn .btn-text,
.top-bar .new-record-btn .btn-text,
.top-left .new-record-btn .btn-text,
.header-section .new-record-btn .btn-text {
  display: none;
}

/* Masaustu'nde header buton textlerini göster */
@media (min-width: 769px) {
  .new-record-btn .btn-text {
    display: inline !important;
  }
}

/* Mobil responsive */
@media (max-width: 768px) {
  .btn-vertical {
    min-width: 65px;
    min-height: 58px;
    padding: 6px 8px;
  }
  
  .btn-vertical svg {
    width: 18px;
    height: 18px;
  }
  
  .btn-vertical .btn-text {
    font-size: 10px;
  }
}

/* Mobile override for modal spacing and height */
@media (max-width: 480px) {
    .modal-content {
        padding: 10px !important;
        max-height: 95vh !important;
    }
}
/* ===== LİSTE KONTEYNER STİLLERİ ===== */
.list-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 0px !important;
  width: 100% !important;
}

/* Mobile-only override for .main-content per user preference ( <768px ) */
@media (max-width: 767px) {
    .main-content {
        grid-column: auto !important;
        grid-row: auto !important;
        padding: 10px 10px 100px 10px !important; /* top right bottom left */
        background: #ffffff !important;
        overflow-y: auto !important;
        flex: 1 !important;
        box-sizing: border-box;
        margin: 0;
    }
}

