/* Signed-in pages: greeting, fresh cards, icons, approvals. Loaded after site.css and ops.css. */

:root {
  --indigo: #26337e;
  --sky: #3b6fe0;
  --mint: #1fa463;
  --soft-shadow: 0 1px 2px rgba(28, 39, 84, .06), 0 8px 24px -12px rgba(28, 39, 84, .22);
  --lift-shadow: 0 2px 4px rgba(28, 39, 84, .08), 0 16px 32px -14px rgba(28, 39, 84, .32);
}

/* ---------- Greeting banner ---------- */
.greet {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(120deg, #26337e 0%, #3b52c4 55%, #5a7bf0 100%);
  color: #fff;
}
.greet-in { max-width: 84rem; margin: 0 auto; padding: 1.1rem var(--gutter); display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.greet-hi { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.35rem, 3.2vw, 2rem); line-height: 1.15; }
.greet-hi b { color: var(--pencil); }
.greet-sub { margin: .1rem 0 0; opacity: .9; font-size: .98rem; }
.greet-sun { flex: none; width: 2.6rem; height: 2.6rem; color: var(--pencil); animation: spin 28s linear infinite; }
.greet-chip { margin-left: auto; padding: .35rem .9rem; border-radius: 999px; background: rgba(255,255,255,.16); border: 1.5px solid rgba(255,255,255,.4); font-weight: 700; font-size: .9rem; }
.greet::before, .greet::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; background: rgba(255,255,255,.08); animation: drift 14s ease-in-out infinite alternate; }
.greet::before { width: 14rem; height: 14rem; right: -3rem; top: -7rem; }
.greet::after { width: 9rem; height: 9rem; right: 22%; bottom: -5rem; animation-duration: 19s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { to { transform: translate(-30px, 12px) scale(1.12); } }

/* ---------- Page header ---------- */
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: .75rem 1.25rem; margin-bottom: .5rem; }
.page-head h1 { margin: 0; }
.page-head p { margin: .25rem 0 0; }
.portal-main h1 { position: relative; padding-bottom: .35rem; }
.portal-main h1::after { content: ""; display: block; width: 3.2rem; height: 5px; border-radius: 4px; background: var(--pencil); margin-top: .35rem; }
.page-head h1::after { display: none; }

