/* SAO Clubs additions on top of the SAO Weekly stylesheet (style.css). */
.pill.st-draft{background:#edf1f4;color:#4b5864}
.pill.st-approved{background:#e9f4ee;color:#206b50}
.pill.st-rejected{background:#fcebec;color:#9d333b}
.pill.off{background:#f1f1f1;color:#7a7a7a}
/* Status dots (Christina, 2026-10-26): red = not approved, yellow = pending, green = approved. */
.dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:7px;vertical-align:-1px;background:#a7b0b8;flex:none}
.st-submitted .dot{background:#e5a500}
.st-approved .dot{background:#1f9d55}
.st-changes .dot,.st-rejected .dot{background:#d33a3a}
.pill.st-changes{background:#fcebec;color:#9d333b}
.pill.st-submitted{background:#fff5d6;color:#7a5600}
.legend{display:flex;flex-wrap:wrap;gap:8px 22px;font-size:12px;color:var(--muted);margin:-6px 0 18px}
.legend span{display:inline-flex;align-items:center}
.stat span[class^="st-"]{display:inline-flex;align-items:center}
.club-row{gap:8px;margin-bottom:8px;flex-wrap:nowrap}
.club-row select{flex:1.2}
.club-row input{flex:1}
.club-row .remove{background:none;border:0;color:var(--red);font-size:20px;line-height:1;padding:6px}
.clickable tbody tr{cursor:pointer}
.clickable tbody tr:hover td{background:#f6f9fc}
.clickable tbody tr:focus-visible{outline:3px solid var(--sky);outline-offset:-3px}
.form-card{margin-bottom:22px}
.form-card h3{margin-bottom:4px}
.form-card>.hint{margin-bottom:18px}
.materials-scroll{overflow-x:auto;margin:0 -24px;padding:0 24px}
.materials{min-width:1400px;font-size:12px}
.materials th{padding:9px 8px;white-space:nowrap}
.materials th.budget{color:var(--red)}
.materials td{padding:6px 5px;vertical-align:top}
.materials input{padding:7px 8px;font-size:12px;min-width:100px}
.materials td:nth-child(2) input{min-width:190px}
.materials td:nth-child(6) input{min-width:170px}
.materials .remove{background:none;border:0;color:var(--red);font-size:18px;line-height:1;padding:6px}
.read dl{display:grid;grid-template-columns:220px 1fr;gap:10px 22px;margin:0}
.read dt{font-size:12px;font-weight:700;color:var(--muted)}
.read dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.review-box{border-left:3px solid var(--orange)}
.minutes-card{margin-bottom:16px}
.minutes-card .meta{font-size:12px;color:var(--muted)}
.minutes-card .body{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0 12px}
.codes{width:100%;min-height:200px;font-family:Consolas,monospace;font-size:12px}
.code-big{font-family:Consolas,monospace;font-size:24px;letter-spacing:.12em;font-weight:700;color:var(--navy2)}
.tabs{display:flex;gap:6px;margin-bottom:22px;border-bottom:1px solid var(--line)}
.tabs button{background:none;border:0;border-bottom:3px solid transparent;padding:10px 4px;margin-right:14px;font-weight:600;color:var(--muted)}
.tabs button.active{color:var(--navy2);border-color:var(--navy)}
@media(max-width:700px){.read dl{grid-template-columns:1fr;gap:2px}.read dd{margin-bottom:12px}.materials-scroll{margin:0 -16px;padding:0 16px}}
/* Changes since the approved version (Christina, 2026-10-26: edits after approval go back for re-approval; SAO sees what changed). */
.changes-card{border-left:3px solid var(--orange)}
.diff-row{margin-bottom:14px}
.diff-row>strong{display:block;font-size:12px;margin-bottom:4px}
.diff-old{color:var(--muted);text-decoration:line-through;white-space:pre-wrap;overflow-wrap:anywhere}
.diff-new{background:#fff1c2;color:#6b4300;font-weight:600;white-space:pre-wrap;overflow-wrap:anywhere;padding:1px 4px;border-radius:3px}
.field.changed input,.field.changed textarea,.materials input.changed{border-color:var(--orange);background:#fff8e8}
.field.changed>label::after{content:" — changed since approval";color:#b86a0d;font-weight:600}
.materials tr.changed input{border-color:var(--orange);background:#fff8e8}
/* Attachments and item photos (Christina, 2026-10-27). */
.photo-cell{white-space:nowrap;min-width:96px}
.photo-cell .text-button{padding:2px 4px;font-size:11px}
.thumb{width:48px;height:48px;object-fit:cover;border-radius:6px;border:1px solid var(--line);cursor:zoom-in;vertical-align:middle;background:#f3f5f7}
.big-photo{display:block;max-width:100%;max-height:70vh;margin:0 auto;border-radius:8px}
.file-list{list-style:none;padding:0;margin:0 0 14px}
.file-list li{padding:8px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.file-pick{cursor:pointer}
.photo-cell.changed{background:#fff8e8;box-shadow:inset 0 0 0 2px var(--orange);border-radius:6px}
.diff-old-photo .thumb{opacity:.55;outline:2px solid #d9d9d9}
.diff-new-photo .thumb{outline:2px solid #e5a500}
/* Sponsors and vendors tables (Christina, 2026-10-28). */
.list-table{min-width:720px;font-size:12px;width:100%}
.list-table th{padding:9px 8px;white-space:nowrap}
.list-table td{padding:6px 5px;vertical-align:top}
.list-table input{padding:7px 8px;font-size:12px;min-width:110px}
.list-table td:first-child input{min-width:180px}
.list-table .remove{background:none;border:0;color:var(--red);font-size:18px;line-height:1;padding:6px}
/* Sponsors and vendors with several items each (Christina, 2026-10-29). */
.party{border:1px solid var(--line);border-radius:8px;padding:14px 16px 8px;margin-bottom:12px;background:#fbfcfd}
.party-head{display:flex;flex-wrap:wrap;gap:0 14px;align-items:end}
.party-head .field{flex:1;min-width:200px;margin-bottom:10px}
.party-head .field.wide{flex-basis:100%}
.party-head textarea{min-height:64px}
.read-party .preserve{margin:6px 0 8px}
.party-head .party-del{color:var(--red);margin-bottom:10px}
.party .list-table{min-width:0}
.party .list-table td:first-child input{min-width:140px}
.read-party{background:#fff;padding:12px 16px}
.read-party .list-table{margin-top:8px}
.date-clash{margin:-8px 0 14px}
/* Events calendar and office hours (Christina, 2026-10-29). */
.cal-nav{margin-bottom:14px}
.cal-nav h2{margin:0;font-size:22px}
.cal-scroll{overflow-x:auto;margin-bottom:24px}
.cal-grid{display:grid;grid-template-columns:repeat(7,minmax(118px,1fr));border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff;min-width:826px}
.cal-head{background:#f8f9fa;color:var(--muted);font-size:10px;letter-spacing:.08em;text-transform:uppercase;font-weight:700;padding:9px 10px;border-bottom:1px solid var(--line)}
.cal-day{min-height:104px;padding:6px 6px 8px;border-right:1px solid #e9ecee;border-bottom:1px solid #e9ecee}
.cal-day:nth-child(7n+7){border-right:0}
.cal-day.other{background:#fafbfc}
.cal-day.other .cal-num{color:#b4bcc4}
.cal-day.taken{background:#fff9ec}
.cal-day.today .cal-num{background:var(--navy);color:#fff;border-radius:50%;width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center}
.cal-num{font-size:12px;font-weight:700;margin-bottom:4px}
.cal-chip{display:block;font-size:11px;line-height:1.35;padding:4px 6px;border-radius:5px;background:#f1f4f7;color:var(--ink);text-decoration:none;margin-bottom:4px;overflow-wrap:anywhere}
.cal-chip .dot{width:8px;height:8px;margin-right:5px;vertical-align:0}
.cal-chip strong{margin-right:3px}
a.cal-chip:hover{background:#e3ebf3}
.cal-chip.mine{box-shadow:inset 3px 0 0 var(--navy2)}
.hour-form{display:flex;flex-wrap:wrap;gap:0 14px;align-items:end}
.hour-form .field{flex:1;min-width:140px}
.hour-form .button{margin-bottom:17px}
.week-grid{display:grid;grid-template-columns:repeat(6,minmax(150px,1fr));gap:10px;min-width:930px}
.week-day{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden;padding-bottom:6px}
.week-day>.cal-head{margin-bottom:8px}
.week-day>p{padding:0 10px}
.hour-card{margin:0 8px 8px;padding:8px 10px;border-radius:7px;background:#f1f4f7;font-size:12px;overflow-wrap:anywhere}
.hour-card.mine{background:#e8f0f8;box-shadow:inset 3px 0 0 var(--navy2)}
.hour-time{font-weight:700;color:var(--navy2);margin-bottom:2px}
.hour-card .text-button{padding:4px 0 0;font-size:11px;color:var(--red)}
@media(max-width:700px){.hour-form .field{min-width:calc(50% - 7px)}}
/* Office check-in / check-out (2026-10-29) */
.checkin-card{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:22px;border-left:4px solid #cbd4db}
.checkin-card.in{border-left-color:#2f8a63;background:#f6fbf8}
.checkin-card h2{margin-bottom:6px}
.checkin-card p{margin:0;max-width:560px}
.checkin-card select{width:220px}
.checkin-card .button{min-width:140px}
/* Office QR (Tarek, 2026-10-29): SAO shows it, officers scan it. */
.qr-box{text-align:center}
.qr-box canvas{display:block;width:min(340px,76vw);height:auto;margin:6px auto 10px;image-rendering:pixelated}
.qr-code{font:700 1.9rem/1.2 ui-monospace,Consolas,monospace;letter-spacing:.28em;color:#132b44}
.scan-box{margin:4px 0 12px}
.scan-box video[hidden]{display:none}
.scan-box video{display:block;width:100%;max-height:55vh;object-fit:cover;background:#0d1b2a;border-radius:10px}
.code-form{gap:10px;flex-wrap:nowrap}
.code-form input{flex:1;min-width:0;text-transform:uppercase;letter-spacing:.12em}
.code-form input::placeholder{text-transform:none;letter-spacing:0}
.spacer-bottom{margin-bottom:22px}
.filters #fPeriod{width:320px;max-width:100%}
.card-pad{padding:18px 22px;margin:0}
.card-head .hint{margin-top:6px}
td.actions{white-space:nowrap}
@media(max-width:700px){.checkin-card .row,.checkin-card select,.checkin-card .button{width:100%}}
/* SAO comments on parts of a plan (Tarek, 2026-11-04): the commented part is highlighted, the comment is red. */
.field{position:relative}
.cmt-add{position:absolute;top:-3px;right:0;background:none;border:0;padding:2px 4px;font-size:12px;color:var(--navy2);text-decoration:underline;cursor:pointer}
h3 .cmt-add{position:static;margin-left:10px;font-weight:400;vertical-align:middle}
.field.sao-commented{background:#fff7e6;outline:2px solid #e8a33d;outline-offset:5px;border-radius:4px}
h3.sao-commented{background:#fff7e6;box-shadow:inset 4px 0 0 #b3261e;padding:6px 10px;border-radius:4px}
.sao-comment{color:#a32620;background:#fdecea;border-left:3px solid #b3261e;padding:7px 10px;margin:2px 0 8px;font-size:13px;font-weight:600;border-radius:4px}
.sao-comment small{display:block;font-weight:400;color:#7a4b48;margin-top:3px}
.sao-comment .text-button{padding:0;font-size:12px;color:#a32620}
.cmt-card{border-left:4px solid #b3261e}
.cmt-card ul{margin:0;padding-left:18px}
.cmt-card li{margin:6px 0;color:#a32620}
.cmt-card .cmt-go{padding:0;font-weight:700}
/* Home button back to the SAO home page, for SAO staff signed in from there (Tarek, 2026-11-05). */
.home-link{display:inline-flex;align-items:center;margin-right:14px;padding:5px 10px;border:1px solid var(--line);border-radius:6px;color:var(--navy2);font-weight:700;text-decoration:none;letter-spacing:0}
.home-link:hover{background:var(--blue)}

/* Club approval email (2026-11-27) */
.mail-preview{border:1px solid var(--line,#d9dee5);border-radius:8px;padding:12px 16px;background:#fff;max-height:520px;overflow:auto}
.mail-preview ul{margin:.3em 0 .8em 1.2em}
.draft-list{margin:.4em 0 0 1.2em}
details.archived summary{cursor:pointer;font-weight:600;padding:4px 0}

/* Approval-email page: officers add / edit / remove (2026-11-30) */
.card-head h2{margin:0}
.text-button.danger{color:var(--red)}
