/* t146 / md3 ug (Ray pt1619u): Sunday card titles, past-week line, Other events. Same look as the program: .tdiv bars, .ci rows,
   the "+ стихи" blue button (#d7e6f6 / #8eafd4 / #17324d), the n1tag grey file chips, the past-week amber (#9a6400). */
.oev-sd{font-weight:500;color:var(--mut)}
.oev-past{display:flex;gap:8px;align-items:flex-start;padding:5px 8px;background:#fdf3dc;border-bottom:1px solid #f0dcae;color:#9a6400;font:600 12px/16px system-ui,sans-serif}
.oev-past b{font-weight:800}
html[data-th] .oev-past{background:rgba(224,176,80,.14);border-bottom-color:rgba(224,176,80,.35);color:#e0b050}
#oev{margin-top:14px;overflow:hidden}
html.lpx-pp #oev{display:none!important}
#oev .oev-h{font-size:12.5px;background:#e3e8ef}
html[data-th] #oev .oev-h{background:var(--rowbg,#2b2f36)}
#oev .tdiv .oev-r{margin-left:auto;display:flex;align-items:center;gap:6px;flex:0 0 auto}
.oev-ev{border-top:1px solid #e3e6ea}
html[data-th] .oev-ev{border-top-color:var(--rule,#444)}
#oev .oev-ev.oev-cz>.ci,#oev .oev-ev.oev-cz>.oev-ci,#oev .oev-ev.oev-cz>.oev-add{display:none!important}
.oev-ev .tdiv .lb{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.oev-nm{font-weight:500;color:var(--mut)}
.oev-nm.oev-ed{cursor:text}
.oev-ci .cl{display:block!important}
.oev-ci .tx.oev-ed{cursor:text}
.oev-ph{color:#a0a4ab}
.oev-mut{color:var(--mut);font:500 12px system-ui,sans-serif}
.oev-btn{font:600 12px Arial,sans-serif;padding:3px 10px;border:1px solid #8eafd4;background:#d7e6f6;color:#17324d;border-radius:5px;cursor:pointer;white-space:nowrap}
.oev-btn:hover{background:#c5daf2}
html[data-th] .oev-btn{background:#24344a;border-color:#6d8aaf;color:#e4eef8}
.tdiv .oev-btn{font-size:11px;padding:0 8px;line-height:16px;height:18px;align-self:center}
.oev-btn[disabled]{opacity:.45;cursor:not-allowed}
.oev-seg{display:inline-flex;border:1px solid #8eafd4;border-radius:5px;overflow:hidden;align-self:center}
.oev-seg b{font:700 10px/16px system-ui,sans-serif;padding:0 6px;color:#17324d;background:#fff;cursor:pointer}
.oev-seg b+b{border-left:1px solid #8eafd4}
.oev-seg b.oev-on{background:#2f6fd0;color:#fff}
.oev-seg.oev-dis{opacity:.45}
.oev-seg.oev-dis b{cursor:not-allowed}
.oev-file{display:inline-block;font:700 10px/14px system-ui,sans-serif;color:#fff;background:#8a8f98;border-radius:3px;padding:1px 4px;margin-left:6px;vertical-align:1px;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.oev-file.oev-img{background:#7a5bb0}
.oev-x{margin-left:auto;align-self:center;border:0;background:none;color:var(--mut);font-size:15px;line-height:1;cursor:pointer;opacity:1;padding:0 4px} /* erm: always visible, not only on hover */
.oev-ci:hover .oev-x,.oev-x:focus{color:#b42318}
.oev-add{display:flex;align-items:center;gap:10px;padding:4px 8px 6px 26px}
.oev-sp{flex:1}
.oev-more{font:600 11.5px/18px system-ui,sans-serif;color:var(--acc,#0a66c2);text-decoration:underline;text-underline-offset:2px;cursor:pointer;white-space:nowrap}
.oev-del,.oev-cancel{font:600 11.5px/18px system-ui,sans-serif;color:var(--mut);cursor:pointer;white-space:nowrap}
.oev-del:hover{color:#b42318}
.oev-form .tdiv{background:#eef4fb;flex-wrap:wrap;row-gap:4px;padding:4px 8px 4px 6px;align-items:center}
html[data-th] .oev-form .tdiv{background:rgba(10,102,194,.12)}
.oev-in{font:600 12px Arial,sans-serif;color:#17324d;border:1px solid #8eafd4;border-radius:5px;padding:2px 6px;height:22px;box-sizing:border-box;background:#fff}
.oev-in.oev-nmi{flex:1 1 140px;min-width:120px}
.oev-rin{flex:1 1 auto;min-width:0;font:15.5px/19px "PT Serif",Georgia,serif;border:0;border-bottom:1px dashed #c9d3df;background:transparent;padding:0 2px;color:inherit}
.oev-rin.oev-focus,.oev-rin:focus{border-bottom:1.5px solid var(--acc,#0a66c2);outline:0}
.oev-rin::placeholder{color:#a0a4ab;font-style:italic}
.oev-drop{outline:2px dashed var(--acc,#0a66c2);outline-offset:-2px;background:#eef4fb!important}
html[data-th] .oev-drop{background:rgba(10,102,194,.16)!important}
.oev-empty{padding:8px 10px;color:var(--mut);font:500 12.5px system-ui,sans-serif}
.oev-exp{padding:5px 10px 8px;font:500 11.5px/16px system-ui,sans-serif;color:var(--mut)}
.oev-toast{position:fixed;left:50%;bottom:16px;transform:translateX(-50%);z-index:9999;background:#1f7a4d;color:#fff;font:600 13px system-ui,sans-serif;padding:7px 12px;border-radius:8px;box-shadow:0 4px 14px rgba(0,0,0,.25)}
.oev-toast.bad{background:#b42318}
.oev-toast.oev-undo{display:flex;align-items:center;gap:8px}
.oev-toast .oev-undo-b{border:0;background:transparent;color:#fff;font:700 13px system-ui,sans-serif;cursor:pointer;padding:0;text-decoration:underline}
/* rows = the Sunday card rows (.sched .svc .ci): PT Serif 16.5px, red number, grey rule */
#oev .oev-ci{display:grid;grid-template-columns:30px minmax(0,1fr) auto;column-gap:4px;align-items:start;padding:2px 8px 2px 0;border-bottom:1px solid rgb(191,191,191);font:16.5px/20.625px "PT Serif","Noto Serif",Georgia,"Times New Roman",serif;color:rgb(17,17,17);min-height:0}
#oev .oev-ci>.no{color:rgb(168,35,42);padding:0 0 0 8px;font:inherit}
#oev .oev-ci>.cl{min-width:0}
#oev .oev-ci .tx{font:inherit;color:inherit}
#oev .oev-ci>.oev-rin{grid-column:2;min-width:0;width:100%;box-sizing:border-box}
#oev .oev-ci.oev-loose{font:500 12px/20px system-ui,sans-serif}
html[data-th] #oev .oev-ci{color:inherit;border-bottom-color:var(--rule,#444)}
#oev .oev-file{font-family:system-ui,sans-serif}
/* t148 (md3 uw): two cards - Sunday + Other events, fold, swap, no-schedule state, PDF drop */
#app.oev-cards{display:flex;flex-direction:column}
#app.oev-cards>*{order:5}
#app.oev-cards>.sched{order:1}
#app.oev-cards>#oev{order:2}
#app.oev-cards.oev-othtop>#oev{order:0;margin-top:0;margin-bottom:14px}
#app.oev-nosun>.sched{display:none!important}
#app.oev-nosun>#oev{margin-top:0}
.oev-sunh,#oev .oev-h{cursor:pointer;user-select:none;font-size:12.5px;align-items:center}
.oev-sunh{background:#e3e8ef;display:flex;gap:6px}
html[data-th] .oev-sunh{background:var(--rowbg,#2b2f36)}
.oev-sunh .lb,#oev .oev-h .lb{font-weight:700;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.oev-sunh .oev-r{margin-left:auto;display:flex;align-items:center;gap:6px}
.sched.oev-scz>:not(.oev-sunh){display:none!important}
#oev.oev-ocz>:not(.oev-h){display:none!important}
.oev-swap{border:1px solid #8eafd4;background:#fff;color:#17324d;border-radius:5px;font:700 12px/16px system-ui,sans-serif;height:18px;min-width:22px;padding:0 4px;cursor:pointer;align-self:center}
.oev-swap:hover{background:#d7e6f6}
html[data-th] .oev-swap{background:#24344a;border-color:#6d8aaf;color:#e4eef8}
.sched.oev-pdfdrop{outline:3px dashed var(--acc,#0a66c2);outline-offset:-3px;background:#eef4fb}
html[data-th] .sched.oev-pdfdrop{background:rgba(10,102,194,.16)}
/* t148: one ⇅ only - on the card that is on top */
#app.oev-cards:not(.oev-othtop) #oev .oev-swap,#app.oev-cards.oev-othtop .sched .oev-swap{display:none}
/* t149: md3 Program frame only (public page unchanged): no own date row - the md3 badge + arrows replace it */
html.oev-emb #hprev,html.oev-emb #hdate,html.oev-emb #hnext{display:none!important}
/* t155 (Ray 11:19 AM Nov 11): "+ New event" sits left of the "Events this week" title */
#oev .oev-h .oev-new{margin-right:8px;flex:0 0 auto}
/* t1945: this Sunday still waiting - hide empty 9am/12pm boxes and the Sunday title; only the waiting note + Other events stay */
#app.oev-blank .sched .svc,#app.oev-blank .sched .oev-sunh{display:none!important}
#app.oev-blank .sched .svc>.ci,#app.oev-blank .sched .svc>.vadw,#app.oev-blank .sched .svc>.tdiv>.n{display:none!important}
.oev-wait{display:flex;gap:8px;align-items:flex-start;padding:8px 10px;background:#eef3fa;border-bottom:1px solid #c5d4e8;color:#1a3a6b;font:650 13px/18px system-ui,sans-serif}
html[data-th] .oev-wait{background:rgba(110,160,220,.14);border-bottom-color:rgba(110,160,220,.35);color:#9ec1e8}

/* t1955 (Ray 11:18 PM): one short TEST bar; waiting box gets last/next check + Upload schedule */
.oev-past.oev-testbar{display:block;padding:5px 10px;background:#fdf3dc;border-bottom:1px solid #f0dcae;color:#8a5a00;font:750 13px/18px system-ui,sans-serif;letter-spacing:.02em}
.oev-wait{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;padding:8px 10px;background:#eef3fa;border-bottom:1px solid #c5d4e8;color:#1a3a6b;font:650 13px/18px system-ui,sans-serif}
.oev-wait-t{font-weight:750;flex:1 1 auto}
.oev-wait-chk{flex:1 1 100%;font:500 12px/16px system-ui,sans-serif;color:#2a4a75}
.oev-wait-up{flex:0 0 auto;margin-left:auto;height:26px;padding:0 10px;border:1px solid #3a6aa3;border-radius:8px;background:#fff;color:#1a3a6b;font:700 12px/1 system-ui,sans-serif;cursor:pointer}
.oev-wait-up:hover{background:#e4eef8}

/* t2109u: event / section header arrow is a real click target so fold always works. */
#oev .car, .oev-sunh .car{
  flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;
  width:22px;min-width:22px;height:22px;line-height:22px;text-align:center;
  cursor:pointer;user-select:none;position:relative;z-index:1
}
/* pdz (Ray): the whole No program list box, and the loaded Sunday card, take a PDF drop with a blue highlight. */
/* t841u (Raimond): the empty state is ONE row - "No program list" left, "Upload program list" right, small padding, no tall box. */
#app.oev-blank .sched{display:flex;flex-direction:column;box-sizing:border-box}
#app.oev-blank .oev-wait{
  flex:0 0 auto;min-height:0;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:8px;
  padding:6px 10px;box-sizing:border-box
}
#app.oev-blank .oev-wait .oev-wait-t{flex:1 1 auto;min-width:0}
#app.oev-blank .sched.oev-pdfdrop .oev-wait{flex-wrap:wrap}   /* only while a PDF is dragged over: room for the drop hint */
.sched.oev-pdfdrop{outline:3px dashed var(--acc,#0a66c2);outline-offset:-3px;background:#eef4fb}
html[data-th] .sched.oev-pdfdrop{background:rgba(10,102,194,.16)}
#app.oev-blank .sched.oev-pdfdrop .oev-wait{background:#eef4fb}
html[data-th] #app.oev-blank .sched.oev-pdfdrop .oev-wait{background:rgba(10,102,194,.16)}
.oev-wait-hint{display:none;flex:1 1 100%;text-align:center;font:700 12px/16px system-ui,sans-serif;color:var(--acc,#0a66c2)}
.sched.oev-pdfdrop .oev-wait-hint{display:block}
/* PDF (or other computer files) over an audio-only row: not allowed. */
.oev-nodrop{outline:2px dashed #b00020;outline-offset:-2px;background:#fde8ea!important;cursor:not-allowed}
html[data-th] .oev-nodrop{background:rgba(176,0,32,.18)!important}
.oev-nodrop-hint{display:none}
.oev-nodrop{position:relative}
.oev-nodrop::after{
  content:"Not allowed";position:absolute;right:8px;top:50%;transform:translateY(-50%);
  font:700 11px/1 system-ui,sans-serif;color:#b00020;background:#fde8ea;padding:2px 6px;
  border-radius:4px;z-index:3;pointer-events:none;white-space:nowrap
}

/* t848u/t850u/t852u (Raimond): "Waiting for program" row and "+ New event / Events this week" row are the same kind of bar:
   same height, padding, font, fill, border + radius (the cards), same small pill buttons; no gap between them; drop = highlighted row. */
#app.oev-blank .sched{margin-bottom:0;overflow:hidden}
#app.oev-blank #oev,#app.oev-blank.oev-cards>#oev{margin-top:4px}
#app.oev-blank .oev-wait.tdiv,#app.oev-blank #oev .oev-h{box-sizing:border-box;height:25px;min-height:25px!important;padding:1px 8px!important;display:flex;flex-wrap:nowrap;align-items:center;gap:6px;border:0;border-radius:0;font:700 12px/14.4px -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;background:#e3e8ef;color:#4a5568}
html[data-th] #app.oev-blank .oev-wait.tdiv{color:var(--mut)}
#app.oev-blank .oev-wait .oev-wait-t{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:inherit;color:inherit}
#app.oev-blank .oev-wait .oev-wait-t.ok{color:#1b7a3a}#app.oev-blank .oev-wait .oev-wait-t.bad{color:#b00020}
html[data-th] #app.oev-blank .oev-wait .oev-wait-t.ok{color:#6fd18b}html[data-th] #app.oev-blank .oev-wait .oev-wait-t.bad{color:#ff8a98}
#app.oev-blank .oev-wait .oev-wait-up{margin-left:auto;flex:0 0 auto}
/* drag over: the row itself lights up (not the whole card) and says what to do - still one row */
#app.oev-blank .sched.oev-pdfdrop{outline:0;background:transparent}
#app.oev-blank .sched.oev-pdfdrop .oev-wait{flex-wrap:nowrap;outline:2px dashed var(--acc,#0a66c2);outline-offset:-2px;background:#d4e6fa!important}
html[data-th] #app.oev-blank .sched.oev-pdfdrop .oev-wait{background:rgba(10,102,194,.32)!important}
#app.oev-blank .sched.oev-pdfdrop .oev-wait>:not(.oev-wait-hint){display:none}
#app.oev-blank .sched.oev-pdfdrop .oev-wait-hint{display:block;flex:1 1 auto;text-align:center;font:700 12px/14.4px system-ui,sans-serif}
/* t852u: "Events this week (2)" - count pill only when there is at least one event (the markup is not drawn at 0) */
#oev .oev-h .oev-cnt{display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:16px;padding:0 5px;box-sizing:border-box;border-radius:8px;background:#8eafd4;color:#10263d;font:700 11px/1 system-ui,sans-serif}
html[data-th] #oev .oev-h .oev-cnt{background:#3f6a9c;color:#eaf3fc}
/* t848u: the Upload program list button is the same small pill as "+ New event" */
#app.oev-blank .oev-wait .oev-wait-up{height:18px;padding:0 8px;border:1px solid #8eafd4;border-radius:5px;background:#d7e6f6;color:#17324d;font:600 11px/16px Arial,sans-serif}
#app.oev-blank .oev-wait .oev-wait-up:hover{background:#c5daf2}
html[data-th] #app.oev-blank .oev-wait .oev-wait-up{background:#24344a;border-color:#6d8aaf;color:#e4eef8}
