.purchase-plan-page{color:var(--uis-text)}
.purchase-plan-page>.teaching-plan-locked{margin-bottom:18px!important}.acc-purchase-export-action{display:flex;margin-left:auto;pointer-events:auto}.acc-purchase-export-action button{cursor:pointer}.acc-purchase-export-action button:disabled{cursor:not-allowed!important;color:var(--acc-muted)!important;border-color:var(--acc-line)!important;background:color-mix(in srgb,var(--acc-soft) 72%,transparent)!important;box-shadow:none!important;opacity:.58!important}
.purchase-plan-columns{display:grid;grid-template-columns:minmax(430px,.82fr) minmax(720px,1.35fr);gap:14px;align-items:stretch}
.purchase-plan-card{min-width:0;overflow:hidden;border:1px solid var(--uis-line);border-radius:18px;background:var(--uis-card);box-shadow:var(--theme-glass-shadow)}
.purchase-plan-card>header{display:flex;min-height:106px;align-items:center;justify-content:space-between;gap:18px;padding:20px 22px;border-bottom:1px solid var(--uis-line);background:var(--uis-panel)}
.purchase-plan-card header small{color:var(--uis-muted);font-size:.56rem;font-weight:950;letter-spacing:.08em}.purchase-plan-card h2{margin:5px 0;color:var(--uis-text);font-size:1.35rem}.purchase-plan-card header p{margin:0;color:var(--uis-muted);font-size:.65rem}
.purchase-plan-card [data-purchase-add]{width:44px;height:44px;flex:0 0 44px;border:1px solid var(--uis-line-strong);border-radius:13px;color:var(--uis-head);background:var(--uis-accent);font-size:1.25rem;font-weight:500;cursor:pointer}.purchase-plan-card [data-purchase-add]:disabled{opacity:.38;cursor:not-allowed}
.purchase-plan-table{min-height:310px}.purchase-plan-head,.purchase-plan-row{display:grid;align-items:center;gap:9px;padding:10px 12px;border-bottom:1px solid var(--uis-line)}.purchase-plan-card.is-small .purchase-plan-head,.purchase-plan-row.is-small{grid-template-columns:54px minmax(240px,1fr) 120px 38px}.purchase-plan-card.is-large .purchase-plan-head,.purchase-plan-row.is-large{grid-template-columns:50px minmax(240px,1.35fr) minmax(155px,.8fr) 145px 105px 38px}
.purchase-plan-head{color:var(--uis-muted);background:var(--uis-inset);font-size:.53rem;font-weight:950;text-transform:uppercase}.purchase-plan-row{min-height:72px;background:var(--uis-card)}.purchase-plan-row:nth-child(even){background:var(--uis-card-alt)}.purchase-plan-row>b{color:var(--uis-muted);text-align:center}
.purchase-plan-row label{min-width:0}.purchase-plan-row input,.purchase-plan-row textarea{box-sizing:border-box;width:100%;min-height:42px;padding:10px 12px;border:1px solid var(--uis-line-strong);border-radius:11px;color:var(--uis-text);background:var(--uis-inset);font:inherit;font-size:.65rem;resize:vertical}.purchase-plan-row input:focus,.purchase-plan-row textarea:focus{outline:2px solid var(--uis-accent);outline-offset:1px}.purchase-plan-row [data-purchase-remove]{display:grid;width:36px;height:36px;place-items:center;padding:0;border:1px solid color-mix(in srgb,#e77988 45%,var(--uis-line));border-radius:10px;color:#f29aa7;background:color-mix(in srgb,#8d2134 13%,var(--uis-inset));cursor:pointer}.purchase-plan-row [data-purchase-remove] svg{width:15px;height:15px;fill:none;stroke:currentColor}
.purchase-plan-empty{padding:48px 20px;color:var(--uis-muted);text-align:center;font-size:.66rem}.purchase-plan-toolbar-summary{min-width:240px}.purchase-plan-toolbar-summary span{min-width:110px}.purchase-plan-page>.my-teaching-form-error{margin-top:12px}.purchase-overview-notice,.acc-purchase-overview>aside{display:flex;align-items:center;gap:12px;margin:14px 0;padding:14px 16px;border:1px solid color-mix(in srgb,#d8b45f 45%,var(--uis-line));border-radius:13px;color:var(--uis-text);background:color-mix(in srgb,#b47c20 10%,var(--uis-card))}.purchase-overview-notice svg,.acc-purchase-overview>aside svg{width:20px;height:20px;fill:none;stroke:currentColor}.purchase-overview-notice span,.acc-purchase-overview>aside span{display:grid;gap:3px}.purchase-overview-notice small,.acc-purchase-overview>aside small{color:var(--uis-muted)}
.acc-purchase-overview{display:grid;gap:16px;padding:22px}.acc-purchase-overview>header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px;border:1px solid var(--uis-line);border-radius:16px;background:var(--uis-card)}.acc-purchase-overview>header span{color:var(--uis-muted);font-size:.56rem;font-weight:950}.acc-purchase-overview>header h3{margin:5px 0;color:var(--uis-text)}.acc-purchase-overview>header p{margin:0;color:var(--uis-muted)}.acc-purchase-overview>header button{display:flex;align-items:center;gap:8px;padding:12px 16px;border:1px solid var(--uis-line-strong);border-radius:12px;color:var(--uis-text);background:var(--uis-accent);font-weight:850;cursor:pointer}.acc-purchase-overview>header button svg{width:18px;height:18px;fill:none;stroke:currentColor}
.acc-purchase-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.acc-purchase-summary article{display:grid;gap:4px;padding:18px;border:1px solid var(--uis-line);border-radius:15px;background:var(--uis-card)}.acc-purchase-summary small,.acc-purchase-summary span{color:var(--uis-muted)}.acc-purchase-summary strong{color:var(--uis-text);font-size:1.35rem}
.acc-purchase-table{overflow:hidden;border:1px solid var(--uis-line);border-radius:15px;background:var(--uis-card)}.acc-purchase-table>header,.acc-purchase-table>article{display:grid;grid-template-columns:minmax(260px,1.5fr) minmax(110px,.65fr) minmax(110px,.65fr) minmax(180px,1fr) minmax(150px,.75fr);align-items:center;gap:12px;padding:13px 16px;border-bottom:1px solid var(--uis-line)}.acc-purchase-table>header{color:var(--uis-muted);background:var(--uis-panel);font-size:.52rem;font-weight:950;text-transform:uppercase}.acc-purchase-table>header>span:not(:first-child){text-align:center}.acc-purchase-table>article>div{justify-self:stretch}.acc-purchase-table>article>b,.acc-purchase-table>article>time,.acc-purchase-table>article>.purchase-overview-status{width:100%;justify-self:stretch;text-align:center}.acc-purchase-table>article:nth-child(odd){background:var(--uis-card-alt)}.acc-purchase-table article div{display:grid}.acc-purchase-table strong,.acc-purchase-table b{color:var(--uis-text)}.acc-purchase-table small,.acc-purchase-table time{color:var(--uis-muted)}.acc-purchase-table b,.acc-purchase-table time,.acc-purchase-table em{text-align:center}.acc-purchase-table em{font-size:.52rem;font-style:normal;font-weight:950}.acc-purchase-table .is-submitted em{color:#7ed8ae}.acc-purchase-table .is-missing em{color:#e6bc62}
.diagram-toolbar:has(.purchase-plan-toolbar-summary){display:grid!important;grid-template-columns:minmax(220px,1fr) auto minmax(430px,1fr)!important;align-items:center;gap:18px}.diagram-toolbar:has(.purchase-plan-toolbar-summary) .my-teaching-toolbar-copy{justify-self:start}.diagram-toolbar:has(.purchase-plan-toolbar-summary) .purchase-plan-toolbar-summary{justify-self:center}.diagram-toolbar:has(.purchase-plan-toolbar-summary) .teaching-plan-toolbar-actions{justify-self:end}.diagram-toolbar:has(.purchase-plan-toolbar-summary) .teaching-plan-toolbar-actions>button{min-width:205px}.diagram-toolbar:has(.purchase-plan-toolbar-summary) .teaching-plan-toolbar-actions>button>span{display:grid;gap:1px;text-align:left}.diagram-toolbar:has(.purchase-plan-toolbar-summary) .teaching-plan-toolbar-actions>button small{max-width:160px;overflow:hidden;color:var(--uis-muted);font-size:.46rem;font-weight:900;letter-spacing:.045em;text-overflow:ellipsis;white-space:nowrap}.diagram-toolbar:has(.purchase-plan-toolbar-summary) .teaching-plan-toolbar-actions>button b{font-size:.68rem}
.acc-purchase-third-row{position:relative;display:flex;width:100%;align-items:stretch;justify-content:flex-end;gap:12px}.acc-purchase-third-metrics{position:absolute;left:50%;display:grid;min-width:500px;transform:translateX(-50%);grid-template-columns:repeat(3,1fr);overflow:hidden;border:1px solid var(--uis-line-strong);border-radius:13px;background:color-mix(in srgb,var(--uis-card) 78%,transparent)}.acc-purchase-third-metrics>span{display:grid;align-content:center;justify-items:center;gap:2px;padding:7px 14px;border-left:1px solid var(--uis-line)}.acc-purchase-third-metrics>span:first-child{border-left:0}.acc-purchase-third-metrics small{color:var(--uis-muted);font-size:.46rem;font-weight:950;letter-spacing:.07em}.acc-purchase-third-metrics b{color:var(--uis-text);font-size:.82rem}.acc-purchase-third-row>button{display:flex;min-width:175px;align-items:center;justify-content:center;gap:9px;padding:7px 15px;border:1px solid var(--uis-line-strong);border-radius:12px;color:var(--uis-head);background:var(--uis-accent);font:inherit;cursor:pointer}.acc-purchase-third-row>button svg{width:18px;height:18px;fill:none;stroke:currentColor}.acc-purchase-third-row>button span{display:grid;text-align:left}.acc-purchase-third-row>button small{font-size:.44rem;font-weight:950;letter-spacing:.06em}.acc-purchase-third-row>button b{font-size:.66rem}.accounting-page:has([data-acc-panel="purchase"].is-active) .acc-purchase-overview>header button,.accounting-page:has([data-acc-panel="purchase"].is-active) .acc-purchase-summary{display:none}.accounting-page:has([data-acc-panel="purchase"].is-active) .acc-purchase-overview{padding-top:12px}
body[data-interface-surface="glass"] .purchase-plan-card,body[data-interface-surface="glass"] .acc-purchase-overview>header,body[data-interface-surface="glass"] .acc-purchase-summary article,body[data-interface-surface="glass"] .acc-purchase-table{border-color:var(--uig-line);background:var(--uig-bg);box-shadow:var(--theme-glass-shadow);backdrop-filter:blur(12px) saturate(1.1)}body[data-interface-surface="glass"] .purchase-plan-card>header,body[data-interface-surface="glass"] .purchase-plan-head,body[data-interface-surface="glass"] .acc-purchase-table>header{border-color:var(--uig-line);background:color-mix(in srgb,var(--uig-bg) 88%,var(--uis-panel))}body[data-interface-surface="glass"] .purchase-plan-row{border-color:var(--uig-line);background:color-mix(in srgb,var(--uig-bg) 90%,transparent)}body[data-interface-surface="glass"] .purchase-plan-row:nth-child(even),body[data-interface-surface="glass"] .acc-purchase-table>article:nth-child(odd){background:color-mix(in srgb,var(--uig-bg) 72%,transparent)}body[data-interface-surface="glass"] .acc-purchase-third-metrics{border-color:var(--uig-line);background:var(--uig-bg);backdrop-filter:blur(10px) saturate(1.08)}body[data-interface-surface="glass"] .acc-purchase-third-row>button{border-color:var(--uig-line);color:var(--uis-head);background:var(--uig-accent)}
.accounting-page:has([data-acc-panel="purchase"].is-active) .acc-period{display:none!important}
.accounting-page:has([data-acc-panel="purchase"].is-active) .acc-hero-context{position:absolute!important;inset:0 20px!important;width:auto!important;margin:0!important;pointer-events:none}.accounting-page:has([data-acc-panel="purchase"].is-active) .acc-purchase-third-row{align-items:center;pointer-events:none}.accounting-page:has([data-acc-panel="purchase"].is-active) .acc-purchase-third-row>button{margin-left:auto;pointer-events:auto}.accounting-page:has([data-acc-panel="purchase"].is-active) .acc-purchase-third-metrics{pointer-events:auto}
.acc-purchase-overview>header{display:none!important}.acc-purchase-overview.is-disabled .acc-purchase-table{display:none}.acc-purchase-overview.is-disabled{padding:12px 22px 22px}
.acc-purchase-overview.is-disabled>aside,.purchase-overview-notice{border-color:color-mix(in srgb,#ef6478 62%,var(--uis-line));color:#ffc1ca;background:color-mix(in srgb,#7e1f31 22%,var(--uis-card))}.acc-purchase-overview.is-disabled>aside svg,.purchase-overview-notice svg{stroke:#ff8798}.acc-purchase-overview.is-disabled>aside small,.purchase-overview-notice small{color:#efb2bc}
.purchase-plan-overview-modal.admin-modal.is-wide{width:min(1600px,calc(100vw - 30px));padding:24px 28px}.purchase-plan-overview-modal .admin-plan-overview{max-height:calc(100dvh - 175px)}.purchase-plan-overview-modal .admin-plan-overview>header,.purchase-plan-overview-modal .admin-plan-overview article{grid-template-columns:minmax(260px,1.55fr) repeat(3,minmax(105px,.62fr)) minmax(150px,.8fr) minmax(135px,.7fr);gap:10px;padding:8px 14px}.purchase-plan-overview-modal .admin-plan-overview>header>span:not(:first-child){text-align:center}.purchase-plan-overview-modal .admin-plan-overview article>div:first-child{width:100%;justify-self:stretch}.purchase-plan-overview-modal .admin-plan-overview article>b,.purchase-plan-overview-modal .admin-plan-overview article>time,.purchase-plan-overview-modal .admin-plan-overview article>.purchase-overview-status{width:100%;justify-self:stretch;text-align:center}.purchase-plan-overview-modal .admin-plan-overview article{min-height:48px}.purchase-plan-overview-modal .purchase-overview-status em{padding:5px 9px;border-radius:999px;color:#8ee0bc;background:rgba(44,145,105,.18);font-size:.49rem;font-weight:950}.purchase-plan-overview-modal article.is-missing .purchase-overview-status em{color:#f29aaa;background:rgba(151,38,57,.2)}
.teaching-plan-locked{border-color:color-mix(in srgb,#ef6478 65%,var(--uis-line))!important;background:linear-gradient(135deg,color-mix(in srgb,#7e1f31 24%,var(--uis-card)),color-mix(in srgb,#4f1422 16%,var(--uis-panel)))!important}.teaching-plan-locked>svg{color:#ff8798!important;stroke:#ff8798!important}.teaching-plan-locked h2{color:#ffc1ca!important}.teaching-plan-locked small{color:#ff8fa0!important}.teaching-plan-locked p{color:color-mix(in srgb,#ffd5db 78%,var(--uis-muted))!important}body[data-interface-surface="glass"] .teaching-plan-locked{border-color:rgba(244,100,122,.55)!important;background:linear-gradient(145deg,rgba(112,25,43,.42),rgba(61,14,27,.32))!important;background-image:linear-gradient(145deg,rgba(112,25,43,.42),rgba(61,14,27,.32))!important}
.purchase-overview-status{display:grid;justify-items:center;gap:5px}.purchase-overview-status em{font-style:normal}.purchase-overview-status button{min-height:28px;padding:0 11px;border:1px solid var(--uis-line-strong);border-radius:8px;color:var(--uis-text);background:var(--uis-accent-soft);font:inherit;font-size:.52rem;font-weight:900;cursor:pointer}.purchase-overview-status button:hover{border-color:var(--uis-accent);color:var(--uis-accent)}
.purchase-plan-detail-modal{width:min(1240px,calc(100vw - 32px))!important}.purchase-detail-content{display:grid;gap:16px;margin-top:18px}.purchase-detail-section{overflow:hidden;border:1px solid var(--uis-line);border-radius:15px;background:var(--uis-card)}.purchase-detail-section>header{display:grid;grid-template-columns:1fr auto;gap:3px;padding:14px 16px;border-bottom:1px solid var(--uis-line);background:var(--uis-panel)}.purchase-detail-section>header small{grid-column:1;color:var(--uis-accent);font-size:.5rem;font-weight:950;letter-spacing:.08em}.purchase-detail-section>header h4{grid-column:1;margin:0;color:var(--uis-text)}.purchase-detail-section>header span{grid-column:2;grid-row:1/3;align-self:center;color:var(--uis-muted);font-size:.6rem}.purchase-detail-head,.purchase-detail-table article{display:grid;grid-template-columns:60px minmax(260px,1fr) 130px;align-items:center;gap:10px;padding:11px 14px;border-bottom:1px solid var(--uis-line)}.purchase-detail-table.is-large .purchase-detail-head,.purchase-detail-table.is-large article{grid-template-columns:60px minmax(260px,1fr) minmax(190px,.8fr) 150px 110px}.purchase-detail-head{color:var(--uis-muted);background:var(--uis-inset);font-size:.5rem;font-weight:950;text-transform:uppercase}.purchase-detail-table article:nth-child(odd){background:var(--uis-card-alt)}.purchase-detail-table article>b,.purchase-detail-table article>strong,.purchase-detail-table article>em{color:var(--uis-text);font-size:.65rem;font-style:normal;text-align:center}.purchase-detail-table article>span{color:var(--uis-text);font-size:.62rem}.purchase-detail-table a{display:inline-flex;align-items:center;gap:6px;color:var(--uis-accent);font-weight:850;text-decoration:none}.purchase-detail-table a:hover{text-decoration:underline}.purchase-detail-table a svg{width:15px;height:15px;fill:none;stroke:currentColor}.purchase-detail-empty{padding:30px;color:var(--uis-muted);text-align:center}body[data-interface-surface="glass"] .purchase-detail-section{border-color:var(--uig-line);background:var(--uig-bg);backdrop-filter:blur(10px)}body[data-interface-surface="glass"] .purchase-detail-section>header,body[data-interface-surface="glass"] .purchase-detail-head{border-color:var(--uig-line);background:color-mix(in srgb,var(--uig-bg) 84%,var(--uis-panel))}
@media(max-width:1180px){.purchase-plan-columns{grid-template-columns:1fr}.purchase-plan-card.is-large .purchase-plan-table{overflow-x:auto}.purchase-plan-card.is-large .purchase-plan-head,.purchase-plan-row.is-large{min-width:820px}.acc-purchase-third-metrics{position:static;min-width:420px;transform:none}.acc-purchase-third-row{justify-content:space-between}}@media(max-width:700px){.purchase-plan-card.is-small .purchase-plan-head,.purchase-plan-row.is-small{grid-template-columns:40px minmax(190px,1fr) 105px 36px;min-width:430px}.purchase-plan-card.is-small .purchase-plan-table{overflow-x:auto}.acc-purchase-summary{grid-template-columns:1fr}.acc-purchase-table{overflow-x:auto}.acc-purchase-table>header,.acc-purchase-table>article{min-width:760px}.acc-purchase-third-row{flex-direction:column}.acc-purchase-third-metrics{min-width:0;width:100%}.purchase-detail-table{overflow-x:auto}.purchase-detail-head,.purchase-detail-table article{min-width:480px}.purchase-detail-table.is-large .purchase-detail-head,.purchase-detail-table.is-large article{min-width:850px}}
