/* Money owed to you (Loans screen) + overdue row on Today */
.ow{margin-top:22px}
.ow-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.ow-head h2{margin:0}
.ow-kpis{display:grid;grid-template-columns:2fr 1fr;gap:12px;margin-top:16px}
.ow-kpis>div{background:var(--surface-2);border-radius:18px;padding:14px 16px;min-width:0}
.ow-big{font-size:24px;font-weight:600;letter-spacing:-.02em;margin:4px 0 0;overflow-wrap:anywhere}
.ow-empty{display:flex;text-align:start;align-items:center;gap:10px;color:var(--muted);font-size:14px;margin-top:16px;line-height:1.45}
.ow-empty svg{flex:none;width:20px;height:20px;color:var(--accent)}
.ow-form{margin-top:16px;padding:16px;border:1.5px dashed var(--line-2);border-radius:20px}
.ow-form[hidden]{display:none}
.ow-form h3{margin:0 0 12px;font-size:16px}
.ow-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ow-f{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--muted);min-width:0}
.ow-f .input{width:100%;min-width:0}
.ow-wide{grid-column:1/-1}
.ow-formacts{display:flex;justify-content:flex-end;gap:10px;margin-top:14px;flex-wrap:wrap}
.ow-list{display:flex;flex-direction:column;gap:10px;margin-top:16px}
.ow-item{padding:14px 16px;border-radius:20px;background:var(--surface-2);border:1px solid transparent}
.ow-item.late{border-color:var(--warn);background:linear-gradient(90deg,rgba(254,169,47,.12),transparent 70%),var(--surface-2)}
[dir=rtl] .ow-item.late{background:linear-gradient(270deg,rgba(254,169,47,.12),transparent 70%),var(--surface-2)}
.ow-item.is-done{opacity:.75}
.ow-top{display:flex;align-items:center;gap:12px}
.ow-av{width:40px;height:40px;flex:none;border-radius:14px;display:grid;place-items:center;background:var(--surface);color:var(--accent);font-weight:700}
.ow-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.ow-main b{overflow-wrap:anywhere}
.ow-main small,.ow-amt small{color:var(--muted);font-size:12px}
.ow-main small{overflow-wrap:anywhere}
.ow-amt{display:flex;flex-direction:column;align-items:flex-end;text-align:end;flex:none}
.ow-amt b{font-size:17px}
.ow-track{margin-top:12px;height:8px}
.ow-track>div{background:var(--green)}
.ow-sub,.ow-meta{font-size:13px;color:var(--muted);margin:6px 0 0}
.ow-meta{display:flex;flex-wrap:wrap;gap:4px 14px}
.ow-late{color:var(--warn)}
.ow-late b{font-weight:700}
.ow-payf{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;align-items:center}
.ow-payf .input{flex:1 1 140px;min-width:0}
.ow-acts{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px}
.ow-acts .btn svg{width:16px;height:16px}
.ow-grow{flex:1}
.ow-done{margin-top:16px}
.ow-done summary{cursor:pointer;color:var(--muted);font-size:14px;font-weight:600;padding:6px 2px}
.ow-done .ow-list{margin-top:8px}
.ow-today{display:flex;align-items:center;gap:10px;margin-top:16px;padding:12px 16px;border-radius:18px;background:var(--surface);border:1px solid var(--warn);color:var(--text);font-size:14px;text-decoration:none}
.ow-today>svg{flex:none;width:18px;height:18px;color:var(--warn)}
.ow-today>span:first-of-type{flex:1;min-width:0;overflow-wrap:anywhere}
.ow-see{display:inline-flex;align-items:center;gap:4px;color:var(--accent);font-weight:600;flex:none}
.ow-see svg{width:16px;height:16px}
@media (max-width:600px){
.ow{padding:18px}
.ow-grid{grid-template-columns:1fr}
.ow-big{font-size:20px}
.ow-item{padding:12px}
.ow-acts .btn{flex:1 1 auto;justify-content:center}
.ow-formacts .btn{flex:1 1 auto;justify-content:center}
}
