/* Kuru Temizleme Modülü - Excel Tablosu Formatında */

.dry-cleaning-container {
    width: 100%;
    min-width: 1370px;
    background: #f0f2f5;
    border-radius: 8px;
    overflow-x: auto;
    overflow-y: visible;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.dry-cleaning-header {
    background: linear-gradient(135deg, #0f4c75 0%, #1e88e5 100%);
    padding: 20px;
    color: white;
}

/* Üst Butonlar */
.top-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: flex-start;
}

.action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn.primary {
    background: #28a745;
    color: white;
}

.action-btn.primary:hover {
    background: #218838;
    transform: translateY(-2px);
}

.action-btn.secondary {
    background: #6c757d;
    color: white;
}

.action-btn.secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.action-btn.success {
    background: #17a2b8;
    color: white;
}

.action-btn.success:hover {
    background: #138496;
    transform: translateY(-2px);
}

.action-btn.info {
    background: #007bff;
    color: white;
}

.action-btn.info:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.action-btn.active {
    background: #0f4c75 !important;
    color: white !important;
    box-shadow: 0 4px 8px rgba(15, 76, 117, 0.3);
}

.search-section {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    max-width: 800px;
    position: relative;
    overflow: visible;
    z-index: 1000;
}

.customer-search,
.order-search {
    position: relative;
    flex: 1;
}

.quick-order-search {
    position: relative;
    flex: 1;
}

.customer-search-input,
.order-search-input,
.quick-order-search-input {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    background: white;
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.customer-search-input:focus,
.order-search-input:focus,
.quick-order-search-input:focus {
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.customer-search-input::placeholder,
.order-search-input::placeholder,
.quick-order-search-input::placeholder {
    color: #666;
    font-weight: normal;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 4px;
    display: none;
    border: 1px solid #e0e0e0;
}

.search-results.active {
    display: block;
}

/* Order Search Results Styling */
.order-result-item {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s;
}

.order-result-item:hover {
    background-color: #f8f9fa;
    transform: translateX(4px);
}

.order-result-item:last-child {
    border-bottom: none;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.order-header strong {
    color: #2c5f4a;
    font-size: 16px;
}

.order-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.order-status.status-islemde {
    background-color: #cce5ff;
    color: #004085;
}

.order-status.status-hazir {
    background-color: #d1ecf1;
    color: #0c5460;
}

.order-status.status-teslim-edildi {
    background-color: #d4edda;
    color: #155724;
}

/* Backward compatibility - eski status'lar için */
.order-status.status-teslim-alinacak {
    background-color: #cce5ff;
    color: #004085;
}

.order-status.status-yikanıyor,
.order-status.status-yikaniyor {
    background-color: #cce5ff;
    color: #004085;
}

.order-status.status-teslim-edilecek {
    background-color: #d1ecf1;
    color: #0c5460;
}

.order-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.customer-info {
    color: #666;
    font-size: 14px;
}

.order-details {
    color: #888;
    font-size: 13px;
}

/* Highlighted row in table */
.excel-row.highlighted {
    background-color: #fff3cd !important;
    border-left: 4px solid #ffc107;
}

.search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

.customer-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.customer-info {
    font-size: 12px;
    color: #666;
}

.no-results {
    padding: 16px;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Excel Tablosu Stil Tasarımı */
.excel-table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0;
    overflow-x: auto;
    /* Yatay scroll için */
    overflow-y: visible;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 1370px;
    /* Sütun genişliklerinin toplamı */
}

.excel-table {
    width: 100%;
    min-width: 1370px;
    /* Sütun genişliklerinin toplamı */
    border-collapse: collapse;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 13px;
    table-layout: fixed;
    /* Sabit layout - daha iyi hizalama */
    flex: 1;
}

.excel-header {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%) !important;
    /* WhatsApp mavi tonu - önemli */
    color: white !important;
    font-weight: 700 !important;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    height: 45px;
}

.excel-header th {
    padding: 12px 6px !important;
    border: 2px solid #1565C0 !important;
    font-size: 11px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white !important;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%) !important;
    font-weight: 700 !important;
    white-space: nowrap;
    text-align: center !important;
    vertical-align: middle !important;
}

.excel-cell {
    padding: 8px 6px;
    border: 1px solid #d0d7de !important;
    text-align: center;
    vertical-align: middle;
    position: relative;
    background: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    line-height: 1.4;
}

.excel-cell.select-column {
    width: 50px !important;
    min-width: 50px;
    background: #f6f8fa;
}

/* Sütun genişlikleri - 9 sütunlu düzen (Checkbox dahil) */
.excel-cell:nth-child(1) {
    /* Checkbox */
    width: 50px !important;
    min-width: 50px;
    max-width: 50px;
}

.excel-cell:nth-child(2) {
    /* MÜŞTERİ NO */
    width: 90px !important;
    min-width: 90px;
    max-width: 90px;
}

.excel-cell:nth-child(3) {
    /* MAKBUZ NO */
    width: 110px !important;
    min-width: 110px;
    max-width: 110px;
}

.excel-cell:nth-child(4) {
    /* MÜŞTERİ ADI */
    width: 200px !important;
    min-width: 200px;
    max-width: 200px;
    text-align: left !important;
    padding-left: 12px !important;
}

.excel-cell:nth-child(5) {
    /* ALIŞ TARİHİ */
    width: 100px !important;
    min-width: 100px;
    max-width: 100px;
}

.excel-cell:nth-child(6) {
    /* SAAT */
    width: 80px !important;
    min-width: 80px;
    max-width: 80px;
}

.excel-cell:nth-child(7) {
    /* BÖLGE */
    width: 120px !important;
    min-width: 120px;
    max-width: 120px;
}

.excel-cell:nth-child(8) {
    /* AÇIKLAMA */
    width: 180px !important;
    min-width: 180px;
    max-width: 180px;
    text-align: left !important;
    padding-left: 12px !important;
}

.excel-cell:nth-child(9) {
    /* TUTAR */
    width: 100px !important;
    min-width: 100px;
    max-width: 100px;
    text-align: right !important;
    padding-right: 12px !important;
}

.excel-cell:nth-child(10) {
    /* DURUM */
    width: 120px !important;
    min-width: 120px;
    max-width: 120px;
}

.excel-row {
    transition: background-color 0.2s ease;
}

.excel-row:nth-child(even) {
    background-color: #f8f9fa;
}

.excel-row:nth-child(odd) {
    background-color: white;
}

.excel-row:hover {
    background-color: #e3f2fd !important;
    cursor: pointer;
}

.excel-row.empty-row {
    background-color: #fafbfc;
    color: #8b949e;
}

.excel-row.empty-row:hover {
    background-color: #f6f8fa !important;
    cursor: default;
}

.excel-row.empty-row input[type="checkbox"] {
    opacity: 0.3;
}

/* Özel kolon stilleri */
/* Müşteri Adı Sütunu - Diğer sütunlarla uyumlu hizalama */
.excel-table .excel-body .excel-cell.customer-name {
    text-align: center !important;
    font-weight: 500 !important;
    color: #0969da !important;
    padding: 8px !important;
    min-width: 120px;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle !important;
    display: table-cell !important;
}

/* Print Butonları Sütunu */
.excel-cell:nth-child(11) {
    /* YAZDIRMA - Yeni sütun */
    width: 120px !important;
    min-width: 120px;
    max-width: 120px;
    padding: 4px !important;
}

.excel-cell.description {
    text-align: left;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.excel-cell.amount {
    text-align: right;
    font-weight: 600;
    color: #2da44e;
}

.excel-cell.vehicle {
    text-align: center;
    font-family: monospace;
    font-weight: 500;
}

/* Excel Özeti Footer */
.excel-summary-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f6f8fa 0%, #e1e7ed 100%);
    border-top: 2px solid #d0d7de;
    font-size: 13px;
}

.summary-left {
    display: flex;
    gap: 20px;
}

.summary-item {
    color: #24292f;
    font-weight: 500;
}

.summary-item strong {
    color: #0969da;
    font-weight: 700;
}

.summary-right {
    display: flex;
    gap: 10px;
}

.excel-action-btn {
    padding: 8px 16px;
    border: 1px solid #d0d7de;
    background: white;
    color: #24292f;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.excel-action-btn:hover {
    background: #f6f8fa;
    border-color: #8b949e;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.excel-action-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.excel-action-btn i {
    font-size: 11px;
}

/* Tab Navigation */
.dry-cleaning-tabs {
    background: white;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tab-header {
    display: flex;
    border-bottom: 2px solid #e0e6ed;
    background: #f8f9fa;
}

.tab-btn {
    padding: 16px 24px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    background: rgba(15, 76, 117, 0.1);
    color: #0f4c75;
}

.tab-btn.active {
    background: white;
    color: #0f4c75;
    border-bottom: 3px solid #0f4c75;
}

.tab-count {
    background: #0f4c75;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    min-width: 20px;
    text-align: center;
}

.tab-btn.active .tab-count {
    background: #1e88e5;
}

/* Tab Content */
.tab-content {
    min-height: 600px;
    padding: 20px;
    background: white;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tab-pane {
    display: none;
    padding: 0;
    width: 100%;
    flex: 1;
}

.tab-pane.active {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1;
}

/* Order List */
.order-list-container {
    background: white;
}

.order-list-header {
    display: grid;
    grid-template-columns: 40px 80px 200px 100px 60px 100px 1fr 80px 80px 80px;
    background: #e3f2fd;
    border-bottom: 2px solid #0f4c75;
    font-weight: 600;
    color: #0f4c75;
}

.header-cell {
    padding: 16px 8px;
    text-align: center;
    font-size: 12px;
    border-right: 1px solid #bbb;
}

.header-cell:last-child {
    border-right: none;
}

.order-list-body {
    max-height: 400px;
    overflow: visible;
}

.order-row {
    display: grid;
    grid-template-columns: 40px 80px 200px 100px 60px 100px 1fr 80px 80px 80px;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s;
    cursor: pointer;
}

.order-row:hover {
    background-color: #f5f5f5;
}

.order-row.highlight {
    background-color: #fff3cd !important;
    border-color: #ffeaa7;
}

.order-cell {
    padding: 12px 8px;
    text-align: center;
    font-size: 13px;
    border-right: 1px solid #f0f0f0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-cell:last-child {
    border-right: none;
}

.order-list-footer {
    background: #f8f9fa;
    padding: 16px;
    border-top: 2px solid #e0e6ed;
}

.summary-info {
    display: flex;
    gap: 20px;
    font-weight: 600;
    color: #0f4c75;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #ccc;
}

.empty-state p {
    font-size: 16px;
    margin: 0;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: visible;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e6ed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.modal-header h3 {
    margin: 0;
    color: #0f4c75;
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.order-detail-content {
    display: grid;
    gap: 20px;
}

.customer-info h4,
.order-info h4 {
    margin: 0 0 12px 0;
    color: #0f4c75;
    font-size: 16px;
    border-bottom: 2px solid #e0e6ed;
    padding-bottom: 8px;
}

.customer-info p,
.order-info p {
    margin: 8px 0;
    font-size: 14px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #e0e6ed;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: #f8f9fa;
}

/* Form Styles */
.order-form-container {
    max-width: 100%;
}

.form-section {
    margin-bottom: 30px;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    padding: 20px;
    background: #f8f9fa;
}

.form-section h4 {
    margin: 0 0 20px 0;
    color: #0f4c75;
    font-size: 16px;
    border-bottom: 2px solid #0f4c75;
    padding-bottom: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #0f4c75;
    box-shadow: 0 0 0 3px rgba(15, 76, 117, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group input[type="number"] {
    text-align: right;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-primary {
    background: #0f4c75;
    color: white;
}

.btn-primary:hover {
    background: #083248;
}

/* Single column form rows for full-width inputs */
.form-row.full-width {
    grid-template-columns: 1fr;
}

/* Responsive form layout */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .modal-content {
        margin: 20px;
        width: calc(100% - 40px);
    }

    .form-section {
        padding: 15px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {

    .order-list-header,
    .order-row {
        grid-template-columns: 30px 70px 150px 90px 50px 80px 1fr 70px 70px 70px;
    }

    .header-cell,
    .order-cell {
        font-size: 11px;
        padding: 10px 6px;
    }
}

@media (max-width: 768px) {
    .search-section {
        flex-direction: column;
        gap: 12px;
    }

    .tab-header {
        flex-wrap: wrap;
    }

    .tab-btn {
        padding: 12px 16px;
        font-size: 12px;
    }

    .order-list-header,
    .order-row {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .order-cell {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        padding: 8px 16px;
    }

    .order-cell:before {
        content: attr(data-label);
        font-weight: 600;
        color: #0f4c75;
        margin-right: 8px;
    }
}

/* Yeni View'lar İçin CSS Stilleri */

/* Ana İçerik Alanı */
.dry-cleaning-content {
    flex: 1;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 20px;
    display: flex;
    flex-direction: column;
}

/* Ürün Ekleme Formu */
.add-product-container,
.new-customer-container {
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e6ed;
    padding-bottom: 20px;
}

.form-header h3 {
    color: #0f4c75;
    font-size: 24px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.product-form,
.customer-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e0e6ed;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.form-row.full-width {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #e0e6ed;
}

.btn-secondary,
.btn-primary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-primary {
    background: #2196F3;
    color: white;
}

.btn-primary:hover {
    background: #1976D2;
    transform: translateY(-2px);
}

/* Ürünler ve Müşteriler Listesi */
.products-container,
.customers-container {
    padding: 30px;
}

.products-header,
.customers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e6ed;
}

.products-header h3,
.customers-header h3 {
    color: #0f4c75;
    font-size: 24px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.products-table-container,
.customers-table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.products-table,
.customers-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.products-table thead,
.customers-table thead {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
}

.products-table th,
.customers-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 2px solid #1565C0;
}

.products-table td,
.customers-table td {
    padding: 16px;
    border-bottom: 1px solid #e0e6ed;
    font-size: 14px;
}

.products-table tbody tr,
.customers-table tbody tr {
    transition: background-color 0.2s ease;
}

.products-table tbody tr:hover,
.customers-table tbody tr:hover {
    background-color: #f8f9fa;
}

.products-table tbody tr:nth-child(even),
.customers-table tbody tr:nth-child(even) {
    background-color: #fbfcfd;
}

.loading-row td {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

/* Aksiyon Butonları */
.table-actions {
    display: flex;
    gap: 8px;
}

.action-btn-small {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.action-btn-small.edit {
    background: #ffc107;
    color: #212529;
}

.action-btn-small.edit:hover {
    background: #e0a800;
    transform: translateY(-1px);
}

.action-btn-small.delete {
    background: #dc3545;
    color: white;
}

.action-btn-small.delete:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.action-btn-small.view {
    background: #17a2b8;
    color: white;
}

.action-btn-small.view:hover {
    background: #138496;
    transform: translateY(-1px);
}

/* Responsive Design for Forms */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .add-product-container,
    .new-customer-container,
    .products-container,
    .customers-container {
        padding: 20px;
    }

    .product-form,
    .customer-form {
        padding: 20px;
    }

    .form-actions {
        flex-direction: column;
        align-items: center;
    }

    .products-header,
    .customers-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .products-table-container,
    .customers-table-container {
        overflow: visible;
    }
}

/* ===== SİPARİŞ DURUMU RENK SİSTEMİ - GÜÇLÜ KURALLAR ===== */

/* İşlemde / Yıkanıyor - Açık Mavi */
.excel-row.status-processing,
.status-processing {
    background-color: #bbdefb !important;
    background: #bbdefb !important;
    border-left: 4px solid #1976d2 !important;
}

.excel-row.status-processing:hover,
.status-processing:hover {
    background-color: #90caf9 !important;
    background: #90caf9 !important;
}

.excel-row.status-processing td,
.status-processing td {
    background-color: inherit !important;
    background: inherit !important;
}

/* Hazır / Teslim Edilecek - Turuncu */
.excel-row.status-ready,
.status-ready {
    background-color: #ffcc80 !important;
    background: #ffcc80 !important;
    border-left: 4px solid #f57c00 !important;
}

.excel-row.status-ready:hover,
.status-ready:hover {
    background-color: #ffb74d !important;
    background: #ffb74d !important;
}

.excel-row.status-ready td,
.status-ready td {
    background-color: inherit !important;
    background: inherit !important;
}

/* Teslim Edildi / Tamamlandı - Gri */
.excel-row.status-completed,
.status-completed {
    background-color: #e0e0e0 !important;
    background: #e0e0e0 !important;
    border-left: 4px solid #616161 !important;
    color: #424242 !important;
}

.excel-row.status-completed:hover,
.status-completed:hover {
    background-color: #d4edda !important;
    background: #d4edda !important;
}

.excel-row.status-completed td,
.status-completed td {
    background-color: inherit !important;
    background: inherit !important;
    color: inherit !important;
}

/* İptal - Kırmızı */
.excel-row.status-cancelled,
.status-cancelled {
    background-color: #ffcdd2 !important;
    background: #ffcdd2 !important;
    border-left: 4px solid #d32f2f !important;
    color: #c62828 !important;
}

.excel-row.status-cancelled:hover,
.status-cancelled:hover {
    background-color: #ef9a9a !important;
    background: #ef9a9a !important;
}

.excel-row.status-cancelled td,
.status-cancelled td {
    background-color: inherit !important;
    background: inherit !important;
    color: inherit !important;
}

/* ===== PRINT BUTONLARI STİLLERİ ===== */

/* Print butonları container */
.print-buttons-container {
    display: flex;
    gap: 5px;
    justify-content: center;
    align-items: center;
    padding: 4px;
}

/* Kuru temizleme tablosundaki print butonları */
.print-btn-small {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 3px;
    min-width: 28px;
    height: 24px;
    justify-content: center;
    text-align: center;
    line-height: 1;
}

.print-btn-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.print-btn-small:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Fiş yazdırma butonu */
.print-btn-small.receipt {
    background: #4CAF50;
    color: white;
}

.print-btn-small.receipt:hover {
    background: #45a049;
}

/* Etiket yazdırma butonu */
.print-btn-small.label {
    background: #FF9800;
    color: white;
}

.print-btn-small.label:hover {
    background: #F57C00;
}

/* Print butonları loading state */
.print-btn-small:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.print-btn-small.loading {
    position: relative;
    color: transparent !important;
}

.print-btn-small.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: printBtnSpin 0.8s linear infinite;
}

@keyframes printBtnSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Excel tablosunda print butonları için özel stil */
.excel-cell .print-buttons-container {
    margin: 0;
    padding: 2px;
}

.excel-cell .print-btn-small {
    font-size: 9px;
    padding: 3px 6px;
    min-width: 24px;
    height: 20px;
}

/* Ana ekrandan büyük print butonları */
.top-actions .print-btn-large {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: white;
}

.top-actions .print-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.top-actions .print-btn-large.receipt {
    background: #4CAF50;
}

.top-actions .print-btn-large.receipt:hover {
    background: #45a049;
}

.top-actions .print-btn-large.label {
    background: #FF9800;
}

.top-actions .print-btn-large.label:hover {
    background: #F57C00;
}