/* Product Distribution Manager - Frontend SaaS Styles */
:root {
    --pdm-blue: #2563eb;
    --pdm-blue-dark: #1d4ed8;
    --pdm-blue-light: #dbeafe;
    --pdm-green: #16a34a;
    --pdm-green-light: #dcfce7;
    --pdm-orange: #ea580c;
    --pdm-orange-light: #ffedd5;
    --pdm-teal: #0d9488;
    --pdm-teal-light: #ccfbf1;
    --pdm-red: #dc2626;
    --pdm-red-light: #fee2e2;
    --pdm-purple: #7c3aed;
    --pdm-purple-light: #ede9fe;
    --pdm-gray-50: #f9fafb;
    --pdm-gray-100: #f3f4f6;
    --pdm-gray-200: #e5e7eb;
    --pdm-gray-300: #d1d5db;
    --pdm-gray-400: #9ca3af;
    --pdm-gray-500: #6b7280;
    --pdm-gray-600: #4b5563;
    --pdm-gray-700: #374151;
    --pdm-gray-800: #1f2937;
    --pdm-gray-900: #111827;
    --pdm-bg: #f8fafc;
    --pdm-sidebar-bg: #ffffff;
    --pdm-shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --pdm-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --pdm-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.04);
    --pdm-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --pdm-radius: 12px;
    --pdm-radius-sm: 8px;
    --pdm-radius-lg: 16px;
    --pdm-transition: all 0.2s ease;
}

.pdm-frontend { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--pdm-gray-900); background: var(--pdm-bg); min-height: 100vh; }
.pdm-frontend * { box-sizing: border-box; }
.pdm-frontend button { font-family: inherit; }

