:root { --reg-ivory:#f8f7f3; --reg-surface:#fff; --reg-forest:#254c43; --reg-heading:#193b32; --reg-text:#242b29; --reg-muted:#59645f; --reg-border:#e1e5e1; --reg-soft:#edf3f0; --reg-danger:#9b403b; }
.orni-registrations-page, .orni-registrations-page * { box-sizing:border-box; }
.orni-registrations-page { min-width:0; margin:0; overflow-x:hidden; background:var(--reg-ivory)!important; color:var(--reg-text); }
.orni-registrations-page h1,.orni-registrations-page h2,.orni-registrations-page p { margin:0; }
.orni-registrations-page #adminAccessLoading { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:1.5rem; text-align:center; }
.orni-registrations-page #adminDashboard.hidden { display:none; }
.registrations-access-card { width:min(100%,30rem); padding:2rem; background:#fff; border:1px solid var(--reg-border); border-radius:18px; box-shadow:0 18px 45px rgba(36,43,41,.08); }
.registrations-access-card h1 { color:var(--reg-heading); font-family:Georgia,"Times New Roman",serif; font-size:1.8rem; }
.registrations-access-card p { margin-top:.6rem; color:var(--reg-muted); }
.registrations-shell { width:min(100% - 48px,1180px); margin-inline:auto; padding:1.7rem 0 4rem; }
.registrations-breadcrumb { display:flex; align-items:center; flex-wrap:wrap; gap:.45rem; color:var(--reg-muted); font-size:.78rem; }
.registrations-breadcrumb a { color:var(--reg-forest); text-decoration:none; }
.registrations-breadcrumb a:hover { text-decoration:underline; text-underline-offset:3px; }
.registrations-back-link { min-height:44px; margin-top:.4rem; display:inline-flex; align-items:center; gap:.3rem; color:var(--reg-forest); font-size:.86rem; font-weight:700; text-decoration:underline; text-decoration-color:#b9c9c4; text-underline-offset:4px; }
.registrations-back-link svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.registrations-header { margin-top:.85rem; display:flex; align-items:flex-end; justify-content:space-between; gap:2rem; }
.registrations-header h1 { color:var(--reg-heading); font-family:Georgia,"Times New Roman",serif; font-size:clamp(2.4rem,5vw,4rem); font-weight:600; line-height:1; letter-spacing:-.04em; }
.registrations-header > div > p { margin-top:.65rem; color:var(--reg-muted); font-size:1rem; }
.registrations-stat { min-width:180px; padding:1rem 1.1rem; background:#fff; border:1px solid var(--reg-border); border-radius:14px; box-shadow:0 10px 28px rgba(36,43,41,.045); }
.registrations-stat span { display:block; color:var(--reg-muted); font-size:.76rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; }
.registrations-stat strong { display:block; margin-top:.3rem; color:var(--reg-heading); font-family:Georgia,"Times New Roman",serif; font-size:2rem; line-height:1; }
.registrations-panel { margin-top:2rem; background:#fff; border:1px solid var(--reg-border); border-radius:16px; box-shadow:0 14px 36px rgba(36,43,41,.05); overflow:hidden; }
.registrations-panel-heading { padding:1.15rem 1.25rem 0; }
.registrations-panel-heading h2 { color:var(--reg-heading); font-family:Georgia,"Times New Roman",serif; font-size:1.55rem; font-weight:600; }
.registrations-panel-heading p { margin-top:.25rem; color:var(--reg-muted); font-size:.82rem; }
.registrations-toolbar { padding:1rem 1.25rem 1.2rem; display:grid; grid-template-columns:minmax(260px,1fr) minmax(170px,220px) auto; align-items:end; gap:.8rem; border-bottom:1px solid var(--reg-border); }
.registrations-toolbar label > span:first-child { display:block; margin-bottom:.4rem; color:var(--reg-text); font-size:.78rem; font-weight:700; }
.registrations-control-wrap { position:relative; display:block; }
.registrations-control-wrap svg { position:absolute; left:.85rem; top:50%; width:19px; height:19px; transform:translateY(-50%); fill:none; stroke:var(--reg-muted); stroke-width:1.7; stroke-linecap:round; }
.orni-registrations-page input,.orni-registrations-page select { width:100%; min-height:46px; padding:.7rem .85rem; color:var(--reg-text)!important; background:#fff!important; border:1px solid #ccd4d0!important; border-radius:10px!important; box-shadow:none!important; font:inherit; }
.orni-registrations-page input { padding-left:2.55rem; }
.orni-registrations-page input:focus,.orni-registrations-page select:focus { outline:none; border-color:var(--reg-forest)!important; box-shadow:0 0 0 3px rgba(37,76,67,.13)!important; }
.registrations-export { min-height:46px; padding:.68rem 1rem; display:inline-flex; align-items:center; justify-content:center; gap:.55rem; border:0; border-radius:10px; color:#fff; background:var(--reg-forest); font:inherit; font-weight:700; cursor:pointer; }
.registrations-export:hover { background:var(--reg-heading); }
.registrations-export svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.registrations-table-wrap { width:100%; overflow-x:auto; overscroll-behavior-inline:contain; }
.registrations-table-wrap table { width:100%; min-width:850px; border-collapse:collapse; background:#fff; }
.registrations-table-wrap th { padding:.75rem 1rem; text-align:left; color:#4b5752; background:#f1f4f1; border-bottom:1px solid var(--reg-border); font-size:.72rem; font-weight:800; letter-spacing:.055em; text-transform:uppercase; }
.registrations-table-wrap td { padding:.82rem 1rem; color:var(--reg-text); border-bottom:1px solid #eceeeb; font-size:.86rem; line-height:1.4; vertical-align:middle; }
.registrations-table-wrap tbody tr:hover { background:#f8faf8; }
.registrations-table-wrap tbody tr:last-child td { border-bottom:0; }
.registration-student strong { display:block; color:var(--reg-heading); font-size:.9rem; }
.registration-student small { display:block; margin-top:.15rem; color:var(--reg-muted); }
.registration-studies { max-width:310px; white-space:normal; overflow-wrap:anywhere; }
.registration-actions { display:flex; align-items:center; flex-wrap:wrap; gap:.4rem; }
.registration-detail-button,.registration-delete-button { min-height:40px; padding:.5rem .7rem; border-radius:9px; font:inherit; font-size:.78rem; font-weight:700; cursor:pointer; }
.registration-detail-button { color:var(--reg-forest); background:var(--reg-soft); border:1px solid #cad8d2; }
.registration-detail-button:hover { background:#e1ebe6; }
.registration-delete-button { color:var(--reg-danger); background:#fff; border:1px solid #e7cac7; }
.registration-delete-button:hover { background:#fbefee; }
.registrations-state { height:180px; text-align:center; color:var(--reg-muted)!important; }
.registration-error { color:var(--reg-danger)!important; }
.registrations-spinner { width:20px; height:20px; margin-right:.55rem; display:inline-block; vertical-align:middle; border:2px solid #d7dfdb; border-top-color:var(--reg-forest); border-radius:50%; animation:reg-spin .75s linear infinite; }
@keyframes reg-spin { to { transform:rotate(360deg); } }
.registration-modal[hidden] { display:none!important; }
.registration-modal { position:fixed; inset:0; z-index:1200; display:grid; place-items:center; padding:20px; }
.registration-modal-backdrop { position:absolute; inset:0; background:rgba(25,45,39,.55); }
.registration-dialog { position:relative; width:min(100%,720px); max-height:min(86vh,820px); display:flex; flex-direction:column; background:#fff; border:1px solid var(--reg-border); border-radius:18px; box-shadow:0 28px 80px rgba(20,39,34,.24); overflow:hidden; }
.registration-dialog > header { position:relative; z-index:1; flex:0 0 auto; padding:1rem 1.2rem; display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; background:#fff; border-bottom:1px solid var(--reg-border); }
.registration-dialog-eyebrow { color:var(--reg-forest); font-size:.7rem; font-weight:800; letter-spacing:.14em; }
.registration-dialog h2 { margin-top:.2rem; color:var(--reg-heading); font-family:Georgia,"Times New Roman",serif; font-size:1.65rem; }
.registration-dialog-close { width:44px; height:44px; flex:0 0 auto; display:grid; place-items:center; color:var(--reg-heading); background:var(--reg-soft); border:0; border-radius:10px; font-size:1.6rem; cursor:pointer; }
.registration-details { padding:.3rem 1.2rem 1rem; display:block; overflow-y:auto; background:#fff; }
.registration-detail-section { padding-top:1rem; }
.registration-detail-section + .registration-detail-section { margin-top:.35rem; border-top:1px solid var(--reg-border); }
.registration-detail-section h3 { margin:0 0 .35rem; color:var(--reg-forest); font-size:.75rem; font-weight:800; letter-spacing:.075em; text-transform:uppercase; }
.registration-info-grid { margin:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:1.5rem; }
.registration-info-row { min-width:0; padding:.62rem 0; display:grid; grid-template-columns:minmax(115px,.75fr) minmax(0,1.25fr); gap:.7rem; border-top:1px solid #edf0ed; }
.registration-info-row dt { color:var(--reg-muted); font-size:.75rem; font-weight:650; line-height:1.4; }
.registration-info-row dd { min-width:0; margin:0; color:var(--reg-text); font-size:.84rem; font-weight:600; line-height:1.4; white-space:pre-wrap; overflow-wrap:anywhere; }
.registration-dialog-actions { position:relative; z-index:1; flex:0 0 auto; padding:.8rem 1.2rem; display:flex; justify-content:flex-end; gap:.6rem; background:#fff; border-top:1px solid var(--reg-border); }
.registration-whatsapp { min-height:42px; padding:.55rem .8rem; color:#fff; background:var(--reg-forest); border:0; border-radius:9px; font:inherit; font-weight:700; cursor:pointer; }
body.registration-modal-open { overflow:hidden; }
@media (max-width:900px) { .registrations-shell{width:min(100% - 36px,800px)} .registrations-toolbar{grid-template-columns:1fr 1fr}.registrations-export{grid-column:1/-1} }
@media (max-width:767px) { .registrations-shell{width:auto;margin:0;padding:1rem 16px 3rem}.registrations-header{align-items:stretch;flex-direction:column;gap:1rem;padding-right:58px}.registrations-stat{min-width:0;width:160px}.registrations-panel{margin-top:1.4rem;border-radius:14px}.registrations-toolbar{grid-template-columns:1fr;padding:1rem}.registrations-export{grid-column:auto;width:100%}.registrations-table-wrap table{min-width:760px}.registration-info-grid{grid-template-columns:1fr}.registration-info-row{grid-template-columns:minmax(105px,.8fr) minmax(0,1.2fr)}.registration-modal{padding:10px}.registration-dialog{max-height:92vh}.registrations-panel-heading{padding-inline:1rem} }
@media (prefers-reduced-motion:reduce) { .registrations-spinner{animation:none}.registration-detail-button,.registration-delete-button,.registrations-export{transition:none} }
.registrations-summary{display:flex;align-items:stretch;gap:.7rem}.registration-period-summary{min-width:245px;padding:.9rem 1rem;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:.55rem;background:#fff;border:1px solid var(--reg-border);border-radius:14px;box-shadow:0 10px 28px rgba(36,43,41,.045)}.registration-period-badge{display:inline-flex;padding:.28rem .52rem;border-radius:999px;color:#246148;background:#e8f2ed;font-size:.69rem;font-weight:800}.registration-period-badge.is-scheduled{color:#805d26;background:#f8eddc}.registration-period-badge.is-closed{color:#7c4843;background:#faecea}.registration-period-range{min-height:1.1em;color:var(--reg-muted);font-size:.72rem;line-height:1.45}.registration-period-summary button{min-height:40px;padding:.5rem .72rem;color:var(--reg-forest);background:#fff;border:1px solid #c9d5d0;border-radius:9px;font:inherit;font-size:.75rem;font-weight:750;cursor:pointer}.registration-period-summary>button:last-child{width:100%;color:#fff;background:var(--reg-forest);border-color:var(--reg-forest)}.registration-period-load-error{color:var(--reg-danger);font-size:.72rem;line-height:1.4}.registration-period-load-error button{min-height:34px;margin-top:.35rem;padding:.35rem .55rem}.registration-period-form{padding:1rem 1.2rem;display:grid;grid-template-columns:1fr 1fr;gap:.85rem;overflow-y:auto}.registration-period-form label>span,.registration-period-zone>span{display:block;margin-bottom:.38rem;color:var(--reg-text);font-size:.75rem;font-weight:750}.registration-period-form input{padding-left:.85rem!important}.registration-period-toggle,.registration-period-zone,.registration-period-preview,.registration-period-error{grid-column:1/-1}.registration-period-toggle{display:flex!important;align-items:center;gap:.7rem;padding:.75rem .85rem;background:var(--reg-soft);border-radius:10px;cursor:pointer}.registration-period-toggle input{width:42px!important;min-height:24px!important;height:24px;padding:0!important;accent-color:var(--reg-forest)}.registration-period-toggle span{margin:0!important}.registration-period-zone{padding:.7rem .8rem;background:var(--reg-soft);border-radius:10px}.registration-period-zone strong{font-size:.84rem}.registration-period-preview{padding:.75rem .85rem;color:var(--reg-heading);background:#f4f7f5;border:1px solid var(--reg-border);border-radius:10px;font-size:.82rem;line-height:1.5}.registration-period-error{padding:.7rem .8rem;color:var(--reg-danger);background:#fbefee;border:1px solid #efd2cf;border-radius:9px;font-size:.8rem;font-weight:700}.registration-period-form footer{grid-column:1/-1;padding-top:.9rem;display:flex;justify-content:flex-end;gap:.55rem;border-top:1px solid var(--reg-border)}.registration-period-primary,.registration-period-secondary{min-height:44px;padding:.6rem .8rem;border-radius:9px;font:inherit;font-size:.8rem;font-weight:750;cursor:pointer}.registration-period-primary{color:#fff;background:var(--reg-forest);border:1px solid var(--reg-forest)}.registration-period-secondary{color:var(--reg-forest);background:#fff;border:1px solid #cad4d0}.registration-period-primary:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:767px){.registrations-summary{flex-direction:column}.registration-period-summary{min-width:0;width:100%}.registration-period-form{grid-template-columns:1fr}.registration-period-zone,.registration-period-preview,.registration-period-error,.registration-period-form footer{grid-column:auto}.registration-period-form footer{flex-direction:column-reverse}.registration-period-form footer button{width:100%}}
