
/* v1.8.39 Automation Centre - scoped to the new view */
#view-automation .automation-stack{display:grid;gap:14px;max-width:1150px}
#view-automation .automation-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(195px,1fr));gap:12px}
#view-automation .automation-panel{padding:18px;background:var(--card,#172025);border:1px solid var(--line,#475057);border-radius:12px}
#view-automation .automation-panel h3{margin:0 0 10px;font-size:17px}
#view-automation .automation-status{padding:10px;border-radius:8px;background:var(--kraft-deep,#253034);margin:8px 0;overflow-wrap:anywhere}
#view-automation .automation-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
#view-automation .automation-note{font-size:12px;color:var(--ink-soft,#9ba9ad);line-height:1.65}
#view-automation .automation-table{overflow:auto;max-width:100%;border:1px solid var(--line,#475057);border-radius:9px}
#view-automation table{border-collapse:collapse;min-width:760px;width:100%}
#view-automation th,#view-automation td{text-align:left;padding:10px 9px;border-bottom:1px solid var(--line,#475057);font-size:12px}
#view-automation .automation-pill{display:inline-block;border-radius:20px;padding:4px 8px;background:var(--kraft-deep,#253034);font-size:11px}
#view-automation .automation-warn{color:#dcb96f}

/* v1.8.39.5 read-only event detail expansion */
#view-automation .automation-expand{font-size:12px;white-space:nowrap;padding:6px 10px}
#view-automation .automation-details-row[hidden]{display:none}
#view-automation .automation-details-row>td{background:var(--kraft-deep,#253034);padding:18px}
#view-automation .automation-event-detail h4{font-size:13px;margin:12px 0 8px}
#view-automation .automation-event-detail h4:first-child{margin-top:0}
#view-automation .automation-detail-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px 20px}
#view-automation .automation-detail-pair{display:flex;justify-content:space-between;gap:12px;align-items:baseline;border-bottom:1px solid var(--line,#475057);padding:5px 0;font-size:12px}
#view-automation .automation-detail-pair>span{color:var(--ink-soft,#a5adb0)}
#view-automation .automation-detail-pair>strong{font-weight:600;text-align:right;overflow-wrap:anywhere}
#view-automation .automation-detail-scroll{overflow-x:auto}
#view-automation .automation-detail-items{min-width:640px}
#view-automation .automation-detail-items td,#view-automation .automation-detail-items th{font-size:12px}

/* v1.8.39.5 read-only, order-level reconciliation */
#view-automation .automation-reconcile-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
#view-automation .automation-reconcile-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:9px;margin:12px 0}
#view-automation .automation-reconcile-tile{padding:12px;border:1px solid var(--line,#475057);border-radius:9px;display:flex;flex-direction:column;gap:4px}
#view-automation .automation-reconcile-tile strong{font-size:22px}
#view-automation .automation-reconcile-tile span{font-size:12px;color:var(--ink-soft,#a5adb0)}
#view-automation .automation-reconcile-orders,#view-automation .automation-reconcile-customs,#view-automation .automation-reconcile-warnings{margin-top:15px}
#view-automation .automation-reconcile-order{border:1px solid var(--line,#475057);border-radius:8px;margin:8px 0;overflow:hidden}
#view-automation .automation-reconcile-order>summary{cursor:pointer;padding:13px;display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}
#view-automation .automation-reconcile-order[open]>summary{border-bottom:1px solid var(--line,#475057)}
#view-automation .automation-reconcile-content{padding:12px 14px}
#view-automation .automation-reconcile-section{margin-bottom:12px}
#view-automation .automation-reconcile-section h4,#view-automation .automation-reconcile-orders h4,#view-automation .automation-reconcile-customs h4,#view-automation .automation-reconcile-warnings h4{font-size:13px;margin:10px 0}
#view-automation .automation-reconcile-line{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:9px 0;border-bottom:1px solid var(--line,#475057);font-size:12px;overflow-wrap:anywhere}
#view-automation .automation-reconcile-meta{font-size:12px;color:var(--ink-soft,#a5adb0)}