/* Login */
.pdm-login-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; background: linear-gradient(135deg, #eef2ff 0%, #f0f9ff 100%); }
.pdm-login-card { background: #fff; padding: 40px; border-radius: var(--pdm-radius-lg); box-shadow: var(--pdm-shadow-lg); max-width: 420px; width: 100%; text-align: center; }
.pdm-login-logo { max-height: 64px; margin-bottom: 16px; }
.pdm-login-icon { width: 64px; height: 64px; margin: 0 auto 16px; background: var(--pdm-blue-light); color: var(--pdm-blue); border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.pdm-login-icon .dashicons { font-size: 36px; width: 36px; height: 36px; }
.pdm-login-card h2 { margin: 0 0 6px; font-size: 22px; }
.pdm-login-subtitle { color: var(--pdm-gray-500); margin: 0 0 24px; font-size: 13px; }
.pdm-login-card form p { margin-bottom: 14px; text-align: left; }
.pdm-login-card form label { font-size: 12px; font-weight: 600; color: var(--pdm-gray-700); display: block; margin-bottom: 4px; }
.pdm-login-card form input[type=text], .pdm-login-card form input[type=password] { width: 100%; padding: 10px 12px; border-radius: var(--pdm-radius-sm); border: 1px solid var(--pdm-gray-300); font-size: 14px; transition: var(--pdm-transition); }
.pdm-login-card form input[type=text]:focus, .pdm-login-card form input[type=password]:focus { outline: none; border-color: var(--pdm-blue); box-shadow: 0 0 0 3px var(--pdm-blue-light); }
.pdm-login-card form .button-primary, .pdm-login-card form input[type=submit] { width: 100%; padding: 11px; background: var(--pdm-blue); border: none; border-radius: var(--pdm-radius-sm); color: #fff; font-weight: 600; cursor: pointer; font-size: 14px; transition: var(--pdm-transition); }
.pdm-login-card form .button-primary:hover { background: var(--pdm-blue-dark); }
.pdm-login-card form .forgetmenot { display: flex; align-items: center; }
.pdm-notice { padding: 10px 14px; border-radius: var(--pdm-radius-sm); margin-top: 12px; font-size: 13px; }
.pdm-notice-error { background: var(--pdm-red-light); color: var(--pdm-red); }

/* App layout */
.pdm-app { display: flex; min-height: 100vh; }
.pdm-sidebar { width: 250px; background: var(--pdm-sidebar-bg); border-right: 1px solid var(--pdm-gray-200); display: flex; flex-direction: column; position: fixed; top: 0; left: 0; height: 100vh; z-index: 100; transition: transform 0.3s ease; box-shadow: var(--pdm-shadow-sm); }
.pdm-brand { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--pdm-gray-100); }
.pdm-brand img { max-height: 36px; max-width: 36px; border-radius: var(--pdm-radius-sm); }
.pdm-brand .dashicons { font-size: 28px; color: var(--pdm-blue); width: 28px; height: 28px; }
.pdm-brand-name { font-weight: 700; font-size: 15px; color: var(--pdm-gray-900); }
.pdm-nav { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.pdm-nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--pdm-radius-sm); text-decoration: none; color: var(--pdm-gray-600); font-size: 14px; font-weight: 500; transition: var(--pdm-transition); }
.pdm-nav-item .dashicons { font-size: 18px; width: 18px; height: 18px; color: var(--pdm-gray-400); transition: var(--pdm-transition); }
.pdm-nav-item:hover { background: var(--pdm-gray-100); color: var(--pdm-gray-900); }
.pdm-nav-item:hover .dashicons { color: var(--pdm-gray-700); }
.pdm-nav-item.active { background: var(--pdm-blue-light); color: var(--pdm-blue); }
.pdm-nav-item.active .dashicons { color: var(--pdm-blue); }
.pdm-sidebar-foot { padding: 14px; border-top: 1px solid var(--pdm-gray-100); }
.pdm-user-info { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pdm-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--pdm-blue); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.pdm-user-meta { display: flex; flex-direction: column; min-width: 0; }
.pdm-user-name { font-size: 13px; font-weight: 600; color: var(--pdm-gray-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdm-user-role { font-size: 11px; color: var(--pdm-gray-500); }
.pdm-logout { display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--pdm-red); font-size: 13px; padding: 6px 8px; border-radius: 6px; transition: var(--pdm-transition); }
.pdm-logout:hover { background: var(--pdm-red-light); }
.pdm-logout .dashicons { font-size: 16px; width: 16px; height: 16px; }

.pdm-main { flex: 1; padding: 24px; min-width: 0; margin-left: 250px; }
.pdm-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 16px; flex-wrap: wrap; }
.pdm-topbar h1 { margin: 0; font-size: 22px; font-weight: 700; color: var(--pdm-gray-900); }
.pdm-menu-toggle { display: none; background: none; border: 1px solid var(--pdm-gray-300); border-radius: 8px; padding: 6px 10px; cursor: pointer; color: var(--pdm-gray-700); }
.pdm-menu-toggle .dashicons { font-size: 20px; width: 20px; height: 20px; }
.pdm-topbar-search { position: relative; flex: 1; max-width: 360px; }
.pdm-topbar-search input { padding: 9px 12px 9px 36px; border-radius: var(--pdm-radius-sm); border: 1px solid var(--pdm-gray-300); width: 100%; font-size: 13px; transition: var(--pdm-transition); background: #fff; }
.pdm-topbar-search input:focus { outline: none; border-color: var(--pdm-blue); box-shadow: 0 0 0 3px var(--pdm-blue-light); }
.pdm-topbar-search .dashicons { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--pdm-gray-400); font-size: 18px; width: 18px; height: 18px; }

.pdm-content { min-height: 400px; }
.pdm-view { animation: pdm-fade-in 0.25s ease; }
@keyframes pdm-fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* Page actions */
.pdm-page-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.pdm-btn { display: inline-flex; align-items: center; gap: 4px; border-radius: var(--pdm-radius-sm) !important; transition: var(--pdm-transition); font-weight: 500; }
.pdm-btn:hover { transform: translateY(-1px); box-shadow: var(--pdm-shadow-md); }
.pdm-btn .dashicons { font-size: 16px; width: 16px; height: 16px; }

/* Filter bar */
.pdm-filter-bar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.pdm-filter-bar input[type=search], .pdm-filter-bar select { padding: 8px 12px; border-radius: var(--pdm-radius-sm); border: 1px solid var(--pdm-gray-300); font-size: 13px; background: #fff; }
.pdm-filter-bar input[type=search] { flex: 1; min-width: 200px; max-width: 400px; }
.pdm-filter-bar input:focus, .pdm-filter-bar select:focus { outline: none; border-color: var(--pdm-blue); box-shadow: 0 0 0 3px var(--pdm-blue-light); }

/* Cards */
.pdm-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.pdm-card { background: #fff; border-radius: var(--pdm-radius); padding: 18px; display: flex; align-items: center; gap: 14px; box-shadow: var(--pdm-shadow); border: 1px solid var(--pdm-gray-200); transition: var(--pdm-transition); }
.pdm-card:hover { transform: translateY(-2px); box-shadow: var(--pdm-shadow-md); }
.pdm-card-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pdm-card-icon .dashicons { font-size: 22px; width: 22px; height: 22px; }
.pdm-card-blue .pdm-card-icon { background: var(--pdm-blue-light); color: var(--pdm-blue); }
.pdm-card-green .pdm-card-icon { background: var(--pdm-green-light); color: var(--pdm-green); }
.pdm-card-orange .pdm-card-icon { background: var(--pdm-orange-light); color: var(--pdm-orange); }
.pdm-card-teal .pdm-card-icon { background: var(--pdm-teal-light); color: var(--pdm-teal); }
.pdm-card-red .pdm-card-icon { background: var(--pdm-red-light); color: var(--pdm-red); }
.pdm-card-purple .pdm-card-icon { background: var(--pdm-purple-light); color: var(--pdm-purple); }
.pdm-card-label { font-size: 11px; color: var(--pdm-gray-500); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.pdm-card-value { font-size: 22px; font-weight: 700; margin-top: 4px; color: var(--pdm-gray-900); }

/* Sections */
.pdm-section { background: #fff; border-radius: var(--pdm-radius); padding: 20px; box-shadow: var(--pdm-shadow); border: 1px solid var(--pdm-gray-200); margin-bottom: 20px; }
.pdm-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.pdm-section-head h2 { font-size: 16px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 6px; color: var(--pdm-gray-900); }
.pdm-section-head h2 .dashicons { color: var(--pdm-blue); }

/* Activity */
.pdm-activity-list ul { list-style: none; padding: 0; margin: 0; }
.pdm-activity-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--pdm-gray-100); }
.pdm-activity-list li:last-child { border-bottom: none; }
.pdm-act-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--pdm-blue-light); color: var(--pdm-blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pdm-act-content { flex: 1; min-width: 0; }
.pdm-act-title { font-weight: 600; font-size: 13px; text-transform: capitalize; }
.pdm-act-desc { font-size: 12px; color: var(--pdm-gray-500); margin-top: 2px; }
.pdm-act-meta { text-align: right; font-size: 11px; color: var(--pdm-gray-500); }
.pdm-act-user { display: block; font-weight: 600; color: var(--pdm-gray-700); }
.pdm-empty { color: var(--pdm-gray-500); font-style: italic; padding: 12px 0; text-align: center; }

/* Tables */
.pdm-table-wrap { background: #fff; border-radius: var(--pdm-radius); box-shadow: var(--pdm-shadow); border: 1px solid var(--pdm-gray-200); overflow-x: auto; }
.pdm-table { width: 100%; border-collapse: collapse; }
.pdm-table th { background: var(--pdm-gray-50); padding: 12px 14px; text-align: left; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--pdm-gray-600); border-bottom: 1px solid var(--pdm-gray-200); white-space: nowrap; }
.pdm-table td { padding: 12px 14px; border-bottom: 1px solid var(--pdm-gray-100); font-size: 13px; vertical-align: middle; }
.pdm-table tr:last-child td { border-bottom: none; }
.pdm-table tr:hover td { background: var(--pdm-gray-50); }
.pdm-table .pdm-code { font-weight: 600; color: var(--pdm-blue); }
.pdm-table .pdm-name { font-weight: 600; color: var(--pdm-gray-900); }
.pdm-table .pdm-money { font-weight: 600; color: var(--pdm-green); }
.pdm-table .pdm-actions { white-space: nowrap; }
.pdm-table .pdm-actions .button { padding: 4px 8px; min-height: auto; line-height: 1.4; }
.pdm-table .pdm-actions .dashicons { font-size: 16px; width: 16px; height: 16px; }
.pdm-col-check { width: 36px; }
.pdm-cell-strong { font-weight: 600; }
.pdm-cell-sub { font-size: 11px; color: var(--pdm-gray-500); }

/* Badges */
.pdm-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; text-transform: capitalize; }
.pdm-badge-blue { background: var(--pdm-blue-light); color: var(--pdm-blue); }
.pdm-badge-green { background: var(--pdm-green-light); color: var(--pdm-green); }
.pdm-badge-orange { background: var(--pdm-orange-light); color: var(--pdm-orange); }
.pdm-badge-red { background: var(--pdm-red-light); color: var(--pdm-red); }
.pdm-badge-muted { background: var(--pdm-gray-100); color: var(--pdm-gray-500); }

/* Pagination */
.pdm-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.pdm-pagination button { padding: 6px 12px; border-radius: var(--pdm-radius-sm); border: 1px solid var(--pdm-gray-200); background: #fff; cursor: pointer; font-size: 13px; transition: var(--pdm-transition); }
.pdm-pagination button:hover:not(:disabled):not(.active) { background: var(--pdm-gray-100); }
.pdm-pagination button.active { background: var(--pdm-blue); color: #fff; border-color: var(--pdm-blue); }
.pdm-pagination button:disabled { opacity: 0.5; cursor: not-allowed; }

/* Import */
.pdm-import-wrap { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 900px; }
.pdm-import-card { background: #fff; border-radius: var(--pdm-radius); padding: 24px; box-shadow: var(--pdm-shadow); border: 1px solid var(--pdm-gray-200); }
.pdm-import-card h3 { margin-top: 0; font-size: 16px; font-weight: 700; }
.pdm-dropzone { border: 2px dashed var(--pdm-gray-300); border-radius: var(--pdm-radius); padding: 40px 20px; text-align: center; cursor: pointer; transition: var(--pdm-transition); background: var(--pdm-gray-50); }
.pdm-dropzone:hover, .pdm-dropzone.dragover { border-color: var(--pdm-blue); background: var(--pdm-blue-light); }
.pdm-dropzone-inner .dashicons { font-size: 48px; width: 48px; height: 48px; color: var(--pdm-blue); }
.pdm-dropzone-formats { font-size: 12px; color: var(--pdm-gray-500); margin-top: 6px; }
.pdm-progress { margin-top: 16px; height: 6px; background: var(--pdm-gray-200); border-radius: 999px; overflow: hidden; }
.pdm-progress-bar { height: 100%; background: var(--pdm-blue); width: 0%; transition: width 0.3s; }
.pdm-preview-summary { display: flex; gap: 24px; margin-bottom: 16px; flex-wrap: wrap; }
.pdm-summary-item { display: flex; flex-direction: column; }
.pdm-summary-label { font-size: 12px; color: var(--pdm-gray-500); text-transform: uppercase; font-weight: 600; }
.pdm-summary-value { font-size: 22px; font-weight: 700; }
.pdm-summary-warn { color: var(--pdm-orange); }
.pdm-mapping-info { background: var(--pdm-gray-50); padding: 14px; border-radius: var(--pdm-radius-sm); margin-bottom: 16px; }
.pdm-mapping-info h4 { margin: 0 0 10px; font-size: 13px; }
.pdm-mapping-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; font-size: 12px; }
.pdm-mapping-list .pdm-map-item { display: flex; justify-content: space-between; padding: 4px 8px; background: #fff; border-radius: 6px; border: 1px solid var(--pdm-gray-200); }
.pdm-mapping-list .pdm-map-field { font-weight: 600; color: var(--pdm-blue); }
.pdm-mapping-list .pdm-map-arrow { color: var(--pdm-gray-400); }
.pdm-preview-table-wrap { overflow-x: auto; max-height: 360px; overflow-y: auto; border: 1px solid var(--pdm-gray-200); border-radius: var(--pdm-radius-sm); margin-bottom: 16px; }
.pdm-preview-table { width: 100%; border-collapse: collapse; }
.pdm-preview-table th { background: var(--pdm-gray-100); padding: 8px 10px; font-size: 12px; text-align: left; position: sticky; top: 0; }
.pdm-preview-table td { padding: 8px 10px; font-size: 12px; border-bottom: 1px solid var(--pdm-gray-100); }
.pdm-preview-table tr.dup-row { background: var(--pdm-orange-light); }
.pdm-import-modes { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.pdm-import-modes label { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.pdm-import-actions { display: flex; align-items: center; gap: 10px; }
.pdm-import-result .pdm-result-content { padding: 16px; background: var(--pdm-green-light); border-radius: var(--pdm-radius-sm); color: var(--pdm-green); font-weight: 600; }

/* Modal */
.pdm-modal { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.6); display: none; align-items: center; justify-content: center; z-index: 99999; padding: 20px; backdrop-filter: blur(2px); }
.pdm-modal.open { display: flex; animation: pdm-fade-in 0.2s ease; }
.pdm-modal-content { background: #fff; border-radius: var(--pdm-radius-lg); max-width: 640px; width: 100%; max-height: 90vh; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--pdm-shadow-lg); animation: pdm-modal-in 0.25s ease; }
.pdm-modal-content.pdm-modal-sm { max-width: 420px; }
@keyframes pdm-modal-in { from { transform: scale(0.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.pdm-modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--pdm-gray-200); }
.pdm-modal-head h3 { margin: 0; font-size: 16px; font-weight: 700; }
.pdm-modal-close { background: none; border: none; font-size: 28px; cursor: pointer; color: var(--pdm-gray-400); line-height: 1; padding: 0; transition: var(--pdm-transition); }
.pdm-modal-close:hover { color: var(--pdm-gray-900); }
.pdm-modal-body { padding: 20px; overflow-y: auto; }
.pdm-modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding-top: 16px; border-top: 1px solid var(--pdm-gray-100); margin-top: 16px; }
.pdm-modal-foot .button { border-radius: var(--pdm-radius-sm); }

/* Forms */
.pdm-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pdm-field { display: flex; flex-direction: column; gap: 4px; }
.pdm-field-full { grid-column: 1 / -1; }
.pdm-field label { font-size: 12px; font-weight: 600; color: var(--pdm-gray-700); }
.pdm-field input, .pdm-field select, .pdm-field textarea { padding: 9px 12px; border-radius: var(--pdm-radius-sm); border: 1px solid var(--pdm-gray-300); font-size: 13px; font-family: inherit; transition: var(--pdm-transition); background: #fff; }
.pdm-field input:focus, .pdm-field select:focus, .pdm-field textarea:focus { outline: none; border-color: var(--pdm-blue); box-shadow: 0 0 0 3px var(--pdm-blue-light); }
.pdm-form-actions { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.pdm-settings-form { background: #fff; padding: 24px; border-radius: var(--pdm-radius); box-shadow: var(--pdm-shadow); border: 1px solid var(--pdm-gray-200); max-width: 720px; }

/* Member detail */
.pdm-detail-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.pdm-detail-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--pdm-blue); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 22px; }
.pdm-detail-head h3 { margin: 0 0 4px; font-size: 18px; }
.pdm-detail-head p { margin: 0; color: var(--pdm-gray-500); font-size: 13px; }

/* Product grid (member) */
.pdm-products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.pdm-product-card { background: #fff; border: 1px solid var(--pdm-gray-200); border-radius: var(--pdm-radius); padding: 16px; box-shadow: var(--pdm-shadow); transition: var(--pdm-transition); }
.pdm-product-card:hover { box-shadow: var(--pdm-shadow-md); transform: translateY(-2px); }
.pdm-product-card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.pdm-product-card-code { font-size: 12px; color: var(--pdm-blue); font-weight: 600; }
.pdm-product-card-name { font-size: 15px; font-weight: 700; margin: 4px 0 8px; color: var(--pdm-gray-900); }
.pdm-product-card-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; border-bottom: 1px dashed var(--pdm-gray-100); }
.pdm-product-card-row:last-child { border-bottom: none; }
.pdm-product-card-row .label { color: var(--pdm-gray-500); }
.pdm-product-card-row .value { font-weight: 600; }
.pdm-product-card-actions { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.pdm-product-card-actions button { padding: 6px 10px; border-radius: var(--pdm-radius-sm); border: 1px solid var(--pdm-gray-300); background: var(--pdm-gray-50); cursor: pointer; font-size: 12px; font-weight: 600; transition: var(--pdm-transition); color: var(--pdm-gray-700); }
.pdm-product-card-actions button:hover { background: var(--pdm-blue); color: #fff; border-color: var(--pdm-blue); }
.pdm-product-card-actions button.active-pending { background: var(--pdm-orange); color: #fff; border-color: var(--pdm-orange); }
.pdm-product-card-actions button.active-delivered { background: var(--pdm-green); color: #fff; border-color: var(--pdm-green); }

/* Toast */
#pdm-toast-container { position: fixed; top: 20px; right: 20px; z-index: 999999; display: flex; flex-direction: column; gap: 8px; }
.pdm-toast { padding: 12px 18px; border-radius: var(--pdm-radius-sm); color: #fff; font-weight: 600; font-size: 13px; box-shadow: var(--pdm-shadow-lg); animation: pdm-slide-in 0.3s ease; max-width: 360px; }
.pdm-toast-success { background: var(--pdm-green); }
.pdm-toast-error { background: var(--pdm-red); }
@keyframes pdm-slide-in { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Spinner */
.pdm-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--pdm-gray-200); border-top-color: var(--pdm-blue); border-radius: 50%; animation: pdm-spin 0.8s linear infinite; }
.pdm-spinner-large { width: 40px; height: 40px; border: 4px solid var(--pdm-gray-200); border-top-color: var(--pdm-blue); border-radius: 50%; animation: pdm-spin 0.8s linear infinite; }
@keyframes pdm-spin { to { transform: rotate(360deg); } }

/* Loading overlay */
.pdm-loading-overlay { position: fixed; inset: 0; background: rgba(255,255,255,0.6); display: flex; align-items: center; justify-content: center; z-index: 99998; backdrop-filter: blur(1px); }

/* Responsive */
@media (max-width: 1024px) {
    .pdm-sidebar { transform: translateX(-100%); }
    .pdm-sidebar.open { transform: translateX(0); box-shadow: var(--pdm-shadow-lg); }
    .pdm-main { margin-left: 0; }
    .pdm-menu-toggle { display: inline-flex; align-items: center; }
}
@media (max-width: 768px) {
    .pdm-form-grid { grid-template-columns: 1fr; }
    .pdm-topbar { flex-wrap: wrap; }
    .pdm-topbar-search { max-width: 100%; }
    .pdm-main { padding: 16px; }
}
@media (max-width: 480px) {
    .pdm-cards { grid-template-columns: 1fr; }
    .pdm-products-grid { grid-template-columns: 1fr; }
    .pdm-page-actions { flex-direction: column; align-items: stretch; }
    .pdm-page-actions .button { width: 100%; justify-content: center; }
}
