.af-workbench { min-width:0; }
.af-agent-strip { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px; margin:0 0 20px; padding:17px 20px; border:1px solid #e5dff5; border-radius:10px; background:#faf8ff; }
.af-agent-strip > div:first-child { display:flex; align-items:center; flex-wrap:wrap; gap:14px; }
.af-agent-strip strong { font-size:16px; color:#50369c; font-weight:600; }
.af-agent-strip span { font-size:14px; color:var(--muted); }
.af-filters { display:grid; grid-template-columns:minmax(150px,1fr) minmax(140px,.8fr) minmax(200px,1.6fr) auto; align-items:end; gap:14px; padding:18px 22px; }
.af-filters .field { margin:0; font-size:14px; }
.af-filters select,.af-filters input { min-width:0; width:100%; font-size:14px; }
.af-workbench .table { min-width:950px; }
.af-workbench .table th,.af-workbench .table td,.af-workbench .table small,.af-drawer .table th,.af-drawer .table td,.af-drawer .table small { font-size:14px; }
.af-workbench .table td strong { font-size:16px; font-weight:500; }
.af-workbench .table td:last-child:not([colspan]),.af-workbench .table th:last-child { position:sticky; right:0; background:white; box-shadow:-6px 0 10px -9px #48517b; z-index:1; }
.af-workbench .table th:last-child { background:#f8f9fc; }
.af-next { min-width:230px; max-width:360px; overflow-wrap:anywhere; }
.af-next small { margin-top:6px; }
.af-warning { display:block; color:#9b551d; font-size:14px; margin-top:4px; }
.af-workbench .tabs { overflow:auto; white-space:nowrap; }
.af-rule-group { padding:0 0 24px; margin:0 0 22px; border-bottom:1px solid var(--line); }
.af-rule-group h3,.af-drawer h3 { font-size:16px; font-weight:600; margin:22px 0 14px; }
.af-rule-group:first-child h3 { margin-top:0; }
.af-rule-group .form-grid { margin:0; }
.af-check { display:flex; gap:9px; align-items:flex-start; font-size:14px; line-height:1.7; margin:10px 0; color:var(--ink); }
.af-check input { flex:0 0 auto; width:17px; height:17px; margin:4px 0 0; accent-color:var(--indigo); }
.af-authorization { padding:12px 16px; border:1px solid #e0d8f3; background:#faf8ff; border-radius:8px; }
.af-authorization > span { display:block; margin:8px 0 3px 26px; color:var(--muted); font-size:14px; }
.af-form-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:22px; }
.af-flow { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border:1px solid var(--line); border-radius:9px; margin-bottom:16px; overflow:hidden; }
.af-flow > div { padding:16px; display:grid; gap:5px; background:#fafbfe; }
.af-flow > div+div { border-left:1px solid var(--line); }
.af-flow span { font-size:14px; color:var(--muted); }
.af-flow strong { font-size:16px; font-weight:500; }
.af-next-action { display:grid; grid-template-columns:65px 1fr; gap:10px; background:#f7f4ff; border-radius:8px; padding:14px 16px; margin-bottom:20px; font-size:14px; }
.af-event { display:grid; grid-template-columns:110px minmax(0,1fr) auto; gap:12px; padding:15px 0; border-top:1px solid var(--line); align-items:start; }
.af-event > span { color:var(--muted); font-size:14px; }
.af-event strong { font-size:16px; font-weight:500; }
.af-event p { color:var(--muted); font-size:14px; margin:5px 0 0; }
.af-simulation { padding:14px 16px; background:#fafbfe; border:1px solid var(--line); border-radius:8px; margin:20px 0; }
.af-simulation summary { cursor:pointer; font-size:14px; }
.af-simulation .actions { margin-top:12px; }
.af-simulation > small { display:block; font-size:14px; color:var(--muted); margin-top:12px; }
.af-report-amounts { display:flex; gap:14px; flex-wrap:wrap; font-size:14px; margin:12px 0 22px; color:var(--muted); }
.af-drawer details { margin:10px 0; font-size:14px; }
.af-drawer details summary { cursor:pointer; }
.af-drawer .details dd { overflow-wrap:anywhere; font-size:14px; }
@media(max-width:1400px) { .af-filters { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:650px) { .af-agent-strip { padding:15px; } .af-filters { padding:16px; } .af-query { grid-column:1/-1; } .af-flow { grid-template-columns:1fr; } .af-flow > div+div { border-left:0; border-top:1px solid var(--line); } .af-event { grid-template-columns:1fr auto; } .af-event > span { grid-column:1/-1; } .af-next-action { grid-template-columns:1fr; } }
.af-address-flow{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 16px;font-size:14px;line-height:1.7;color:#714f92}.af-address-flow span{padding:5px 8px;border:1px solid #e6dbf0;border-radius:6px;background:#faf7ff}.af-address-flow b{font-weight:400;color:#a38bb8}.af-rule-definition{padding:12px 16px;font-size:14px;line-height:1.8;color:#796a88;grid-column:1/-1;overflow-wrap:anywhere}.af-rule-group>.actions{padding:0 16px 14px}.af-authorization h3{font-size:16px;margin:0 0 12px}.af-drawer .field{min-width:0}.af-drawer .field input,.af-drawer .field select{box-sizing:border-box;max-width:100%}.af-rule-group .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:600px){.af-rule-group .form-grid{grid-template-columns:1fr}}
/* Inline aftercare shares the order list instead of another workspace. */
.af-inline-control{display:flex;flex-wrap:wrap;align-items:center;gap:18px;padding:18px 22px;margin:18px 0;border:1px solid #ded7ee;border-radius:15px;background:#fbf9ff}.af-inline-control>div:first-child{flex:1;min-width:210px}.af-inline-control strong{font-size:16px}.af-inline-control small{display:block;margin-top:6px;color:#777087;font-size:14px}.af-switches{display:flex;flex-wrap:wrap;gap:14px}.af-switches>div{display:flex;align-items:center;gap:10px;font-size:14px}.af-inline-activity{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px;min-width:0}.af-inline-activity .panel{min-width:0}.af-inline-row{display:flex;align-items:center;gap:14px;padding:14px 20px;border-bottom:1px solid #eee9f6;min-width:0}.af-inline-row>div{min-width:0;flex:1}.af-inline-row strong{font-size:15px}.af-inline-row small{display:block;margin-top:5px;font-size:14px;color:#777087;overflow-wrap:anywhere}.af-inline-row:last-child{border-bottom:0}.af-inline-row .button{flex-shrink:0}.af-drawer .af-address-flow{line-height:1.7;overflow-wrap:anywhere}.af-drawer .field select{max-width:100%;min-width:0}.af-drawer details .field{margin-top:12px}@media(max-width:1100px){.af-inline-activity{grid-template-columns:1fr}}@media(max-width:700px){.af-inline-control{align-items:stretch}.af-switches{width:100%;flex-direction:column;align-items:flex-start}.af-inline-row{padding:14px}}
.af-monitor-empty{padding:22px;font-size:15px}.af-monitor-empty>small{display:block;margin-top:9px;color:#777087;font-size:14px;line-height:1.6}.af-monitor-empty>.actions{margin-top:14px}
.af-action-options,.af-monitor-rules{display:grid;gap:12px}
.af-action-option{display:flex;align-items:flex-start;gap:12px;border:1px solid #e4dced;border-radius:10px;padding:16px;background:#fff;cursor:pointer}
.af-action-option:has(input:checked){background:#f8f4ff;border-color:#b99ce7}
.af-action-option input{width:18px;height:18px;flex:0 0 auto;margin:3px 0;accent-color:#7344d4}
.af-action-option strong,.af-monitor-rule>strong{display:block;font-size:16px;font-weight:600}
.af-action-option small,.af-monitor-rule>span,.af-rule-group .field small{display:block;color:#716a7d;font-size:14px;line-height:1.65;margin-top:7px}
.af-monitor-rule{padding:16px;border:1px solid #e4dced;border-radius:10px;background:#fcfbff}
.af-monitor-rule .field{margin:12px 0}.af-monitor-rule p{font-size:15px;line-height:1.7;margin:10px 0}
.af-rule-definition.wide{grid-column:1/-1}.af-data-boundary{padding:14px;border:1px solid #e4dced;border-radius:10px;margin-bottom:20px}
.af-data-boundary li{margin:10px 0;line-height:1.7}
