/* ===== POS DRAFT CART PANEL ===== */
#pdc-panel {
    background: #fff;
    border: 2px solid #e07b7b;
    border-radius: 10px;
    margin-bottom: 24px;
    font-family: inherit;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

#pdc-header {
    background: linear-gradient(135deg, #d9534f, #c0392b);
    color: #fff;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 15px;
}

#pdc-toggle-btn {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 6px;
    padding: 5px 14px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}
#pdc-toggle-btn:hover { background: rgba(255,255,255,0.35); }

#pdc-body {
    padding: 16px 18px;
    background: #fafafa;
}

.pdc-section {
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.pdc-section strong {
    width: 100%;
    margin-bottom: 4px;
    color: #444;
    font-size: 13px;
}

#pdc-draft-name {
    flex: 1;
    min-width: 180px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
#pdc-draft-name:focus { border-color: #d9534f; }

#pdc-save-btn {
    background: #d9534f;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}
#pdc-save-btn:hover { background: #c0392b; }

#pdc-new-btn {
    background: #fff;
    color: #d9534f;
    border: 1.5px solid #d9534f;
    border-radius: 6px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}
#pdc-new-btn:hover { background: #fdf2f2; }

/* DRAFT LIST */
#pdc-draft-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pdc-empty {
    color: #999;
    font-size: 13px;
    margin: 0;
    padding: 10px 0;
}

.pdc-draft-item {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.2s;
}
.pdc-draft-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }

.pdc-draft-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pdc-draft-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.pdc-draft-meta {
    font-size: 12px;
    color: #888;
}

.pdc-draft-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.pdc-btn-load {
    background: #27ae60;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}
.pdc-btn-load:hover { background: #1e8449; }

.pdc-btn-del {
    background: #f8f8f8;
    color: #c0392b;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}
.pdc-btn-del:hover { background: #fdf2f2; }

/* TOAST */
#pdc-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #2c2c2c;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 99999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    display: none;
    animation: pdc-fadein 0.3s ease;
}
#pdc-toast.success { background: #27ae60; }
#pdc-toast.error   { background: #c0392b; }

@keyframes pdc-fadein {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* MODAL */
#pdc-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99998;
    justify-content: center;
    align-items: center;
}
#pdc-modal-overlay.active { display: flex; }

#pdc-modal {
    background: #fff;
    border-radius: 12px;
    padding: 28px 32px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 40px rgba(0,0,0,0.2);
    text-align: center;
}
#pdc-modal h3 { margin: 0 0 8px; color: #333; }
#pdc-modal p  { color: #666; font-size: 14px; margin-bottom: 18px; }

#pdc-modal input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    box-sizing: border-box;
    outline: none;
}
#pdc-modal input:focus { border-color: #d9534f; }

.pdc-modal-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.pdc-modal-btns button {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}
#pdc-modal-confirm { background: #27ae60; color: #fff; }
#pdc-modal-confirm:hover { background: #1e8449; }
#pdc-modal-skip    { background: #d9534f; color: #fff; }
#pdc-modal-skip:hover { background: #c0392b; }
#pdc-modal-cancel  { background: #eee; color: #555; }
#pdc-modal-cancel:hover { background: #ddd; }
