/* StockPilot — custom component styles (loaded via FilamentAsset, not Tailwind JIT) */

/* ── PO Activity Log (.pol-*) ─────────────────────────────────────────────── */

.pol-meta { font-size: 10px; color: #9ca3af; margin-bottom: 8px; }

.pol-table { border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.dark .pol-table { border-color: #374151; }

.pol-row {
    padding: 8px 12px;
    border-bottom: 1px solid #f3f4f6;
    background: #ffffff;
}
.dark .pol-row { border-color: rgba(55, 65, 81, .6); background: #111827; }
.pol-row:last-child { border-bottom: none; }

.pol-row-sync { background: #f9fafb; }
.dark .pol-row-sync { background: rgba(31, 41, 55, .3); }

.pol-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.pol-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.pol-dot-xs { width: 4px; height: 4px; }

.pol-ts {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
    color: #9ca3af;
    line-height: 1;
    width: 96px;
    flex-shrink: 0;
}
.dark .pol-ts { color: #6b7280; }

.pol-tag {
    display: inline-flex;
    align-items: center;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    line-height: 1;
    white-space: nowrap;
}
.dark .pol-tag { background: rgba(14, 165, 233, .18); color: #7dd3fc; }

.pol-user {
    font-size: 10px;
    color: #9ca3af;
    line-height: 1;
    margin-left: auto;
    flex-shrink: 0;
}
.dark .pol-user { color: #6b7280; }

.pol-diff { margin-top: 6px; padding-left: 18px; }

.pol-diff-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
    font-size: 10px;
    line-height: 1.4;
    margin-bottom: 2px;
}
.pol-diff-label { width: 90px; flex-shrink: 0; color: #9ca3af; }
.pol-diff-old   { color: #f87171; text-decoration: line-through; }
.pol-diff-arrow { color: #d1d5db; }
.pol-diff-new   { color: #22c55e; font-weight: 500; }

.dark .pol-diff-label { color: #6b7280; }
.dark .pol-diff-arrow { color: #4b5563; }

/* Dot colour palette */
.dc-green   { background: #22c55e; }
.dc-blue    { background: #3b82f6; }
.dc-emerald { background: #10b981; }
.dc-indigo  { background: #6366f1; }
.dc-teal    { background: #14b8a6; }
.dc-red     { background: #ef4444; }
.dc-darkred { background: #b91c1c; }
.dc-amber   { background: #f59e0b; }
.dc-purple  { background: #a855f7; }
.dc-orange  { background: #f97316; }
.dc-slate   { background: #94a3b8; }
.dc-gray    { background: #d1d5db; }
