.cmpm-dashboard-wrapper { font-family: Tajawal, Tahoma, sans-serif; background: #f8fafc; padding: 24px; border-radius: 16px; direction: rtl; color: #1e293b; }
.cmpm-dashboard-wrapper * { box-sizing: border-box; }
.subscriber-welcome { background: #0f172a; color: #fff; padding: 24px; border-radius: 14px; margin-bottom: 18px; text-align: center; }
.subscriber-welcome h3, .subscriber-welcome small { color: #fff; }
.subscriber-welcome small { display: block; margin-top: 6px; color: #fde68a; }
.cmpm-notice { display: flex; gap: 10px; align-items: center; background: #fffbeb; border: 1px solid #fde68a; color: #713f12; border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; }
.cmpm-card, .cmpm-control-panel { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; margin-bottom: 18px; overflow: hidden; }
.cmpm-card-header { padding: 16px 18px; border-bottom: 1px solid #e2e8f0; }
.cmpm-card-header h3, .cmpm-card-header h4 { margin: 0; display: flex; gap: 8px; align-items: center; }
.cmpm-card-content { display: block; padding: 18px; }
.highlight-name, .ref-cell { color: var(--cportal-primary, #a16207); font-weight: 700; }
.cmpm-stats-card { display: flex; gap: 16px; align-items: center; color: #fff; background: var(--cportal-primary, #a16207); border-radius: 14px; padding: 20px; margin-bottom: 18px; }
.cmpm-stats-card h4, .big-number { color: #fff; margin: 0; }
.big-number { font-size: 2rem; font-weight: 700; }
.cmpm-control-panel { padding: 18px; }
.select-wrapper, .date-filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.driver-select-form select, .filter-group input { min-width: 220px; height: 42px; border: 1px solid #cbd5e1; border-radius: 8px; padding: 0 12px; }
.btn-primary-action, .btn-filter, .btn-action.view-btn, .cmpm-dropbtn { height: 42px; border-radius: 8px; padding: 0 14px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.btn-primary-action, .btn-filter { background: var(--cportal-primary, #a16207); color: #fff; border: 0; }
.btn-action.view-btn { border: 1px solid var(--cportal-primary, #a16207); color: var(--cportal-primary, #a16207); background: #fff; }
.enhanced-table { width: 100%; border-collapse: collapse; }
.enhanced-table th, .enhanced-table td { padding: 14px; border-bottom: 1px solid #e2e8f0; text-align: right; }
.enhanced-table th { background: #f8fafc; }
.cmpm-badge { background: #fef3c7; color: #92400e; border-radius: 999px; padding: 4px 10px; font-weight: 700; }
.cmpm-pagination { display: flex; gap: 6px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.cmpm-page-link { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #e2e8f0; border-radius: 8px; text-decoration: none; color: #0f172a; background: #fff; padding: 0 10px; }
.cmpm-page-link.active { background: var(--cportal-primary, #a16207); color: #fff; border-color: transparent; }
.cmpm-dropdown { position: relative; display: inline-block; }
.cmpm-dropbtn { background: #fff; border: 1px solid #cbd5e1; }
.cmpm-dropdown-content { display: none; position: absolute; left: 0; top: 100%; min-width: 200px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; z-index: 20; overflow: hidden; }
.cmpm-dropdown:hover .cmpm-dropdown-content, .cmpm-dropdown:focus-within .cmpm-dropdown-content { display: block; }
.cmpm-dropdown-content a, .cmpm-dropdown-content span { display: block; padding: 12px 14px; text-decoration: none; color: #0f172a; }
.cmpm-dropdown-content a:hover { background: #f8fafc; }
.disabled-link { color: #94a3b8; }
.no-data-msg, .error-msg { padding: 18px; border-radius: 10px; }
.error-msg { background: #fee2e2; color: #991b1b; }
@media (max-width: 768px) {
	.cmpm-dashboard-wrapper { padding: 12px; }
	.enhanced-table thead { display: none; }
	.enhanced-table, .enhanced-table tbody, .enhanced-table tr, .enhanced-table td { display: block; width: 100%; }
	.enhanced-table tr { border: 1px solid #e2e8f0; border-radius: 12px; margin-bottom: 12px; }
	.enhanced-table td { display: flex; justify-content: space-between; gap: 12px; }
	.enhanced-table td::before { content: attr(data-label); color: #64748b; font-weight: 700; }
	.cmpm-dropbtn { display: none; }
	.cmpm-dropdown, .cmpm-dropdown-content { display: flex; flex-direction: column; position: static; width: 100%; box-shadow: none; }
	.action-cell { flex-direction: column; align-items: stretch; }
}