/* ---------- Cards ---------- */
.portal .panel, .dash .panel {
  border: 1.5px solid #dbe5f7; border-radius: 16px; box-shadow: var(--soft-shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.portal .panel:hover { box-shadow: var(--lift-shadow); border-color: #c3d3f3; }
.portal .form-card { border-radius: 16px; border: 1.5px solid #cdd9f3; box-shadow: var(--soft-shadow); }
.portal .tile { border-radius: 14px; border: 1.5px solid #dbe5f7; border-left-width: 5px; box-shadow: var(--soft-shadow); transition: transform .2s ease, box-shadow .2s ease; }
.portal a.tile:hover { transform: translateY(-3px); box-shadow: var(--lift-shadow); }
.portal .stat { border-radius: 12px; }
.panel h2 { display: flex; align-items: center; gap: .5rem; }
.all-clear { text-align: center; background: linear-gradient(135deg, #effaf3, #fff); }
.all-clear h2 { justify-content: center; color: var(--leaf); }
.attention { border-color: #f1b8b4 !important; background: #fff7f6; }

/* ---------- Side menu with icons ---------- */
.portal-side { border: 1.5px solid #dbe5f7; border-radius: 18px; box-shadow: var(--soft-shadow); background: linear-gradient(180deg, #fff, #f7faff); }
.portal-name { border-bottom-color: var(--pencil); }
.portal-nav a { position: relative; justify-content: flex-start; gap: .65rem; transition: background .15s ease, transform .15s ease, padding .15s ease; }
.portal-nav a .nlabel { flex: 1; }
.portal-nav a:hover { background: #eaf0ff; transform: translateX(3px); }
.portal-nav a[aria-current="page"] { background: linear-gradient(90deg, var(--pencil), #ffe08a); box-shadow: 0 4px 12px -6px rgba(233, 172, 18, .8); }
.ni { flex: none; width: 1.2rem; height: 1.2rem; background: currentColor; opacity: .8; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.portal-nav a[aria-current="page"] .ni { opacity: 1; }
.ni[data-i="dot"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3C/svg%3E"); }
.ni[data-i="home"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8M5 10v10h14V10M10 20v-6h4v6'/%3E%3C/svg%3E"); }
.ni[data-i="calendar"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.ni[data-i="book"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5a2 2 0 0 1 2-2h13v16H6a2 2 0 0 0-2 2z'/%3E%3Cpath d='M9 7h6'/%3E%3C/svg%3E"); }
.ni[data-i="chart"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20V10M10 20V4M16 20v-8M22 20H2'/%3E%3C/svg%3E"); }
.ni[data-i="photo"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='11' r='2'/%3E%3Cpath d='M21 17l-5-5-9 7'/%3E%3C/svg%3E"); }
.ni[data-i="pencil"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l4-1 11-11-3-3L5 16z'/%3E%3C/svg%3E"); }
.ni[data-i="bell"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 16v-5a6 6 0 0 1 12 0v5l2 2H4zM10 21h4'/%3E%3C/svg%3E"); }
.ni[data-i="mail"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }
.ni[data-i="user"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E"); }
.ni[data-i="bus"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='13' rx='2'/%3E%3Cpath d='M4 11h16M7 20v-3M17 20v-3'/%3E%3C/svg%3E"); }
.ni[data-i="doc"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h8l4 4v14H6z'/%3E%3Cpath d='M14 3v4h4M9 12h6M9 16h6'/%3E%3C/svg%3E"); }
.ni[data-i="shield"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z'/%3E%3C/svg%3E"); }
.ni[data-i="money"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9 8h6M9 12h6M10 8c4 0 4 5 0 5l4 4'/%3E%3C/svg%3E"); }
.ni[data-i="check"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }
.ni[data-i="cog"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2v3M12 19v3M2 12h3M19 12h3M5 5l2 2M17 17l2 2M19 5l-2 2M7 17l-2 2'/%3E%3C/svg%3E"); }
.ni[data-i="camera"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3v11H4z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E"); }
.ni[data-i="send"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l18-8-8 18-2-8z'/%3E%3C/svg%3E"); }
.ni[data-i="star"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1L3.2 9.5l6.1-.9z'/%3E%3C/svg%3E"); }
.ni[data-i="clipboard"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='4' width='12' height='17' rx='2'/%3E%3Cpath d='M9 4h6v3H9zM9 13l2 2 4-4'/%3E%3C/svg%3E"); }
.ni[data-i="box"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M3 7l9-4 9 4v10l-9 4-9-4zM3 7l9 4 9-4M12 11v10'/%3E%3C/svg%3E"); }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .greet-sun, .greet::before, .greet::after { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- Approval status ---------- */
.st { display: inline-block; padding: .1rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .01em; }
.st-pending { background: #fff3d6; color: #7a5200; }
.st-approved { background: #dff7ec; color: #0b4a2b; }
.st-returned { background: #ffe3e3; color: #8a1111; }
.st-none { background: #eef0f8; color: #4a5580; }
.st-note { font-style: italic; color: var(--ink-soft); font-size: .9rem; }

.approve-card { border: 1.5px solid #dbe5f7; border-left: 5px solid var(--pencil); border-radius: 14px; padding: .9rem 1rem; margin-top: .9rem; background: #fff; }
.approve-card header { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; margin-bottom: .4rem; }
.approve-body p { margin: 0 0 .4rem; }
.approve-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .5rem; }
.approve-actions input[type="text"] { flex: 1 1 14rem; min-width: 0; font: inherit; padding: .45rem .7rem; border: 2px solid var(--rule); border-radius: 10px; background: var(--paper); }
.photo-actions { display: grid; gap: .35rem; margin-top: .4rem; }
.photo-actions input[type="text"] { font: inherit; padding: .35rem .6rem; border: 2px solid var(--rule); border-radius: 8px; background: var(--paper); min-width: 0; width: 100%; }

.waiting { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .8rem; margin: 1rem 0; }
.waiting-card { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; border-radius: 16px; background: #fff; border: 1.5px solid #dbe5f7; text-decoration: none; color: var(--ink); box-shadow: var(--soft-shadow); transition: transform .2s ease, box-shadow .2s ease; font-weight: 700; }
.waiting-card:hover { transform: translateY(-3px); box-shadow: var(--lift-shadow); color: var(--ink); }
.waiting-n { flex: none; min-width: 2.6rem; height: 2.6rem; display: grid; place-items: center; padding: 0 .4rem; border-radius: 12px; background: #eaf0ff; color: var(--indigo); font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; }
.waiting-card.has-work { border-color: #f1b8b4; background: #fff7f6; }
.waiting-card.has-work .waiting-n { background: var(--margin); color: #fff; animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(226, 70, 79, .45); } 50% { box-shadow: 0 0 0 9px rgba(226, 70, 79, 0); } }

/* ---------- Lists and filters ---------- */
.list-filter { width: 100%; max-width: 26rem; font: inherit; padding: .55rem .9rem .55rem 2.4rem; margin: 0 0 .7rem; border: 2px solid var(--rule); border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5580' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") .8rem center / 1.1rem no-repeat; color: var(--ink); }
.list-filter:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(59, 111, 224, .18); }
.scroll-box { max-height: 22rem; overflow-y: auto; padding-right: .5rem; border-top: 1.5px solid var(--rule); border-bottom: 1.5px solid var(--rule); scrollbar-width: thin; }
.scroll-box:focus-visible { outline: 3px solid var(--sky); }
.scroll-box ul { margin: 0; padding: .4rem 0; }
.scroll-box li { padding: .35rem 0; border-bottom: 1px dashed var(--rule); }
.pick-list { list-style: none; margin: 0; padding: 0; }
.pick-list li { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; padding: .6rem .3rem; border-bottom: 1.5px solid var(--rule); transition: background .15s ease; }
.pick-list li:hover { background: #f3f7ff; }
.pick-list a { font-weight: 700; flex: 1 1 10rem; }
.meter { height: 10px; border-radius: 999px; background: #e6ecfa; overflow: hidden; margin: .4rem 0 1rem; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--sky), var(--mint)); border-radius: inherit; transition: width .8s ease; }
.month-pick { margin: .4rem 0; display: inline-flex; gap: .6rem; align-items: center; }
.filter-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: .6rem 0 .2rem; }
.filter-chips .chip { border: 0; font: inherit; font-weight: 700; cursor: pointer; }

/* ---------- Rings, facts, diary ---------- */
.ring { --p: 0; display: grid; place-items: center; width: 3.6rem; height: 3.6rem; border-radius: 50%; margin-bottom: .2rem;
  background: conic-gradient(var(--mint) calc(var(--p) * 1%), #e3eaf9 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: .42rem; background: #fff; border-radius: 50%; }
.ring b { position: relative; font-size: .78rem; font-family: var(--font-display); }
.tile-alert .ring { background: conic-gradient(var(--margin) calc(var(--p) * 1%), #e3eaf9 0); }
.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: minmax(8rem, 11rem) 1fr; gap: .2rem .8rem; padding: .5rem 0; border-bottom: 1px dashed var(--rule); }
.facts dt { color: var(--ink-soft); font-weight: 700; font-size: .92rem; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.diary-section { border-left: 4px solid #cfe0ff; padding: .1rem 0 .1rem .8rem; margin: .7rem 0; }
.diary-section h3 { margin: 0 0 .15rem; font-size: .95rem; color: var(--indigo); }
.diary-section p { margin: 0; }
.diary-remind { border-left-color: var(--pencil); background: #fffbea; border-radius: 0 10px 10px 0; }
.next-up { display: grid; gap: .1rem; padding: .7rem 1rem; border-radius: 14px; background: linear-gradient(135deg, #fff4cc, #ffe08a); border: 1.5px solid #e9c64e; min-width: 12rem; }
.next-up strong { font-family: var(--font-display); font-size: 1.15rem; }
.cal-list .event { transition: background .15s ease; border-radius: 10px; padding-left: .4rem; }
.cal-list .event:hover { background: #f3f7ff; }
.cal-list .event[hidden] { display: none; }
.photo-grid .photo { border-radius: 14px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.photo-grid .photo:hover { transform: translateY(-3px); box-shadow: var(--lift-shadow); }

/* ---------- Dashboards pages now use the portal layout ---------- */
.dash h1 { margin-bottom: .2rem; }
.dash .stats { margin-top: 1rem; }

@media (max-width: 640px) {
  .greet-sun { display: none; }
  .greet-chip { margin-left: 0; }
  .facts div { grid-template-columns: 1fr; }
}
@media print { .greet { display: none !important; } }

/* ---------- Round 3 fixes: compact page headers, side menu scroll ---------- */
/* The public site gives .page-head a big blue banner; inside the signed-in portal it must stay a plain heading. */
.portal .page-head, .portal-main .page-head {
  background: none; color: var(--ink); padding: 0 0 .35rem; margin: 0 0 .75rem; border-radius: 0;
  align-items: center; justify-content: space-between;
}
.portal .page-head h1, .portal-main .page-head h1 { color: var(--ink); font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0; }
.portal .page-head p, .portal .page-head .page-intro, .portal .page-head .muted { color: var(--ink-soft); opacity: 1; font-size: 1rem; line-height: 1.45; }
.portal .page-head .page-intro { margin-top: .25rem; }
.date-chip { padding: .35rem .9rem; border-radius: 999px; background: #eaf0ff; border: 1.5px solid #c9d7f6; color: var(--ink); font-weight: 700; font-size: .92rem; white-space: nowrap; margin-left: auto; }

/* Side menu: stays in view and scrolls by itself when it is taller than the window. */
@media (min-width: 861px) {
  .portal-side { position: sticky; top: .75rem; max-height: calc(100vh - 1.5rem); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .portal-side::-webkit-scrollbar { width: 6px; }
  .portal-side::-webkit-scrollbar-thumb { background: #c3d3f3; border-radius: 6px; }
}
.crumb .btn { padding: .3rem .8rem; }

/* To-do groups */
.todo-group { margin: 1rem 0 .35rem; font-size: 1rem; display: flex; align-items: baseline; gap: .6rem; color: var(--ink); text-transform: uppercase; letter-spacing: .04em; }
.todo-group span { font-size: .82rem; text-transform: none; letter-spacing: 0; color: var(--ink-soft); font-weight: 600; }
.todo-group:first-of-type { margin-top: .4rem; }

/* Progress comment picker */
.phrase-pick { display: grid; gap: .35rem; min-width: 0; }
.phrase-pick select, .phrase-pick input { width: 100%; }
.phrase-pick .own-note[hidden] { display: none; }
.issue-list li { padding: .55rem 0; border-bottom: 1px solid #e5ecf8; }

.att-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.att-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .6rem 0; border-bottom: 1px solid #e5ecf8; }
.inv-list li { padding: .6rem 0; border-bottom: 1px solid #e5ecf8; }
.inline-form { display: inline-flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.homework-line { background: #fff8e1; border-left: 4px solid var(--pencil); padding: .4rem .7rem; border-radius: 6px; }
.small-title { font-size: 1rem; margin: 1rem 0 .3rem; }
.group-title { margin: 1.25rem 0 .5rem; font-size: 1.25rem; text-align: left; }
.diary-fold { margin-bottom: .6rem; }
.diary-fold > summary { cursor: pointer; list-style: none; display: flex; gap: .6rem; align-items: center; padding: .15rem 0; }
.diary-fold[open] > summary { margin-bottom: .6rem; }
.diary-homework { background: #fff8e1; border-left: 4px solid var(--pencil); padding: .4rem .8rem; border-radius: 6px; }

/* All-classes table */
.matrix td, .matrix th { white-space: nowrap; }
.matrix .cell-ok { background: #effaf3; color: #14683f; font-weight: 700; }
.matrix .cell-warn { background: #fff1f0; color: #a3262c; font-weight: 700; }
.matrix .cell-wait { background: #fff8e1; color: #7a5600; font-weight: 700; }
.matrix .cell-none { color: var(--ink-soft); }

.track-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.track h3 { margin: 0 0 .3rem; font-size: 1rem; }
.track .big { font-size: 1.8rem; font-weight: 800; margin: 0; }
.track .big small { font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.panel.is-warn { border-left: 4px solid #d9822b; }
.approve-edit { display: grid; gap: .6rem; }
.approve-edit label { display: grid; gap: .2rem; font-weight: 700; font-size: .9rem; }
.approve-edit textarea, .approve-edit input[type=text], .approve-edit select { width: 100%; font: inherit; padding: .4rem .5rem; border: 1px solid #c9ccd8; border-radius: 8px; }
.edited-note { display: inline-block; font-size: .8rem; background: #eef2ff; color: #34408f; border-radius: 999px; padding: 1px 10px; margin-left: .4rem; }
.crop-canvas { max-width: 100%; height: auto; border-radius: 10px; background: #eee; display: block; margin: .5rem 0; }
.crop-controls { display: grid; gap: .4rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: end; }
.crop-controls label { display: grid; gap: .1rem; font-weight: 700; font-size: .85rem; }
.notice-popup { border: 0; border-radius: 18px; padding: 1.4rem; max-width: min(92vw, 30rem); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.notice-popup::backdrop { background: rgba(20, 24, 60, .55); }
.hero-today { display: grid; gap: 1rem; grid-template-columns: 1.4fr 1fr; background: linear-gradient(135deg, #fff4cf, #e6f0ff); border-radius: 18px; padding: 1.1rem 1.3rem; margin: 0 0 1rem; }
.hero-hi { font-family: "Baloo 2", sans-serif; font-size: 1.5rem; margin: 0; }
.hero-line { margin: .1rem 0 .6rem; }
.hero-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; }
.hero-idea { background: rgba(255,255,255,.7); border-radius: 14px; padding: .8rem 1rem; }
.hero-idea p { margin: .15rem 0; }
@media (max-width: 640px) { .hero-today { grid-template-columns: 1fr; } }

/* Photo attached to a class issue */
.issue-photo { display: block; max-width: 220px; max-height: 160px; object-fit: cover; border-radius: 10px; border: 1.5px solid #c9d7f6; margin-top: .4rem; }

/* ---------- Notification bell (top bar) ---------- */
.bell { position: relative; }
.bell > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; position: relative;
  width: 42px; height: 42px; border-radius: 50%; background: #eaf0ff; border: 1.5px solid #c9d7f6; color: var(--ink, #1c2754); }
.bell > summary::-webkit-details-marker { display: none; }
.bell > summary:hover, .bell[open] > summary { background: #dbe6ff; }
.bell > summary:focus-visible { outline: 3px solid #f2a900; outline-offset: 2px; }
.bell-count { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; background: #d92d20; color: #fff;
  font-size: .78rem; font-weight: 800; line-height: 22px; text-align: center; border: 2px solid #fff; box-sizing: border-box; }
.bell-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: min(340px, 90vw); background: #fff; color: #1c2754; border-radius: 14px;
  border: 1.5px solid #c9d7f6; box-shadow: 0 14px 34px rgba(28,39,84,.22); padding: .6rem .4rem .5rem; }
.bell-head { margin: 0 .7rem .35rem; font-weight: 800; }
.bell-panel ul { list-style: none; margin: 0; padding: 0; }
.bell-panel li a { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .55rem .7rem; border-radius: 10px; color: inherit; text-decoration: none; }
.bell-panel li a:hover, .bell-panel li a:focus-visible { background: #eef3ff; }
.bell-panel li b { background: #d92d20; color: #fff; border-radius: 999px; min-width: 24px; text-align: center; padding: .05rem .45rem; font-size: .85rem; }
.bell-empty { margin: .4rem .7rem .6rem; color: #4a5580; }
@media print { .bell { display: none !important; } }

/* ---------- "Your account is locked" pop-up on the login page ---------- */
.lock-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(20,28,64,.55); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.lock-overlay[hidden] { display: none; }
.lock-box { background: #fff; border-radius: 18px; max-width: 420px; width: 100%; padding: 1.5rem 1.4rem; border-top: 8px solid #d92d20; box-shadow: 0 20px 50px rgba(0,0,0,.3); text-align: center; }
.lock-box h2 { margin: 0 0 .5rem; color: #b42318; }
.lock-box p { margin: 0 0 1rem; line-height: 1.5; }

/* Pending class issues stand out in red on the academic manager, business manager and BP pages */
.approve-card.issue-pending { border-color: #f3b8b8; border-left-color: #d62828; background: #fff5f5; }
.approve-card.issue-pending header strong { color: #b01e1e; }
.chip.chip-red { background: #d62828; color: #fff; border-color: #d62828; }

/* Install / alerts card */
.pwa-card { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; justify-content: space-between; border-left: 5px solid var(--pencil); margin-bottom: 1rem; }
.pwa-card[hidden] { display: none; }
.pwa-card p { margin: .2rem 0 0; }
.pwa-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.pwa-card [hidden] { display: none !important; }

.photo-day-img { width: 100%; max-height: 340px; object-fit: cover; border-radius: 14px; display: block; }
.streak { margin-top: .8rem; }

/* --- India clock and dashboard helpers --- */
.ist-clock { display: inline-flex; align-items: baseline; gap: .35rem; padding: .25rem .7rem; border-radius: 999px; background: #eef2ff; color: #26337e; font-weight: 700; font-variant-numeric: tabular-nums; font-size: .88rem; white-space: nowrap; }
.ist-clock .ist-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; opacity: .75; }
.ist-clock .ist-date { font-weight: 500; opacity: .75; font-size: .78rem; }
.ist-big { display: flex; flex-direction: column; align-items: flex-end; gap: .1rem; padding: .7rem 1.1rem; border-radius: 16px; background: rgba(255, 255, 255, .16); color: #fff; font-variant-numeric: tabular-nums; }
.ist-big strong { font-family: "Baloo 2", system-ui, sans-serif; font-size: 2rem; line-height: 1.05; }
.ist-big .ist-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.sb-hero { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.dash-bar { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: center; margin: .8rem 0; padding: .55rem .7rem; background: rgba(255, 255, 255, .94); backdrop-filter: blur(6px); border: 1px solid #dbe4f8; border-radius: 14px; box-shadow: 0 4px 14px rgba(38, 51, 126, .08); }
.dash-chips { display: flex; gap: .35rem; overflow-x: auto; flex: 1 1 320px; padding-bottom: 2px; scrollbar-width: thin; }
.dash-chip { flex: none; padding: .3rem .7rem; border-radius: 999px; background: #f1f5ff; color: #26337e; font-size: .8rem; font-weight: 700; text-decoration: none; border: 1px solid transparent; }
.dash-chip:hover, .dash-chip:focus-visible { background: #26337e; color: #fff; }
.dash-tools { display: flex; gap: .35rem; flex-wrap: wrap; }
.dash-tool { padding: .3rem .65rem; border-radius: 10px; border: 1px solid #cfd9f5; background: #fff; color: #26337e; font-size: .78rem; font-weight: 700; cursor: pointer; }
.dash-tool:hover { background: #eef2ff; }
.dash-stamp { font-size: .75rem; color: #6b7690; }
.is-foldable > h2 { cursor: pointer; user-select: none; }
.is-foldable > h2::after { content: "−"; margin-left: auto; width: 1.5rem; height: 1.5rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #eef2ff; color: #26337e; font-size: 1rem; flex: none; }
.is-foldable.is-folded > h2::after { content: "+"; }
.is-foldable.is-folded > :not(h2) { display: none; }
.kpi { transition: transform .15s ease, box-shadow .15s ease; }
a.kpi:hover, a.kpi:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0, 0, 0, .18); }
@media (max-width: 640px) { .ist-clock .ist-date { display: none; } .ist-big { align-items: flex-start; width: 100%; } }
@media print { .dash-bar, .ist-clock { display: none; } }

/* Dashboard tiles and pop-ups */
.tile-group { font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #5b6b8c; margin: 1.3rem 0 .5rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.portal .tiles .tile, .tiles .tile { display: flex; flex-direction: column; gap: .15rem; text-align: left; padding: .9rem 1rem; min-height: 140px; border-radius: 20px; color: #fff !important; text-decoration: none; cursor: pointer; font: inherit; border: 0; border-radius: 16px; box-shadow: 0 6px 16px rgba(30, 40, 80, .18); background: #4b5fd1; }
.tiles .tile:hover { transform: translateY(-3px); }
.tiles .tile:focus-visible { outline: 3px solid #1b2a5c; outline-offset: 2px; }
.tiles .tile * { color: #fff !important; }
.tiles .tile-label { font-size: 1rem; font-weight: 700; }
.tiles .tile-value { font-size: 2.6rem; font-weight: 800; line-height: 1.1; }
.tiles .tile-value small { font-size: .95rem; font-weight: 600; opacity: .85; }
.tiles .tile-sub { font-size: .9rem; margin-top: auto; }
.tiles-small .tile { min-height: 96px; }
.portal .tiles .tile.tile-red { background: linear-gradient(135deg, #e0334c, #b3122f); }
.portal .tiles .tile.tile-green { background: linear-gradient(135deg, #1fa971, #0e7a52); }
.portal .tiles .tile.tile-violet { background: linear-gradient(135deg, #7c4dff, #5230c9); }
.portal .tiles .tile.tile-blue { background: linear-gradient(135deg, #2e7df6, #1553b8); }
.portal .tiles .tile.tile-orange { background: linear-gradient(135deg, #f58a1f, #c9610a); }
.portal .tiles .tile.tile-amber { background: linear-gradient(135deg, #e0a800, #a87500); }
.portal .tiles .tile.tile-pink { background: linear-gradient(135deg, #e8559a, #b02a6f); }
.portal .tiles .tile.tile-teal { background: linear-gradient(135deg, #14a3a8, #0b6f74); }
.portal .tiles .tile.tile-indigo { background: linear-gradient(135deg, #4b5fd1, #2e3a99); }
dialog.pop { border: 0; border-radius: 18px; padding: 0; width: min(960px, 94vw); max-height: 88vh; box-shadow: 0 20px 60px rgba(10, 20, 60, .45); }
dialog.pop::backdrop { background: rgba(15, 25, 60, .55); }
dialog.pop[open] { display: flex; flex-direction: column; }
.pop-head { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1.1rem; background: #f1f4ff; border-bottom: 1px solid #dbe5f7; }
.pop-head h2 { margin: 0; font-size: 1.15rem; }
.pop-x { border: 0; background: #1b2a5c; color: #fff; width: 2.2rem; height: 2.2rem; border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.pop-body { padding: 1rem 1.1rem; overflow: auto; }
.pop-body > .panel > h2, .pop-body > section > h2:first-child { display: none; }
.pop-body .panel, .pop-body .chart-card { box-shadow: none; border: 0; padding: 0; margin: 0 0 1rem; }

/* Dashboard slides: one page at a time, like a presentation */
.deck-bar { display: flex; align-items: center; gap: .8rem; background: #fff; border-radius: 16px; padding: .6rem .9rem; box-shadow: 0 6px 16px rgba(30, 40, 80, .1); margin: 0 0 1rem; }
.deck-bar .deck-count { font-weight: 800; white-space: nowrap; color: #1b2a5c; }
.deck-track { flex: 1; height: 8px; background: #e3eaf9; border-radius: 99px; overflow: hidden; }
.deck-track span { display: block; height: 100%; background: linear-gradient(90deg, #4b5fd1, #14a3a8); border-radius: 99px; transition: width .3s; }
.deck-btn { border: 0; background: #1b2a5c; color: #fff; width: 2.4rem; height: 2.4rem; border-radius: 50%; font-size: 1.3rem; cursor: pointer; }
.deck-btn:disabled { opacity: .3; cursor: default; }
.deck-dots { display: flex; gap: .35rem; flex-wrap: wrap; }
.deck-dots button { border: 1.5px solid #dbe5f7; background: #fff; border-radius: 999px; padding: .25rem .7rem; font-weight: 700; font-size: .8rem; color: #1b2a5c; cursor: pointer; }
.deck-dots button.on { background: #1b2a5c; color: #fff; }
.dsl-title { font-size: 1.5rem; margin: 0 0 .8rem; color: #1b2a5c; display: flex; align-items: center; gap: .6rem; }
.dsl-title span { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: #1b2a5c; color: #fff; font-size: 1rem; }
.dcards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); align-items: stretch; }
.dcard { display: flex; flex-direction: column; background: #fff; border-radius: 20px; border: 3px solid var(--dc, #4b5fd1); overflow: hidden; box-shadow: 0 8px 20px rgba(30, 40, 80, .12); cursor: pointer; min-height: 300px; }
.dcard[data-pop]:hover { transform: translateY(-3px); }
.dcard header { background: var(--dc, #4b5fd1); padding: .7rem 1rem; }
.dcard h3 { margin: 0; color: #fff; font-size: 1.05rem; }
.dcard-body { padding: .8rem 1rem; flex: 1; min-width: 0; color: #1b2a5c; }
.dcard-body svg { max-width: 100%; height: auto; }
.dcard-big { margin: 0; font-size: 2.6rem; font-weight: 800; line-height: 1.1; color: var(--dc, #4b5fd1); }
.dcard-big small { font-size: 1rem; font-weight: 600; opacity: .7; }
.dcard-sub, .dcard-note { margin: .1rem 0 .5rem; font-size: .88rem; color: #5b6b8c; }
.dcard-note { font-size: .82rem; }
.dcard footer { padding: .6rem 1rem .9rem; }
.dcard-open { display: inline-block; border: 0; background: var(--dc, #4b5fd1); color: #fff !important; border-radius: 999px; padding: .4rem 1rem; font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; text-decoration: none; }
.mlist { list-style: none; padding: 0; margin: .4rem 0 0; font-size: .86rem; }
.mlist li { display: flex; justify-content: space-between; gap: .5rem; padding: .25rem 0; border-bottom: 1px dashed #dbe5f7; }
.mlist li.is-done { text-decoration: line-through; opacity: .55; }
.mbar { height: 9px; background: #e3eaf9; border-radius: 99px; overflow: hidden; margin: .3rem 0 .4rem; }
.mbar span { display: block; height: 100%; background: var(--dc, #4b5fd1); border-radius: 99px; }
.dcard-red { --dc: #d62d48; } .dcard-green { --dc: #159a68; } .dcard-violet { --dc: #6f43f0; } .dcard-blue { --dc: #2672e8; }
.dcard-orange { --dc: #e8780f; } .dcard-amber { --dc: #c99700; } .dcard-pink { --dc: #d8478f; } .dcard-teal { --dc: #0f9297; } .dcard-indigo { --dc: #4054c4; }
.donut-wrap { display: block; text-align: center; }
.dcard .donut-wrap svg circle:nth-child(2) { stroke: var(--dc); }
.deck.is-deck .dsl-page { display: none; }
.deck.is-deck .dsl-page.is-current { display: block; animation: deckin .25s ease; }
@keyframes deckin { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.dsl-page .tiles { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

.deck-flat .dsl-page { margin: 0 0 1.8rem; scroll-margin-top: 3.4rem; }
.dcard-wide { grid-column: span 2; }
@media (max-width: 700px) { .dcard-wide { grid-column: auto; } }
.hbars .hb-label { white-space: normal; }
.pop-body .hbars { max-width: 760px; }

.dcards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1150px) { .dcards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .dcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .dcards { grid-template-columns: 1fr; } }
.dsl-nav { position: sticky; top: 0; z-index: 5; display: flex; gap: .4rem; flex-wrap: wrap; padding: .5rem 0; background: rgba(245, 247, 255, .94); backdrop-filter: blur(6px); margin-bottom: .6rem; }
.dsl-nav a { padding: .35rem .8rem; border-radius: 999px; background: #fff; border: 1.5px solid #dbe5f7; font-weight: 700; font-size: .85rem; text-decoration: none; color: #1b2a5c; }
.dsl-nav a:hover { background: #1b2a5c; color: #fff; }
.dcard-icon { font-size: 3.2rem; margin: .2rem 0; line-height: 1; }
.dcard-link { cursor: pointer; }

/* Parent home: colourful, lively dashboard */
.pp { --r: 22px; }
.pp-hero { display: grid; grid-template-columns: 1.55fr 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 800px) { .pp-hero { grid-template-columns: 1fr; } }
.pp-welcome { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: flex-end; gap: .5rem; background: linear-gradient(135deg, #fff3c9, #dff3ff); border-radius: var(--r); padding: 1.3rem 1.5rem 0; min-height: 200px; box-shadow: 0 8px 20px rgba(30, 40, 80, .1); }
.pp-welcome-text { position: relative; z-index: 2; padding-bottom: 1.3rem; max-width: 56%; }
.pp-welcome h1 { margin: 0 0 .2rem; font-size: 2rem; color: #1b2a5c; }
.pp-welcome p { margin: 0 0 .8rem; font-size: 1.05rem; color: #3b4a73; }
.pp-who { display: block; margin-top: .7rem; font-size: .85rem; color: #5b6b8c; }
.pp-kids { width: 250px; max-width: 42%; height: auto; flex: none; position: relative; z-index: 1; }
.pp-sun { position: absolute; right: 1.2rem; top: .8rem; width: 62px; height: 62px; border-radius: 50%; background: radial-gradient(circle, #ffe066 55%, #ffc83d 100%); box-shadow: 0 0 0 10px rgba(255, 214, 80, .25), 0 0 40px 10px rgba(255, 214, 80, .45); animation: pp-pulse 3.5s ease-in-out infinite; }
.pp-cloud { position: absolute; height: 26px; width: 80px; border-radius: 99px; background: rgba(255, 255, 255, .9); }
.pp-cloud::before { content: ""; position: absolute; left: 14px; top: -14px; width: 36px; height: 36px; border-radius: 50%; background: inherit; }
.pp-cloud-a { top: 18px; left: 52%; animation: pp-drift 14s ease-in-out infinite alternate; }
.pp-cloud-b { top: 62px; left: 70%; transform: scale(.7); animation: pp-drift 18s ease-in-out infinite alternate-reverse; }
.pp-idea { position: relative; overflow: hidden; background: linear-gradient(135deg, #eef3ff, #e3f4ff); border-radius: var(--r); padding: 1.2rem 1.4rem; box-shadow: 0 8px 20px rgba(30, 40, 80, .1); }
.pp-idea h2 { margin: .3rem 0; font-size: 1.5rem; color: #1b2a5c; }
.pp-idea p { color: #3b4a73; max-width: 62%; margin: 0 0 .4rem; }
.pp-tag { display: inline-block; background: #fff; border-radius: 99px; padding: .2rem .8rem; font-size: .8rem; font-weight: 700; color: #3b5bdb; }
.pp-plant { position: absolute; right: 1rem; bottom: 0; width: 110px; }
.pp-btn { display: inline-block; border: 0; border-radius: 99px; padding: .5rem 1.1rem; font: inherit; font-weight: 700; font-size: .92rem; text-decoration: none; cursor: pointer; transition: transform .15s; }
.pp-btn:hover { transform: translateY(-2px); }
.pp-btn-blue { background: #fff; color: #1d5fd8; box-shadow: 0 4px 10px rgba(29, 95, 216, .2); }
.pp-btn-soft-blue { background: #dbe9ff; color: #1d5fd8; } .pp-btn-green { background: #d5f6e6; color: #0a8f55; }
.pp-btn-orange { background: #ffe0cf; color: #d4520f; } .pp-btn-purple { background: #e5dcff; color: #5a2fd0; }
.pp-btn-pink { background: #ffd9e8; color: #c2255c; } .pp-btn-indigo { background: #dfe4ff; color: #3341b5; }
.pp-pill { display: inline-block; margin-left: .4rem; background: #d5f6e6; color: #0a8f55; border-radius: 99px; padding: .25rem .8rem; font-weight: 700; font-size: .82rem; text-decoration: none; }
.pp-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; }
.pp-card { grid-column: span 3; display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: #fff; box-shadow: 0 8px 20px rgba(30, 40, 80, .1); min-width: 0; text-decoration: none; color: #1b2a5c; }
.pp-card header { display: flex; align-items: center; gap: .6rem; padding: .75rem 1rem; color: #fff; }
.pp-card header h2 { margin: 0; font-size: 1.02rem; flex: 1; color: inherit; }
.pp-ico { font-size: 1.5rem; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .15)); }
.pp-body { padding: .9rem 1rem 1.1rem; flex: 1; display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; min-width: 0; }
.pp-big { margin: 0; font-size: 2.6rem; font-weight: 800; line-height: 1; }
.pp-sub { margin: 0; color: #5b6b8c; font-size: .92rem; } .pp-snip { margin: 0; font-size: .85rem; color: #3b4a73; }
.pp-body .pp-btn { margin-top: auto; }
.pp-blue header { background: linear-gradient(120deg, #2e7df6, #1d5fd8); } .pp-blue { background: #f0f6ff; }
.pp-green header { background: linear-gradient(120deg, #22c28a, #0ea66e); } .pp-green { background: #effcf6; } .pp-green .pp-big { color: #0a8f55; }
.pp-orange header { background: linear-gradient(120deg, #ff8a3d, #f2620c); } .pp-orange { background: #fff4ec; } .pp-orange .pp-big { color: #d4520f; }
.pp-purple header { background: linear-gradient(120deg, #8a5cff, #5a2fd0); } .pp-purple { background: #f4efff; } .pp-purple .pp-big { color: #5a2fd0; }
.pp-soft header { color: #1b2a5c; padding-bottom: .4rem; }
.pp-pink { background: #ffe9f1; } .pp-pink header h2, .pp-pink .pp-ico { color: #c2255c; }
.pp-lav { background: #ecebff; } .pp-lav header h2 { color: #3341b5; }
.pp-mint { background: #e6faf0; } .pp-mint header h2 { color: #0a8f55; }
.pp-sky { background: #e2f3ff; } .pp-sky header h2 { color: #1d5fd8; }
.pp-rose { background: #ffe3ee; } .pp-cream { background: #fff1cf; }
.pp-progress, .pp-att { grid-column: span 4; } .pp-coming { grid-column: span 4; }
.pp-photos { grid-column: span 12; } .pp-link-card { grid-column: span 4; flex-direction: row; align-items: center; gap: 1rem; padding: 1rem 1.2rem; }
.pp-link-card:hover { transform: translateY(-3px); } .pp-link-card strong { display: block; font-size: 1.1rem; } .pp-link-card small { color: #5b6b8c; }
.pp-link-card > span:nth-child(2) { flex: 1; }
.pp-big-ico { font-size: 3rem; line-height: 1; animation: pp-float 3s ease-in-out infinite; } .pp-bus { animation: pp-drive 2.4s ease-in-out infinite; }
.pp-go { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; color: #fff; font-style: normal; font-size: 1.5rem; flex: none; }
.pp-go-pink { background: #ec4899; } .pp-go-blue { background: #2e7df6; } .pp-go-gold { background: #f5a623; }
.pp-link { color: #1d5fd8; font-weight: 700; font-size: .85rem; background: #fff; border-radius: 99px; padding: .2rem .7rem; text-decoration: none; }
.pp-people { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: .5rem; width: 100%; }
.pp-people li { display: flex; flex-direction: column; align-items: center; text-align: center; font-size: .82rem; font-weight: 700; }
.pp-people small { display: block; font-weight: 400; color: #5b6b8c; }
.pp-people img, .pp-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; margin-bottom: .2rem; }
.pp-avatar { display: grid; place-items: center; background: #ffe066; font-weight: 800; }
.pp-bars { display: flex; gap: 3px; align-items: flex-end; height: 70px; width: 100%; }
.pp-bar { flex: 1; border-radius: 3px 3px 0 0; background: #d9dcf2; height: 24%; } .pp-bar-present { background: #19b574; height: 100%; } .pp-bar-late { background: #f5a623; height: 70%; } .pp-bar-absent { background: #ef4565; height: 45%; }
.pp-key { margin: 0; font-size: .78rem; color: #5b6b8c; } .pp-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 .2rem 0 .5rem; } .k-present { background: #19b574; } .k-late { background: #f5a623; } .k-absent { background: #ef4565; }
.pp-scroll { flex: none; height: 196px; overflow: hidden; position: relative; padding: .4rem 1rem; display: block; }
.pp-events { list-style: none; margin: 0; padding: 0; }
.is-moving .pp-events { animation: pp-up 22s linear infinite; } .pp-scroll:hover .pp-events { animation-play-state: paused; }
.pp-events li { display: flex; gap: .7rem; align-items: center; padding: .45rem 0; border-bottom: 1px dashed #bfe8d2; }
.pp-events small { display: block; color: #5b6b8c; }
.pp-date { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; font-size: .7rem; text-transform: uppercase; color: #0a8f55; flex: none; line-height: 1.05; } .pp-date b { font-size: 1.15rem; }
.ev-holiday .pp-date { color: #d4520f; background: #fff1e6; }
.pp-carousel { overflow: hidden; width: 100%; border-radius: 14px; } .pp-track { display: flex; gap: .7rem; width: max-content; }
.pp-track a { flex: none; } .pp-track img { display: block; height: 150px; width: 200px; object-fit: cover; border-radius: 12px; box-shadow: 0 4px 10px rgba(30, 40, 80, .2); }
.pp-carousel.is-moving .pp-track { animation: pp-left 38s linear infinite; } .pp-carousel:hover .pp-track { animation-play-state: paused; }
@keyframes pp-left { to { transform: translateX(-50%); } }
@keyframes pp-up { to { transform: translateY(-50%); } }
@keyframes pp-pulse { 50% { transform: scale(1.08); } }
@keyframes pp-drift { to { transform: translateX(40px); } }
@keyframes pp-float { 50% { transform: translateY(-6px) rotate(-4deg); } }
@keyframes pp-drive { 0%, 100% { transform: translateX(-4px); } 50% { transform: translateX(6px); } }
@keyframes pp-bob { 50% { transform: translateY(-6px); } }
@keyframes pp-wave { 50% { transform: rotate(18deg); } }
@keyframes pp-sway { 50% { transform: rotate(5deg); } }
.pp-bob-a { animation: pp-bob 2.2s ease-in-out infinite; } .pp-bob-b { animation: pp-bob 2.2s ease-in-out .5s infinite; }
.pp-wave, .pp-wave2 { transform-box: fill-box; transform-origin: 0% 50%; animation: pp-wave 1.2s ease-in-out infinite; } .pp-wave2 { animation-delay: .3s; }
.pp-sway { transform-box: fill-box; transform-origin: 50% 100%; animation: pp-sway 3s ease-in-out infinite; }
@media (max-width: 1100px) { .pp-card { grid-column: span 6; } .pp-progress, .pp-att, .pp-coming, .pp-link-card { grid-column: span 6; } .pp-photos { grid-column: span 12; } }
@media (max-width: 600px) { .pp-card, .pp-progress, .pp-att, .pp-coming, .pp-link-card, .pp-photos { grid-column: span 12; } .pp-welcome-text { max-width: 100%; } .pp-kids { display: none; } .pp-idea p { max-width: 100%; } .pp-plant { display: none; } }
@media (prefers-reduced-motion: reduce) { .pp *, .pp *::before { animation: none !important; } .pp-scroll { overflow: auto; } .pp-carousel { overflow-x: auto; } }

/* Parent home v2: weather scene, idea art, card art, attendance numbers */
.pp-wx { position: relative; width: 46%; min-width: 220px; height: 180px; align-self: stretch; margin-right: -1rem; flex: none; }
.pp-wx > * { position: absolute; }
.wx-label { left: auto; right: 1rem; bottom: .7rem; background: rgba(255, 255, 255, .85); border-radius: 99px; padding: .25rem .8rem; font-size: .82rem; font-weight: 700; color: #1b2a5c; }
.wx-sun { right: 2.2rem; top: 1rem; width: 74px; height: 74px; border-radius: 50%; background: radial-gradient(circle, #ffe066 55%, #ffc83d); box-shadow: 0 0 40px 12px rgba(255, 214, 80, .55); animation: pp-pulse 3.5s ease-in-out infinite; }
.wx-sun i { position: absolute; left: 50%; top: 50%; width: 6px; height: 120%; margin: -60% 0 0 -3px; border-radius: 3px; background: linear-gradient(#ffd23f 0 22%, transparent 22%); transform: rotate(calc(var(--n) * 45deg)); }
.wx-sun i:nth-child(1) { --n: 0; } .wx-sun i:nth-child(2) { --n: 1; } .wx-sun i:nth-child(3) { --n: 2; } .wx-sun i:nth-child(4) { --n: 3; } .wx-sun i:nth-child(5) { --n: 4; } .wx-sun i:nth-child(6) { --n: 5; } .wx-sun i:nth-child(7) { --n: 6; } .wx-sun i:nth-child(8) { --n: 7; }
.wx-sun { animation: pp-pulse 3.5s ease-in-out infinite; } .wx-sun-small { width: 56px; height: 56px; right: 3.4rem; top: .8rem; }
.wx-cloud { height: 28px; width: 92px; border-radius: 99px; background: #fff; box-shadow: 0 6px 12px rgba(80, 110, 160, .15); } .wx-cloud::before { content: ""; position: absolute; left: 16px; top: -16px; width: 42px; height: 42px; border-radius: 50%; background: inherit; } .wx-cloud::after { content: ""; position: absolute; left: 46px; top: -8px; width: 32px; height: 32px; border-radius: 50%; background: inherit; }
.wx-c1 { right: 5.5rem; top: 4.4rem; animation: pp-drift 9s ease-in-out infinite alternate; } .wx-c2 { right: 2rem; top: 6.2rem; transform: scale(.75); animation: pp-drift 12s ease-in-out infinite alternate-reverse; } .wx-c3 { right: 7rem; top: 1.2rem; transform: scale(.8); animation: pp-drift 15s ease-in-out infinite alternate; }
.wx-dark { background: #8da2c0; } .wx-dark::before, .wx-dark::after { background: #8da2c0; } .wx-c1.wx-dark { top: 1.6rem; right: 4rem; } .wx-c2.wx-dark { top: 3rem; right: 2.2rem; transform: scale(.8); }
.wx-drop { top: 4.2rem; width: 3px; height: 16px; border-radius: 3px; background: linear-gradient(#7ec4ff, #2e7df6); opacity: 0; animation: pp-rain 1.1s linear infinite; }
.wx-d1 { right: 1.2rem; animation-delay: 0s; } .wx-d2 { right: 2.4rem; animation-delay: .25s; } .wx-d3 { right: 3.6rem; animation-delay: .6s; } .wx-d4 { right: 4.8rem; animation-delay: .1s; } .wx-d5 { right: 6rem; animation-delay: .45s; } .wx-d6 { right: 7.2rem; animation-delay: .8s; } .wx-d7 { right: 8.4rem; animation-delay: .3s; } .wx-d8 { right: 9.6rem; animation-delay: .7s; } .wx-d9 { right: 10.8rem; animation-delay: .15s; } .wx-d10 { right: 2rem; animation-delay: .9s; } .wx-d11 { right: 5.4rem; animation-delay: .55s; } .wx-d12 { right: 8rem; animation-delay: .05s; }
.wx-umbrella { right: 1.2rem; bottom: 2.6rem; font-size: 2.4rem; animation: pp-wobble 2.4s ease-in-out infinite; }
.wx-bolt { right: 5rem; top: 4rem; width: 26px; height: 46px; background: #ffd23f; clip-path: polygon(55% 0, 10% 58%, 45% 58%, 30% 100%, 90% 38%, 52% 38%); animation: pp-flash 3s infinite; }
.wx-bird { font-size: 1.5rem; right: 9rem; top: 2rem; animation: pp-fly 7s ease-in-out infinite alternate; }
.pp-wx-night .wx-moon { right: 3rem; top: 1rem; width: 62px; height: 62px; border-radius: 50%; background: #fff6c8; box-shadow: inset -14px -6px 0 0 #e6d98f, 0 0 36px 8px rgba(255, 246, 200, .6); animation: pp-pulse 4s ease-in-out infinite; }
.wx-star { width: 6px; height: 6px; border-radius: 50%; background: #ffe066; animation: pp-twinkle 2s ease-in-out infinite; } .wx-s1 { right: 8rem; top: 1rem; } .wx-s2 { right: 10rem; top: 3.2rem; animation-delay: .4s; } .wx-s3 { right: 1rem; top: 4.4rem; animation-delay: .8s; } .wx-s4 { right: 6rem; top: 5rem; animation-delay: 1.1s; } .wx-s5 { right: 12rem; top: 5.6rem; animation-delay: .2s; } .wx-s6 { right: 4.6rem; top: .6rem; animation-delay: 1.4s; }
.pp-welcome { background: linear-gradient(135deg, #fff3c9, #dff3ff); } .pp-welcome:has(.pp-wx-rain), .pp-welcome:has(.pp-wx-storm) { background: linear-gradient(135deg, #dfe7f5, #c9d8ee); } .pp-welcome:has(.pp-wx-night) { background: linear-gradient(135deg, #2b3a7a, #4b5fd1); } .pp-welcome:has(.pp-wx-night) h1, .pp-welcome:has(.pp-wx-night) p, .pp-welcome:has(.pp-wx-night) .pp-who { color: #fff; }
.pp-idea-art { position: absolute; right: 1.2rem; bottom: .8rem; width: 110px; height: 110px; display: grid; place-items: center; }
.ia-icon { font-size: 4.2rem; animation: pp-wiggle 2.6s ease-in-out infinite; display: block; filter: drop-shadow(0 6px 6px rgba(30, 40, 80, .2)); }
.ia-spark { position: absolute; width: 12px; height: 12px; background: #ffd23f; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: pp-twinkle 1.8s ease-in-out infinite; } .ia-1 { left: 4px; top: 10px; } .ia-2 { right: 0; top: 0; animation-delay: .6s; } .ia-3 { right: 8px; bottom: 6px; animation-delay: 1.1s; }
.pp-idea p { max-width: 62%; }
.pp-art { position: absolute; right: .8rem; bottom: .8rem; font-size: 2.6rem; line-height: 1; animation: pp-float 3.4s ease-in-out infinite; pointer-events: none; opacity: .95; }
.pp-card { position: relative; } .pp-art + .pp-btn, .pp-art ~ .pp-btn { position: relative; z-index: 1; }
.pp-att-nums { display: flex; gap: 1.6rem; margin: .3rem 0 .6rem; } .pp-att-nums p { margin: 0; display: flex; flex-direction: column; } .pp-att-nums b { font-size: 2.4rem; line-height: 1; } .pp-att-nums span { font-size: .85rem; color: #5b6b8c; } .n-present { color: #0a8f55; } .n-absent { color: #e0334c; }
.ev-meeting .pp-date { color: #5a2fd0; background: #f0eaff; }
@keyframes pp-rain { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(80px); opacity: 0; } }
@keyframes pp-wobble { 50% { transform: rotate(8deg) translateY(-3px); } }
@keyframes pp-flash { 0%, 88%, 100% { opacity: 0; } 90%, 94% { opacity: 1; } }
@keyframes pp-fly { to { transform: translate(-50px, 12px); } }
@keyframes pp-twinkle { 50% { opacity: .25; transform: scale(.6); } }
@keyframes pp-wiggle { 50% { transform: rotate(-8deg) scale(1.06); } }
@media (max-width: 600px) { .pp-wx { display: none; } .pp-idea-art { width: 70px; height: 70px; } .ia-icon { font-size: 2.8rem; } }
.pp-kid { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: .5rem; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.pp-who { display: flex; align-items: center; }

/* Super-boss dashboard (template style) */
.bp-hero { display: grid; grid-template-columns: 1fr 250px; gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 800px) { .bp-hero { grid-template-columns: 1fr; } }
.bp-welcome { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; background: linear-gradient(135deg, #e6f4ff, #fff7dc); border-radius: 22px; padding: 1.2rem 1.5rem; min-height: 160px; box-shadow: 0 8px 20px rgba(30, 40, 80, .1); }
.bp-welcome h1 { margin: 0 0 .2rem; font-size: 2rem; color: #1b2a5c; } .bp-welcome p { margin: 0 0 .8rem; color: #3b4a73; }
.bp-school { width: 330px; max-width: 50%; height: auto; align-self: flex-end; margin-bottom: -1.2rem; }
.bp-cloud { animation: pp-drift 9s ease-in-out infinite alternate; } .bp-cloud2 { animation-duration: 13s; animation-direction: alternate-reverse; }
.bp-flag { transform-box: fill-box; transform-origin: 0 50%; animation: pp-wave 1.8s ease-in-out infinite; } .bp-tree { transform-box: fill-box; transform-origin: 50% 100%; animation: pp-sway 4s ease-in-out infinite; } .bp-tree2 { animation-delay: 1s; }
.bp-clock { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; text-align: right; color: #fff; background: linear-gradient(135deg, #2e7df6, #0a9bd6); border-radius: 22px; padding: 1rem 1.4rem; box-shadow: 0 8px 20px rgba(30, 40, 80, .15); }
.bp-clock strong { font-size: 2.3rem; line-height: 1.1; } .bp-clock span { font-size: .85rem; opacity: .95; }
.bp-row .pp-card { grid-column: span 3; } .bp-row .bp-w4 { grid-column: span 4; }
@media (max-width: 1100px) { .bp-row .pp-card, .bp-row .bp-w4 { grid-column: span 6; } } @media (max-width: 600px) { .bp-row .pp-card, .bp-row .bp-w4 { grid-column: span 12; } }
.bp-red header { background: linear-gradient(120deg, #f0405a, #d62d48); } .bp-red { background: #fff1f3; } .bp-red .pp-big { color: #d62d48; }
.bp-green header { background: linear-gradient(120deg, #22c28a, #0ea66e); } .bp-green { background: #effcf6; } .bp-green .pp-big { color: #0a8f55; }
.bp-violet header { background: linear-gradient(120deg, #8a5cff, #5a2fd0); } .bp-violet { background: #f4efff; }
.bp-orange header { background: linear-gradient(120deg, #ff8a3d, #f2620c); } .bp-orange { background: #fff4ec; } .bp-orange .pp-big { color: #d4520f; }
.bp-btn-red { background: #d62d48; color: #fff; } .bp-btn-green { background: #0ea66e; color: #fff; } .bp-btn-violet { background: #6f43f0; color: #fff; } .bp-btn-orange { background: #f2620c; color: #fff; }
.bp-btn-blue { background: #dbe9ff; color: #1d5fd8; } .bp-btn-gold { background: #ffe9a8; color: #8a5a00; } .bp-btn-pink { background: #ffd9e8; color: #c2255c; } .bp-btn-indigo { background: #dfe4ff; color: #3341b5; }
.bp-sky { background: #e8f3ff; } .bp-gold { background: #fff4d6; } .bp-mint { background: #e6faf0; } .bp-lav { background: #efeeff; }
.pp-soft header { background: transparent; } .pp-soft header h2 { color: #1b2a5c; } .pp-soft header small { font-weight: 400; opacity: .7; }
.bp-donut { display: block; } .bp-donut svg { max-width: 96px; }
.bp-h { display: flex; align-items: baseline; gap: .6rem; font-size: 1.25rem; color: #1b2a5c; margin: 1.4rem 0 .6rem; } .bp-h small { font-size: .85rem; font-weight: 400; color: #5b6b8c; }
.bp-qas { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; }
.bp-qa { display: flex; align-items: center; gap: .8rem; text-align: left; font: inherit; color: #1b2a5c; text-decoration: none; border: 0; cursor: pointer; border-radius: 18px; padding: .9rem 1rem; box-shadow: 0 6px 14px rgba(30, 40, 80, .1); transition: transform .15s; }
.bp-qa:hover { transform: translateY(-3px); } .bp-qa > span:nth-child(2) { flex: 1; min-width: 0; } .bp-qa strong { display: block; } .bp-qa small { display: block; color: #4a5a80; font-size: .82rem; }
.bp-qa-ico { font-size: 2rem; line-height: 1; animation: pp-float 3.4s ease-in-out infinite; }
.bp-qa-pink { background: #ffe3ee; } .bp-qa-teal { background: #dcf5f5; } .bp-qa-violet { background: #ece6ff; } .bp-qa-orange { background: #ffe9d6; } .bp-qa-blue { background: #dfeeff; } .bp-qa-green { background: #dcf7e8; } .bp-qa-indigo { background: #e3e7ff; } .bp-qa-amber { background: #fff0c4; } .bp-qa-red { background: #ffdde2; }
.bp-go-pink { background: #ec4899; } .bp-go-teal { background: #0f9297; } .bp-go-violet { background: #6f43f0; } .bp-go-orange { background: #f2620c; } .bp-go-blue { background: #2e7df6; } .bp-go-green { background: #0ea66e; } .bp-go-indigo { background: #4054c4; } .bp-go-amber { background: #d99a00; } .bp-go-red { background: #d62d48; }
.bp-stats { list-style: none; margin: 0 0 .4rem; padding: 0; width: 100%; } .bp-stats li { display: flex; align-items: center; gap: .5rem; padding: .22rem 0; } .bp-stats b { margin-left: auto; } .bp-stats i { width: 9px; height: 9px; border-radius: 50%; }
.d-blue { background: #4a90f5; } .d-green { background: #19b574; } .d-red { background: #ef4565; } .d-orange { background: #f5a623; }
.bp .pp-body .hbars, .bp .pp-body svg.bars, .bp .pp-body svg.line { width: 100%; }
.bp .pp-body .mlist { width: 100%; }

/* Notification bell is a link to the notifications page */
.bell-link { width: 42px; height: 42px; border-radius: 50%; background: #eaf0ff; border: 1.5px solid #c9d7f6; list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; position: relative; color: inherit; text-decoration: none; }
.notif-page { max-width: 640px; margin: 1.5rem auto; padding: 0 1rem; }
.notif-list { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .6rem; }
.notif-list a { display: flex; align-items: center; gap: .8rem; background: #fff; border: 2px solid #dbe6ff; border-radius: 16px; padding: .9rem 1rem; text-decoration: none; color: #1c2754; font-weight: 700; box-shadow: 0 4px 12px rgba(30, 40, 80, .08); }
.notif-list a:hover { background: #eef3ff; }
.notif-list span { flex: 1; } .notif-list b { background: #d92d20; color: #fff; border-radius: 999px; min-width: 28px; text-align: center; padding: .1rem .55rem; } .notif-list i { font-style: normal; font-size: 1.4rem; color: #4054c4; }

/* Card text wraps and is limited by lines, so a sentence is never cut in the middle of a word */
.dcard .mlist li { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dcard .dcard-sub { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }

.allergy-table .allergy-has td { background: #fff3e6; }
.allergy-table .allergy-new td { background: #fff3a8; font-weight: 700; }
.new-flag { background: #d62d48; color: #fff; border-radius: 999px; padding: .05rem .5rem; font-size: .75rem; margin-left: .4rem; animation: pp-float 2s ease-in-out infinite; }

/* Academic and business manager pages */
.bp-row .pp-coming { grid-column: span 3; }
.pp-add { padding: .4rem 1rem .8rem; } .pp-add summary { cursor: pointer; font-weight: 800; color: #0a8f55; list-style: none; } .pp-add summary::-webkit-details-marker { display: none; }
.pp-add form { display: grid; gap: .4rem; margin-top: .5rem; } .pp-add input, .pp-add select { width: 100%; padding: .4rem .6rem; border-radius: 10px; border: 1.5px solid #bfe8d2; font: inherit; }
.pp-add label { font-size: .85rem; color: #3b4a73; display: block; }
.pp-add-note { margin: 0; padding: .4rem 1rem .8rem; font-weight: 700; }
.mlist a { color: inherit; text-decoration: none; font-weight: 600; } .mlist a:hover { text-decoration: underline; }
.dh-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin: .4rem 0 .8rem; }
.dh-tab { border: 0; cursor: pointer; font: inherit; font-weight: 800; border-radius: 99px; padding: .55rem 1.1rem; background: #e5dcff; color: #5a2fd0; transition: transform .15s; } .dh-tab:hover { transform: translateY(-2px); }
.dh-tab[aria-selected="true"] { background: #5a2fd0; color: #fff; box-shadow: 0 6px 14px rgba(90, 47, 208, .3); }
.dh-panel[hidden] { display: none; } .dh-panel { background: #fff; border-radius: 18px; padding: 1rem 1.2rem; box-shadow: 0 6px 16px rgba(30, 40, 80, .08); }
.bp-w3 { grid-column: span 4 !important; }
@media (max-width: 1100px) { .bp-row .pp-coming { grid-column: span 6; } .bp-w3 { grid-column: span 6 !important; } } @media (max-width: 600px) { .bp-row .pp-coming, .bp-w3 { grid-column: span 12 !important; } }
.bp-blue header { background: linear-gradient(120deg, #3b8bff, #1d5fd8); } .bp-blue { background: #eaf3ff; } .bp-blue .pp-big { color: #1d5fd8; }
.bp-teal header { background: linear-gradient(120deg, #13b5b9, #0b8a8f); } .bp-teal { background: #e6f8f8; } .bp-teal .pp-big { color: #0b8a8f; }
.bp-btn-teal { background: #0b8a8f; color: #fff; }
.bp-amber header { background: linear-gradient(120deg, #f7b733, #d99a00); } .bp-amber { background: #fff7e0; } .bp-amber .pp-big { color: #b07a00; } .bp-btn-amber { background: #d99a00; color: #fff; }
.bp-warn-card { box-shadow: 0 0 0 3px #f5a623, 0 8px 20px rgba(30, 40, 80, .1); }
.dh-panel .pp-btn { margin-top: .8rem; display: inline-block; }
.bp-hero-wide { grid-template-columns: 1fr !important; }

.overall-note { background: #f4efff; border-radius: 12px; padding: .7rem .9rem; margin: .6rem 0; }

/* Class teacher with photo on the parent dashboard (Nov 2026) */
.pp-teachers { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin-top: .55rem; }
.pp-teacher { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; font-weight: 600; color: #26345a; }
.pp-teacher img, .pp-tinit { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.15); flex: none; }
.pp-tinit { display: inline-grid; place-items: center; background: #ffd66b; color: #26345a; font-weight: 700; }
.pp-teacher small { display: block; font-weight: 500; color: #5b6b8c; font-size: .72rem; }
.pp-welcome:has(.pp-wx-night) .pp-teacher, .pp-welcome:has(.pp-wx-night) .pp-teacher small { color: #fff; }

/* Add a worksheet: page picker (Nov 2026) */
.visually-hidden { position: absolute !important; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.ws-add { display: flex; flex-wrap: wrap; gap: .5rem; margin: .4rem 0 .6rem; }
.ws-add-btn { cursor: pointer; position: relative; }
.ws-cam { background: #111; border-radius: 12px; padding: .5rem; margin-bottom: .6rem; }
.ws-cam video { width: 100%; max-height: 60vh; border-radius: 8px; background: #000; display: block; }
.ws-cam-msg { color: #fff; margin: .4rem 0; }
.ws-cam-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.ws-thumbs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .5rem; }
.ws-thumbs li { position: relative; border: 1px solid #dfe5f2; border-radius: 10px; overflow: hidden; background: #f7f9fd; aspect-ratio: 3 / 4; display: flex; align-items: center; justify-content: center; }
.ws-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.ws-doc { font-weight: 800; color: #c0392b; font-size: 1.2rem; }
.ws-cap { position: absolute; left: 0; bottom: 0; right: 0; background: rgba(28,39,84,.75); color: #fff; font-size: .72rem; padding: 2px 6px; }
.ws-tools { position: absolute; top: 4px; right: 4px; display: flex; gap: 4px; }
.ws-tools button { border: 0; border-radius: 50%; width: 26px; height: 26px; background: rgba(255,255,255,.92); box-shadow: 0 1px 3px rgba(0,0,0,.25); cursor: pointer; font-size: .8rem; }
.gate-pop .pop-body p { margin-top: 0; }
.gate-pop { width: min(440px, 92vw); }
.ws-pages { position: relative; }

/* Tables that keep the heading row and the first column in view while scrolling (Nov 2026) */
.freeze-box { max-height: 65vh; overflow: auto; position: relative; }
.freeze-table { border-collapse: separate; border-spacing: 0; }
.freeze-table thead th { position: sticky; top: 0; z-index: 2; background: #eef2fb; box-shadow: inset 0 -1px 0 #d5dcec; }
.freeze-table tbody th, .freeze-table thead th:first-child { position: sticky; left: 0; z-index: 1; background: #fff; text-align: left; box-shadow: inset -1px 0 0 #d5dcec; min-width: 9rem; }
.freeze-table thead th:first-child { z-index: 3; background: #eef2fb; }

/* Super-boss menu groups (Nov 2026) */
.portal-nav .nav-group { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #7a86a8; padding: .9rem .6rem .25rem; }
.portal-nav .nav-group:first-child { padding-top: .2rem; }
@media (max-width: 960px) { .portal-nav .nav-group { display: none; } }
.chip-list { list-style: none; padding: 0; margin: .75rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chip-list .chip { display: inline-flex; align-items: center; gap: .25rem; }
.pre-wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.inline-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

/* Super-boss dashboard, Nov 2026: school figures and inventory at the top, rows of equal cards with no gaps */
.sb-top { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 1rem; margin: 1rem 0 1.25rem; }
@media (max-width: 1100px) { .sb-top { grid-template-columns: minmax(0, 1fr); } }
.sb-top .panel { margin: 0; }
.sb-top .title-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.sb-top h2 { margin: 0; }
.sb-table th, .sb-table td { padding: .45rem .5rem; vertical-align: middle; }
.sb-table thead th { font-size: .78rem; }
.sb-table thead small { display: block; font-weight: 500; }
.sb-table tfoot th, .sb-table tfoot td { border-top: 2px solid #d5dcec; font-weight: 700; }
.tv { display: inline-block; padding: .12rem .5rem; border-radius: 99px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.t-green { background: #dcf5e8; color: #0b7a4b; }
.t-orange { background: #fff0d6; color: #a85b00; }
.t-red { background: #fde2e5; color: #c11f3a; }
a.tv:hover { filter: brightness(.95); text-decoration: underline; }
.sb-key { font-size: .78rem; color: #5b6b8c; display: inline-flex; align-items: center; gap: .3rem; }
.sb-key i { width: .8rem; height: .8rem; border-radius: 50%; display: inline-block; margin-left: .35rem; }
.sb-money { margin: .6rem 0 0; font-size: .9rem; }
.kz-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.25rem; align-items: stretch; }
.kz-row > .pp-card { flex: 1 1 240px; grid-column: auto !important; }
.voice-row > .pp-card { flex-basis: 210px; }
.bp-alarm { background: #fff1f3; } .bp-alarm header { background: linear-gradient(120deg, #f0405a, #d62d48); } .bp-alarm .pp-big { color: #d62d48; }
.bp-allgood { background: #e6faf0; } .bp-allgood header { background: linear-gradient(120deg, #22c07a, #0ea66e); } .bp-allgood .pp-big { color: #0b7a4b; }
.pp-soft.bp-alarm header h2, .pp-soft.bp-allgood header h2 { color: #fff; }
.sb-top { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); align-items: start; }
.sb-table { font-size: .86rem; }
.sb-table th, .sb-table td { padding: .4rem .35rem; }
.sb-table .tv { padding: .1rem .42rem; }
.sb-figures .sb-table td:first-child { min-width: 8.5rem; }
.sb-inv .sb-table td:first-child { line-height: 1.25; }
.sb-top { align-items: stretch; } .nowrap { white-space: nowrap; }
.sb-top { grid-template-columns: minmax(0, 2.7fr) minmax(0, 1fr); } .sb-table thead th { white-space: normal; }
.sb-sub { font-size: .95rem; margin: 1rem 0 .4rem; }
.sb-live li { padding: .35rem 0; border-bottom: 1px dashed #e1e6f2; line-height: 1.9; }
.sb-live .tv { font-size: .8rem; }
.voice-row > .pp-card { flex: 1 1 165px; }
.voice-row .pp-card header h2 { font-size: .95rem; }
@media (min-width: 1100px) { .voice-row { flex-wrap: nowrap; } }
.tv-wrap { white-space: normal; } .sb-live .tv:not([class*='t-']) { background: #eef1f8; color: #5b6b8c; }
.sb-top > * { min-width: 0; } .inv-head > div { min-width: 0; } .cat-photo-form input[type=file] { max-width: 100%; }
@media (max-width: 1100px) { .sb-top { grid-template-columns: minmax(0, 1fr); } }
