/* POS Module → Events (resources/views/filament/pages/pos/events.blade.php). Colours from um-ui.css. */
:root { --ev-soft: #F7F7F3; --ev-limeBg: rgba(164, 230, 53, .18); }
.dark { --ev-soft: #18181B; --ev-limeBg: rgba(164, 230, 53, .14); }
@keyframes evDrawer { from { transform: translateX(40px); opacity: 0 } to { transform: none; opacity: 1 } }

.ev { display: flex; flex-direction: column; gap: 20px; max-width: 1640px; margin: 0 auto; width: 100%; color: var(--um-fg); font-variant-numeric: tabular-nums; }
.ev b { font-weight: 800; }
.ev .r { text-align: right; justify-content: flex-end; }
.ev .lime, .ev-root .lime { color: var(--um-lime) !important; }
.ev-root .red { color: var(--um-red) !important; }
.ev .ell, .ev-root .ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ev-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ev-btn-new { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 999px; border: none; background: #A4E635; color: #111; font-size: 14px; font-weight: 900; cursor: pointer; transition: all .25s var(--um-ease); }
.ev-btn-new:hover { background: #B8F25A; transform: translateY(-1px); }

.ev-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1280px) { .ev-stats { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.ev-stats .umd-kpi { gap: 6px; padding: 18px 20px; }
.ev-stat-l { font-size: 13px; color: var(--um-mut); font-weight: 700; }
.ev-stat-v { font-size: clamp(20px, 1.7vw, 26px); font-weight: 900 !important; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ev-list { padding: 0 !important; gap: 0 !important; overflow: hidden; }
.ev-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--um-line); flex-wrap: wrap; }
.ev-tabs { display: flex; background: var(--ev-soft); border: 1px solid var(--um-bd2); border-radius: 999px; padding: 4px; gap: 2px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.ev-tabs::-webkit-scrollbar { display: none; }
.ev-tabs button { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: none; border-radius: 999px; background: transparent; color: var(--um-mut); font-size: 13px; font-weight: 800; white-space: nowrap; cursor: pointer; transition: all .25s var(--um-ease); }
.ev-tabs button.on { background: var(--um-card); color: var(--um-fg); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.ev-tabs i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.ev-tabs small { font-size: 11.5px; opacity: .7; font-weight: 800; }
.ev-search { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: 999px; background: var(--ev-soft); border: 1px solid var(--um-bd2); color: var(--um-mut); flex: 0 1 380px; min-width: 220px; cursor: text; }
.ev-search.sm { height: 40px; flex: 0 1 280px; min-width: 180px; padding: 0 14px; }
.ev-search input { flex: 1; min-width: 0; border: none !important; outline: none !important; box-shadow: none !important; background: transparent !important; color: var(--um-fg); font-size: 14px; font-weight: 600; padding: 0; }
.ev-halls { display: flex; gap: 8px; padding: 12px 18px; border-bottom: 1px solid var(--um-line); overflow-x: auto; scrollbar-width: none; }
.ev-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ev-chip { flex-shrink: 0; display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--um-bd2); background: transparent; color: var(--um-fg2); font-size: 12.5px; font-weight: 800; white-space: nowrap; cursor: pointer; transition: all .2s; }
.ev-chip.lg { height: 38px; padding: 0 15px; font-size: 13px; }
.ev-chip small { font-size: 11px; opacity: .7; }
.ev-chip.on { background: var(--um-fg); border-color: var(--um-fg); color: var(--um-bg); }
.ev-chip.dash { border-style: dashed; border-color: var(--um-bd3); }
.ev-chip.dash:hover { border-color: #A4E635; }

.ev-table { display: flex; flex-direction: column; min-width: 1040px; }
.ev-tr { display: grid; grid-template-columns: 1.75fr 1.35fr 1.05fr .55fr 1.05fr 1.05fr 1.05fr 1.05fr 1fr; gap: 10px; align-items: center; padding: 14px 20px; text-align: left; }
.ev-th { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--um-mut2); padding: 12px 20px; border-bottom: 1px solid var(--um-line); }
.ev-row { border: none; background: transparent; width: 100%; border-bottom: 1px solid var(--um-line); color: var(--um-fg); font-size: 14px; cursor: pointer; transition: background .2s; animation: umFade .35s var(--um-ease) both; }
.ev-row:hover { background: var(--ev-soft); }
.ev-row.sel { background: var(--ev-limeBg); }
.ev-ev { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ev-date { width: 48px; height: 52px; border-radius: 14px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--ev-soft); border: 1px solid var(--um-bd2); color: var(--um-mut); line-height: 1; gap: 3px; }
.ev-date small { font-size: 10.5px; font-weight: 900; letter-spacing: .06em; }
.ev-date b { font-size: 19px; font-weight: 900; color: inherit; }
.ev-stack { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ev-stack b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-stack small { font-size: 12px; color: var(--um-mut); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.ev-st i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.ev-foot { display: flex; justify-content: space-between; gap: 12px; padding: 14px 22px; font-size: 13px; color: var(--um-mut); font-weight: 700; flex-wrap: wrap; }
.ev-foot b { color: var(--um-fg); }

/* overlays */
.ev-root { position: fixed; inset: 0; z-index: 60; color: var(--um-fg); font-family: 'Satoshi', system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.ev-root b { font-weight: 800; }
.ev-root button { font-family: inherit; cursor: pointer; }
.ev-root input, .ev-root textarea { font-family: inherit; }
.ev-scrim { position: absolute; inset: 0; background: rgba(10, 10, 11, .35); backdrop-filter: blur(3px); animation: umFade .2s; }
.ev-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(580px, 100vw); background: var(--um-card); border-left: 1px solid var(--um-bd2); box-shadow: var(--um-pop); display: flex; flex-direction: column; animation: evDrawer .3s var(--um-ease); }
.ev-drawer-in { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.ev-dh { padding: 20px 24px 16px; border-bottom: 1px solid var(--um-line); display: flex; flex-direction: column; gap: 14px; }
.ev-dtitle { font-size: 24px; font-weight: 900; letter-spacing: -.02em; }
.ev-x { width: 40px; height: 40px; flex-shrink: 0; border-radius: 999px; border: 1px solid var(--um-bd2); background: var(--um-card); color: var(--um-fg); display: flex; align-items: center; justify-content: center; }
.ev-x:hover { background: var(--ev-soft); }
.ev-dact { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ev-b { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--um-bd2); background: var(--um-card); color: var(--um-fg); font-size: 13px; font-weight: 800; transition: background .2s; }
.ev-b:hover { background: var(--ev-soft); }
.ev-b.dark { background: #111; color: #fff; border-color: #111; }
.ev-b.go { background: #A4E635; color: #111; border-color: #A4E635; }
.ev-b.amber { color: var(--um-amber); }
.ev-b.red { color: var(--um-red); }
.ev-b[disabled] { opacity: .5; }
.ev-dbody { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 24px 24px; display: flex; flex-direction: column; gap: 18px; }
.ev-tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ev-tri > div { background: var(--ev-soft); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ev-tri span { font-size: 12px; font-weight: 700; color: var(--um-mut); }
.ev-tri b { font-size: 18px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-sec { display: flex; flex-direction: column; gap: 10px; }
.ev-cap { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; color: var(--um-mut2); }
.ev-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; font-size: 13.5px; }
.ev-kv > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ev-kv > div.wide { grid-column: 1 / -1; }
.ev-kv span { font-size: 12px; color: var(--um-mut); font-weight: 700; }
.ev-lines { display: flex; flex-direction: column; border: 1px solid var(--um-bd); border-radius: 18px; overflow: hidden; }
.ev-lines > div { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--um-line); font-size: 13.5px; }
.ev-lines > div:last-child { border-bottom: none; }
.ev-lines span { font-weight: 700; }
.ev-lines small { color: var(--um-mut); font-weight: 700; font-size: 13px; }
.ev-lines b { min-width: 90px; text-align: right; }
.ev-sum { display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; }
.ev-sum > div { display: flex; justify-content: space-between; gap: 10px; color: var(--um-mut); font-weight: 700; }
.ev-sum > div b { color: var(--um-fg); font-weight: 700; }
.ev-sum > div.tot { font-weight: 900; font-size: 16px; padding-top: 8px; border-top: 1px solid var(--um-line); color: var(--um-fg); }
.ev-sum > div.tot b { font-weight: 900; }
.ev-sum.soft { padding: 12px 14px; border-radius: 16px; background: var(--ev-soft); }
.ev-sum.soft .tot { border-top: none; padding-top: 0; font-size: 15px; }
.ev-payrow { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: var(--ev-soft); font-size: 13.5px; }
.ev-payrow .ic { width: 28px; height: 28px; border-radius: 999px; background: var(--ev-limeBg); color: var(--um-lime); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ev-payrow .t { flex: 1; font-weight: 700; }
.ev-payrow b { font-weight: 900; }
.ev-payform { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--um-bd2); border-radius: 18px; }
.ev-money { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 13px; border: 1.5px solid var(--um-bd2); background: var(--ev-soft); box-sizing: border-box; }
.ev-money.lime { border-color: #A4E635; }
.ev-f > .ev-money, .ev-payform .ev-money { flex: none; }
.ev-payform > div > .ev-money { flex: 1; }
.ev-money:focus-within { border-color: #A4E635; }
.ev-money > span { font-size: 13px; font-weight: 800; color: var(--um-mut); }
.ev-money input { flex: 1; min-width: 0; border: none !important; outline: none !important; box-shadow: none !important; background: transparent !important; color: var(--um-fg); font-size: 15px; font-weight: 900; padding: 0; }
.ev-rec { height: 46px; padding: 0 18px; border-radius: 13px; border: none; background: #A4E635; color: #111; font-size: 13.5px; font-weight: 900; }
.ev-rec[disabled] { opacity: .5; }

/* booking form */
.ev-form { background: var(--um-bg); z-index: 70; }
.ev-form-in { display: flex; flex-direction: column; height: 100%; }
.ev-fhead { height: 72px; flex-shrink: 0; display: flex; align-items: center; gap: 14px; padding: 0 24px; background: var(--um-card); border-bottom: 1px solid var(--um-line); }
.ev-fscroll { flex: 1; min-height: 0; overflow-y: auto; }
.ev-fgrid { max-width: 1400px; margin: 0 auto; padding: 24px; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.ev-fcol { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ev-fs { background: var(--um-card); border: 1px solid var(--um-bd); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 16px; animation: umFade .3s var(--um-ease) both; }
.ev-fs-t { font-size: 17px; font-weight: 900 !important; }
.ev-g2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; align-items: start; }
.ev-g3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; align-items: end; }
.ev-f { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.ev-f.wide { grid-column: 1 / -1; }
.ev-f > span { font-size: 13px; font-weight: 800; }
.ev-f > span i { color: var(--um-red); font-style: normal; margin-left: 3px; }
.ev-f > input, .ev-f > textarea, .ev-extra > input, .ev-hrow input {
    height: 48px; border-radius: 14px; border: 1.5px solid var(--um-bd2); background: var(--ev-soft); padding: 0 14px; color: var(--um-fg);
    font-size: 14.5px; font-weight: 700; outline: none; box-shadow: none; width: 100%; box-sizing: border-box;
}
.ev-f > textarea { height: auto; min-height: 90px; padding: 12px 14px; font-weight: 600; resize: vertical; line-height: 1.5; }
.ev-f > input:focus, .ev-f > textarea:focus, .ev-extra > input:focus, .ev-hrow input:focus { border-color: #A4E635; }
.dark .ev-f > input[type=date] { color-scheme: dark; }
.ev-seg { display: flex; background: var(--ev-soft); border: 1.5px solid var(--um-bd2); border-radius: 14px; padding: 3px; gap: 2px; height: 48px; box-sizing: border-box; flex-shrink: 0; }
.ev-seg button { flex: 1; white-space: nowrap; border: none; border-radius: 11px; font-size: 13.5px; font-weight: 800; background: transparent; color: var(--um-mut); padding: 0 13px; transition: all .2s; }
.ev-seg button.on { background: var(--um-card); color: var(--um-fg); box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.ev-seg.dark button.on { background: var(--um-fg); color: var(--um-bg); }
.ev-seg.pill { border-radius: 999px; height: 44px; border-width: 1px; padding: 4px; }
.ev-seg.pill button { border-radius: 999px; padding: 0 16px; }
.ev-step { display: flex; align-items: center; height: 48px; border-radius: 14px; border: 1.5px solid var(--um-bd2); background: var(--ev-soft); padding: 0 4px; box-sizing: border-box; }
.ev-step button { width: 40px; height: 38px; border: none; border-radius: 10px; background: transparent; font-size: 18px; font-weight: 800; color: var(--um-fg); }
.ev-step button:hover { background: var(--um-card); }
.ev-step input { flex: 1; min-width: 0; text-align: center; border: none !important; outline: none !important; box-shadow: none !important; background: transparent !important; color: var(--um-fg); font-size: 16px; font-weight: 900; padding: 0; }
.ev-hallgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.ev-hall { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; border-radius: 18px; border: 1.5px solid var(--um-bd); background: var(--um-card); text-align: left; color: var(--um-fg); transition: all .2s; }
.ev-hall:hover { border-color: var(--um-bd3); }
.ev-hall.on { border-color: #A4E635; background: var(--ev-limeBg); }
.ev-hall b { font-size: 14.5px; font-weight: 900; }
.ev-hall small { font-size: 12.5px; color: var(--um-mut); font-weight: 700; }
.ev-hall span { font-size: 13px; font-weight: 800; }
.ev-hall em { font-style: normal; font-size: 11.5px; font-weight: 800; }
.ev-warn { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; background: rgba(245, 181, 71, .14); color: var(--um-amber); font-size: 13px; font-weight: 800; }
.ev-perhead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px; border-radius: 18px; background: var(--ev-soft); }
.ev-perhead .ev-money { flex: 0 0 220px; background: var(--um-card); height: 48px; }
.ev-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; max-height: 300px; overflow-y: auto; padding: 2px; }
.ev-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--um-bd); background: var(--um-card); text-align: left; color: var(--um-fg); transition: all .2s; }
.ev-item:hover { border-color: #A4E635; }
.ev-item.on { border-color: #A4E635; background: var(--ev-limeBg); }
.ev-item .ev-stack { flex: 1; }
.ev-item .ev-stack b { font-size: 13.5px; font-weight: 700; white-space: normal; line-height: 1.25; }
.ev-item .ic { width: 26px; height: 26px; border-radius: 999px; background: var(--ev-soft); color: var(--um-fg2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ev-item.on .ic { background: #A4E635; color: #111; }
.ev-tagx { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 6px 0 13px; border-radius: 999px; background: var(--ev-limeBg); font-size: 13px; font-weight: 800; }
.ev-tagx button { width: 24px; height: 24px; border: none; border-radius: 999px; background: transparent; color: var(--um-fg2); font-size: 15px; line-height: 1; }
.ev-tagx button:hover { background: var(--um-card); }
.ev-mlines { display: flex; flex-direction: column; border: 1px solid var(--um-bd); border-radius: 18px; overflow: hidden; }
.ev-mlines > div { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 12px; align-items: center; padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--um-line); }
.ev-mlines > div:last-child { border-bottom: none; }
.ev-mlines b.r { min-width: 100px; font-weight: 900; }
.ev-qty { display: flex; align-items: center; background: var(--ev-soft); border: 1px solid var(--um-bd2); border-radius: 999px; padding: 2px; }
.ev-qty button { width: 30px; height: 30px; border: none; border-radius: 999px; background: transparent; font-weight: 800; color: var(--um-fg); }
.ev-qty input { width: 52px; text-align: center; border: none !important; outline: none !important; box-shadow: none !important; background: transparent !important; color: var(--um-fg); font-size: 14px; font-weight: 900; padding: 0; }
.ev-del { width: 32px; height: 32px; border: none; border-radius: 999px; background: transparent; color: var(--um-mut); display: flex; align-items: center; justify-content: center; }
.ev-del:hover { background: var(--ev-soft); }
.ev-del.sq { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--um-bd2); background: var(--um-card); }
.ev-extra { display: grid; grid-template-columns: minmax(0, 1fr) 200px auto; gap: 8px; }
.ev-extra > input { height: 46px; }
.ev-fsum { position: sticky; top: 0; background: var(--um-card); border: 1px solid var(--um-bd); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--um-shadow); }
.ev-bigtot { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--um-line); }
.ev-bigtot span { font-size: 14px; font-weight: 800; }
.ev-bigtot b { font-size: 28px; font-weight: 900; letter-spacing: -.02em; }
.ev-g3s { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ev-stbtn { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 6px; border-radius: 14px; border: 1.5px solid var(--um-bd2); background: transparent; color: var(--um-fg); transition: all .2s; }
.ev-stbtn b { font-size: 13px; font-weight: 900; }
.ev-stbtn small { font-size: 11px; font-weight: 700; color: var(--um-mut); }
.ev-err { font-size: 12.5px; font-weight: 700; color: var(--um-red); line-height: 1.5; }
.ev-save { height: 58px; border-radius: 18px; border: none; background: #A4E635; color: #111; font-size: 15.5px; font-weight: 900; transition: all .25s; }
.ev-save:hover { filter: brightness(1.05); }
.ev-save.off { background: var(--um-bd2); color: var(--um-mut); }
.ev-save[disabled] { opacity: .7; }
.ev-discard { height: 44px; border-radius: 14px; border: 1px solid var(--um-bd2); background: transparent; color: var(--um-fg); font-size: 13.5px; font-weight: 800; }

/* documents */
.ev-docwrap { z-index: 90; background: rgba(10, 10, 11, .5); backdrop-filter: blur(6px); display: flex; flex-direction: column; align-items: center; padding: 24px; overflow-y: auto; animation: umFade .2s; }
.ev-docwrap.center { justify-content: center; }
.ev-doctools { width: 100%; max-width: 820px; display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; color: #fff; }
.ev-doctools > b { font-size: 15px; font-weight: 900; }
.ev-docseg { display: flex; background: #2A2A2D; border-radius: 999px; padding: 4px; gap: 2px; }
.ev-docseg button { height: 34px; padding: 0 14px; white-space: nowrap; border: none; border-radius: 999px; font-size: 13px; font-weight: 800; background: transparent; color: #C9C9C3; }
.ev-docseg button.on { background: #A4E635; color: #0A0A0B; }
.ev-dbtn { height: 42px; padding: 0 16px; white-space: nowrap; border-radius: 999px; border: none; background: #2A2A2D; color: #fff; font-size: 13.5px; font-weight: 800; }
.ev-dbtn.line { background: transparent; border: 1px solid #3A3A3D; }
.ev-dbtn.go { background: #A4E635; color: #111; font-weight: 900; padding: 0 18px; }
.ev-a4 { width: 100%; max-width: 820px; background: #fff; color: #121212; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); padding: 44px 48px; box-sizing: border-box; display: flex; flex-direction: column; gap: 26px; font-size: 13px; font-weight: 600; animation: umFade .25s var(--um-ease); }
.ev-a4 .mut { color: #6B6B66; }
.ev-a4 .cap { font-size: 11px; font-weight: 900; letter-spacing: .1em; color: #9A9A94; }
.a4-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.a4-badge { margin-top: 4px; font-size: 11.5px; font-weight: 900; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; }
.a4-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid #E6E6E0; border-bottom: 1px solid #E6E6E0; }
.a4-parties > div { display: flex; flex-direction: column; gap: 5px; }
.a4-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px 110px 120px; gap: 12px; padding: 9px 0; border-bottom: 1px solid #EFEFEA; font-weight: 700; }
.a4-row .r { text-align: right; }
.a4-row.head { font-size: 11px; font-weight: 900; letter-spacing: .08em; color: #9A9A94; border-bottom: 1.5px solid #121212; padding: 0 0 8px; }
.a4-row.sub { font-weight: 600; color: #6B6B66; }
.a4-tot { width: 320px; display: flex; flex-direction: column; gap: 7px; }
.a4-tot > div { display: flex; justify-content: space-between; }
.a4-tot .big { font-size: 17px; font-weight: 900; padding-top: 8px; border-top: 1.5px solid #121212; }
.a4-tot .due { font-weight: 900; padding: 8px 10px; background: #F3F3EF; border-radius: 6px; }
.a4-terms { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: #6B6B66; line-height: 1.5; }
.a4-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 30px; }
.a4-sign > div { border-top: 1px solid #121212; padding-top: 6px; font-size: 12px; color: #6B6B66; }
.ev-therm { width: 302px; background: #fff; color: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); padding: 16px 12px 22px; box-sizing: border-box; display: flex; flex-direction: column; gap: 8px; font-family: 'Satoshi', Arial, sans-serif; font-size: 12.5px; font-weight: 700; line-height: 1.4; animation: umFade .25s var(--um-ease); }
.ev-therm > div { display: flex; flex-direction: column; gap: 1px; }
.ev-therm .c { align-items: center; text-align: center; }
.ev-therm .lr { display: flex; flex-direction: row; justify-content: space-between; gap: 10px; }
.ev-therm hr { border: none; border-top: 1px dashed #121212; margin: 2px 0; }
.ev-therm hr.solid { border-top: 2px solid #000; }

.ev-set { width: 100%; max-width: 640px; background: var(--um-card); color: var(--um-fg); border-radius: 28px; box-shadow: var(--um-pop); padding: 26px; display: flex; flex-direction: column; gap: 16px; animation: umFade .25s var(--um-ease); margin: auto; }
.ev-hrow { display: grid; grid-template-columns: minmax(0, 1.4fr) .7fr 1fr; gap: 8px; }
.ev-hrow input { height: 44px; }
.ev-hrow.head { font-size: 11.5px; font-weight: 800; color: var(--um-mut); }
.ev-toast { z-index: 100; }

.ev-in { animation: evDrawer .3s var(--um-ease); }

@media (max-width: 1100px) { .ev-fgrid { grid-template-columns: minmax(0, 1fr); } .ev-fsum { position: static; } }
@media (max-width: 640px) {
    .ev-fgrid { padding: 14px; }
    .ev-extra { grid-template-columns: minmax(0, 1fr) 120px auto; }
    .ev-a4 { padding: 24px 18px; }
    .a4-row { grid-template-columns: minmax(0, 1fr) 50px 70px 80px; }
    .ev-tri b { font-size: 15px; }
}

@media print {
    /* Only while an event document is open: this file loads on every panel page */
    body:has(.ev-print) * { visibility: hidden !important; }
    body:has(.ev-print) .ev-print, body:has(.ev-print) .ev-print * { visibility: visible !important; }
    .ev-docwrap { position: static !important; background: none !important; backdrop-filter: none !important; padding: 0 !important; overflow: visible !important; }
    .ev-print { position: absolute !important; left: 0; top: 0; box-shadow: none !important; border-radius: 0 !important; animation: none !important; margin: 0 !important; }
    .ev-a4.ev-print { max-width: none !important; width: 100% !important; padding: 0 !important; }
}
