/* ── My Cables page styles ─────────────────────────────────────────────────── */
.ccp-my-cables { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; max-width: 900px; margin: 0 auto; }
.ccp-my-cables-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.ccp-my-cables-header h2 { font-size: 20px; font-weight: 700; margin: 0; }
.ccp-btn-new { background: #E61F35; color: #fff; padding: 9px 18px; border-radius: 6px; text-decoration: none; font-size: 13px; font-weight: 600; }
.ccp-btn-new:hover { background: #c9192e; color: #fff; }
.ccp-my-cables-empty { text-align: center; padding: 48px; background: #f9fafb; border: 1px solid #e2e4e8; border-radius: 10px; }
.ccp-my-cables-empty span { font-size: 40px; display: block; margin-bottom: 12px; opacity: .3; }
.ccp-my-cables-empty p { color: #6b7280; margin-bottom: 16px; }
.ccp-btn-start { background: #E61F35; color: #fff; padding: 10px 24px; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 14px; }
.ccp-my-cables-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.ccp-cable-card { background: #fff; border: 1px solid #e2e4e8; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.ccp-cable-card-preview { background: #f8f9fa; height: 120px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.ccp-cable-card-preview img { width: 100%; height: 100%; object-fit: contain; }
.ccp-cable-card-preview--empty { font-size: 32px; opacity: .2; }
.ccp-cable-card-body { padding: 14px; }
.ccp-cable-card-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 11px; }
.ccp-cable-status { font-weight: 600; }
.ccp-cable-date { color: #9ca3af; }
.ccp-cable-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.ccp-chip { background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 20px; padding: 2px 9px; font-size: 11px; font-weight: 500; color: #374151; }
.ccp-cable-card-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.ccp-action-btn { flex: 1; text-align: center; padding: 8px 10px; border: 1.5px solid #d1d5db; border-radius: 6px; font-size: 11px; font-weight: 600; text-decoration: none; color: #4b5563; background: #f9fafb; cursor: pointer; transition: all .15s; white-space: nowrap; letter-spacing: .01em; }
.ccp-action-btn:hover { border-color: #E61F35; color: #E61F35; background: #fff5f5; }
.ccp-action-btn--primary { background: #E61F35; border-color: #E61F35; color: #fff; }
.ccp-action-btn--primary:hover { background: #c9192e; border-color: #c9192e; color: #fff; }
.ccp-action-btn--drawing { background: #1e3a5f; border-color: #1e3a5f; color: #fff; }
.ccp-action-btn--drawing:hover { background: #162d4a; border-color: #162d4a; color: #fff; }
.ccp-action-btn--danger:hover { border-color: #dc2626; color: #dc2626; background: #fef2f2; }

/* Search bar */
.ccp-my-cables-search { margin-bottom: 16px; position: relative; display: flex; align-items: center; gap: 10px; }
.ccp-mc-search-input { flex: 1; padding: 10px 14px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: border-color .15s, box-shadow .15s; font-family: inherit; -webkit-appearance: none; }
.ccp-mc-search-input:focus { outline: none; border-color: #E61F35; box-shadow: 0 0 0 3px rgba(230,31,53,.12); }
.ccp-mc-search-input::placeholder { color: #9ca3af; }
.ccp-mc-search-count { font-size: 12px; color: #6b7280; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Hide cards that don't match search */
.ccp-cable-card.ccp-hidden { display: none; }

/* Part number row on card */
.ccp-cable-card-part { display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px; font-size: 11px; }
.ccp-cable-card-part-label { color: #9ca3af; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.ccp-cable-card-part-value { color: #111827; font-weight: 600; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; }

/* "No results" state */
.ccp-my-cables-noresults { text-align: center; padding: 32px; background: #f9fafb; border: 1px dashed #d1d5db; border-radius: 10px; color: #6b7280; grid-column: 1 / -1; }

@media (max-width: 600px) { .ccp-my-cables-grid { grid-template-columns: 1fr; } }
