/* The working committee's pages (/society), on top of admin.css (the console's look). */

/* ---- Sidebar: the society ---------------------------------------------------------------------------------- */
.soc-card { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 12px; border-radius: 14px; background: var(--mist); border: 1px solid var(--line); }
.soc-card__mark { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: #fff; font: 700 0.82rem "Outfit", sans-serif; }
.soc-card__text { min-width: 0; flex: 1; display: grid; }
.soc-card__text b { color: var(--ink); font-size: 0.9rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soc-card__text small { color: var(--muted); font-size: 0.76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soc-card__switch { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--text-2); }
.soc-card__switch:hover { background: var(--surface); color: var(--primary); }
.soc-card__switch svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.side__nav a span { min-width: 0; line-height: 18px;}
/* Two-line labels ("Maintenance payments") mustn't squeeze the icon. */
.side__nav a svg { flex: none; }
.side__tag { margin-left: auto; padding: 1px 7px; border-radius: 999px; background: var(--mist); color: var(--muted); font-size: 0.68rem; font-style: normal; font-weight: 600; white-space: nowrap; }

/* ---- Common ---------------------------------------------------------------------------------------------------- */
.pill--muted { background: var(--mist); color: var(--muted); }
.soc-in { color: #087b86; }
.soc-out { color: #c4521f; }
.soc-warn { color: var(--amber); }
.soc-of { font: 600 1rem "Inter", sans-serif; color: var(--muted); letter-spacing: 0; }
.soc-small { margin: 0; font-size: 0.82rem; }
.soc-h2 { margin: 26px 0 12px; font-size: 1.05rem; color: var(--ink); }
.soc-note { margin: -6px 0 12px; font-size: 0.86rem; }
.page-head__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.page-head__actions form { display: flex; gap: 8px; align-items: center; margin: 0; }
.soc-glance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.soc-glance--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.soc-glance .subs-fig b { font-size: 1.6rem; }
.soc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.soc-period { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.soc-period__fy { font-size: 0.88rem; }

/* ---- Home ------------------------------------------------------------------------------------------------------- */
.soc-hero { display: flex; justify-content: space-between; gap: 16px; padding: 22px 24px; margin-bottom: 16px; border-radius: var(--r); background: var(--petrol); color: #fff; background-image: radial-gradient(circle at 92% 10%, rgba(47, 175, 145, 0.35), transparent 45%), radial-gradient(circle at 70% 120%, rgba(11, 156, 169, 0.35), transparent 50%); }
.soc-hero h1 { margin: 2px 0 6px; color: #fff; font-size: 1.7rem; }
.soc-hero .muted { color: rgba(255, 255, 255, 0.7); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.soc-hero__hello { margin: 0; color: #9be7c9; font-weight: 600; font-size: 0.92rem; }
.soc-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.soc-opt { position: relative; display: grid; gap: 4px; padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: border-color 0.12s, transform 0.12s; }
.soc-opt:hover { border-color: #b9dcd9; transform: translateY(-1px); }
.soc-opt b { font: 700 1.02rem "Outfit", sans-serif; }
.soc-opt small { color: var(--text-2); font-size: 0.85rem; }
.soc-opt__icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 6px; border-radius: 12px; }
.soc-opt__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.soc-opt__icon--violet { background: #efeafd; color: #6a4fd8; }
.soc-opt__icon--teal { background: var(--teal-50); color: var(--primary); }
.soc-opt__icon--indigo { background: #e9edfb; color: #3f56c8; }
.soc-opt__badge { position: absolute; top: 16px; right: 16px; padding: 3px 9px; border-radius: 999px; background: var(--amber-50); color: var(--amber); font-size: 0.76rem; font-weight: 700; }
.soc-inapp { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.soc-inapp li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px dashed var(--line); }
.soc-inapp b { font-size: 0.9rem; color: var(--ink); }
.soc-inapp small { font-size: 0.8rem; color: var(--muted); }

/* ---- Sign in, choose, disabled ------------------------------------------------------------------------------------- */
.soc-help { display: grid; gap: 6px; padding: 14px 16px; border-radius: 12px; background: var(--teal-50); color: var(--ink); font-size: 0.88rem; }
.soc-help ol { margin: 0; padding-left: 20px; display: grid; gap: 2px; }
.soc-help small { color: var(--text-2); }
.soc-choose { display: grid; gap: 10px; max-width: 640px; }
.soc-choose form { margin: 0; }
.soc-choose__item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); font: inherit; text-align: left; cursor: pointer; color: var(--ink); }
.soc-choose__item:hover, .soc-choose__item.is-on { border-color: var(--teal); }
.soc-choose__text { flex: 1; display: grid; min-width: 0; }
.soc-choose__text b { font: 700 1rem "Outfit", sans-serif; }
.soc-choose__text small { color: var(--muted); font-size: 0.84rem; }
.soc-choose__go { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; }
.soc-disabled svg { width: 42px; height: 42px; margin: 0 auto 8px; fill: none; stroke: var(--rose); stroke-width: 1.6; }

/* ---- Reports ---------------------------------------------------------------------------------------------------- */
.soc-pending { margin-bottom: 16px; }
.soc-chart { position: relative; padding: 16px 18px 10px; margin-bottom: 16px; }
.soc-two .soc-chart { margin-bottom: 0; }
.soc-chart__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 16px; margin-bottom: 8px; }
.soc-chart__head h2 { margin: 0 0 2px; font-size: 1rem; }
.soc-chart__head .muted { font-size: 0.82rem; }
.soc-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.soc-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.soc-key--in { background: #0B9CA9; }
.soc-key--out { background: #E0703A; }
.soc-bar { transition: opacity 0.12s; }
.soc-bar--in { fill: #0B9CA9; }
.soc-bar--out { fill: #E0703A; }
.soc-line { fill: none; stroke: #0B9CA9; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.soc-dot { fill: #fff; stroke: #0B9CA9; stroke-width: 2; }
.soc-slot { cursor: pointer; }
.soc-slot.is-future { cursor: default; }
.soc-slot:hover .au__hit, .soc-slot:focus-visible .au__hit { fill: rgba(11, 156, 169, 0.06); }
.soc-slot:focus-visible { outline: none; }
.soc-slot.is-on .au__hit { fill: rgba(11, 156, 169, 0.08); }
.soc-slot.is-on .soc-dot { fill: #0B9CA9; }
.soc-slot.is-future .au__axis { fill: #c3ccca; }
.soc-axis--on { fill: var(--ink); font-weight: 700; }
.soc-break { padding: 16px 18px; }
.soc-break h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0 0 12px; font-size: 1rem; }
.soc-break h2 small { font-weight: 500; font-size: 0.82rem; }
.soc-break ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.soc-break li { display: grid; gap: 4px; }
.soc-break__row { display: flex; justify-content: space-between; gap: 8px; font-size: 0.9rem; color: var(--ink); }
.soc-break__track { height: 8px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.soc-break__fill { display: block; height: 100%; border-radius: 999px; }
.soc-break__fill--in { background: #0B9CA9; }
.soc-break__fill--out { background: #E0703A; }
.soc-entries { margin-bottom: 16px; }
.soc-entries__h { display: flex; align-items: baseline; gap: 8px; margin: 0; padding: 16px 18px 6px; font-size: 1rem; }
.soc-entries__none { padding: 6px 18px 18px; margin: 0; }

/* ---- Residents ---------------------------------------------------------------------------------------------------- */
.soc-res { display: grid; gap: 16px; }
.soc-res--towers { grid-template-columns: 230px minmax(0, 1fr); align-items: start; }
.soc-towers { display: grid; gap: 6px; position: sticky; top: 16px; }
.soc-towers a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; }
.soc-towers a:hover { border-color: #b9dcd9; }
.soc-towers a.is-on { border-color: var(--teal); background: var(--teal-50); }
.soc-towers b { font-size: 0.92rem; }
.soc-towers small { font-size: 0.78rem; color: var(--muted); }
.soc-seats { padding: 16px 18px 18px; }
.soc-seats__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.soc-seats__head h2 { margin: 0; font-size: 1.05rem; }
.soc-seats__head p { margin: 2px 0 0; font-size: 0.85rem; }
.soc-seats__find { min-width: 240px; }
.soc-seats__none { margin: 14px 0 0; }
.soc-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.soc-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-size: 0.84rem; font-weight: 600; text-decoration: none; }
.soc-chip:hover { border-color: #b9dcd9; color: var(--ink); }
.soc-chip.is-on { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.soc-chip__n { min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--mist); color: var(--ink); font-size: 0.74rem; text-align: center; }
.soc-chip.is-on .soc-chip__n { background: rgba(255, 255, 255, 0.18); color: #fff; }
.soc-chip__sw { width: 12px; height: 12px; border-radius: 4px; border: 1px solid rgba(12, 42, 46, 0.15); }
.soc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.soc-seat { position: relative; display: grid; gap: 2px; align-content: start; min-height: 66px; padding: 10px 10px 8px; border-radius: 12px 12px 8px 8px; border: 1px solid var(--line); background: var(--surface); font: inherit; text-align: left; cursor: pointer; color: var(--ink); transition: transform 0.1s, box-shadow 0.1s, opacity 0.12s; }
.soc-seat:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -12px rgba(12, 42, 46, 0.5); }
.soc-seat:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.soc-seat__label { font: 700 0.95rem "Outfit", sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soc-seat__no { position: absolute; top: 6px; right: 8px; font-size: 0.68rem; font-weight: 700; color: var(--muted); }
.soc-seat__who { font-size: 0.74rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soc-seat--empty { background: #f7f9f8; border-style: dashed; color: var(--muted); }
.soc-seat--owner { background: #e3f4f2; border-color: #b8e0dc; }
.soc-seat--rented { background: #ebe7fb; border-color: #d2c9f3; }
/* Commercial: an amber awning on top. */
.soc-seat--shop { box-shadow: inset 0 4px 0 #e5a23a; }
/* Tenant moving in: an amber dot. */
.soc-seat--moving::after { content: ""; position: absolute; bottom: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: #e5a23a; }
.soc-chip__sw.soc-seat--empty { background: #f7f9f8; border-style: dashed; }
.soc-chip__sw.soc-seat--owner { background: #bfe6e2; }
.soc-chip__sw.soc-seat--rented { background: #d6cdf6; }
.soc-chip__sw.soc-seat--moving { background: #e5a23a; border-radius: 50%; }
.soc-chip__sw.soc-seat--shop { background: #fff; box-shadow: inset 0 4px 0 #e5a23a; }
.soc-seat.is-dim { opacity: 0.28; }
.soc-seat[hidden] { display: none; }

/* ---- Side panel (unit, payment) ------------------------------------------------------------------------------------- */
.soc-drawer { margin: 0 0 0 auto; width: min(480px, 100vw); max-width: 100vw; height: 100vh; max-height: 100vh; border-radius: var(--r) 0 0 var(--r); }
.soc-drawer[open] { animation: soc-in 0.18s ease-out; }
@keyframes soc-in { from { transform: translateX(24px); opacity: 0; } }
.soc-drawer__body { display: grid; gap: 14px; align-content: start; height: 100%; overflow-y: auto; padding: 20px 22px 28px; color: var(--text-2); }
.soc-drawer__body .res__loading { padding: 80px 0; }
.soc-drawer__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin: 0; }
.soc-drawer__head h2 { margin: 0 0 2px; font-size: 1.25rem; color: var(--ink); }
.soc-drawer__head p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 0.86rem; }
.soc-drawer__tools { display: flex; flex-wrap: wrap; gap: 8px; }
.soc-people { display: grid; gap: 8px; }
.soc-people h3 { display: flex; gap: 6px; margin: 4px 0 0; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.soc-people > .muted { margin: 0; font-size: 0.86rem; }
.soc-person { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--mist); }
.soc-person__text { display: grid; gap: 1px; min-width: 0; }
.soc-person__text b { color: var(--ink); font-size: 0.92rem; }
.soc-person__text small { font-size: 0.82rem; overflow-wrap: anywhere; }
.soc-person__edit { justify-self: start; margin: -4px 0 4px 12px; font-size: 0.82rem; }
.soc-form { display: grid; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.soc-form h3 { margin: 0; font-size: 0.98rem; color: var(--ink); }
.soc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.soc-radios { display: flex; gap: 16px; margin: 0; padding: 0; border: 0; font-size: 0.9rem; color: var(--ink); }
.soc-radios legend { margin-bottom: 6px; font-size: 0.84rem; font-weight: 600; color: var(--text-2); }
.soc-radios label { display: inline-flex; align-items: center; gap: 6px; }
.soc-remove form { display: grid; gap: 8px; justify-items: start; }
.soc-paystate { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.soc-paystate b { font: 700 1.4rem "Outfit", sans-serif; color: var(--ink); }
.soc-facts { padding: 12px 14px; border-radius: 12px; background: var(--mist); }
.soc-shot { position: relative; display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #f7f9f8; }
.soc-shot img { width: 100%; max-height: 300px; object-fit: contain; }
.soc-shot span { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(20, 33, 32, 0.8); color: #fff; font-size: 0.8rem; font-weight: 600; }
.soc-shot svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.soc-review { display: grid; gap: 10px; padding-top: 6px; border-top: 1px solid var(--line); }
.soc-review .modal__actions { align-items: flex-start; }
.soc-review form { margin: 0; }
.soc-reject { flex: 1; }
.soc-reject summary { list-style: none; display: inline-flex; }
.soc-reject summary::-webkit-details-marker { display: none; }
.soc-reject[open] summary { display: none; }
.soc-reject form { display: grid; gap: 8px; justify-items: start; padding: 12px; border-radius: 12px; background: var(--rose-50); }
.soc-reject textarea { width: 100%; }

/* ---- Import ------------------------------------------------------------------------------------------------------------ */
.soc-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.soc-steps li { position: relative; display: grid; gap: 8px; align-content: start; padding: 18px 18px 18px 58px; counter-increment: step; }
.soc-steps li::before { content: counter(step); position: absolute; top: 16px; left: 16px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--teal-50); color: var(--primary); font: 700 0.95rem "Outfit", sans-serif; }
.soc-steps h2 { margin: 0; font-size: 1rem; }
.soc-steps p { margin: 0; font-size: 0.88rem; }
.soc-steps__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.soc-steps__actions form { margin: 0; }
.soc-upload { display: grid; gap: 8px; justify-items: start; }
.soc-import-go { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; margin-bottom: 16px; }
.soc-import-go p { margin: 0; color: var(--ink); }
.soc-import-go form { display: flex; gap: 8px; margin: 0; }
.soc-import-done { display: flex; gap: 16px; align-items: flex-start; padding: 20px; margin-bottom: 16px; }
.soc-import-done > svg { flex: none; width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: #e5f6ea; fill: none; stroke: #23703b; stroke-width: 2.2; }
.soc-import-done h2 { margin: 0 0 4px; font-size: 1.1rem; }
.soc-import-done p { margin: 0 0 10px; }

/* ---- Maintenance payments ------------------------------------------------------------------------------------------ */
.soc-table-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 14px 18px 4px; }
.soc-table-tools .soc-legend { margin-bottom: 6px; }
.soc-sw--awaiting { background: #f4c776; }
.soc-sw--done { background: #8fd3a3; }
.soc-sw--rejected, .soc-sw--pastdue { background: #ec9aa7; }
.soc-sw--due { background: #9fd6db; }
.soc-sw--upcoming, .soc-sw--noamount { background: #e3e9e8; }
.soc-pay tr[hidden] { display: none; }
.soc-export { display: inline-flex; gap: 8px; }

/* ---- Small screens ----------------------------------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .soc-glance, .soc-glance--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .soc-options, .soc-steps { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .soc-two, .soc-res--towers { grid-template-columns: 1fr; }
  .soc-towers { position: static; grid-auto-flow: column; grid-auto-columns: minmax(160px, 1fr); overflow-x: auto; }
}
@media (max-width: 560px) {
  .soc-glance, .soc-glance--5 { grid-template-columns: 1fr 1fr; gap: 8px; }
  .soc-glance .subs-fig b { font-size: 1.25rem; }
  .soc-row { grid-template-columns: 1fr; }
  .soc-drawer { width: 100vw; border-radius: 0; }
  .soc-seats__find { min-width: 0; width: 100%; }
  .soc-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
}
.soc-more { display: block; margin: 4px auto 16px; }
.soc-entries tr[hidden] { display: none; }

/* ---- Maintenance payments: list / grid --------------------------------------------------------------------- */
.soc-table-tools__right { display: flex; align-items: center; gap: 8px; }
.soc-view { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--mist); }
.soc-view a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; color: var(--text-2); font-size: 0.84rem; font-weight: 600; text-decoration: none; }
.soc-view a svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.soc-view a:hover { color: var(--ink); }
.soc-view a.is-on { background: var(--surface); color: var(--petrol); box-shadow: 0 1px 4px rgba(12, 42, 46, 0.12); }
.soc-view a:focus-visible { outline: 3px solid rgba(11, 156, 169, 0.45); }
.soc-paygrid { padding: 8px 18px 18px; }
.soc-paygrid__block + .soc-paygrid__block { margin-top: 18px; }
.soc-paygrid__block[hidden], .soc-ptile[hidden] { display: none; }
.soc-paygrid__head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; font-size: 1rem; }
.soc-paygrid__head small { font-size: 0.8rem; font-weight: 500; }
.soc-grid--pay { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); }
.soc-ptile { min-height: 78px; border-left-width: 4px; }
.soc-ptile__foot { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin-top: 4px; font-size: 0.72rem; }
.soc-ptile__state { font-weight: 700; }
.soc-ptile__amt { color: var(--text-2); white-space: nowrap; }
/* Same colours as the status chips above, so the legend reads for both views. */
.soc-ptile--done { background: #eaf7ee; border-color: #bfe4ca; border-left-color: #3fa864; }
.soc-ptile--done .soc-ptile__state { color: #23774a; }
.soc-ptile--awaiting { background: #fdf3df; border-color: #f2d9a6; border-left-color: #e5a23a; }
.soc-ptile--awaiting .soc-ptile__state { color: #8a5a0c; }
.soc-ptile--rejected, .soc-ptile--pastdue { background: #fcecee; border-color: #f1c4cb; border-left-color: #d1475d; }
.soc-ptile--rejected .soc-ptile__state, .soc-ptile--pastdue .soc-ptile__state { color: #a3263b; }
.soc-ptile--due { background: #eaf6f7; border-color: #c4e5e8; border-left-color: #2f9eaa; }
.soc-ptile--due .soc-ptile__state { color: #1d6f78; }
.soc-ptile--upcoming, .soc-ptile--noamount, .soc-ptile--notbilled { background: #f6f8f8; border-left-color: #c3cdcc; }
.soc-ptile--upcoming .soc-ptile__state, .soc-ptile--noamount .soc-ptile__state, .soc-ptile--notbilled .soc-ptile__state { color: var(--muted); }
@media (max-width: 640px) {
    .soc-view span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .soc-grid--pay { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); }
}

/* ---- Treasurer: shared --------------------------------------------------------------------------------------- */
.soc-sec { display: grid; gap: 14px; align-content: start; }
.soc-sec__head { display: flex; align-items: flex-start; gap: 12px; }
.soc-sec__head h2 { margin: 0; font-size: 1.05rem; color: var(--ink); }
.soc-sec__head p { margin: 2px 0 0; font-size: 0.85rem; }
.soc-sec__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; }
.soc-sec__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.soc-sec__icon--teal { background: var(--teal-50); color: var(--primary); }
.soc-sec__icon--sky { background: #e6f2fb; color: #2a7bbf; }
.soc-sec__icon--amber { background: var(--amber-50); color: var(--amber); }
.soc-sec__icon--violet { background: #efeafd; color: #6a4fd8; }
.soc-faint { color: #a8b3b1 !important; }
.soc-clip { display: block; max-width: 34ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soc-tag { margin-left: 6px; padding: 1px 7px; font-size: 0.7rem; vertical-align: 1px; }
.soc-form { display: grid; gap: 14px; margin: 0; }
.soc-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.soc-form .field small { font-size: 0.78rem; }
.soc-file { font: 400 0.88rem "Inter", sans-serif; padding: 10px; border: 1.5px dashed var(--line); border-radius: 12px; background: #fafcfb; width: 100%; }
.soc-facts__wide { grid-column: 1 / -1; }
.soc-review--quiet { justify-items: start; margin: 0; }
.soc-review--quiet .soc-reject form { background: var(--rose-50); }
.soc-approve { display: flex; gap: 8px; align-items: flex-start; }
.soc-approve .field input { height: 42px; min-width: 180px; }

/* ---- Setup maintenance ------------------------------------------------------------------------------------- */
.soc-acct { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; padding: 18px 20px; }
.soc-acct.is-todo { border-color: #f3dcb3; background: linear-gradient(0deg, #fffdf8, #fffdf8); }
.soc-acct__icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--amber-50); color: var(--amber); }
.soc-acct.is-ok .soc-acct__icon { background: #e5f6ea; color: #23703b; }
.soc-acct__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.soc-acct__text { flex: 1; display: grid; gap: 4px; min-width: 0; }
.soc-acct__text h2 { margin: 0; font-size: 1.05rem; color: var(--ink); }
.soc-acct__text p { margin: 0; }
.soc-acct__vpa { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.soc-acct__vpa b { font: 600 1rem "Inter", sans-serif; color: var(--ink); }
.soc-acct__done { flex: none; }
.soc-setup { margin: 0 0 16px; }
.soc-setup__body { display: grid; gap: 16px; margin: 0; padding: 0; border: 0; min-width: 0; }
.soc-setup__body:disabled { opacity: 0.5; }
.soc-setup__body:disabled * { cursor: not-allowed; }
.soc-sec__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: end; }
.soc-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.soc-choice { position: relative; }
.soc-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.soc-choice span { display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text-2); font-weight: 600; font-size: 0.88rem; cursor: pointer; }
.soc-choice input:checked + span { border-color: var(--petrol); background: var(--petrol); color: #fff; }
.soc-choice input:focus-visible + span { outline: 3px solid rgba(11, 156, 169, 0.45); }
.soc-bill { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--teal-50); color: var(--ink); font-size: 0.9rem; }
.soc-bill p { margin: 0; }
.soc-bill__next { display: flex; align-items: center; gap: 6px; color: var(--primary); }
.soc-bill__next svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; flex: none; }
.soc-rates { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.soc-basis { justify-self: start; }
.soc-rate .prefix { max-width: 280px; }
.soc-rate .prefix i { font-weight: 700; }
.soc-sum { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--mist); color: var(--ink); font-size: 0.86rem; font-weight: 600; }
.soc-sum:empty { display: none; }
.soc-sum--bad { background: var(--rose-50); color: var(--rose); }
.soc-sum--warn { background: var(--amber-50); color: #7a4706; font-weight: 500; }
.soc-sec.is-invalid { border-color: #f2ccd3; }
.soc-savebar { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 12px 14px 12px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 14px 30px -18px rgba(12, 42, 46, 0.55); }
.soc-savebar > div { flex: 1; display: grid; }
.soc-savebar small { font-size: 0.8rem; color: var(--muted); }
.soc-savebar b { font: 700 1.35rem "Outfit", sans-serif; color: var(--ink); }
.soc-savebar .btn { min-width: 140px; }
.soc-savebar .btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.soc-units { padding-top: 16px; }
.soc-units__head { padding: 4px 14px 0; }
.soc-units__dirty { margin: 8px 18px 4px; }
.soc-units.is-locked { opacity: 0.55; }
.soc-setup-units tbody tr { cursor: pointer; }
.soc-working { color: #3f56c8; font-variant-numeric: tabular-nums; font-size: 0.74rem; }
.soc-working:empty { display: none; }
.soc-own { display: inline-block; margin-top: 3px; padding: 1px 7px; border-radius: 999px; background: #efeafd; color: #6a4fd8; font-size: 0.7rem; font-weight: 700; }
.soc-own-amt { color: #6a4fd8; }
.soc-struck { text-decoration: line-through; color: var(--muted); }
.soc-struck:empty { display: none; }
.soc-common { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--mist); color: var(--ink); font-size: 0.9rem; }
.soc-common svg { width: 18px; height: 18px; fill: none; stroke: var(--text-2); stroke-width: 1.8; flex: none; }
button.soc-chip { font: inherit; font-size: 0.84rem; font-weight: 600; cursor: pointer; }

/* ---- Accounts ------------------------------------------------------------------------------------------------ */
.soc-tabicon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transform: rotate(-45deg); }
.soc-tabicon--in { transform: rotate(135deg); }
.soc-src { display: inline-flex; align-items: center; gap: 6px; font-size: 0.84rem; font-weight: 600; color: var(--text-2); }
.soc-src::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9fd6db; }
.soc-src--maintenance::before { background: #0b9ca9; }
.soc-src--events::before { background: #e5a23a; }
.soc-src--other::before { background: #6a4fd8; }
.soc-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.soc-thumb { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #f7f9f8; }
.soc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.15s; }
.soc-thumb:hover img { transform: scale(1.04); }
.soc-docs { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.soc-docs li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); font-size: 0.88rem; min-width: 0; }
.soc-docs li a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soc-docs svg { width: 18px; height: 18px; fill: none; stroke: var(--text-2); stroke-width: 1.8; flex: none; }
.soc-done { width: 44px; height: 44px; fill: none; stroke: #2f9e5a; stroke-width: 2; }

@media (max-width: 900px) {
    .soc-rates, .soc-sec__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .soc-form__row { grid-template-columns: 1fr; }
    .soc-acct { flex-wrap: wrap; }
    .soc-acct__text { flex-basis: calc(100% - 56px); }
    .soc-acct__done { order: 3; margin-left: 56px; }
    .soc-savebar { bottom: 8px; padding-left: 14px; }
    .soc-savebar .btn { min-width: 0; }
    .soc-approve { flex-wrap: wrap; }
}
.soc-opt__icon--amber { background: var(--amber-50); color: var(--amber); }
.soc-opt__icon--rose { background: var(--rose-50); color: var(--rose); }

/* ---- Announcements ---------------------------------------------------------------------------------------------- */
.soc-new { gap: 8px; }
.soc-notices { display: grid; gap: 12px; }
.soc-notice { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; transition: border-color 0.12s, transform 0.12s; }
.soc-notice:hover { border-color: #b9dcd9; }
.soc-notice__link { position: absolute; inset: 0; border-radius: var(--r); z-index: 1; }
.soc-notice__link:focus-visible { outline: 3px solid rgba(11, 156, 169, 0.45); }
.soc-notice__icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--teal-50); color: var(--primary); }
.soc-notice--poll .soc-notice__icon { background: #efeafd; color: #6a4fd8; }
.soc-notice--event .soc-notice__icon { background: var(--amber-50); color: var(--amber); }
.soc-notice__icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.soc-notice__main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.soc-notice__main h2 { margin: 0; font-size: 1.08rem; color: var(--ink); }
.soc-notice__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font-size: 0.82rem; }
.soc-notice__kind { font: 700 0.72rem "Inter", sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary); }
.soc-notice__preview { margin: 0; color: var(--text-2); font-size: 0.9rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.soc-notice__facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 4px 0 0; font-size: 0.83rem; color: var(--text-2); }
.soc-notice__facts span { display: inline-flex; align-items: center; gap: 5px; }
.soc-notice__facts svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.soc-notice__act { position: relative; z-index: 2; margin: 0; flex: none; }
.soc-older { display: flex; justify-content: center; margin: 18px 0 0; }
.soc-ann { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.soc-ann__main { display: grid; gap: 12px; padding: 24px 26px; }
.soc-ann__title { margin: 0; font-size: 1.6rem; line-height: 1.2; }
.soc-ann__side { display: grid; gap: 16px; }
.soc-ann__side h2 { margin: 0 0 10px; font-size: 1rem; color: var(--ink); }
.soc-ann__acts { display: grid; gap: 8px; }
.soc-ann__acts form { margin: 0; }
.soc-ann__confirm summary { width: 100%; justify-content: center; }
.soc-ann__confirm form { margin-top: 0; }
.soc-ann__event { margin: 4px 0; }
.soc-h3 { margin: 10px 0 4px; font-size: 1rem; color: var(--ink); }
.soc-h3 .muted, .soc-h3 em { font-weight: 500; font-size: 0.86rem; font-style: normal; }
.soc-rich { color: var(--ink); font-size: 0.96rem; line-height: 1.65; overflow-wrap: anywhere; }
.soc-rich p, .soc-rich ul, .soc-rich ol { margin: 0 0 10px; }
.soc-rich ul, .soc-rich ol { padding-left: 22px; }
.soc-rich > :last-child { margin-bottom: 0; }
.soc-poll { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.soc-poll li { display: grid; gap: 6px; }
.soc-poll__row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.92rem; }
.soc-poll__row span { color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.soc-poll__bar { display: block; height: 10px; border-radius: 999px; background: var(--mist); overflow: hidden; }
.soc-poll__bar span { display: block; height: 100%; border-radius: 999px; background: #b9a8f0; }
.soc-poll .is-lead .soc-poll__bar span { background: #6a4fd8; }
.soc-poll__who summary { cursor: pointer; color: var(--primary); font-size: 0.82rem; font-weight: 600; }
.soc-poll__who p { margin: 6px 0 0; font-size: 0.84rem; color: var(--text-2); }
.soc-w-0 { width: 0%; }
.soc-w-5 { width: 5%; }
.soc-w-10 { width: 10%; }
.soc-w-15 { width: 15%; }
.soc-w-20 { width: 20%; }
.soc-w-25 { width: 25%; }
.soc-w-30 { width: 30%; }
.soc-w-35 { width: 35%; }
.soc-w-40 { width: 40%; }
.soc-w-45 { width: 45%; }
.soc-w-50 { width: 50%; }
.soc-w-55 { width: 55%; }
.soc-w-60 { width: 60%; }
.soc-w-65 { width: 65%; }
.soc-w-70 { width: 70%; }
.soc-w-75 { width: 75%; }
.soc-w-80 { width: 80%; }
.soc-w-85 { width: 85%; }
.soc-w-90 { width: 90%; }
.soc-w-95 { width: 95%; }
.soc-w-100 { width: 100%; }
.soc-log { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; max-height: 520px; overflow-y: auto; }
.soc-log li { display: grid; gap: 1px; padding-left: 14px; border-left: 2px solid var(--line); font-size: 0.86rem; color: var(--ink); }
.soc-log time, .soc-log small { font-size: 0.78rem; }
.soc-log--flat { max-height: none; }
.soc-log--flat li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; border: 0; padding: 10px 0; border-bottom: 1px solid var(--line-2); }

/* ---- Posting -------------------------------------------------------------------------------------------------------- */
.soc-compose { display: grid; gap: 16px; margin: 0; }
.soc-compose .soc-savebar { margin-top: 0; }
.soc-savebar__who { font: 600 0.95rem "Inter", sans-serif !important; }
.soc-errors { margin: 0; padding-left: 18px; }
.soc-editor { border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.soc-editor:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(11, 156, 169, 0.12); }
.soc-editor__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px 8px; border-bottom: 1px solid var(--line); background: #fafcfb; }
.soc-editor__bar button { min-width: 34px; height: 30px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: 600 0.84rem "Inter", sans-serif; cursor: pointer; }
.soc-editor__bar button:hover { background: var(--mist); }
.soc-editor__count { margin-left: auto; font-size: 0.78rem; padding-right: 4px; }
.soc-editor .field textarea, .soc-editor textarea { border: 0 !important; box-shadow: none !important; border-radius: 0; width: 100%; padding: 12px 14px; font: 400 0.95rem/1.55 "Inter", sans-serif; color: var(--ink); resize: vertical; outline: 0; display: block; }
.soc-options-edit { display: grid; gap: 8px; margin: 0; padding: 0 0 0 22px; }
.soc-options-edit li { display: flex; gap: 6px; align-items: center; }
.soc-options-edit input { flex: 1; font: 400 0.95rem "Inter", sans-serif; height: 44px; padding: 0 13px; border: 1.5px solid var(--line); border-radius: 12px; outline: 0; }
.soc-options-edit input:focus { border-color: var(--teal); }
.soc-options-edit .icon-btn[hidden] { display: none; }
.soc-add-option { justify-self: start; }
.soc-check { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--ink); cursor: pointer; }
.soc-check input { width: 18px; height: 18px; accent-color: #0b9ca9; }
.soc-narrow { max-width: 340px; }
.soc-form__row--wide { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.soc-form .seg { justify-self: start; }
.soc-form__row:has(.field:nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---- Rulebook -------------------------------------------------------------------------------------------------------- */
.soc-rules__find { max-width: 420px; margin-bottom: 14px; }
.soc-rules { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.soc-rule { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; }
.soc-rule[hidden] { display: none; }
.soc-rule:hover { border-color: #b9dcd9; }
.soc-rule__no { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: #e9edfb; color: #3f56c8; font: 700 0.95rem "Outfit", sans-serif; }
.soc-rule__main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.soc-rule__main h2 { margin: 0; font-size: 1.05rem; color: var(--ink); }
.soc-contact { display: grid; gap: 12px; }
.soc-contact h2 { margin: 0; }
.soc-contact__name { display: flex; align-items: center; gap: 10px; margin: 0; }
.soc-contact__name > span:last-child { display: grid; }
.soc-keep { display: grid; gap: 6px; margin: 0 0 6px; padding: 0; list-style: none; }
.soc-keep li { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 0.88rem; min-width: 0; }
.soc-keep li a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Approvals ------------------------------------------------------------------------------------------------------- */
.soc-appr-link { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding: 16px 20px; color: var(--ink); text-decoration: none; }
.soc-appr-link:hover { border-color: #b9dcd9; }
.soc-appr-link__text { flex: 1; display: grid; gap: 2px; }
.soc-appr-link__text b { font: 700 1rem "Outfit", sans-serif; }
.soc-appr-link__badge { position: static; }
.soc-change { display: grid; gap: 12px; padding: 16px; border-radius: 14px; background: var(--amber-50); border: 1px solid #f3dcb3; }
.soc-change__accts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.soc-change__accts > div { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); min-width: 220px; }
.soc-change__accts > div.is-new { border-color: #e5a23a; }
.soc-change__accts b { font: 600 1rem "Inter", sans-serif; color: var(--ink); word-break: break-all; }
.soc-change__arrow { width: 22px; height: 22px; fill: none; stroke: var(--amber); stroke-width: 2; }
.soc-change__acts { justify-content: flex-start; }
.soc-change p { margin: 0; }
.soc-allclear { display: flex; align-items: center; gap: 8px; margin: 0; padding: 14px 16px; border-radius: 12px; background: #eaf7ee; color: #23774a; font-weight: 600; font-size: 0.92rem; }
.soc-allclear svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; }

@media (max-width: 1100px) {
    .soc-ann { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .soc-notice, .soc-rule { padding: 14px; gap: 10px; }
    .soc-notice__icon { display: none; }
    .soc-notice { flex-wrap: wrap; }
    .soc-ann__main { padding: 18px; }
    .soc-ann__title { font-size: 1.3rem; }
    .soc-form__row--wide, .soc-form__row:has(.field:nth-child(3)) { grid-template-columns: 1fr; }
    .soc-compose .soc-savebar > div { display: none; }
}
.soc-tabicon0 { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* hidden always hides, even on elements laid out as grid or flex (.field, rows). */
.soc-body [hidden] { display: none !important; }

/* ---- Committee ------------------------------------------------------------------------------------------------- */
.field > label:first-child { font-weight: 600; color: var(--ink); }
.soc-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.soc-person { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; }
.soc-person__text { display: grid; gap: 2px; min-width: 0; }
.soc-person__text b { font: 700 1rem "Outfit", sans-serif; color: var(--ink); }
.soc-person__post { font-size: 0.8rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.05em; }
.soc-person__links { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.86rem; margin-top: 4px; }
.soc-person__links a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soc-seats-edit { display: grid; gap: 10px; }
.soc-seat-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) 170px 36px; gap: 10px; align-items: center; }
.soc-seat-row__post { font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.soc-seat-row__fixed { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--mist); font-size: 0.92rem; color: var(--ink); }
.soc-seat-row__fixed small { font-size: 0.76rem; }
.soc-seat-row .field input, .soc-seat-row .field select { height: 44px; }

/* ---- Guards ---------------------------------------------------------------------------------------------------- */
.soc-glance--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.soc-guards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.soc-guard { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; color: var(--ink); text-decoration: none; }
.soc-guard:hover { border-color: #b9dcd9; }
.soc-guard__photo { flex: none; width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: var(--mist); }
.soc-guard__photo--none { display: grid; place-items: center; font: 700 1rem "Outfit", sans-serif; color: var(--petrol); background: linear-gradient(140deg, #d7f1ee, #e6f7d9); }
.soc-guard__text { display: grid; gap: 3px; min-width: 0; }
.soc-guard__text b { font: 700 1rem "Outfit", sans-serif; }
.soc-guard__text .muted { font-size: 0.85rem; }
.soc-guard__duty { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 0.84rem; color: var(--text-2); }
.soc-guard__duty svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.soc-guard__duty svg + svg, .soc-guard__duty svg:not(:first-child) { margin-left: 8px; }
.soc-guard__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px; }
.soc-guard__tags small { font-size: 0.78rem; }
.soc-guard__big { width: 100%; max-height: 260px; object-fit: cover; border-radius: 12px; }
.soc-upload-row { display: flex; gap: 8px; align-items: center; margin: 0; }
.soc-upload-row .soc-file { flex: 1; min-width: 0; padding: 7px; }
.soc-docs li form { margin: 0; }

/* ---- Society setup --------------------------------------------------------------------------------------------- */
.soc-basics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.soc-towers-ro { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.soc-towers-ro li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--mist); font-size: 0.9rem; }
.soc-towers-edit { display: grid; gap: 8px; margin: 0 0 8px; padding: 0 0 0 22px; }
.soc-towers-edit li { display: flex; gap: 8px; align-items: center; }
.soc-towers-edit input { height: 44px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 12px; font: 400 0.95rem "Inter", sans-serif; outline: 0; }
.soc-towers-edit input[name=TowerNames] { flex: 1; min-width: 0; }
.soc-towers-edit input[type=number] { width: 120px; }
.soc-towers-edit input:focus { border-color: var(--teal); }
.soc-towers-edit small { white-space: nowrap; }
.soc-facilities { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 0; padding: 0; border: 0; }
.soc-facilities legend { margin-bottom: 8px; font-weight: 600; font-size: 0.88rem; color: var(--ink); }
.soc-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.soc-photo-slot { display: grid; gap: 8px; align-content: start; }
.soc-photo-slot--wide { grid-column: 1 / -1; }
.soc-photo-slot form { margin: 0; }
.soc-photo { width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.soc-photo--logo { width: 120px; height: 120px; object-fit: contain; background: #fff; }
.soc-thumbs--4 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.soc-thumb--rm { position: relative; margin: 0; }
.soc-thumb--rm form { position: absolute; top: 6px; right: 6px; }
.soc-thumb--rm .icon-btn { background: rgba(255, 255, 255, 0.92); }

@media (max-width: 900px) {
    .soc-seat-row { grid-template-columns: minmax(0, 1fr) 150px 36px; }
    .soc-seat-row__post { grid-column: 1 / -1; }
    .soc-basics, .soc-photos { grid-template-columns: 1fr; }
    .soc-glance--3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .soc-seat-row { grid-template-columns: minmax(0, 1fr) 36px; }
    .soc-seat-row__date { grid-column: 1; }
    .soc-guards { grid-template-columns: 1fr; }
}
.soc-towers-edit .icon-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ---- Activity log -------------------------------------------------------------------------------------------- */
.soc-activity__day th { padding-top: 18px; text-align: left; font-family: var(--font-head, inherit); font-size: 0.92rem; color: var(--text); background: var(--mist); }
.soc-activity__day small { margin-left: 8px; font-weight: 500; }
.soc-activity__time { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--text-2); width: 90px; }
.soc-activity__area { display: inline-flex; align-items: center; gap: 6px; font-size: 0.86rem; color: var(--text-2); white-space: nowrap; }
.soc-activity__area svg { width: 15px; height: 15px; }
.soc-activity__more { padding: 12px 16px; margin: 0; }
.field--inline { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.field--inline span { font-size: 0.86rem; color: var(--text-2); }
.field--inline input { width: auto; }

/* ---- Collections --------------------------------------------------------------------------------------------- */
.soc-coll__bar { min-width: 170px; }
.soc-coll__meter { display: flex; align-items: center; gap: 10px; }
.soc-coll__meter b { font-variant-numeric: tabular-nums; min-width: 42px; text-align: right; }
.soc-meter { flex: 1; display: block; height: 10px; border-radius: 999px; background: var(--mist); overflow: hidden; min-width: 80px; }
.soc-meter span { display: block; height: 100%; border-radius: 999px; background: #0B9CA9; }
.soc-meter span.is-low { background: #E0703A; }
.soc-glance__text { font-size: 1.05rem !important; line-height: 1.3; }

/* ---- Dues ---------------------------------------------------------------------------------------------------- */
.soc-remind { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.soc-remind [data-ticked] { font-size: 0.86rem; min-width: 96px; }
.soc-dues__tick { width: 36px; }
.soc-dues__tick input { width: 18px; height: 18px; accent-color: var(--primary); }
.soc-dues__note { padding: 12px 16px; margin: 0; }

/* ---- Entrance gate ------------------------------------------------------------------------------------------- */
.soc-gates { padding: 20px; }
.soc-gates > p { margin-top: 0; }
.soc-gates__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.soc-gate { position: relative; display: grid; gap: 4px; padding: 10px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; background: var(--surface); transition: border-color 0.12s, box-shadow 0.12s; }
.soc-gate:hover { border-color: #9fd6dc; }
.soc-gate.is-on, .soc-gate:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11, 156, 169, 0.16); }
.soc-gate input { position: absolute; opacity: 0; pointer-events: none; }
.soc-gate:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
.soc-gate img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; border-radius: 10px; background: #f4f8f9; }
.soc-gate b { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 0.95rem; margin-top: 4px; }
.soc-gate small { font-size: 0.8rem; line-height: 1.35; }
.soc-gate .pill { font-style: normal; font-size: 0.7rem; }

/* ---- Receipt ------------------------------------------------------------------------------------------------- */
.soc-receipt-link { margin-top: 12px; }
.soc-receipt-page { background: var(--mist); min-height: 100vh; padding: 24px 16px 48px; }
.soc-receipt__tools { max-width: 720px; margin: 0 auto 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.soc-receipt { max-width: 720px; margin: 0 auto; padding: 40px 44px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px -28px rgba(12, 42, 46, 0.45); color: #13262a; }
.soc-receipt__head { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 20px; border-bottom: 2px solid #0B9CA9; margin-bottom: 28px; }
.soc-receipt__head h1 { margin: 0 0 4px; font-size: 1.5rem; }
.soc-receipt__head p { margin: 0; }
.soc-receipt__no { display: grid; text-align: right; gap: 2px; }
.soc-receipt__no span { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; color: #0B9CA9; font-weight: 700; }
.soc-receipt__no b { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.soc-receipt__line { margin: 0; font-size: 1.02rem; line-height: 1.6; }
.soc-receipt__amount { margin: 10px 0; font-size: 2.2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.soc-receipt__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin: 28px 0; padding: 20px; border-radius: 12px; background: #f4f8f9; }
.soc-receipt__facts dt { font-size: 0.78rem; color: #5b6f73; text-transform: uppercase; letter-spacing: 0.06em; }
.soc-receipt__facts dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.soc-receipt__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; border-top: 1px solid var(--line); padding-top: 16px; }
.soc-receipt__foot p { margin: 0; font-size: 0.82rem; max-width: 440px; }
@media (max-width: 560px) {
    .soc-receipt { padding: 24px 20px; }
    .soc-receipt__head { flex-direction: column; }
    .soc-receipt__no { text-align: left; }
    .soc-receipt__facts { grid-template-columns: 1fr; }
}
@media print {
    .soc-receipt-page { background: #fff; padding: 0; }
    .soc-receipt__tools { display: none; }
    .soc-receipt { border: 0; box-shadow: none; max-width: none; padding: 0; }
    .soc-receipt__facts { background: none; border: 1px solid #cfd8da; }
    @page { margin: 18mm; }
}
.soc-remind .btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
@media (max-width: 720px) { .soc-activity__day th { display: block; width: auto; background: none; padding-left: 4px; } }

/* ---- Society logo in the sidebar; front photo behind the home banner -------------------------------------------- */
.soc-card__mark--logo { object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 2px; }
.soc-hero { position: relative; overflow: hidden; }
.soc-hero__text { position: relative; z-index: 1; }
.soc-hero--photo { min-height: 240px; align-items: flex-end; padding: 20px; background: var(--petrol); }
.soc-hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.soc-hero--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 30, 34, 0) 35%, rgba(8, 30, 34, 0.45) 100%); }
.soc-hero--photo .soc-hero__text { max-width: min(560px, 100%); padding: 16px 20px; border-radius: 16px; background: rgba(8, 30, 34, 0.42); -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2); border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.6); }
.soc-hero--photo .soc-hero__hello { color: #b6f2db; }
.soc-hero--photo .muted { color: rgba(255, 255, 255, 0.85); }
@media (min-width: 1000px) { .soc-hero--photo { min-height: 280px; padding: 24px; } }
