.siparis-formu-wrapper {
    max-width: 100%;
    margin: 0;
    padding: 20px;
    background: #fff;
}

@media (min-width: 960px) {
    .siparis-formu-wrapper { max-width: 1100px; margin: 20px auto; }
}

.siparis-formu-wrapper h1 { font-size: 24px; margin-bottom: 12px; }
.siparis-formu-wrapper h2 {
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    margin: 16px 0;
    font-size: 20px; /* başlıkları biraz küçült */
}

.customer-info label,
.customer-info input[type="text"],
.customer-info input[type="email"] {
    margin-bottom: 6px; /* daha az boşluk */
}

.customer-info label {
    display: inline-block; /* sola hizalı etiket */
    width: 140px;
    min-width: 110px;
    font-size: 13px;
    color: #6b7280; /* gri ton */
    font-weight: 600;
    vertical-align: middle;
    margin-right: 12px;
}

.customer-info input[type="text"],
.customer-info input[type="email"] {
    display: inline-block; /* etiketin sağına */
    width: calc(100% - 160px);
    padding: 8px; /* biraz artırıldı */
    line-height: 1.3;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: #fff;
}

/* Placeholder daha küçük ve yumuşak renk */
.customer-info input::placeholder,
#product-details-table input::placeholder,
#general_notes::placeholder {
    font-size: 12px;
    color: #9ca3af;
}

/* Küçük ekranlarda tekrar dikey hizala */
@media (max-width: 640px) {
    .customer-info label { display:block; width:100%; margin-right:0; }
    .customer-info input[type="text"],
    .customer-info input[type="email"] { display:block; width:100%; }
}

.customer-info input[type="text"]:focus,
.customer-info input[type="email"]:focus {
    outline: none;
    border-color: #1e90ff;
    box-shadow: 0 0 0 3px rgba(30,144,255,0.10);
}

#product-details-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
    table-layout: fixed;
}

#product-details-table th,
#product-details-table td {
    border: 1px solid #eee;
    padding: 6px; /* satır yüksekliğini küçült */
    text-align: left;
}

#product-details-table th {
    background-color: #f5f5f5;
}

/* Sütun genişlikleri */
#product-details-table th:nth-child(1),
#product-details-table td:nth-child(1) { width: 18%; }
#product-details-table th:nth-child(2),
#product-details-table td:nth-child(2) { width: 18%; }
#product-details-table th:nth-child(3),
#product-details-table td:nth-child(3) { width: 10%; }
#product-details-table th:nth-child(4),
#product-details-table td:nth-child(4) { width: 10%; }
#product-details-table th:nth-child(5),
#product-details-table td:nth-child(5) { width: 10%; }
#product-details-table th:nth-child(6),
#product-details-table td:nth-child(6) { width: 12%; }
#product-details-table th:nth-child(7),
#product-details-table td:nth-child(7) { width: 16%; }
#product-details-table th:nth-child(8),
#product-details-table td:nth-child(8) { width: 70px; padding: 4px 6px; }

#product-details-table input[type="text"],
#product-details-table input[type="number"],
#product-details-table select {
    width: 100%;
    padding: 8px; /* biraz artırıldı */
    line-height: 1.3;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
}

/* Modern butonlar */
#add-product-row {
    background: #1e90ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 14px;
    cursor: pointer;
    float: right; /* sağa hizala */
    margin-bottom: 16px;
}
#add-product-row:hover { background:#1977d2; }

.sf-remove-row {
    background: #ef4444 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 6px 6px !important;
    display: block;          /* önemli */
    margin: 0 auto;
}
.sf-remove-row:hover { background:#dc2626 !important; }

#add-product-row + h2 {
    clear: both;
    margin-top: 28px; /* butondan uzaklaştır */
}

#general_notes {
    width: 100%;
    padding: 12px; /* biraz artırıldı */
    line-height: 1.35;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 20px;
    box-sizing: border-box;
    clear: both; /* sağdaki buton float'ını temizle */
}

.button-primary {
    background-color: #10b981;
    color: #fff;
    border-color: #10b981;
    padding: 12px 18px;
    border-radius: 8px;
    cursor: pointer;
}

.button-primary:hover { background-color: #0ea371; }

.sf-alert{display:none;margin:16px 0;padding:14px 16px;border-radius:8px;border:1px solid transparent}
.sf-alert-success{display:block;background:#ecfdf5;border-color:#a7f3d0;color:#065f46}
.sf-alert-error{display:block;background:#fef2f2;border-color:#fecaca;color:#991b1b}
