/* RÜYA PORTAL V2.4.24.3 HF8.9 — PICKUP + PRIVATE MEDIA + EVENT FILES + UPLOAD GUARD */
/* UI-only additions. Existing theme tokens/layout remain authoritative. */
.pickupStatusButtons .pickupPreparingButton{border:1px solid #d9e3ef;background:#f7f9fc;color:#344054}
.pickupStatusButtons .pickupPreparingButton:disabled{opacity:.7;cursor:default}
.pickupStatusButtons .completeButton{border:0;background:#183f7a;color:#fff}
.role-admin .v225PickupStats{grid-template-columns:repeat(3,minmax(0,1fr))}

.ruyaOptionalFieldTag{display:inline-block;margin-left:4px;font-size:10px!important;font-weight:650!important;letter-spacing:.02em;color:#667085!important;background:#f2f4f7;border-radius:999px;padding:2px 7px}

.teacherMediaSharePage{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);gap:16px;align-items:start}
.teacherMediaShareCard,.teacherTodayShares{min-width:0}
.teacherMediaMode{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0}
.teacherMediaMode button{min-height:44px;border:1px solid #dce3ed;border-radius:13px;background:#f8fafc;color:#475467;font:inherit;font-size:13px;font-weight:650;cursor:pointer}
.teacherMediaMode button.active{background:#eef4ff;border-color:#b9cdf5;color:#234f91;box-shadow:inset 0 0 0 1px rgba(35,79,145,.04)}
.teacherPrivateStudentPicker{margin:10px 0 14px;padding:12px;border:1px solid #e2e8f0;border-radius:16px;background:#fbfcfe}
.teacherPrivateStudentPicker .sectionHead{margin-bottom:9px}
.teacherPrivateStudentGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:290px;overflow:auto;padding:1px}
.teacherPrivateStudentGrid button{display:grid;grid-template-columns:34px 1fr 24px;align-items:center;gap:8px;min-width:0;padding:8px;border:1px solid #e2e7ef;border-radius:12px;background:#fff;color:#344054;text-align:left;cursor:pointer}
.teacherPrivateStudentGrid button.selected{border-color:#9db9e9;background:#f2f6ff}
.teacherPrivateStudentGrid .avatar{width:34px;height:34px}
.teacherPrivateStudentGrid button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:650}
.teacherPrivateStudentGrid button i{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#f0f3f7;color:#607086;font-style:normal;font-weight:800}
.teacherPrivateStudentGrid button.selected i{background:#234f91;color:#fff}
.teacherTodayShareList{display:grid;gap:8px}
.teacherTodayShareItem{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center;padding:10px 0;border-bottom:1px solid #edf0f4}
.teacherTodayShareItem:last-child{border-bottom:0}
.teacherTodayShareItem>div{min-width:0;display:grid;gap:2px}
.teacherTodayShareItem b{font-size:13px;color:#344054;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.teacherTodayShareItem small{font-size:10px;color:#7a8699}
.teacherTodayShareItem em{font-size:10px;color:#7a8699;font-style:normal;white-space:nowrap}
.privateShareBadge,.classShareBadge{display:inline-flex;align-items:center;width:max-content;border-radius:999px;padding:4px 8px;font-size:9px;font-weight:750;line-height:1.1}
.privateShareBadge{background:#f1edff;color:#6b46b6}
.classShareBadge{background:#edf7f3;color:#26725c}
.ruyaParentGalleryFilters{display:flex;gap:7px;overflow-x:auto;padding:2px 0 12px;scrollbar-width:none}
.ruyaParentGalleryFilters::-webkit-scrollbar{display:none}
.ruyaParentGalleryFilters button{white-space:nowrap;border:1px solid #e0e6ef;background:#fff;color:#667085;border-radius:999px;padding:8px 12px;font-size:11px;font-weight:650}
.ruyaParentGalleryFilters button.active{background:#233f76;border-color:#233f76;color:#fff}
.realMediaAlbumCard .albumCardInfo .privateShareBadge,.realMediaAlbumCard .albumCardInfo .classShareBadge{margin-top:5px}

.ruyaContentAttachments{display:grid;gap:6px;margin-top:10px}
.ruyaContentAttachment{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:8px;align-items:center;padding:8px 9px;border:1px solid #e4e9f0;border-radius:12px;background:#f9fafb}
.ruyaContentAttachmentIcon{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#fff;border:1px solid #e4e9f0;font-size:13px}
.ruyaContentAttachmentInfo{display:grid;gap:1px;min-width:0}
.ruyaContentAttachmentInfo b{font-size:11px;font-weight:650;color:#344054;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ruyaContentAttachmentInfo small{font-size:9px;color:#8a94a5}
.ruyaContentAttachmentActions{display:flex;gap:5px}
.ruyaContentAttachmentActions button{border:1px solid #dfe5ed;background:#fff;color:#475467;border-radius:8px;padding:6px 8px;font-size:9px;font-weight:650;cursor:pointer}
.ruyaEventAttachmentEditor{display:grid;gap:8px;margin-top:6px;padding:11px;border:1px solid #e3e8ef;border-radius:14px;background:#fafbfc}
.ruyaEventAttachmentEditor>.sectionHead{margin:0}
.ruyaEventFilePicker{display:flex;align-items:center;justify-content:center;min-height:42px;border:1px dashed #bfc9d8;border-radius:11px;background:#fff;color:#475467;font-size:11px;font-weight:650;cursor:pointer}
.ruyaEventFilePicker input{display:none}
.ruyaPendingAttachments,.ruyaExistingAttachments{display:grid;gap:5px}
.ruyaPendingAttachment{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:7px;align-items:center;padding:7px 8px;border:1px solid #e6eaf0;border-radius:9px;background:#fff}
.ruyaPendingAttachment span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:#475467}
.ruyaPendingAttachment small{font-size:9px;color:#98a2b3}
.ruyaPendingAttachment button{border:0;background:#f3f4f6;color:#667085;border-radius:7px;padding:5px 7px;font-size:9px;cursor:pointer}

@media(max-width:820px){
 .teacherMediaSharePage{grid-template-columns:1fr}
 .teacherTodayShares{order:2}
 .teacherPrivateStudentGrid{grid-template-columns:1fr 1fr}
 .role-admin .v225PickupStats{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:520px){
 .teacherPrivateStudentGrid{grid-template-columns:1fr}
 .teacherMediaMode{grid-template-columns:1fr 1fr}
 .ruyaContentAttachment{grid-template-columns:26px minmax(0,1fr)}
 .ruyaContentAttachmentActions{grid-column:2;justify-content:flex-start}
 .ruyaPendingAttachment{grid-template-columns:minmax(0,1fr) auto}
 .ruyaPendingAttachment small{display:none}
}


/* RUYA V2.4.24.3 HF8.9R2 — Events target/delete/file visibility */
.ruyaEventAttachmentModal{max-height:min(92dvh,920px)!important;overflow:auto!important;overscroll-behavior:contain}
.ruyaEventAudienceField{margin-top:4px}
.ruyaEventAudienceChoices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.ruyaEventAudienceChoices button{min-height:38px;border:1px solid #dce3ee;background:#f8fafc;color:#475467;border-radius:11px;font:inherit;font-size:12px;font-weight:650;cursor:pointer}
.ruyaEventAudienceChoices button.active{border-color:#7152db;background:#f2edff;color:#4e2fb2;box-shadow:0 0 0 2px rgba(113,82,219,.08)}
.ruyaEventClassChoices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:150px;overflow:auto;padding:2px}
.ruyaEventClassChoices label{display:flex;align-items:center;gap:8px;min-height:36px;padding:7px 9px;border:1px solid #e2e7ef;border-radius:10px;background:#fff;cursor:pointer;font-size:11px;font-weight:600}
.ruyaEventClassChoices label.selected{border-color:#8e72e8;background:#f7f3ff;color:#4f35a8}
.ruyaEventClassChoices input{width:15px;height:15px;accent-color:#6941c6}
.ruyaEventCardActions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.ruyaEventDeleteButton{border:1px solid #efcfd5;background:#fff7f8;color:#b4233a;border-radius:10px;min-height:36px;padding:7px 12px;font:inherit;font-size:11px;font-weight:700;cursor:pointer}
.ruyaEventDeleteButton:hover{background:#fff0f2}
.ruyaEventDeleteInModal{margin-right:auto}
.ruyaEventTitleLine{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ruyaEventTitleLine h3{margin:0}
.ruyaEventAudienceBadge{display:inline-flex;align-items:center;min-height:22px;padding:3px 8px;border-radius:999px;background:#f1edff;color:#5d3fc2;font-size:9.5px;font-weight:700}
@media(max-width:720px){.ruyaEventAudienceChoices{grid-template-columns:1fr}.ruyaEventClassChoices{grid-template-columns:1fr}.ruyaEventCardActions{width:100%;justify-content:flex-end}}

/* RUYA_PARENT_DAILY_TRACKING_GALLERY_V1 */
.role-parent .ruyaDailyTrackingGallery{
  margin:4px 0 18px;
  padding:16px;
  border:1px solid #e7eaf2;
  border-radius:22px;
  background:linear-gradient(145deg,#ffffff 0%,#f8f9ff 100%);
  box-shadow:0 10px 28px rgba(28,43,76,.07);
  overflow:hidden;
}

.role-parent .ruyaDailyTrackingGalleryHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}

.role-parent .ruyaDailyTrackingGalleryHead span{
  display:block;
  margin-bottom:4px;
  color:#7c63c9;
  font-size:9px;
  line-height:1.2;
  font-weight:800;
  letter-spacing:.08em;
}

.role-parent .ruyaDailyTrackingGalleryHead h2{
  margin:0;
  color:#20355d;
  font-size:17px;
  line-height:1.25;
  font-weight:800;
}

.role-parent .ruyaDailyTrackingGalleryHead p{
  margin:5px 0 0;
  color:#7b8497;
  font-size:11px;
  line-height:1.45;
}

.role-parent .ruyaDailyTrackingGrid{
  margin:0;
}

.role-parent .dailyTrackingAlbumCard{
  border:1px solid #e8e5f5;
  box-shadow:0 7px 20px rgba(48,39,92,.06);
}

.role-parent .dailyTrackingAlbumCard .albumCoverButton{
  background:#f4f2fb;
}

.role-parent .dailyTrackingAlbumCard .privateShareBadge{
  background:#eee9ff;
  color:#6745b5;
}

@media(max-width:640px){
  .role-parent .ruyaDailyTrackingGallery{
    margin-left:0;
    margin-right:0;
    padding:13px;
    border-radius:19px;
  }

  .role-parent .ruyaDailyTrackingGalleryHead h2{
    font-size:16px;
  }

  .role-parent .ruyaDailyTrackingGalleryHead p{
    font-size:10.5px;
  }
}
