/* חוק הבית המשותף — עיצוב משותף לדף /bayit-law, לקונסולת הוועד ולאפליקציית הדייר. משתנים עם fallback. */
.lw{position:relative;--lw-card:var(--card,#fff);--lw-ink:var(--ink,#1b2330);--lw-dim:var(--dim,#5a6577);--lw-stroke:var(--stroke,#d7deea);--lw-brand:var(--brand,#1a56db);--lw-soft:var(--brand-soft,#e8f0fe);--lw-ok:var(--ok,#0b7a43);--lw-warn:var(--warn,#8a5a00);--lw-red:var(--red,#b42318);color:var(--lw-ink);font-size:16px;line-height:1.6}
.lw *,.lw-res *{box-sizing:border-box}
.lw-sr{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.lw-tabs{display:flex;gap:6px;overflow-x:auto;padding:2px 2px 8px;margin-bottom:10px;border-bottom:1px solid var(--lw-stroke)}
.lw-tab{flex:0 0 auto;min-height:44px;padding:8px 14px;border:1px solid var(--lw-stroke);border-radius:10px;background:var(--lw-card);color:var(--lw-ink);font:inherit;font-weight:600;cursor:pointer}
.lw-tab[aria-selected="true"]{background:var(--lw-brand);border-color:var(--lw-brand);color:#fff}
.lw-card{background:var(--lw-card);border:1px solid var(--lw-stroke);border-radius:14px;padding:16px;margin:0 0 14px}
.lw-h{margin:0 0 8px;font-size:1.2rem;line-height:1.35}
.lw-h:focus{outline:3px solid var(--lw-brand);outline-offset:3px}
.lw-h4{margin:0 0 8px;font-size:1.05rem}
.lw-p{margin:0 0 10px}.lw-dim{color:var(--lw-dim)}
.lw-note{background:var(--lw-soft);border-radius:10px;padding:10px 12px;margin:10px 0}
.lw-warn,.lw-warns li{color:var(--lw-red);font-weight:600}.lw-warn-t{color:var(--lw-red);font-weight:600}.lw-ok-t{color:var(--lw-ok);font-weight:600}
.lw-warns{margin:0 0 10px;padding-inline-start:20px}
.lw-banner{list-style:none;margin:0 0 14px;padding:10px 14px;border:1px solid var(--lw-warn);border-radius:12px;background:rgba(255,193,7,.12)}
.lw-banner li{margin:4px 0}
.lw-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.lw-field{display:flex;flex-direction:column;gap:4px;margin:0 0 8px}
.lw-field label{font-weight:600}
.lw .lw-field input[type=text],.lw .lw-field input[type=date],.lw .lw-field input[type=time],.lw .lw-field select,.lw .lw-field textarea,.lw-res .lw-field input{width:100%;min-height:44px;padding:8px 10px;border:1px solid var(--lw-stroke);border-radius:10px;background:var(--lw-card);color:var(--lw-ink);font:inherit}
.lw-tbl input[type=text]{min-height:40px;padding:6px 8px;border:1px solid var(--lw-stroke);border-radius:8px;background:var(--lw-card);color:var(--lw-ink);font:inherit;width:100%;min-width:56px}
.lw-tbl input[type=checkbox],.lw-check input{width:24px;height:24px;vertical-align:middle;margin-inline-end:6px}
.lw-check{display:flex;align-items:flex-start;gap:6px;min-height:44px}
.lw :focus-visible,.lw-res :focus-visible{outline:3px solid var(--lw-brand);outline-offset:2px}
.lw-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 16px;border:1px solid var(--lw-brand);border-radius:10px;background:var(--lw-brand);color:#fff;font:inherit;font-weight:700;text-decoration:none;cursor:pointer}
.lw-btn.g{background:var(--lw-card);color:var(--lw-brand)}
.lw-btn.sm{min-height:40px;min-width:40px;padding:4px 10px}
.lw-btn[disabled]{opacity:.55;cursor:not-allowed}
.lw-link{background:none;border:0;padding:8px 4px;min-height:40px;color:var(--lw-brand);font:inherit;text-decoration:underline;cursor:pointer}
.lw-opts{display:grid;gap:8px}
.lw-opt{min-height:48px;text-align:start;padding:10px 14px;border:1px solid var(--lw-stroke);border-radius:12px;background:var(--lw-card);color:var(--lw-ink);font:inherit;cursor:pointer}
.lw-opt:hover{border-color:var(--lw-brand);background:var(--lw-soft)}
.lw-chip{display:inline-block;padding:2px 10px;margin:2px;border-radius:999px;background:var(--lw-soft);color:var(--lw-ink);font-size:.9rem}
.lw-refs{margin:8px 0}.lw-nav{margin:12px 0 0}
.lw-ans{border-inline-start:4px solid var(--lw-brand);padding-inline-start:12px;margin-top:10px}
.lw-tw{overflow-x:auto;position:relative}
.lw-tbl{border-collapse:collapse;width:100%;min-width:420px}
.lw-tbl th,.lw-tbl td{padding:8px 10px;border-bottom:1px solid var(--lw-stroke);text-align:start;vertical-align:middle}
.lw-tbl thead th{background:var(--lw-soft)}
.lw-tbl tfoot th,.lw-tbl tfoot td{border-top:2px solid var(--lw-stroke);font-weight:700}
.lw-ul{margin:0 0 10px;padding-inline-start:22px}
.lw-out{width:100%;min-height:260px;padding:10px;border:1px solid var(--lw-stroke);border-radius:10px;background:var(--lw-card);color:var(--lw-ink);font:inherit;line-height:1.7}
.lw-disc{font-size:.9rem;color:var(--lw-dim);border-top:1px solid var(--lw-stroke);padding-top:10px;margin-top:14px}
.lw-det{border:1px solid var(--lw-stroke);border-radius:10px;margin:8px 0;padding:0 12px}
.lw-det summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:600}
.lw-mine{background:var(--lw-soft);border-radius:12px;padding:12px;margin:10px 0}
.lw-res{color:var(--ink,#1b2330)}
.lw-res .lw-dim{color:var(--dim,#5a6577)}
@media (prefers-reduced-motion:no-preference){.lw-tab,.lw-btn,.lw-opt{transition:background .15s,border-color .15s}}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .lw{--lw-card:var(--card,#161c27);--lw-ink:var(--ink,#e8edf5);--lw-dim:var(--dim,#a7b1c2);--lw-stroke:var(--stroke,#2c3647);--lw-brand:var(--brand,#6ea0ff);--lw-soft:var(--brand-soft,#1d2a44);--lw-red:#ff8a80;--lw-warn:#ffcf70;--lw-ok:#5dd39e}
:root:not([data-theme="light"]) .lw-tab[aria-selected="true"],:root:not([data-theme="light"]) .lw-btn:not(.g){color:#0b1220}}
:root[data-theme="dark"] .lw{--lw-card:var(--card,#161c27);--lw-ink:var(--ink,#e8edf5);--lw-dim:var(--dim,#a7b1c2);--lw-stroke:var(--stroke,#2c3647);--lw-brand:var(--brand,#6ea0ff);--lw-soft:var(--brand-soft,#1d2a44);--lw-red:#ff8a80;--lw-warn:#ffcf70;--lw-ok:#5dd39e}
:root[data-theme="dark"] .lw-tab[aria-selected="true"],:root[data-theme="dark"] .lw-btn:not(.g){color:#0b1220}
