.ss-order-detail-wrap {
    max-width: 960px;
    margin: 30px auto;
    padding: 0 20px;
    font-family: 'Segoe UI', sans-serif;
}

/* Header */
.ss-order-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.ss-order-header h2 { margin: 0; font-size: 1.4rem; }
.ss-btn-back {
    background: #eee;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
}
.ss-order-status {
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
}
.ss-status-paid { background: #d4edda; color: #155724; }

/* Table */
.ss-items-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.ss-items-table thead tr { background: #6c3fc5; color: #fff; }
.ss-items-table th, .ss-items-table td {
    padding: 12px 14px;
    text-align: left;
    font-size: 0.9rem;
}
.ss-items-table tbody tr:hover { background: #f9f6ff; }
.ss-item-row.ss-item-paid { background: #eafaf1 !important; }

/* Qty Control */
.ss-qty-control {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ss-qty-btn {
    width: 28px; height: 28px;
    border: none;
    background: #6c3fc5;
    color: #fff;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
}
.ss-qty-btn:hover { background: #5a32a3; }
.ss-qty-input {
    width: 52px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 4px;
    font-size: 0.9rem;
}

.ss-btn-remove {
    background: none;
    border: 1px solid #e53e3e;
    color: #e53e3e;
    border-radius: 6px;
    width: 28px; height: 28px;
    cursor: pointer;
    font-size: 0.85rem;
}
.ss-btn-remove:hover { background: #e53e3e; color: #fff; }

/* Totals */
.ss-order-totals {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding: 16px 14px;
    font-size: 1.1rem;
    font-weight: 600;
    border-top: 2px solid #f0f0f0;
    background: #fff;
}

/* Add Product Panel */
.ss-add-product-panel {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    position: relative;
}
.ss-add-product-panel h3 { margin: 0 0 14px; color: #6c3fc5; }
.ss-add-product-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
}
.ss-add-product-form input[type="text"] {
    flex: 1 1 220px;
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
}
.ss-add-product-form input[type="number"] {
    width: 70px;
    padding: 9px 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
}
.ss-suggestions-box {
    position: absolute;
    top: 42px;
    left: 0;
    width: 320px;
    max-height: 220px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    z-index: 999;
}
.ss-suggestion-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 0.88rem;
    border-bottom: 1px solid #f0f0f0;
}
.ss-suggestion-item:hover { background: #f0ebff; }

/* Buttons */
.ss-btn-purple {
    background: #6c3fc5;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
}
.ss-btn-purple:hover { background: #5a32a3; }
.ss-btn-green {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
}
.ss-btn-green:hover { background: #218838; }

/* Action Bar */
.ss-action-bar {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

/* Toast */
.ss-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #2d2d2d;
    color: #fff;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 0.9rem;
    z-index: 9999;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
.ss-toast-error { background: #c0392b; }
.ss-toast-success { background: #27ae60; }
/* Status Tags */
.ss-tag-unpaid {
    color: #e67e22;
    background: #fdf2e9;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
}
.ss-tag-paid {
    color: #27ae60;
    background: #eafaf1;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
}

/* Method Selector */
.ss-select-method {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    margin-right: 10px;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Paid Row Styling */
.ss-item-paid {
    background-color: #f8fff9 !important; /* Very light green background */
}

