:root{
  --navy:#0b3656;--blue:#0b628f;--blue-2:#0f79a9;--teal:#08a89c;--teal-2:#0fc7b5;--orange:#ff9b42;--orange-2:#f47f32;
  --ink:#183246;--muted:#657b8b;--soft:#f4f8fb;--line:#dbe7ee;--white:#fff;--danger:#c43e42;--success:#21845b;--warning:#bb721c;
  --shadow:0 16px 48px rgba(8,45,69,.12);--shadow-sm:0 8px 24px rgba(8,45,69,.09);--radius:22px;--radius-sm:14px;
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:"Cairo",Tahoma,Arial,sans-serif;color:var(--ink);background:linear-gradient(180deg,#f7fbfd 0,#eef5f9 100%);min-height:100vh}button,input,textarea,select{font:inherit}button{cursor:pointer}img{max-width:100%;display:block}[hidden]{display:none!important}.full-width{grid-column:1/-1}.top-ribbon{height:6px;background:linear-gradient(90deg,var(--orange),var(--teal),var(--blue))}

/* login */
.login-page{min-height:100vh;display:grid;place-items:center;position:relative;overflow:hidden;background:#071f32;padding:34px}.login-backdrop{position:absolute;inset:0;background:radial-gradient(circle at 18% 20%,rgba(8,168,156,.28),transparent 34%),radial-gradient(circle at 84% 28%,rgba(255,155,66,.2),transparent 29%),linear-gradient(145deg,#08263c,#0b4769 55%,#0a817d);opacity:.94}.login-backdrop:after{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);background-size:40px 40px;mask-image:linear-gradient(to bottom,black,transparent)}.login-shell{width:min(1180px,100%);position:relative;z-index:1;display:grid;grid-template-columns:1.08fr .92fr;gap:44px;align-items:center}.login-brand{color:#fff;padding:28px}.login-mark{width:92px;height:92px;border-radius:28px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);display:grid;place-items:center;box-shadow:0 18px 40px rgba(0,0,0,.2);margin-bottom:24px}.login-mark svg{width:57px;height:57px;fill:none;stroke:#fff;stroke-width:3.4;stroke-linecap:round;stroke-linejoin:round}.login-kicker,.section-kicker{font-size:.78rem;letter-spacing:.08em;font-weight:800;color:var(--teal);text-transform:uppercase}.login-brand .login-kicker{color:#7ef3e6}.login-brand h1{font-size:clamp(2.5rem,5vw,5rem);line-height:1.12;margin:14px 0 18px;font-weight:900}.login-brand h1 span{color:#ffb36e}.login-brand p{max-width:650px;line-height:2;font-size:1.05rem;color:rgba(255,255,255,.82)}.login-benefits{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}.login-benefits span{padding:9px 14px;border-radius:999px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.16);font-size:.87rem}.login-card{background:rgba(255,255,255,.97);border-radius:28px;padding:32px;box-shadow:0 30px 90px rgba(0,0,0,.28);border:1px solid rgba(255,255,255,.6)}.login-card-head>span{color:var(--blue);font-weight:800;font-size:.82rem}.login-card-head h2{margin:8px 0 6px;font-size:1.6rem}.login-card-head p{margin:0 0 22px;color:var(--muted);line-height:1.8;font-size:.9rem}.auth-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.auth-grid label,.settings-card label,.archive-filters label,.record-meta-grid label,.form-field,.search-field{display:flex;flex-direction:column;gap:7px}.auth-grid label span,.settings-card label span,.archive-filters label span,.record-meta-grid label span,.form-field>span,.search-field span{font-weight:700;font-size:.84rem;color:#365467}.auth-grid input,.settings-card input,.archive-filters input,.archive-filters select,.record-meta-grid input,.record-meta-grid select,.form-field input,.form-field textarea,.form-field select,.search-field input,.support-compose textarea{width:100%;border:1px solid #cfe0e9;border-radius:12px;background:#fff;padding:12px 13px;outline:none;transition:.2s;min-height:46px;color:var(--ink)}input:focus,textarea:focus,select:focus{border-color:var(--teal);box-shadow:0 0 0 3px rgba(8,168,156,.12)}textarea{resize:vertical}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.auth-actions button{flex:1}.price-strip{margin-top:20px;border-radius:14px;background:linear-gradient(135deg,#effbfd,#fff6ed);border:1px solid #dcecf1;padding:14px;display:grid;gap:3px}.price-strip strong{color:var(--blue);font-size:.82rem}.price-strip span{font-weight:800}.price-strip small{color:var(--muted)}

/* buttons */
.primary-button,.secondary-button,.ghost-button,.whatsapp-button{border:0;border-radius:12px;padding:11px 17px;font-weight:800;transition:transform .18s,box-shadow .18s,opacity .18s;text-decoration:none;text-align:center}.primary-button{color:#fff;background:linear-gradient(135deg,var(--blue),var(--teal));box-shadow:0 9px 20px rgba(11,98,143,.2)}.secondary-button{color:var(--blue);background:#fff;border:1px solid #bdd6e3;box-shadow:0 7px 17px rgba(12,73,103,.07)}.ghost-button{background:#edf5f9;color:var(--blue);border:1px solid #d6e6ee}.whatsapp-button{display:block;color:#fff;background:#1fae62;margin:16px 0}.primary-button:hover,.secondary-button:hover,.ghost-button:hover,.whatsapp-button:hover{transform:translateY(-1px)}button:disabled{opacity:.52;cursor:not-allowed;transform:none!important}.compact-button{padding:7px 10px;font-size:.77rem}.icon-button{width:34px;height:34px;border:0;border-radius:10px;background:#edf5f9;color:var(--blue);font-size:1.1rem}.full-button{width:100%}

/* header/nav */
.app-header{position:relative;overflow:hidden;color:#fff;background:linear-gradient(126deg,#072b45 0,#0b628f 56%,#078f87 100%);min-height:330px}.header-grid{position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px);background-size:34px 34px;mask-image:linear-gradient(to bottom,black,transparent)}.header-orb{position:absolute;border-radius:50%;filter:blur(1px);background:rgba(255,255,255,.08)}.orb-one{width:260px;height:260px;right:-90px;top:-80px}.orb-two{width:190px;height:190px;left:5%;bottom:-90px;background:rgba(255,155,66,.15)}.header-shell{position:relative;z-index:1;width:min(1240px,calc(100% - 44px));margin:auto;display:grid;grid-template-columns:1.25fr .75fr;gap:46px;align-items:center;padding:58px 0 82px}.hero-eyebrow{display:inline-flex;gap:9px;align-items:center;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.14);padding:7px 12px;border-radius:999px;font-size:.78rem;font-weight:700}.eyebrow-dot{width:8px;height:8px;border-radius:50%;background:#79f1df;box-shadow:0 0 0 5px rgba(121,241,223,.12)}.hero-copy h1{font-size:clamp(2.2rem,4.6vw,4.6rem);line-height:1.12;margin:14px 0 18px;font-weight:900}.hero-copy h1 span{color:#ffb36e}.hero-copy>p{max-width:720px;line-height:1.9;color:rgba(255,255,255,.82)}.hero-features{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.hero-features span{font-size:.82rem;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.08)}.hero-features b{color:#6df1de}.school-identity-card{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);border-radius:26px;padding:25px;display:flex;gap:18px;align-items:center;backdrop-filter:blur(10px);box-shadow:0 22px 55px rgba(0,0,0,.15)}.school-logo-shell,.print-logo-shell{width:104px;height:104px;border-radius:24px;background:#fff;display:grid;place-items:center;padding:12px;flex:none;overflow:hidden}.school-logo-shell img,.print-logo-shell img{width:100%;height:100%;object-fit:contain}.school-identity-card span{display:block;color:#9eece4;font-size:.78rem;font-weight:700}.school-identity-card strong{display:block;font-size:1.3rem;line-height:1.6;margin:3px 0}.school-identity-card small{color:rgba(255,255,255,.7)}.logo-placeholder{width:100%;height:100%;display:grid;place-items:center;color:var(--blue)}.logo-placeholder svg{width:68%;height:68%;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.logo-placeholder.small svg{width:55%;height:55%}.header-wave{position:absolute;bottom:-2px;left:0;right:0;height:52px;background:var(--soft);clip-path:polygon(0 65%,12% 79%,25% 70%,42% 87%,61% 72%,77% 91%,100% 70%,100% 100%,0 100%)}.main-nav{width:min(1240px,calc(100% - 44px));margin:-27px auto 0;position:relative;z-index:4;background:#fff;border:1px solid #d8e7ef;border-radius:18px;padding:8px;box-shadow:var(--shadow);display:flex;gap:7px;align-items:center;flex-wrap:wrap}.nav-button{border:0;background:transparent;color:#486374;padding:10px 14px;border-radius:11px;font-weight:800;display:flex;gap:7px;align-items:center}.nav-button.active{background:linear-gradient(135deg,var(--blue),var(--teal));color:#fff}.nav-button.signout{margin-right:auto;color:var(--danger)}

/* layout/dashboard */
.layout{width:min(1240px,calc(100% - 44px));margin:28px auto 70px}.app-view{display:none}.active-view{display:block}.welcome-strip,.view-heading{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:22px 24px;box-shadow:var(--shadow-sm);display:flex;justify-content:space-between;gap:22px;align-items:center;margin-bottom:18px}.welcome-strip h2,.view-heading h2,.catalog-toolbar h2{margin:4px 0 5px;font-size:1.55rem}.welcome-strip p,.view-heading p{margin:0;color:var(--muted)}.plan-chip{min-width:220px;background:linear-gradient(135deg,#f0fbfd,#fff5e9);border:1px solid #d9eaf0;border-radius:16px;padding:14px 17px}.plan-chip span,.plan-chip small{display:block;color:var(--muted);font-size:.78rem}.plan-chip strong{display:block;font-size:1.2rem;color:var(--blue)}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.stats-grid article{background:#fff;border:1px solid var(--line);border-radius:17px;padding:18px;box-shadow:var(--shadow-sm);position:relative;overflow:hidden}.stats-grid article:after{content:"";position:absolute;inset:auto -20px -28px auto;width:86px;height:86px;border-radius:50%;background:linear-gradient(135deg,rgba(8,168,156,.12),rgba(11,98,143,.04))}.stats-grid span,.stats-grid small{display:block;color:var(--muted);font-size:.78rem}.stats-grid strong{font-size:1.85rem;color:var(--blue);display:block;margin:6px 0}.catalog-panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:22px;box-shadow:var(--shadow-sm)}.catalog-toolbar{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:14px}.search-field{min-width:310px}.category-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.category-tab{border:1px solid #d2e4ec;background:#f5fafc;color:#426173;padding:8px 12px;border-radius:999px;font-weight:700;font-size:.8rem}.category-tab.active{background:var(--blue);border-color:var(--blue);color:#fff}.records-catalog{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.record-card{border:1px solid #dbe8ee;border-radius:18px;padding:17px;background:linear-gradient(180deg,#fff,#fbfdfe);position:relative;transition:.2s;display:flex;flex-direction:column;min-height:250px}.record-card:hover{transform:translateY(-3px);box-shadow:0 16px 35px rgba(11,75,108,.12);border-color:#b9d7e4}.record-card-icon{width:49px;height:49px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,#eaf7fb,#eafff8);font-size:1.4rem;color:var(--blue);margin-bottom:13px}.record-card-category{position:absolute;top:16px;left:16px;font-size:.68rem;background:#fff3e7;color:#a85c1f;border-radius:999px;padding:5px 9px;font-weight:800}.record-card h3{font-size:1.05rem;margin:0 0 7px}.record-card p{color:var(--muted);font-size:.82rem;line-height:1.8;margin:0 0 12px;flex:1}.record-card-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;border-top:1px dashed #dce7ed;padding-top:12px}.record-card-footer span{font-size:.73rem;color:var(--muted)}.record-card button{padding:8px 12px}

/* editor/record */
.editor-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:14px}.editor-actions{display:flex;gap:9px;flex-wrap:wrap}.record-document{background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);padding:26px;min-height:900px}.record-header{display:grid;grid-template-columns:auto 1fr auto;gap:18px;align-items:center;border-bottom:3px solid transparent;border-image:linear-gradient(90deg,var(--teal),var(--blue),var(--orange)) 1;padding-bottom:20px;margin-bottom:18px}.record-school-brand{display:flex;gap:13px;align-items:center;min-width:270px}.print-logo-shell{width:76px;height:76px;border:1px solid #dbe7ed;border-radius:18px}.record-school-brand strong{display:block;font-size:1rem}.record-school-brand span{display:block;color:var(--muted);font-size:.76rem}.record-title-block{text-align:center}.record-title-block h1{margin:4px 0 7px;font-size:1.65rem;color:var(--navy)}.record-title-block p{margin:0 auto;color:var(--muted);line-height:1.85;font-size:.86rem;max-width:720px}.record-category-badge{display:inline-block;background:#eaf8f7;color:#087c75;border-radius:999px;padding:5px 10px;font-size:.72rem;font-weight:800}.confidential-badge{background:#fff0f0;color:#a52e35;border:1px solid #f0bfc2;border-radius:12px;padding:9px 11px;font-size:.75rem;font-weight:900}.record-meta-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:12px;background:#f5f9fb;border:1px solid #e1ebf0;border-radius:16px;padding:14px;margin-bottom:16px}.dynamic-record-form{display:flex;flex-direction:column;gap:15px}.form-section{border:1px solid #dce8ee;border-radius:17px;overflow:hidden;background:#fff}.form-section-header{background:linear-gradient(135deg,#eff8fb,#f6fffd);padding:12px 16px;border-bottom:1px solid #dce8ee;display:flex;justify-content:space-between;align-items:center;gap:12px}.form-section-header h3{margin:0;font-size:1rem;color:var(--blue)}.form-section-header small{color:var(--muted)}.form-section-body{padding:15px;display:grid;grid-template-columns:repeat(12,1fr);gap:12px}.form-field{grid-column:span 4}.form-field.span-12{grid-column:span 12}.form-field.span-8{grid-column:span 8}.form-field.span-6{grid-column:span 6}.form-field.span-3{grid-column:span 3}.form-field textarea{min-height:105px}.form-field small{color:var(--muted);font-size:.72rem}.checkbox-group,.radio-group{grid-column:span 12;display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.choice-item{display:flex;gap:8px;align-items:flex-start;background:#f8fbfc;border:1px solid #e1ebf0;border-radius:11px;padding:9px 10px;font-size:.8rem;line-height:1.55}.choice-item input{width:17px;height:17px;flex:none;margin-top:2px;accent-color:var(--teal)}.static-note{grid-column:span 12;background:#fff8ee;border:1px solid #f4d6b5;border-radius:13px;padding:13px 15px;color:#735136;line-height:1.9;font-size:.82rem}.repeatable-wrap,.matrix-wrap{grid-column:span 12}.repeatable-table,.matrix-table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid #d9e6ed;border-radius:13px;overflow:hidden;table-layout:fixed}.repeatable-table th,.matrix-table th{background:#eaf5f8;color:#244b62;font-size:.75rem;padding:9px;border-bottom:1px solid #ccdee7}.repeatable-table td,.matrix-table td{border-bottom:1px solid #e3edf2;border-left:1px solid #e3edf2;padding:6px;vertical-align:top}.repeatable-table tr:last-child td,.matrix-table tr:last-child td{border-bottom:0}.repeatable-table input,.repeatable-table textarea,.repeatable-table select,.matrix-table input,.matrix-table textarea,.matrix-table select{width:100%;min-height:38px;border:1px solid #d7e5ec;border-radius:8px;padding:7px;background:#fff}.row-actions{width:44px;text-align:center}.delete-row-button{border:0;background:#fff0f0;color:var(--danger);border-radius:8px;width:30px;height:30px}.add-row-button{margin-top:9px}.matrix-table .week-cell{font-weight:800;background:#f8fbfc;text-align:center}.yes-no{display:flex;gap:6px;align-items:center;justify-content:center;font-size:.7rem}.yes-no label{display:flex;align-items:center;gap:3px}.record-footer{margin-top:24px;border-top:1px solid #dbe7ed;padding-top:14px;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.record-footer div{background:#f7fafc;border-radius:12px;padding:10px 12px}.record-footer span{display:block;color:var(--muted);font-size:.72rem}.record-footer strong{display:block;margin-top:3px;font-size:.82rem}

/* archive */
.archive-filters{background:#fff;border:1px solid var(--line);border-radius:17px;padding:15px;display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px;margin-bottom:14px}.archive-list{display:grid;grid-template-columns:repeat(2,1fr);gap:13px}.archive-item{background:#fff;border:1px solid var(--line);border-radius:17px;padding:16px;box-shadow:var(--shadow-sm);display:grid;gap:10px}.archive-item-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.archive-item h3{margin:0;font-size:1rem}.archive-item p{margin:4px 0 0;color:var(--muted);font-size:.78rem}.status-badge{border-radius:999px;padding:5px 9px;font-size:.68rem;font-weight:800;white-space:nowrap}.status-badge.draft{background:#fff4df;color:#9a641b}.status-badge.completed{background:#e8f8ef;color:#23734e}.status-badge.archived{background:#edf2f6;color:#536a78}.archive-meta{display:flex;flex-wrap:wrap;gap:7px}.archive-meta span{font-size:.71rem;background:#f2f7f9;border-radius:999px;padding:5px 8px;color:#516b79}.archive-actions{display:flex;gap:7px;flex-wrap:wrap;border-top:1px dashed #dce8ee;padding-top:10px}.empty-state{background:#fff;border:1px dashed #cddfe7;border-radius:16px;padding:30px;text-align:center;color:var(--muted);grid-column:1/-1}

/* settings/admin */
.settings-grid{display:grid;grid-template-columns:1.1fr .9fr .9fr;gap:14px}.settings-card,.admin-panel{background:#fff;border:1px solid var(--line);border-radius:19px;padding:18px;box-shadow:var(--shadow-sm)}.settings-card h3,.admin-panel h3{margin:0 0 14px}.settings-card{display:flex;flex-direction:column;gap:12px}.logo-upload-label small{color:var(--muted)}.school-logo-preview{width:130px;height:130px;border:1px dashed #bfd5df;border-radius:18px;background:#f7fbfc;display:grid;place-items:center;padding:12px}.school-logo-preview img{width:100%;height:100%;object-fit:contain}.premium-pill{display:inline-block;align-self:flex-start;background:linear-gradient(135deg,#fff0dc,#ffe2c1);color:#9a571b;border-radius:999px;padding:6px 11px;font-size:.72rem;font-weight:900}.subscription-card p{color:var(--muted);line-height:1.8}.current-plan-box{background:linear-gradient(135deg,#eff9fc,#fff6ec);border:1px solid #dceaf0;border-radius:14px;padding:13px}.current-plan-box span,.current-plan-box small{display:block;color:var(--muted);font-size:.75rem}.current-plan-box strong{display:block;color:var(--blue);font-size:1.2rem}.account-card dl{margin:0;display:grid;gap:10px}.account-card dl div{background:#f7fafc;border-radius:12px;padding:9px 11px}.account-card dt{font-size:.7rem;color:var(--muted)}.account-card dd{margin:3px 0 0;font-weight:700;font-size:.82rem;word-break:break-all}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.admin-support-panel{grid-column:1/-1}.admin-list{display:grid;gap:9px;max-height:530px;overflow:auto}.admin-item{border:1px solid #dce8ee;border-radius:13px;padding:12px}.admin-item h4{margin:0;font-size:.9rem}.admin-item p{margin:5px 0;color:var(--muted);font-size:.74rem}.admin-item-head{display:flex;justify-content:space-between;gap:10px}.admin-role-badge{border-radius:999px;padding:4px 8px;font-size:.67rem;background:#edf4f7;color:#49616f}.admin-role-badge.manager{background:#e7f8f4;color:#087d71}.admin-support-layout{display:grid;grid-template-columns:320px 1fr;gap:12px;min-height:520px}.support-threads-list{border:1px solid #dce8ee;border-radius:14px;padding:8px;overflow:auto;max-height:540px}.thread-card{border:0;width:100%;text-align:right;background:#f7fafc;border-radius:11px;padding:10px;margin-bottom:7px;color:var(--ink)}.thread-card.active{background:#e9f8f5;border:1px solid #bce3dc}.thread-card strong,.thread-card small{display:block}.thread-card small{color:var(--muted);font-size:.7rem;margin-top:3px}.support-thread-detail{border:1px solid #dce8ee;border-radius:14px;overflow:hidden;display:flex;flex-direction:column}.support-thread-head{padding:11px 13px;border-bottom:1px solid #dce8ee;display:flex;justify-content:space-between;gap:10px;align-items:center}.support-thread-head small{display:block;color:var(--muted);font-size:.7rem}

/* chat */
.support-chat-toggle{position:fixed;left:22px;bottom:22px;z-index:50;width:58px;height:58px;border:0;border-radius:50%;background:linear-gradient(135deg,var(--blue),var(--teal));color:#fff;box-shadow:0 15px 35px rgba(7,78,112,.3);font-size:1.4rem}.support-chat-toggle b{position:absolute;top:-3px;right:-3px;background:var(--orange);color:#fff;border-radius:999px;min-width:21px;height:21px;line-height:21px;font-size:.65rem}.support-chat-panel{position:fixed;left:22px;bottom:92px;z-index:49;width:min(380px,calc(100vw - 30px));height:510px;background:#fff;border:1px solid #d5e4eb;border-radius:20px;box-shadow:0 24px 65px rgba(5,48,73,.25);display:flex;flex-direction:column;overflow:hidden}.support-chat-panel>header{background:linear-gradient(135deg,#0b4d73,#09988f);color:#fff;padding:13px 14px;display:flex;justify-content:space-between;align-items:center}.support-chat-panel header strong,.support-chat-panel header small{display:block}.support-chat-panel header small{color:rgba(255,255,255,.75);font-size:.7rem}.support-messages{flex:1;padding:12px;overflow:auto;background:#f5f9fb;display:flex;flex-direction:column;gap:8px}.message{max-width:82%;border-radius:14px;padding:9px 11px;font-size:.79rem;line-height:1.65}.message.mine{align-self:flex-start;background:#dff5f1;border-bottom-left-radius:4px}.message.theirs{align-self:flex-end;background:#fff;border:1px solid #dce7ed;border-bottom-right-radius:4px}.message small{display:block;color:var(--muted);font-size:.62rem;margin-top:4px}.support-compose{padding:9px;border-top:1px solid #dce7ed;background:#fff;display:flex;gap:7px;align-items:flex-end}.support-compose textarea{min-height:44px;max-height:105px}.support-compose button{flex:none}.chat-status{padding:0 10px 8px;font-size:.7rem;color:var(--muted);background:#fff}.admin-messages{min-height:360px}.admin-messages .message{max-width:72%}

/* modal/security/status */
.modal-backdrop{position:fixed;inset:0;z-index:100;background:rgba(5,27,42,.72);display:grid;place-items:center;padding:22px;backdrop-filter:blur(5px)}.modal-card{width:min(610px,100%);background:#fff;border-radius:25px;padding:25px;box-shadow:0 35px 100px rgba(0,0,0,.35);position:relative}.modal-close{position:absolute;left:16px;top:14px;width:36px;height:36px;border:0;border-radius:11px;background:#eff5f8;color:#49616e;font-size:1.3rem}.payment-modal h2{margin:12px 0 5px}.payment-modal>p{color:var(--muted);line-height:1.8}.plan-options{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin:16px 0}.plan-options label{position:relative}.plan-options input{position:absolute;opacity:0}.plan-options span{display:flex;flex-direction:column;gap:4px;border:2px solid #dce8ee;border-radius:16px;padding:15px;background:#fff;min-height:128px}.plan-options input:checked+span{border-color:var(--teal);background:#effbf9;box-shadow:0 0 0 3px rgba(8,168,156,.1)}.plan-options strong{font-size:.9rem}.plan-options b{font-size:1.3rem;color:var(--blue)}.plan-options small{color:var(--muted)}.plan-options em{position:absolute;top:-8px;left:12px;background:var(--orange);color:#fff;border-radius:999px;padding:3px 8px;font-size:.62rem;font-style:normal}.payment-confirm{display:flex;gap:8px;align-items:flex-start;background:#f7fafc;border:1px solid #dce8ee;border-radius:12px;padding:10px;font-size:.8rem}.payment-confirm input{margin-top:4px;accent-color:var(--teal)}.payment-note{margin:10px 0;color:#8c5c22;background:#fff8ed;border:1px solid #f2d5af;border-radius:11px;padding:10px;font-size:.76rem;line-height:1.7}.status-box{border-radius:12px;padding:11px 13px;background:#eaf8f1;color:#216849;border:1px solid #c6e8d6;font-size:.82rem;margin-top:11px}.status-box.error{background:#fff0f0;color:#9b3338;border-color:#efc4c7}.trial-watermark{position:fixed;inset:0;z-index:42;pointer-events:none;overflow:hidden;opacity:.12;background-image:repeating-linear-gradient(-28deg,transparent 0 150px,rgba(13,84,118,.6) 151px 153px,transparent 154px 310px)}.trial-watermark:after{content:"حساب تجريبي — المعاينة فقط";position:absolute;inset:0;display:grid;place-items:center;font-size:clamp(2rem,5vw,5rem);font-weight:900;color:#0b628f;transform:rotate(-20deg)}.screen-shield{position:fixed;inset:0;z-index:999;background:#071d2b;display:grid;place-items:center;color:#fff;text-align:center}.screen-shield div{padding:30px}.screen-shield strong,.screen-shield span{display:block}.screen-shield strong{font-size:1.4rem}.screen-shield span{margin-top:8px;color:rgba(255,255,255,.65)}

/* responsive */
@media(max-width:1000px){.login-shell,.header-shell{grid-template-columns:1fr}.login-brand{padding:0}.school-identity-card{max-width:570px}.records-catalog{grid-template-columns:repeat(2,1fr)}.settings-grid{grid-template-columns:1fr 1fr}.account-card{grid-column:1/-1}.stats-grid{grid-template-columns:repeat(2,1fr)}.record-meta-grid{grid-template-columns:1fr 1fr}.form-field{grid-column:span 6}.checkbox-group,.radio-group{grid-template-columns:repeat(2,1fr)}.admin-support-layout{grid-template-columns:260px 1fr}}
@media(max-width:720px){.login-page{padding:18px}.login-card{padding:22px}.auth-grid{grid-template-columns:1fr}.header-shell,.layout,.main-nav{width:min(100% - 24px,1240px)}.header-shell{padding-top:40px}.hero-copy h1{font-size:2.25rem}.main-nav{overflow:auto;flex-wrap:nowrap}.nav-button{white-space:nowrap}.welcome-strip,.view-heading,.catalog-toolbar{align-items:flex-start;flex-direction:column}.plan-chip,.search-field{min-width:0;width:100%}.records-catalog,.archive-list,.settings-grid,.admin-grid{grid-template-columns:1fr}.stats-grid{grid-template-columns:1fr 1fr}.record-document{padding:14px}.record-header{grid-template-columns:1fr;text-align:center}.record-school-brand{justify-content:center;min-width:0}.record-title-block{text-align:center}.confidential-badge{justify-self:center}.record-meta-grid,.archive-filters{grid-template-columns:1fr}.form-section-body{grid-template-columns:1fr}.form-field,.form-field.span-3,.form-field.span-6,.form-field.span-8,.form-field.span-12{grid-column:1}.checkbox-group,.radio-group{grid-template-columns:1fr}.repeatable-wrap,.matrix-wrap{overflow:auto}.repeatable-table,.matrix-table{min-width:720px}.record-footer{grid-template-columns:1fr}.editor-toolbar{align-items:stretch;flex-direction:column}.editor-actions button{flex:1}.admin-support-layout{grid-template-columns:1fr}.support-threads-list{max-height:220px}.support-thread-detail{min-height:430px}.plan-options{grid-template-columns:1fr}.support-chat-panel{left:15px;bottom:82px}.support-chat-toggle{left:15px;bottom:15px}.login-brand h1{font-size:2.7rem}}

/* print */
@page{size:A4 portrait;margin:12mm 10mm 13mm}
@media print{
  body{background:#fff;color:#111;-webkit-print-color-adjust:exact;print-color-adjust:exact}.top-ribbon,.app-header,.main-nav,.no-print,#dashboardView,#archiveView,#settingsView,#adminView,.support-chat-toggle,.support-chat-panel,.trial-watermark,.screen-shield,.modal-backdrop{display:none!important}.layout{width:100%;margin:0}.app-view{display:none!important}#editorView{display:block!important}.record-document{box-shadow:none;border:0;border-radius:0;padding:0;min-height:auto}.record-header{grid-template-columns:auto 1fr auto;padding-bottom:10px;margin-bottom:10px;gap:12px}.print-logo-shell{width:58px;height:58px}.record-school-brand{min-width:190px}.record-title-block h1{font-size:16pt}.record-title-block p{font-size:8pt;line-height:1.55}.record-category-badge,.confidential-badge{font-size:7pt}.record-meta-grid{grid-template-columns:2fr 1fr 1fr 1fr;padding:8px;gap:7px;margin-bottom:9px;background:#f4f8fa}.record-meta-grid label span,.form-field>span{font-size:7.5pt}.record-meta-grid input,.record-meta-grid select,.form-field input,.form-field textarea,.form-field select{border:0;border-bottom:1px solid #aab9c2;border-radius:0;padding:4px;min-height:25px;background:transparent;font-size:8pt;box-shadow:none}.dynamic-record-form{gap:8px}.form-section{break-inside:avoid;border-radius:9px}.form-section-header{padding:6px 9px}.form-section-header h3{font-size:9pt}.form-section-header small{font-size:6.5pt}.form-section-body{padding:8px;gap:6px}.form-field textarea{min-height:45px}.choice-item{padding:4px 6px;font-size:7pt;border-radius:5px}.choice-item input{width:12px;height:12px}.static-note{font-size:7pt;padding:6px 8px;line-height:1.5}.repeatable-table,.matrix-table{font-size:6.8pt;border-radius:5px}.repeatable-table th,.matrix-table th{font-size:6.6pt;padding:4px}.repeatable-table td,.matrix-table td{padding:3px}.repeatable-table input,.repeatable-table textarea,.repeatable-table select,.matrix-table input,.matrix-table textarea,.matrix-table select{border:0;border-radius:0;padding:2px;min-height:21px;font-size:6.8pt}.add-row-button,.delete-row-button{display:none!important}.record-footer{margin-top:10px;padding-top:7px}.record-footer div{padding:5px 7px;border-radius:5px}.record-footer span{font-size:6.5pt}.record-footer strong{font-size:7.5pt}.form-section,.repeatable-table tr,.matrix-table tr{break-inside:avoid}.record-document input,.record-document textarea,.record-document select{color:#111;opacity:1}.record-document select{appearance:none}.checkbox-group,.radio-group{grid-template-columns:repeat(3,1fr)}
}

/* Package entitlements and comprehensive plan */
.package-plan-options{grid-template-columns:repeat(2,minmax(0,1fr))}
.package-plan-options label.comprehensive span{border-color:#efd5a7;background:linear-gradient(145deg,#fff8ea,#fff)}
.package-plan-options label.comprehensive input:checked+span{border-color:#d48a1c;background:#fff4dc;box-shadow:0 0 0 3px rgba(212,138,28,.12)}
.package-plan-options label.comprehensive em{background:linear-gradient(135deg,#a15d08,#ef9e24)}
@media(max-width:720px){.package-plan-options{grid-template-columns:1fr}}
.modal-card.payment-modal{max-height:94vh;overflow:auto;width:min(760px,100%)}


/* Student unified reports */
.report-heading-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.student-report-builder{background:linear-gradient(145deg,#fff,#f6fbfd);border:1px solid #d7e8ee;border-radius:22px;padding:22px;margin-bottom:22px;box-shadow:0 14px 34px rgba(7,74,104,.08)}
.report-builder-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}
.report-builder-head span{color:var(--teal);font-size:.76rem;font-weight:900}.report-builder-head h3{margin:3px 0 0;color:#183f52}
.available-students{min-width:105px;text-align:center;background:#eaf7f5;border:1px solid #c8e8e2;border-radius:16px;padding:10px}.available-students strong,.available-students small{display:block}.available-students strong{font-size:1.45rem;color:#087c73}.available-students small{font-size:.7rem;color:var(--muted)}
.report-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.report-filter-grid label{display:flex;flex-direction:column;gap:6px}.report-filter-grid label>span{font-size:.75rem;font-weight:800;color:#4f6875}.report-filter-grid .span-2{grid-column:span 2}.report-filter-grid input,.report-filter-grid select{width:100%;border:1px solid #cfdee5;border-radius:12px;background:#fff;padding:11px 12px;font:inherit;color:#193e50;outline:none}.report-filter-grid input:focus,.report-filter-grid select:focus{border-color:var(--teal);box-shadow:0 0 0 3px rgba(8,168,156,.11)}
.report-check{justify-content:center;background:#f8fafb;border:1px solid #dce7ec;border-radius:12px;padding:10px 12px;flex-direction:row!important;align-items:center!important}.report-check input{width:auto!important;accent-color:var(--teal)}.report-builder-actions{display:flex;gap:10px;margin-top:16px;flex-wrap:wrap}
.student-report-document{background:#fff;border:1px solid #d6e4ea;border-radius:24px;box-shadow:0 20px 55px rgba(5,54,79,.12);padding:26px;overflow:hidden}
.student-report-header{display:grid;grid-template-columns:minmax(200px,1fr) minmax(330px,1.6fr) auto;align-items:center;gap:20px;padding-bottom:18px;border-bottom:3px solid #0b718f}
.student-report-school{display:flex;align-items:center;gap:12px}.student-report-logo{width:66px;height:66px;border-radius:17px;background:#f1f7f9;border:1px solid #d9e6eb;display:grid;place-items:center;overflow:hidden;flex:none}.student-report-logo img{width:100%;height:100%;object-fit:contain}.student-report-school strong,.student-report-school span{display:block}.student-report-school strong{font-size:1rem;color:#183d50}.student-report-school span{font-size:.72rem;color:var(--muted)}
.student-report-title{text-align:center}.student-report-title>span{display:inline-block;color:#087f79;background:#e9f8f5;border-radius:999px;padding:4px 11px;font-size:.68rem;font-weight:900}.student-report-title h1{margin:7px 0 3px;font-size:1.65rem;color:#123e54}.student-report-title p{margin:0;color:var(--muted);font-size:.75rem}
.student-report-security{text-align:center;border:1px solid #e8c8c8;background:#fff5f5;color:#9b3038;border-radius:14px;padding:9px 12px}.student-report-security strong,.student-report-security small{display:block}.student-report-security strong{font-size:.88rem}.student-report-security small{font-size:.62rem}
.student-report-profile{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;background:#f3f8fa;border:1px solid #dbe8ed;border-radius:16px;padding:12px;margin:16px 0}.student-report-profile div{padding:7px 10px;border-inline-start:3px solid #8fc8d9}.student-report-profile span,.student-report-profile strong{display:block}.student-report-profile span{font-size:.65rem;color:var(--muted)}.student-report-profile strong{font-size:.8rem;color:#183f52;margin-top:3px}
.student-report-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-bottom:18px}.student-report-stats article{background:#fff;border:1px solid #dbe7ec;border-radius:15px;padding:12px;text-align:center;box-shadow:0 6px 18px rgba(7,70,99,.05)}.student-report-stats span,.student-report-stats strong,.student-report-stats small{display:block}.student-report-stats span{font-size:.67rem;color:#59717d;font-weight:800}.student-report-stats strong{font-size:1.55rem;color:#0b6c8c;margin:2px 0}.student-report-stats small{font-size:.61rem;color:#8a9aa2}
.report-section-heading{display:flex;justify-content:space-between;align-items:end;gap:12px;margin:19px 0 11px}.report-section-heading span{font-size:.67rem;color:var(--teal);font-weight:900}.report-section-heading h2{font-size:1.05rem;margin:2px 0 0;color:#183f52}.report-section-heading>small{color:var(--muted);font-size:.67rem}
.student-report-type-breakdown{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.report-type-chip{display:flex;align-items:center;gap:9px;border:1px solid #dbe7ec;border-radius:13px;padding:10px;background:#fbfdfe}.report-type-chip>span{font-size:1.2rem}.report-type-chip strong,.report-type-chip small{display:block}.report-type-chip strong{font-size:.75rem;color:#214555}.report-type-chip small{font-size:.62rem;color:var(--muted)}
.student-report-timeline{display:flex;flex-direction:column}.student-report-event{display:grid;grid-template-columns:48px 1fr;gap:10px;position:relative}.student-report-marker{display:flex;flex-direction:column;align-items:center}.student-report-marker span{width:39px;height:39px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(145deg,#e7f5f8,#fff);border:1px solid #cfe5ec;font-size:1.05rem;z-index:1}.student-report-marker i{width:2px;flex:1;min-height:28px;background:#cfe1e8}.student-report-event:last-child .student-report-marker i{display:none}
.student-report-event-card{border:1px solid #dbe7ec;border-radius:17px;margin-bottom:12px;background:#fff;overflow:hidden}.student-report-event.confidential .student-report-event-card{border-color:#e7c5c8;background:#fffdfd}.student-report-event-card>header{display:grid;grid-template-columns:1fr auto;gap:16px;padding:14px 16px;background:linear-gradient(145deg,#fbfdfe,#f6fafb)}.student-report-event-card header>div>span{font-size:.64rem;color:var(--teal);font-weight:900}.student-report-event-card h3{margin:3px 0 4px;font-size:.95rem;color:#193f52}.student-report-event-card p{margin:0;color:#667b85;font-size:.72rem;line-height:1.75;max-width:850px}.report-event-meta{text-align:left;display:flex;flex-direction:column;align-items:flex-end;gap:3px;min-width:115px}.report-event-meta strong{font-size:.75rem;color:#20495b}.report-event-meta small{font-size:.63rem;color:var(--muted)}.report-event-meta em{font-style:normal}.report-event-meta b{font-size:.61rem;color:#a43c43;background:#fff0f0;border-radius:999px;padding:2px 7px}
.report-record-details{border-top:1px solid #e3ecef}.report-record-details summary{cursor:pointer;padding:10px 16px;font-size:.72rem;font-weight:900;color:#0b6f8e;background:#f8fbfc;list-style:none}.report-record-details summary::-webkit-details-marker{display:none}.report-record-details summary:before{content:"+";display:inline-grid;place-items:center;width:20px;height:20px;border-radius:7px;background:#e5f3f6;margin-left:7px}.report-record-details[open] summary:before{content:"−"}.report-record-details-body{padding:13px 15px 5px}
.report-detail-section{margin-bottom:13px;border:1px solid #e0e9ed;border-radius:13px;overflow:hidden}.report-detail-section h4{margin:0;padding:8px 11px;background:#edf6f8;color:#235266;font-size:.72rem}.report-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:10px}.report-detail-field{border:1px solid #e4ecef;border-radius:10px;padding:8px;background:#fff}.report-detail-field.wide{grid-column:1/-1}.report-detail-field>span{display:block;font-size:.62rem;color:#71838c;font-weight:800;margin-bottom:4px}.report-value-text{font-size:.7rem;color:#263f4b;line-height:1.7}.report-value-list{margin:0;padding-right:17px;font-size:.7rem;line-height:1.75;color:#263f4b}.report-table-wrap{overflow:auto}.report-data-table{width:100%;border-collapse:collapse;font-size:.66rem}.report-data-table th{background:#eef6f8;color:#245164;padding:6px;border:1px solid #d9e6eb}.report-data-table td{padding:6px;border:1px solid #e0e9ed;vertical-align:top;line-height:1.55}
.report-event-actions{padding:0 15px 12px}.student-report-footer{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:18px;padding-top:13px;border-top:2px solid #dce8ed}.student-report-footer div{background:#f5f9fa;border-radius:11px;padding:9px}.student-report-footer span,.student-report-footer strong{display:block}.student-report-footer span{font-size:.62rem;color:var(--muted)}.student-report-footer strong{font-size:.72rem;color:#264b5c;margin-top:3px}

@media(max-width:980px){.report-filter-grid{grid-template-columns:repeat(2,1fr)}.student-report-header{grid-template-columns:1fr 1.5fr}.student-report-security{grid-column:1/-1;justify-self:center}.student-report-profile{grid-template-columns:repeat(2,1fr)}.student-report-stats{grid-template-columns:repeat(3,1fr)}.student-report-type-breakdown{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.report-builder-head,.report-heading-actions{align-items:stretch;flex-direction:column}.report-filter-grid{grid-template-columns:1fr}.report-filter-grid .span-2{grid-column:1}.student-report-document{padding:13px}.student-report-header{grid-template-columns:1fr;text-align:center}.student-report-school{justify-content:center}.student-report-profile,.student-report-stats,.student-report-type-breakdown{grid-template-columns:1fr}.student-report-event{grid-template-columns:36px 1fr}.student-report-marker span{width:32px;height:32px}.student-report-event-card>header{grid-template-columns:1fr}.report-event-meta{align-items:flex-start;text-align:right}.report-detail-grid{grid-template-columns:1fr}.student-report-footer{grid-template-columns:1fr}}

@media print{
  body.printing-student-report .top-ribbon,
  body.printing-student-report .app-header,
  body.printing-student-report .main-nav,
  body.printing-student-report .support-chat-toggle,
  body.printing-student-report .support-chat-panel,
  body.printing-student-report .trial-watermark,
  body.printing-student-report .screen-shield,
  body.printing-student-report .modal-backdrop,
  body.printing-student-report #editorView{display:none!important}
  body.printing-student-report .app-view{display:none!important}
  body.printing-student-report #studentReportsView{display:block!important}
  body.printing-student-report #studentReportDocument{display:block!important;border:0;box-shadow:none;border-radius:0;padding:0}
  body.printing-student-report .layout{width:100%;margin:0}
  body.printing-student-report .student-report-header{grid-template-columns:190px 1fr 85px;gap:10px;padding-bottom:9px}
  body.printing-student-report .student-report-logo{width:52px;height:52px}
  body.printing-student-report .student-report-title h1{font-size:16pt}
  body.printing-student-report .student-report-profile{grid-template-columns:repeat(4,1fr);padding:7px;margin:8px 0}
  body.printing-student-report .student-report-profile div{padding:4px 6px}
  body.printing-student-report .student-report-stats{grid-template-columns:repeat(5,1fr);gap:5px;margin-bottom:8px}
  body.printing-student-report .student-report-stats article{padding:6px}
  body.printing-student-report .student-report-stats strong{font-size:12pt}
  body.printing-student-report .report-section-heading{margin:9px 0 6px}
  body.printing-student-report .student-report-type-breakdown{grid-template-columns:repeat(4,1fr);gap:4px}
  body.printing-student-report .report-type-chip{padding:5px}
  body.printing-student-report .student-report-event{grid-template-columns:34px 1fr;break-inside:avoid-page}
  body.printing-student-report .student-report-marker span{width:29px;height:29px;border-radius:8px;font-size:8pt}
  body.printing-student-report .student-report-event-card{border-radius:9px;margin-bottom:6px}
  body.printing-student-report .student-report-event-card>header{padding:7px 9px;gap:8px}
  body.printing-student-report .student-report-event-card h3{font-size:8.5pt}
  body.printing-student-report .student-report-event-card p{font-size:6.5pt;line-height:1.45}
  body.printing-student-report .report-event-meta strong{font-size:7pt}
  body.printing-student-report details>summary{display:none!important}
  body.printing-student-report details .report-record-details-body{display:block!important;padding:6px 8px 2px}
  body.printing-student-report .report-detail-section{break-inside:avoid;border-radius:6px;margin-bottom:5px}
  body.printing-student-report .report-detail-section h4{font-size:6.8pt;padding:4px 6px}
  body.printing-student-report .report-detail-grid{grid-template-columns:repeat(2,1fr);gap:4px;padding:5px}
  body.printing-student-report .report-detail-field{padding:4px;border-radius:4px}
  body.printing-student-report .report-detail-field>span{font-size:5.8pt}
  body.printing-student-report .report-value-text,
  body.printing-student-report .report-value-list,
  body.printing-student-report .report-data-table{font-size:6pt;line-height:1.35}
  body.printing-student-report .report-data-table th,
  body.printing-student-report .report-data-table td{padding:3px}
  body.printing-student-report .student-report-footer{margin-top:8px;padding-top:6px}
}

/* School V1.0.8 — Bubble data behavior without changing original records identity */
.record-meta-grid{grid-template-columns:2fr 1fr 1fr 1fr 1fr}
.form-field.linked-school-field input[readonly]{background:#f7fafc;color:#244b62;border-color:#dce8ee;font-weight:700}
.student-auto-summary{grid-column:span 12;display:flex;flex-wrap:wrap;gap:7px;padding:9px 11px;border:1px dashed #cfe0e9;border-radius:12px;background:#f8fbfc;margin-top:-3px}
.student-auto-summary[hidden]{display:none}
.student-auto-summary span{font-size:.73rem;color:#365467;background:#fff;border:1px solid #dce8ee;border-radius:999px;padding:5px 9px}
.student-auto-summary strong{color:var(--blue)}
.repeatable-table select[data-student-select]{min-width:180px}
@media(max-width:1000px){.record-meta-grid{grid-template-columns:1fr 1fr}}
@media(max-width:720px){.record-meta-grid{grid-template-columns:1fr}.student-auto-summary{grid-column:1}}
@media print{.record-meta-grid{grid-template-columns:2fr 1fr 1fr 1fr 1fr}.student-auto-summary{padding:4px 6px;gap:4px}.student-auto-summary span{font-size:6.5pt;padding:2px 5px}}


/* School V1.0.9 — universal school context in every record; original visual identity preserved */
.record-meta-grid{grid-template-columns:2fr repeat(3,minmax(135px,1fr))}
.record-meta-grid select:required:invalid{color:#718490}
@media(max-width:1000px){.record-meta-grid{grid-template-columns:1fr 1fr}}
@media(max-width:720px){.record-meta-grid{grid-template-columns:1fr}}
@media print{.record-meta-grid{grid-template-columns:repeat(4,1fr)}.record-meta-grid label:first-child{grid-column:span 2}}


/* V1.0.19 — Report-first workflow for every guidance record */
.record-report-heading{background:linear-gradient(135deg,#fff,#f6fbfd);border:1px solid var(--line);border-radius:22px;padding:20px 22px;box-shadow:var(--shadow-sm);display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:15px;position:relative;overflow:hidden}
.record-report-heading:after{content:"";position:absolute;width:180px;height:180px;border-radius:50%;left:-75px;top:-105px;background:radial-gradient(circle,rgba(8,168,156,.13),transparent 68%);pointer-events:none}
.record-report-title-group{display:flex;align-items:center;gap:15px;min-width:0}.record-report-title-group>div{min-width:0}.record-report-title-group h2{margin:3px 0 4px;color:var(--blue);font-size:1.45rem}.record-report-title-group p{margin:0;color:var(--muted);font-size:.83rem;line-height:1.8}.record-new-cta{min-width:150px;box-shadow:0 10px 26px rgba(8,122,111,.18)}
.record-report-panel{background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow-sm);overflow:hidden}
.record-report-filters{display:grid;grid-template-columns:minmax(280px,1.55fr) minmax(180px,.85fr) minmax(180px,.85fr) 150px;gap:8px;padding:12px;background:#f8fbfc;border-bottom:1px solid #e3edf1;align-items:stretch}
.record-report-filters label{display:flex;flex-direction:column;gap:6px}.record-report-filters label>span{font-size:.72rem;font-weight:800;color:#526b78}.record-report-filters input,.record-report-filters select{width:100%;min-height:48px;border:1px solid #b7cbd4;border-radius:9px;background:#fff;padding:9px 12px;color:var(--ink);outline:none;font-family:inherit}.record-report-filters input:focus,.record-report-filters select:focus{border-color:#2b7754;box-shadow:0 0 0 3px rgba(43,119,84,.10)}
.record-report-count{border:1px solid #2a6947;background:#fff;border-radius:9px;display:grid;place-items:center;align-content:center;min-height:72px}.record-report-count span{font-size:.72rem;color:#61757f;font-weight:800}.record-report-count strong{font-size:1.15rem;color:#174c31;margin-top:2px}
.record-report-table-shell{overflow:auto;min-height:290px;padding:10px}.record-report-table{width:100%;border-collapse:separate;border-spacing:0;min-width:980px;font-size:.78rem}.record-report-table th{position:sticky;top:0;z-index:2;background:#245f31;color:#fff;padding:13px 11px;text-align:right;font-weight:900;border-left:1px solid rgba(255,255,255,.08);white-space:nowrap}.record-report-table th:first-child{border-radius:0 10px 0 0}.record-report-table th:last-child{border-radius:10px 0 0 0}.record-report-table td{padding:11px;border-bottom:1px solid #e4ecef;vertical-align:top;color:#2f4854;line-height:1.6;background:#fff}.record-report-table tbody tr:hover td{background:#f8fcfa}.record-report-table .report-cell-main{font-weight:800;color:#173c4d}.record-report-table .report-cell-muted{color:#71838b}.record-report-table .report-row-actions{display:flex;gap:5px;white-space:nowrap}.record-report-table .report-row-actions button{padding:6px 9px;font-size:.68rem;border-radius:8px}.record-report-empty{padding:38px;text-align:center;color:var(--muted);border-top:1px dashed #d5e3e9;background:#fbfdfe;font-weight:700}
@media(max-width:900px){.record-report-filters{grid-template-columns:1fr 1fr}.record-report-search{grid-column:1/-1}.record-report-count{min-height:60px}.record-report-heading{align-items:flex-start}.record-report-title-group{align-items:flex-start}}
@media(max-width:620px){.record-report-heading{flex-direction:column}.record-new-cta{width:100%}.record-report-title-group{width:100%;flex-direction:column}.record-report-filters{grid-template-columns:1fr}.record-report-search{grid-column:auto}.record-report-count{min-height:58px}.record-report-panel{border-radius:16px}.record-report-table-shell{padding:6px}}
@media print{#recordReportView{display:none!important}}

/* V1.0.49 — Daily incident conditional dropdowns */
.incident-field-disabled{opacity:.52;transition:opacity .18s ease}
.incident-field-disabled select{background:#f1f5f7!important;color:#8b99a1!important;cursor:not-allowed}

/* V1.0.49 — New Record fresh-data loader */
.new-record-data-loader[hidden]{display:none!important}
.new-record-data-loader{position:fixed;inset:0;z-index:2147482600;display:grid;place-items:center;background:rgba(247,251,249,.96);backdrop-filter:blur(6px);opacity:0;transition:opacity .22s ease;direction:rtl}
.new-record-data-loader.visible{opacity:1}.new-record-data-loader.done{opacity:0;pointer-events:none}
.nrdl-card{display:grid;place-items:center;gap:12px;padding:24px 30px;text-align:center;font-family:Cairo,Tahoma,sans-serif}
.nrdl-logo{position:relative;width:118px;height:118px}.nrdl-logo>img,.nrdl-fill img{position:absolute;inset:0;width:118px;height:118px;object-fit:contain}
.nrdl-logo>img{filter:grayscale(1);opacity:.18}.nrdl-fill{position:absolute;left:0;right:0;bottom:0;height:5%;overflow:hidden;animation:nrdlFill 1.55s ease-in-out infinite}.nrdl-fill img{top:auto;bottom:0}
.new-record-data-loader.complete .nrdl-fill{animation:none;height:100%;transition:height .25s ease}.nrdl-card strong{color:#244b31;font-weight:900}.nrdl-card small{color:#6d7e74;font-size:.76rem;font-weight:700}
.nrdl-bar{width:180px;height:5px;background:#dfe9e2;border-radius:99px;overflow:hidden}.nrdl-bar i{display:block;width:38%;height:100%;background:#3c7c48;border-radius:inherit;animation:nrdlBar 1.05s ease-in-out infinite}
@keyframes nrdlFill{0%{height:4%}75%{height:94%}100%{height:99%}}@keyframes nrdlBar{0%{transform:translateX(210%)}100%{transform:translateX(-310%)}}

/* V1.0.49 — searchable student selector */
.student-search-field input[type="search"]{
  padding-inline-start:42px;
  background-image:linear-gradient(transparent,transparent);
}
.student-search-field small{color:#667985}
.repeatable-table input[data-student-select]{background:#fff}
.repeatable-table input[data-col="guardian_phone"][readonly],
.form-field input[data-field="guardian_phone"][readonly]{
  background:#f7fafc;
  color:#244b62;
  font-weight:700;
}

/* V1.0.49 — fixed linked fields, collapsed multiline editors, student reports */
.record-meta-grid #metaTitle[readonly]{
  background:#f4f8fa;
  color:#27495c;
  font-weight:800;
  cursor:default;
}
.form-field.linked-school-field input[readonly],
.form-field input[data-field="guardian_phone"][readonly]{
  min-height:44px;
  height:44px;
  max-height:44px;
  width:100%;
  min-width:0;
}
.student-auto-summary{display:none!important}

.collapsible-textarea{
  border:1px solid #d8e6ed;
  border-radius:12px;
  background:#fff;
  overflow:hidden;
}
.collapsible-textarea>summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  min-height:46px;
  padding:11px 13px;
  color:#315466;
  font-weight:800;
  background:#f8fbfc;
}
.collapsible-textarea>summary::-webkit-details-marker{display:none}
.collapsible-textarea>summary:after{
  content:"+";
  flex:none;
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#e8f4f6;
  color:#0b628f;
  font-size:1.05rem;
}
.collapsible-textarea[open]>summary:after{content:"−"}
.collapsible-textarea>summary small{
  margin-inline-start:auto;
  color:#718591;
  font-size:.68rem;
  font-weight:700;
}
.collapsible-textarea-body{padding:10px 12px 12px}
.collapsible-textarea-body textarea{
  width:100%;
  min-height:110px;
  resize:vertical;
}
.report-filter-grid-simple{grid-template-columns:minmax(260px,620px)}
.report-filter-grid-simple .span-2{grid-column:1}

@media print{
  .collapsible-textarea{border:0;overflow:visible}
  .collapsible-textarea>summary{display:none!important}
  .collapsible-textarea-body{padding:0}
  .collapsible-textarea-body textarea{display:block!important;min-height:45px}
}

/* V1.0.49 — compact student-linked fields + report search */
.form-field input[data-field="grade"][readonly],
.form-field input[data-field="class_name"][readonly],
.form-field input[data-field="guardian_phone"][readonly]{
  width:100%;
  min-width:0;
  height:44px!important;
  min-height:44px!important;
  max-height:44px!important;
  padding-top:0!important;
  padding-bottom:0!important;
  line-height:44px;
  box-sizing:border-box;
}

.student-report-search-field{position:relative}
.student-report-search-wrap{position:relative}
.student-report-search-wrap>input{
  width:100%;
}
.student-report-search-results{
  position:absolute;
  inset-inline:0;
  top:calc(100% + 6px);
  z-index:80;
  max-height:310px;
  overflow:auto;
  border:1px solid #d5e4eb;
  border-radius:14px;
  background:#fff;
  box-shadow:0 16px 38px rgba(20,55,75,.16);
  padding:6px;
}
.student-report-search-results button{
  width:100%;
  border:0;
  background:transparent;
  border-radius:10px;
  padding:10px 12px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  text-align:right;
  cursor:pointer;
  color:#264d61;
}
.student-report-search-results button:hover,
.student-report-search-results button:focus{
  background:#eef7f9;
  outline:none;
}
.student-report-search-results button strong{font-size:.9rem}
.student-report-search-results button small{color:#718590;font-size:.72rem}
.student-search-empty{
  padding:12px;
  text-align:center;
  color:#758892;
  font-size:.82rem;
}

/* V1.0.49 — RTL field values + compact guardian phone */
.form-section input,
.form-section select,
.form-section textarea,
.record-meta-grid input,
.record-meta-grid select,
.report-filter-grid input,
.report-filter-grid select,
.repeatable-table input,
.repeatable-table select,
.repeatable-table textarea{
  direction:rtl;
  text-align:right;
}

/* Phone values are still displayed on the right as requested. */
.form-field input[data-field="guardian_phone"][readonly]{
  direction:rtl;
  text-align:right;
}

/* Keep the guardian phone field visually smaller than the other linked fields. */
.form-field:has(input[data-field="guardian_phone"]){
  grid-column:span 3!important;
  max-width:360px;
}
.form-field input[data-field="guardian_phone"]{
  width:100%;
  max-width:360px;
}

/* Repeater phone cells stay compact without shrinking the entire table. */
.repeatable-table input[data-col="guardian_phone"]{
  min-width:150px;
  max-width:190px;
  width:100%;
  direction:rtl;
  text-align:right;
}

@media (max-width:760px){
  .form-field:has(input[data-field="guardian_phone"]){
    grid-column:1/-1!important;
    max-width:none;
  }
  .form-field input[data-field="guardian_phone"]{
    max-width:none;
  }
}

/* V1.0.49 — Student comprehensive report drill-down */
.student-report-type-breakdown{grid-template-columns:repeat(4,minmax(0,1fr))}
.report-type-chip-button{appearance:none;width:100%;cursor:pointer;text-align:right;font:inherit;position:relative;transition:.16s ease}
.report-type-chip-button:hover{transform:translateY(-1px);border-color:#b9d8e2;box-shadow:0 8px 18px rgba(26,75,96,.08)}
.report-type-chip-button .report-type-icon,.report-type-chip-print .report-type-icon{font-size:1.25rem}
.report-type-chip-button div{flex:1}
.report-type-chip-button strong,.report-type-chip-print strong{font-size:1.35rem;line-height:1;color:#123f54}
.report-type-chip-button small,.report-type-chip-print small{margin-top:5px;line-height:1.5}
.report-type-chip-button>b{font-size:1.3rem;color:#63818f;font-weight:500}.print-only{display:none}
.student-report-timeline{gap:10px}
.student-report-type-group{border:1px solid #d9e7ec;border-radius:15px;background:#fff;overflow:hidden}
.student-report-type-group>summary{list-style:none;cursor:pointer;display:grid;grid-template-columns:42px 1fr 28px;align-items:center;gap:10px;padding:13px 15px;background:linear-gradient(145deg,#fbfdfe,#f5fafb)}
.student-report-type-group>summary::-webkit-details-marker{display:none}
.student-report-type-group>summary .student-report-type-group-icon{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:#edf7f9;border:1px solid #d5e9ee}
.student-report-type-group>summary strong{display:block;color:#193f52;font-size:.9rem}.student-report-type-group>summary small{display:block;color:#748993;font-size:.7rem;margin-top:2px}
.student-report-type-group>summary>b{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#eaf4f7;color:#315f72;font-size:1rem}.student-report-type-group[open]>summary>b{transform:rotate(45deg)}
.student-report-occurrence-list{display:flex;flex-direction:column;border-top:1px solid #e1ebef}
.student-report-occurrence{appearance:none;border:0;border-bottom:1px solid #edf2f4;background:#fff;width:100%;display:grid;grid-template-columns:112px 1fr auto;align-items:center;gap:14px;padding:12px 15px;text-align:right;font:inherit;cursor:pointer}
.student-report-occurrence:last-child{border-bottom:0}.student-report-occurrence:hover{background:#f7fbfc}.student-report-occurrence.confidential{background:#fffafa}
.student-report-occurrence time{color:#315b6e;font-size:.75rem;font-weight:800;white-space:nowrap}.student-report-occurrence div strong{display:block;color:#1c4356;font-size:.82rem;line-height:1.65}.student-report-occurrence div small{display:block;margin-top:3px;color:#788c95;font-size:.66rem}.student-report-occurrence>span{color:#0b628f;font-size:.7rem;font-weight:800;white-space:nowrap}
@media(max-width:760px){.student-report-occurrence{grid-template-columns:1fr;gap:5px}.student-report-occurrence>span{justify-self:start}}
@media print{body.printing-student-report .no-print{display:none!important}body.printing-student-report .print-only{display:flex!important}body.printing-student-report .student-report-type-group{break-inside:avoid-page;border-radius:8px;margin-bottom:5px}body.printing-student-report .student-report-type-group>summary{padding:6px 8px;grid-template-columns:28px 1fr}body.printing-student-report .student-report-type-group>summary>b{display:none}body.printing-student-report .student-report-type-group>summary .student-report-type-group-icon{width:26px;height:26px;border-radius:7px}body.printing-student-report .student-report-occurrence{grid-template-columns:80px 1fr;padding:5px 8px;gap:7px}body.printing-student-report .student-report-occurrence div strong{font-size:7.5pt}body.printing-student-report .student-report-occurrence div small,body.printing-student-report .student-report-occurrence time{font-size:6.5pt}}

/* V1.0.65 — يوم جلسة الإرشاد الجمعي مشتق تلقائيًا من تاريخ السجل */
.derived-day-field{display:flex;flex-direction:column;gap:7px}.derived-day-value{min-height:46px;border:1px solid #cfe0e9;border-radius:12px;background:linear-gradient(135deg,#f4fbfb,#f7fafc);padding:12px 13px;display:flex;align-items:center;color:#17465d;font-weight:900}.derived-day-field small{color:var(--muted);font-size:.72rem}
@media print{.derived-day-value{min-height:25px;border:0;border-bottom:1px solid #aab9c2;border-radius:0;background:transparent;padding:4px;font-size:8pt}}


/* V1.0.71 - polished collective guidance report */
.collective-report-panel{border-color:#d4e6ed;box-shadow:0 16px 42px rgba(7,61,88,.10)}
.collective-report-panel .record-report-filters{background:linear-gradient(135deg,#f4fbfd 0%,#f8fcfb 58%,#fff9f1 100%);padding:14px;gap:10px}
.collective-report-panel .record-report-count{border-color:#aadbd6;background:linear-gradient(145deg,#ffffff,#edf9f7);box-shadow:inset 0 0 0 1px rgba(8,168,156,.04)}
.collective-report-panel .record-report-count strong{color:#087f79;font-size:1.28rem}
.collective-report-panel .record-report-table-shell{padding:12px;min-height:250px;max-height:66vh;scrollbar-color:#9fc6d2 #edf5f8;scrollbar-width:thin}
.collective-report-panel .record-report-table{min-width:1860px;font-size:.75rem;border:1px solid #dbe8ed;border-radius:14px;overflow:hidden;background:#fff}
.collective-report-panel .record-report-table th{background:linear-gradient(135deg,#0b628f,#078f87);padding:12px 10px;border-left-color:rgba(255,255,255,.13);font-size:.72rem;letter-spacing:0;top:0}
.collective-report-panel .record-report-table td{padding:10px 10px;line-height:1.7;border-bottom-color:#e5eef2;border-left:1px solid #eef4f6;max-width:180px}
.collective-report-panel .record-report-table tbody tr:nth-child(even) td{background:#fbfdfe}
.collective-report-panel .record-report-table tbody tr:hover td{background:#f0faf9}
.collective-report-panel .record-report-table .report-cell-value{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;white-space:normal;word-break:break-word}
.collective-report-panel .record-report-table .report-col-compact{min-width:88px;max-width:120px;white-space:nowrap}
.collective-report-panel .record-report-table .report-col-title{min-width:155px;max-width:190px;font-weight:900;color:#123f55}
.collective-report-panel .record-report-table .report-col-medium{min-width:130px;max-width:170px}
.collective-report-panel .record-report-table .report-col-long{min-width:165px;max-width:205px}
.collective-report-panel .record-report-table .report-col-students{min-width:180px;max-width:230px;color:#255164;font-weight:700}
.collective-report-panel .record-report-table .report-actions-head,.collective-report-panel .record-report-table .report-actions-cell{position:sticky;left:0;z-index:3;min-width:150px;max-width:150px}
.collective-report-panel .record-report-table .report-actions-head{z-index:5;background:linear-gradient(135deg,#084b70,#087c75)}
.collective-report-panel .record-report-table .report-actions-cell{background:#fff;border-right:1px solid #dce9ee;box-shadow:8px 0 18px rgba(9,62,88,.06)}
.collective-report-panel .record-report-table tbody tr:nth-child(even) .report-actions-cell{background:#fbfdfe}
.collective-report-panel .record-report-table tbody tr:hover .report-actions-cell{background:#f0faf9}
.collective-report-panel .report-row-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;white-space:normal}
.collective-report-panel .report-row-actions button{padding:7px 7px;font-size:.67rem;border-radius:9px;min-width:0}
.collective-report-panel .report-delete-action{grid-column:1/-1;color:#a33b42;background:#fff5f5;border-color:#efd1d4}
@media(max-width:900px){.collective-report-panel .record-report-table-shell{max-height:none}.collective-report-panel .record-report-table{min-width:1700px}}
@media print{.collective-report-panel .record-report-table-shell{max-height:none;overflow:visible;padding:0}.collective-report-panel .record-report-table{min-width:0;width:100%;font-size:6.5pt}.collective-report-panel .record-report-table th,.collective-report-panel .record-report-table td{padding:4px 3px;max-width:none;min-width:0!important}.collective-report-panel .record-report-table .report-cell-value{-webkit-line-clamp:unset;display:block}.collective-report-panel .report-actions-head,.collective-report-panel .report-actions-cell{display:none}}


/* V1.0.72 — luxury compact collective guidance report */
.collective-report-panel{
  overflow:hidden;
  border:1px solid rgba(9,96,127,.14);
  border-radius:24px;
  background:linear-gradient(160deg,#ffffff 0%,#fbfdfe 55%,#f3faf9 100%);
  box-shadow:0 24px 65px rgba(5,64,91,.12),0 3px 12px rgba(5,64,91,.05);
}
.collective-report-panel .record-report-filters{
  position:relative;
  background:linear-gradient(135deg,#f5fbfd 0%,#f8fcfb 60%,#fffaf3 100%);
  border-bottom:1px solid #dcebef;
  padding:18px;
  gap:12px;
}
.collective-report-panel .record-report-filters label{
  border-radius:14px;
}
.collective-report-panel .record-report-filters input,
.collective-report-panel .record-report-filters select{
  min-height:44px;
  border-color:#cfe2e9;
  background:rgba(255,255,255,.94);
  box-shadow:0 5px 14px rgba(13,89,116,.04);
}
.collective-report-panel .record-report-count{
  min-height:64px;
  border:1px solid #b9dedb;
  border-radius:16px;
  background:linear-gradient(145deg,#ffffff,#ecf9f7);
  box-shadow:0 8px 20px rgba(7,125,116,.08),inset 0 0 0 1px rgba(8,168,156,.04);
}
.collective-report-panel .record-report-count strong{color:#087f79;font-size:1.35rem;font-weight:900}
.collective-report-panel .record-report-table-shell{
  padding:18px;
  min-height:240px;
  max-height:68vh;
  overflow:auto;
  background:linear-gradient(180deg,#fbfdfe 0%,#f7fbfc 100%);
  scrollbar-color:#9fc6d2 #edf5f8;
  scrollbar-width:thin;
}
.collective-report-panel .record-report-table{
  width:100%;
  min-width:760px;
  border-collapse:separate;
  border-spacing:0 10px;
  table-layout:fixed;
  font-size:.82rem;
  background:transparent;
  border:0;
}
.collective-report-panel .record-report-table thead th{
  position:sticky;
  top:0;
  z-index:5;
  padding:14px 16px;
  background:linear-gradient(135deg,#075a80 0%,#087f79 100%);
  color:#fff;
  border:0;
  font-size:.76rem;
  font-weight:900;
  white-space:nowrap;
  box-shadow:0 10px 24px rgba(6,92,117,.12);
}
.collective-report-panel .record-report-table thead th:first-child{border-radius:0 14px 14px 0}
.collective-report-panel .record-report-table thead th:last-child{border-radius:14px 0 0 14px}
.collective-report-panel .record-report-table tbody td{
  padding:16px 16px;
  vertical-align:middle;
  line-height:1.8;
  color:#294d5e;
  background:#fff;
  border-top:1px solid #e2edf1;
  border-bottom:1px solid #e2edf1;
  border-left:0;
  box-shadow:0 8px 22px rgba(20,75,96,.045);
}
.collective-report-panel .record-report-table tbody td:first-child{
  border-right:1px solid #e2edf1;
  border-radius:0 15px 15px 0;
}
.collective-report-panel .record-report-table tbody td:last-child{
  border-left:1px solid #e2edf1;
  border-radius:15px 0 0 15px;
}
.collective-report-panel .record-report-table tbody tr:hover td{
  background:#f8fdfc;
  border-color:#cbe6e2;
}
.collective-report-panel .record-report-table .report-cell-value{
  display:block;
  overflow:visible;
  white-space:normal;
  word-break:break-word;
  -webkit-line-clamp:unset;
}
.collective-report-panel .record-report-table .report-col-title{
  width:28%;
  min-width:190px;
  max-width:none;
  color:#123f55;
  font-weight:900;
  font-size:.86rem;
}
.collective-report-panel .record-report-table .report-col-students{
  width:42%;
  min-width:280px;
  max-width:none;
  color:#255164;
  font-weight:750;
}
.collective-report-panel .record-report-table .report-col-compact{
  width:13%;
  min-width:105px;
  max-width:none;
  white-space:nowrap;
  text-align:center;
  color:#087f79;
  font-weight:900;
}
.collective-report-panel .record-report-table .report-actions-head,
.collective-report-panel .record-report-table .report-actions-cell{
  position:static;
  width:17%;
  min-width:155px;
  max-width:none;
}
.collective-report-panel .record-report-table .report-actions-head{
  background:linear-gradient(135deg,#064c70,#076d68);
}
.collective-report-panel .record-report-table .report-actions-cell{
  background:#fff;
  border-right:0;
  box-shadow:0 8px 22px rgba(20,75,96,.045);
}
.collective-report-panel .report-row-actions{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  white-space:nowrap;
}
.collective-report-panel .report-row-actions button{
  min-width:0;
  padding:8px 10px;
  border-radius:10px;
  font-size:.68rem;
  font-weight:850;
}
.collective-report-panel .report-delete-action{
  grid-column:auto;
  color:#a33b42;
  background:#fff7f7;
  border-color:#efd7d9;
}
@media(max-width:900px){
  .collective-report-panel{border-radius:18px}
  .collective-report-panel .record-report-table-shell{padding:10px;max-height:none}
  .collective-report-panel .record-report-table{min-width:720px;font-size:.78rem}
  .collective-report-panel .record-report-table .report-col-students{min-width:250px}
}
@media(max-width:620px){
  .collective-report-panel .record-report-filters{padding:12px}
  .collective-report-panel .record-report-table{min-width:680px}
  .collective-report-panel .record-report-table tbody td{padding:12px 10px}
}
@media print{
  .collective-report-panel{border:0;box-shadow:none;background:#fff}
  .collective-report-panel .record-report-filters{display:none!important}
  .collective-report-panel .record-report-table-shell{max-height:none;overflow:visible;padding:0;background:#fff}
  .collective-report-panel .record-report-table{min-width:0;width:100%;table-layout:fixed;border-spacing:0 5px;font-size:8pt}
  .collective-report-panel .record-report-table th,.collective-report-panel .record-report-table td{padding:6px 7px!important;min-width:0!important;max-width:none!important}
  .collective-report-panel .record-report-table .report-col-title{width:35%}
  .collective-report-panel .record-report-table .report-col-students{width:50%}
  .collective-report-panel .record-report-table .report-col-compact{width:15%}
  .collective-report-panel .report-actions-head,.collective-report-panel .report-actions-cell{display:none!important}
}

/* V1.0.74 — force collective report header labels to high-contrast white */
.collective-report-panel .record-report-table thead th,
.collective-report-panel .record-report-table .report-actions-head{
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  text-shadow:0 1px 1px rgba(0,0,0,.12);
}

/* V1.0.75 — linked collective follow-up sessions */
.collective-report-panel .record-report-table{min-width:860px}
.collective-report-panel .record-report-table .report-col-title{width:29%}
.collective-report-panel .record-report-table .report-col-students{width:34%}
.collective-report-panel .record-report-table .report-col-compact{width:12%}
.collective-report-panel .record-report-table .report-actions-head,
.collective-report-panel .record-report-table .report-actions-cell{width:25%;min-width:220px}
.collective-report-panel .report-row-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;white-space:normal}
.collective-report-panel .report-row-actions button{width:100%;padding:8px 9px}
.collective-report-panel .report-add-session{background:linear-gradient(135deg,#0a876f,#10a78b);color:#fff;border:0;box-shadow:0 7px 16px rgba(8,135,111,.17)}
.collective-report-panel .report-delete-action{grid-column:auto}
.collective-session-title{display:flex;align-items:center;gap:9px;min-width:0}
.collective-session-title.followup{padding-right:22px;position:relative}
.collective-session-title.followup:before{content:"";position:absolute;right:5px;top:-18px;bottom:-18px;width:2px;background:linear-gradient(180deg,#8bd7cb,#d9efeb);border-radius:999px}
.collective-sequence-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;padding:5px 9px;border-radius:999px;background:linear-gradient(135deg,#0a648d,#078b83);color:#fff;font-size:.64rem;font-weight:900;box-shadow:0 5px 12px rgba(8,103,133,.14)}
.collective-sequence-badge.followup{background:#e8f7f4;color:#087a6f;border:1px solid #bfe5de;box-shadow:none}
.collective-followup-row td{background:linear-gradient(90deg,#f9fdfc,#f5fbfa)!important;border-color:#d8ece7!important}
.collective-followup-row .report-col-students{color:#4f6f79!important;font-style:italic;font-weight:700!important}
.collective-followup-row:hover td{background:#eef9f6!important}
.collective-main-row td{border-color:#dbe9ef!important}
.collective-main-row .report-cell-main{font-size:.9rem}
@media(max-width:900px){
  .collective-report-panel .record-report-table{min-width:820px}
  .collective-report-panel .record-report-table .report-actions-head,
  .collective-report-panel .record-report-table .report-actions-cell{min-width:205px}
}
@media print{
  .collective-session-title.followup{padding-right:14px}
  .collective-session-title.followup:before{right:2px}
  .collective-sequence-badge{font-size:6pt;padding:2px 5px}
  .collective-followup-row td{background:#f6fbf9!important}
}

/* V1.0.78 — report grows with the page; no nested scrolling */
.collective-report-panel .record-report-table-shell{
  max-height:none !important;
  height:auto !important;
  overflow:visible !important;
  scrollbar-width:none;
}
.collective-report-panel .record-report-table-shell::-webkit-scrollbar{display:none}
.collective-report-panel .record-report-table{
  width:100% !important;
  min-width:0 !important;
  table-layout:fixed;
}
.collective-report-panel .record-report-table .report-col-title{width:30% !important;min-width:0 !important;max-width:none !important}
.collective-report-panel .record-report-table .report-col-students{width:35% !important;min-width:0 !important;max-width:none !important}
.collective-report-panel .record-report-table .report-col-compact{width:12% !important;min-width:0 !important;max-width:none !important;white-space:normal}
.collective-report-panel .record-report-table .report-actions-head,
.collective-report-panel .record-report-table .report-actions-cell{width:23% !important;min-width:0 !important;max-width:none !important;position:static !important}
.collective-report-panel .record-report-table td,
.collective-report-panel .record-report-table th{word-break:break-word;overflow-wrap:anywhere}
.collective-report-panel .report-row-actions{white-space:normal}

@media(max-width:760px){
  .collective-report-panel .record-report-table-shell{padding:10px !important;overflow:visible !important}
  .collective-report-panel .record-report-table{display:block;width:100% !important;min-width:0 !important;border-spacing:0}
  .collective-report-panel .record-report-table thead{display:none}
  .collective-report-panel .record-report-table tbody{display:block;width:100%}
  .collective-report-panel .record-report-table tbody tr{
    display:block;
    width:100%;
    margin:0 0 14px;
    padding:5px 12px;
    border:1px solid #d9e9ee;
    border-radius:16px;
    background:#fff;
    box-shadow:0 9px 24px rgba(10,70,96,.06);
  }
  .collective-report-panel .record-report-table tbody td{
    display:grid !important;
    grid-template-columns:minmax(92px,32%) 1fr;
    align-items:start;
    gap:10px;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    padding:10px 4px !important;
    border:0 !important;
    border-bottom:1px solid #edf3f5 !important;
    background:transparent !important;
    box-shadow:none !important;
  }
  .collective-report-panel .record-report-table tbody td:last-child{border-bottom:0 !important}
  .collective-report-panel .record-report-table tbody td::before{
    color:#56717e;
    font-size:.7rem;
    font-weight:900;
    line-height:1.7;
  }
  .collective-report-panel .record-report-table tbody td:nth-child(1)::before{content:"اسم الجلسة"}
  .collective-report-panel .record-report-table tbody td:nth-child(2)::before{content:"المشاركون"}
  .collective-report-panel .record-report-table tbody td:nth-child(3)::before{content:"الزمن"}
  .collective-report-panel .record-report-table tbody td:nth-child(4)::before{content:"الإجراءات"}
  .collective-report-panel .collective-session-title{min-width:0;flex-wrap:wrap}
  .collective-report-panel .report-row-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;width:100%}
  .collective-report-panel .report-row-actions button{width:100%}
}

/* V1.0.79 — centered collective report column headings */
.collective-report-panel .record-report-table thead th,
.collective-report-panel .record-report-table .report-actions-head{
  text-align:center !important;
  vertical-align:middle;
}

/* V1.0.90 — Academic weakness compact multi-select dropdown */
.dynamic-choice-field>span{display:block;font-weight:800;margin-bottom:8px}
.subject-multiselect{position:relative}
.subject-multiselect-control{border:1px solid #d6e4e1;border-radius:13px;background:#fff;box-shadow:0 3px 12px rgba(17,73,66,.045);transition:border-color .18s ease,box-shadow .18s ease}
.subject-multiselect-control[open]{border-color:#79bdb6;box-shadow:0 0 0 3px rgba(8,168,156,.09),0 8px 22px rgba(17,73,66,.08)}
.subject-multiselect-control>summary{list-style:none;min-height:47px;padding:8px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;user-select:none}
.subject-multiselect-control>summary::-webkit-details-marker{display:none}
.subject-multiselect-summary{min-width:0;flex:1;display:flex;align-items:center;justify-content:space-between;gap:9px}
.subject-multiselect-placeholder{color:#7a8b87;font-weight:600;font-size:.85rem}
.subject-selected-chips{min-width:0;display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.subject-selected-chip,.subject-selected-more{display:inline-flex;align-items:center;max-width:150px;min-height:27px;padding:3px 8px;border-radius:999px;background:#eaf8f5;border:1px solid #cbe9e3;color:#176d63;font-size:.74rem;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.subject-selected-more{background:#f0f4f3;color:#536a65;border-color:#dde6e3}
.subject-selected-count{flex:none;color:#62807a;font-size:.7rem;font-weight:800;white-space:nowrap}
.subject-multiselect-arrow{flex:none;width:28px;height:28px;border-radius:9px;background:#f1f7f5;color:#26786f;display:grid;place-items:center;font-size:1rem;font-weight:900;transition:transform .18s ease}
.subject-multiselect-control[open] .subject-multiselect-arrow{transform:rotate(180deg)}
.subject-multiselect-menu{border-top:1px solid #e3ece9;background:#fbfefd;padding:9px}
.subject-multiselect-menu-meta{display:flex;align-items:center;justify-content:flex-end;margin:0 0 7px;color:#5f7772;font-size:.72rem;font-weight:800}
.subject-choice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:7px;padding:0;border:0;background:transparent;max-height:245px;overflow:auto;overscroll-behavior:contain}
.subject-multiselect[data-multiselect-source="guidanceObserv"] .subject-choice-grid{max-height:430px;scrollbar-gutter:stable}
.subject-choice{margin:0!important;min-height:39px;align-items:center;background:#fff;border-color:#e0ebe8;cursor:pointer;transition:background .15s ease,border-color .15s ease}
.subject-choice:hover{background:#f4fbf9;border-color:#b9ddd7}
.subject-choice:has(input:checked){background:#eaf8f5;border-color:#8bc9bf;color:#176d63}
.subject-choice-empty{grid-column:1/-1;padding:14px;text-align:center;color:#6a7774;background:#f4f8f7;border-radius:10px;font-size:.92rem}
.subject-choice input:checked+span{font-weight:900}
@media(max-width:720px){.subject-selected-count{display:none}.subject-selected-chip{max-width:105px}.subject-choice-grid{grid-template-columns:1fr;max-height:220px}}
@media print{.subject-multiselect-menu{display:none!important}.subject-multiselect-control{border:0!important;box-shadow:none!important}.subject-multiselect-control>summary{padding:2px 0;min-height:24px}.subject-multiselect-arrow,.subject-selected-count{display:none!important}.subject-selected-chip,.subject-selected-more{background:transparent;border:0;color:#111;padding:0 4px;font-size:7.5pt}}


/* V1.0.91 — Academic weakness report uses the collective-guidance luxury visual system */
.academic-weakness-report-panel .record-report-table{
  width:100% !important;
  min-width:0 !important;
  table-layout:fixed;
}
.academic-weakness-report-panel .record-report-table .report-col-student{width:18% !important;min-width:0 !important;max-width:none !important;font-weight:900;color:#123f55}
.academic-weakness-report-panel .record-report-table .report-col-failtype{width:16% !important;min-width:0 !important;max-width:none !important;color:#315a69;font-weight:800}
.academic-weakness-report-panel .record-report-table .report-col-subjects{width:24% !important;min-width:0 !important;max-width:none !important;color:#255164;font-weight:750}
.academic-weakness-report-panel .record-report-table .report-col-score{width:10% !important;min-width:0 !important;max-width:none !important;text-align:center;color:#087f79;font-weight:900}
.academic-weakness-report-panel .record-report-table .report-col-date{width:14% !important;min-width:0 !important;max-width:none !important;text-align:center;color:#45636f;font-weight:800}
.academic-weakness-report-panel .record-report-table .report-actions-head,
.academic-weakness-report-panel .record-report-table .report-actions-cell{width:18% !important;min-width:0 !important;max-width:none !important}
.academic-weakness-report-panel .record-report-table tbody tr td{border-color:#dbe9ef!important}
.academic-weakness-report-panel .record-report-table tbody tr:hover td{background:#f0faf9!important}
.academic-weakness-report-panel .record-report-table .report-col-subjects .report-cell-value{font-weight:800}

@media(max-width:760px){
  .academic-weakness-report-panel .record-report-table tbody td:nth-child(1)::before{content:"الطالب"}
  .academic-weakness-report-panel .record-report-table tbody td:nth-child(2)::before{content:"نوع الضعف"}
  .academic-weakness-report-panel .record-report-table tbody td:nth-child(3)::before{content:"مواد الضعف"}
  .academic-weakness-report-panel .record-report-table tbody td:nth-child(4)::before{content:"النسبة"}
  .academic-weakness-report-panel .record-report-table tbody td:nth-child(5)::before{content:"تاريخ الجلسة"}
  .academic-weakness-report-panel .record-report-table tbody td:nth-child(6)::before{content:"الإجراءات"}
  .academic-weakness-report-panel .report-row-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media print{
  .academic-weakness-report-panel .record-report-table .report-col-student{width:22% !important}
  .academic-weakness-report-panel .record-report-table .report-col-failtype{width:18% !important}
  .academic-weakness-report-panel .record-report-table .report-col-subjects{width:28% !important}
  .academic-weakness-report-panel .record-report-table .report-col-score{width:12% !important}
  .academic-weakness-report-panel .record-report-table .report-col-date{width:20% !important}
}


/* V1.0.93 — Educational guidance report follows the same luxury report language */
.educational-guidance-report-panel .record-report-table{min-width:1180px}
.educational-guidance-report-panel .record-report-table .report-col-student{min-width:150px;font-weight:900;color:#123f55}
.educational-guidance-report-panel .record-report-table .report-col-problem{min-width:180px;color:#315a69;font-weight:850}
.educational-guidance-report-panel .record-report-table .report-col-skills{min-width:220px;color:#255164;font-weight:750}
.educational-guidance-report-panel .record-report-table .report-col-status{min-width:120px;text-align:center;font-weight:850}
.educational-guidance-report-panel .record-report-table .report-col-date{min-width:125px;text-align:center;color:#45636f;font-weight:800}
.educational-guidance-report-panel .record-report-table tbody tr:hover td{background:#f0faf9!important}
@media(max-width:760px){
  .educational-guidance-report-panel .record-report-table{min-width:1040px}
}
@media print{
  .educational-guidance-report-panel .record-report-table{min-width:0!important;width:100%!important;table-layout:fixed}
  .educational-guidance-report-panel .record-report-table .report-col-student{width:15%!important}
  .educational-guidance-report-panel .record-report-table .report-col-compact{width:10%!important}
  .educational-guidance-report-panel .record-report-table .report-col-problem{width:20%!important}
  .educational-guidance-report-panel .record-report-table .report-col-skills{width:22%!important}
  .educational-guidance-report-panel .record-report-table .report-col-date{width:12%!important}
  .educational-guidance-report-panel .record-report-table .report-col-status{width:9%!important}
}

/* V1.0.104 — Compact repeated lateness/absence reports: student, class, days, session date, message date, actions only */
.lateness-guidance-report-panel .record-report-table,
.absence-guidance-report-panel .record-report-table{min-width:0!important;width:100%!important;table-layout:fixed}
.lateness-guidance-report-panel .record-report-table .report-col-student,
.absence-guidance-report-panel .record-report-table .report-col-student{width:22%!important;min-width:0!important;font-weight:900;color:#123f55}
.lateness-guidance-report-panel .record-report-table .report-col-compact,
.absence-guidance-report-panel .record-report-table .report-col-compact{width:13%!important;min-width:0!important;text-align:center}
.lateness-guidance-report-panel .record-report-table .report-col-score,
.absence-guidance-report-panel .record-report-table .report-col-score{width:14%!important;min-width:0!important;text-align:center;color:#087f79;font-weight:900}
.lateness-guidance-report-panel .record-report-table .report-col-date,
.absence-guidance-report-panel .record-report-table .report-col-date{width:14%!important;min-width:0!important;text-align:center;color:#45636f;font-weight:800}
.lateness-guidance-report-panel .record-report-table .report-actions-head,
.lateness-guidance-report-panel .record-report-table .report-actions-cell,
.absence-guidance-report-panel .record-report-table .report-actions-head,
.absence-guidance-report-panel .record-report-table .report-actions-cell{width:23%!important;min-width:0!important}
.lateness-guidance-report-panel .record-report-table tbody tr:hover td,
.absence-guidance-report-panel .record-report-table tbody tr:hover td{background:#f0faf9!important}
@media(max-width:760px){
  .lateness-guidance-report-panel .record-report-table,
  .absence-guidance-report-panel .record-report-table{min-width:0!important}
  .lateness-guidance-report-panel .record-report-table tbody td:nth-child(1)::before,
  .absence-guidance-report-panel .record-report-table tbody td:nth-child(1)::before{content:"الطالب"}
  .lateness-guidance-report-panel .record-report-table tbody td:nth-child(2)::before,
  .absence-guidance-report-panel .record-report-table tbody td:nth-child(2)::before{content:"الفصل"}
  .lateness-guidance-report-panel .record-report-table tbody td:nth-child(3)::before{content:"عدد أيام التأخر"}
  .absence-guidance-report-panel .record-report-table tbody td:nth-child(3)::before{content:"عدد أيام الغياب"}
  .lateness-guidance-report-panel .record-report-table tbody td:nth-child(4)::before,
  .absence-guidance-report-panel .record-report-table tbody td:nth-child(4)::before{content:"تاريخ الجلسة"}
  .lateness-guidance-report-panel .record-report-table tbody td:nth-child(5)::before,
  .absence-guidance-report-panel .record-report-table tbody td:nth-child(5)::before{content:"تاريخ الرسالة"}
  .lateness-guidance-report-panel .record-report-table tbody td:nth-child(6)::before,
  .absence-guidance-report-panel .record-report-table tbody td:nth-child(6)::before{content:"الإجراءات"}
}
@media print{
  .lateness-guidance-report-panel .record-report-table,
  .absence-guidance-report-panel .record-report-table{min-width:0!important;width:100%!important;table-layout:fixed}
  .lateness-guidance-report-panel .record-report-table .report-col-student,
  .absence-guidance-report-panel .record-report-table .report-col-student{width:26%!important}
  .lateness-guidance-report-panel .record-report-table .report-col-compact,
  .absence-guidance-report-panel .record-report-table .report-col-compact{width:14%!important}
  .lateness-guidance-report-panel .record-report-table .report-col-score,
  .absence-guidance-report-panel .record-report-table .report-col-score{width:18%!important}
  .lateness-guidance-report-panel .record-report-table .report-col-date,
  .absence-guidance-report-panel .record-report-table .report-col-date{width:21%!important}
}

/* V1.0.105 — Keep report action buttons on one horizontal row for repeated lateness/absence */
.lateness-guidance-report-panel .report-row-actions,
.absence-guidance-report-panel .report-row-actions{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  width:100%!important;
  white-space:nowrap!important;
}
.lateness-guidance-report-panel .report-row-actions button,
.absence-guidance-report-panel .report-row-actions button{
  flex:1 1 0!important;
  width:auto!important;
  min-width:0!important;
  padding:7px 6px!important;
  font-size:.66rem!important;
  line-height:1.25!important;
  border-radius:8px!important;
  white-space:nowrap!important;
}


/* V1.0.106 — Guardian contact report: compact Bubble-synced columns and single-row actions */
.guardian-contact-report-panel .record-report-table{min-width:1080px!important;width:100%!important;table-layout:fixed}
.guardian-contact-report-panel .record-report-table .report-col-student{width:16%!important;font-weight:900;color:#123f55}
.guardian-contact-report-panel .record-report-table .report-col-compact{width:11%!important;text-align:center}
.guardian-contact-report-panel .record-report-table .report-col-problem{width:16%!important}
.guardian-contact-report-panel .record-report-table .report-col-date{width:11%!important;text-align:center}
.guardian-contact-report-panel .record-report-table .report-actions-head,
.guardian-contact-report-panel .record-report-table .report-actions-cell{width:18%!important;min-width:190px!important}
.guardian-contact-report-panel .report-row-actions{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:5px!important;white-space:nowrap!important;align-items:center!important;justify-content:center!important}
.guardian-contact-report-panel .report-row-actions button{width:auto!important;min-width:0!important;padding:7px 8px!important;font-size:.72rem!important;white-space:nowrap!important}
@media(max-width:720px){
  .guardian-contact-report-panel .record-report-table{min-width:0!important;width:100%!important}
  .guardian-contact-report-panel .record-report-table tbody td:nth-child(1)::before{content:"الطالب"}
  .guardian-contact-report-panel .record-report-table tbody td:nth-child(2)::before{content:"الفصل"}
  .guardian-contact-report-panel .record-report-table tbody td:nth-child(3)::before{content:"رقم الجوال"}
  .guardian-contact-report-panel .record-report-table tbody td:nth-child(4)::before{content:"طريقة التواصل"}
  .guardian-contact-report-panel .record-report-table tbody td:nth-child(5)::before{content:"غرض الاتصال"}
  .guardian-contact-report-panel .record-report-table tbody td:nth-child(6)::before{content:"تاريخ التواصل"}
  .guardian-contact-report-panel .record-report-table tbody td:nth-child(7)::before{content:"ملاحظات"}
  .guardian-contact-report-panel .record-report-table tbody td:nth-child(8)::before{content:"الإجراءات"}
}
@media print{
  .guardian-contact-report-panel .record-report-table{min-width:0!important;width:100%!important;table-layout:fixed;font-size:7.3pt!important}
  .guardian-contact-report-panel .record-report-table th,.guardian-contact-report-panel .record-report-table td{padding:5px 5px!important}
}

/* V1.0.115 — Guidance visit report action buttons stay on one horizontal row */
.guidance-visit-report-panel .record-report-table .report-actions-head,
.guidance-visit-report-panel .record-report-table .report-actions-cell{
  width:18%!important;
  min-width:190px!important;
}
.guidance-visit-report-panel .report-row-actions{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  width:100%!important;
  white-space:nowrap!important;
}
.guidance-visit-report-panel .report-row-actions button{
  flex:1 1 0!important;
  width:auto!important;
  min-width:0!important;
  padding:7px 7px!important;
  font-size:.68rem!important;
  line-height:1.25!important;
  border-radius:8px!important;
  white-space:nowrap!important;
}

/* V1.0.116 — Case study confidentiality and interview table */
.case-confidential-note{grid-column:span 12;display:flex;align-items:flex-start;gap:12px;padding:14px 16px;border:1px solid #e7b9bd;border-radius:14px;background:linear-gradient(135deg,#fff4f4,#fffafa);color:#7e252c;line-height:1.8}.case-confidential-note strong{flex:0 0 auto;background:#a62f38;color:#fff;border-radius:999px;padding:4px 10px;font-size:.76rem}.case-confidential-note span{font-weight:800;font-size:.84rem}.repeatable-wrap[data-repeat-key="interviews"] .repeatable-table{min-width:900px}.repeatable-wrap[data-repeat-key="interviews"] textarea{min-height:76px;resize:vertical}.repeatable-wrap[data-repeat-key="interviews"] th:nth-child(1){width:15%}.repeatable-wrap[data-repeat-key="interviews"] th:nth-child(2){width:13%}.repeatable-wrap[data-repeat-key="interviews"] th:nth-child(3){width:13%}.repeatable-wrap[data-repeat-key="interviews"] th:nth-child(4){width:16%}.repeatable-wrap[data-repeat-key="interviews"] th:nth-child(5){width:auto}
@media(max-width:720px){.case-confidential-note{flex-direction:column;gap:7px}.repeatable-wrap[data-repeat-key="interviews"]{overflow:auto}}
@media print{.case-confidential-note{padding:7px 9px;font-size:7pt;background:#fff4f4!important}.case-confidential-note strong{font-size:6.5pt}.repeatable-wrap[data-repeat-key="interviews"] .repeatable-table{min-width:0}}

/* V1.0.121 — Case interview save/delete clarity */
.repeatable-wrap[data-repeat-key="interviews"] .delete-row-button{font-size:1.15rem;font-weight:900;line-height:1;cursor:pointer;border:1px solid #f1c9cc;background:#fff5f5}
.repeatable-wrap[data-repeat-key="interviews"] .delete-row-button:hover{background:#ffe9ea;transform:translateY(-1px)}


/* V1.0.121 — Case study report aligned with the unified luxury report system */
.case-study-report-panel .record-report-table{
  min-width:1040px!important;
  width:100%!important;
  table-layout:fixed;
}
.case-study-report-panel .record-report-table .report-col-compact{width:13%!important;text-align:center}
.case-study-report-panel .record-report-table .report-col-date{width:14%!important;text-align:center;color:#45636f;font-weight:800}
.case-study-report-panel .record-report-table .report-actions-head,
.case-study-report-panel .record-report-table .report-actions-cell{width:20%!important;min-width:190px!important}
.case-study-report-panel .report-row-actions{
  display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:center!important;gap:5px!important;width:100%!important;white-space:nowrap!important
}
.case-study-report-panel .report-row-actions button{
  flex:1 1 0!important;width:auto!important;min-width:0!important;padding:7px 7px!important;font-size:.68rem!important;line-height:1.25!important;border-radius:8px!important;white-space:nowrap!important
}
.case-study-report-panel .record-report-table tbody tr:hover td{background:#f0faf9!important}
@media(max-width:760px){
  .case-study-report-panel .record-report-table{min-width:0!important;width:100%!important}
  .case-study-report-panel .record-report-table tbody td:nth-child(1)::before{content:"رقم الحالة"}
  .case-study-report-panel .record-report-table tbody td:nth-child(2)::before{content:"رمز الحالة"}
  .case-study-report-panel .record-report-table tbody td:nth-child(3)::before{content:"الفصل"}
  .case-study-report-panel .record-report-table tbody td:nth-child(4)::before{content:"التصنيف"}
  .case-study-report-panel .record-report-table tbody td:nth-child(5)::before{content:"حالة الدراسة"}
  .case-study-report-panel .record-report-table tbody td:nth-child(6)::before{content:"تاريخ الاكتشاف"}
  .case-study-report-panel .record-report-table tbody td:nth-child(7)::before{content:"الإجراءات"}
}
@media print{
  .case-study-report-panel .record-report-table{min-width:0!important;width:100%!important;table-layout:fixed;font-size:7.2pt!important}
  .case-study-report-panel .record-report-table th,.case-study-report-panel .record-report-table td{padding:5px 5px!important}
}


/* V1.0.123 — Guardian invitation: premium report + single-page A4 letter */
.guardian-invitation-report-panel .record-report-table{min-width:1120px!important;width:100%!important;table-layout:fixed}
.guardian-invitation-report-panel .record-report-table .report-col-student{width:18%!important;font-weight:900;color:#123f55}
.guardian-invitation-report-panel .record-report-table .report-col-compact{width:10%!important;text-align:center}
.guardian-invitation-report-panel .record-report-table .report-col-problem{width:15%!important}
.guardian-invitation-report-panel .record-report-table .report-col-date{width:13%!important;text-align:center;color:#45636f;font-weight:800}
.guardian-invitation-report-panel .record-report-table .report-actions-head,.guardian-invitation-report-panel .record-report-table .report-actions-cell{width:19%!important;min-width:190px!important}
.guardian-invitation-report-panel .report-row-actions{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:5px!important;align-items:center!important;justify-content:center!important;white-space:nowrap!important}
.guardian-invitation-report-panel .report-row-actions button{flex:1 1 0!important;min-width:0!important;padding:7px 7px!important;font-size:.68rem!important;line-height:1.25!important;white-space:nowrap!important}
.guardian-invitation-report-panel .record-report-table tbody tr:hover td{background:#f0faf9!important}
@media(max-width:760px){
  .guardian-invitation-report-panel .record-report-table{min-width:0!important;width:100%!important}
  .guardian-invitation-report-panel .record-report-table tbody td:nth-child(1)::before{content:"رقم الدعوة"}
  .guardian-invitation-report-panel .record-report-table tbody td:nth-child(2)::before{content:"الطالب"}
  .guardian-invitation-report-panel .record-report-table tbody td:nth-child(3)::before{content:"الصف"}
  .guardian-invitation-report-panel .record-report-table tbody td:nth-child(4)::before{content:"الفصل"}
  .guardian-invitation-report-panel .record-report-table tbody td:nth-child(5)::before{content:"فئة الدعوة"}
  .guardian-invitation-report-panel .record-report-table tbody td:nth-child(6)::before{content:"موعد الحضور"}
  .guardian-invitation-report-panel .record-report-table tbody td:nth-child(7)::before{content:"الساعة"}
  .guardian-invitation-report-panel .record-report-table tbody td:nth-child(8)::before{content:"الإجراءات"}
}

.guardian-invitation-print{display:none;direction:rtl;color:#173647;font-family:"Cairo",Tahoma,Arial,sans-serif}
@media print{
  body.printing-guardian-invitation .record-document>.record-header,
  body.printing-guardian-invitation .record-document>.record-meta-grid,
  body.printing-guardian-invitation .record-document>.dynamic-record-form,
  body.printing-guardian-invitation .record-document>.record-footer{display:none!important}
  body.printing-guardian-invitation .guardian-invitation-print{display:block!important}
  body.printing-guardian-invitation .record-document{width:100%!important;margin:0!important;padding:0!important}
  body.printing-guardian-invitation{background:#fff!important}
  body.printing-guardian-invitation .layout{width:100%!important;margin:0!important}
  .guardian-invitation-report-panel .record-report-table{min-width:0!important;width:100%!important;table-layout:fixed;font-size:7.2pt!important}
  .guardian-invitation-report-panel .record-report-table th,.guardian-invitation-report-panel .record-report-table td{padding:5px!important}
}
  .gip-frame{height:282mm;max-height:282mm;border:1.2px solid #bed3de;border-radius:14px;overflow:hidden;background:#fff;display:flex;flex-direction:column;position:relative;box-shadow:inset 0 0 0 4px #f3f8fa}
  .gip-frame:before{content:"";position:absolute;inset:0 0 auto;height:6mm;background:linear-gradient(90deg,#0b628f,#08a89c,#d99a3d);z-index:0}
  .gip-header{display:grid;grid-template-columns:1fr 1.15fr 1fr;gap:7mm;align-items:center;padding:10mm 9mm 4mm;position:relative;z-index:1;border-bottom:1px solid #dce8ee}
  .gip-brand{display:flex;align-items:center;gap:3mm;min-width:0}.gip-brand img{width:17mm;height:17mm;object-fit:contain;background:#fff}.gip-brand strong{display:block;font-size:8.5pt;color:#173f54;line-height:1.4}.gip-brand span{display:block;font-size:6.5pt;color:#6c808c;margin-top:1mm}.gip-guidance-brand{justify-content:flex-end;text-align:right}
  .gip-title{text-align:center}.gip-title>span{display:inline-block;background:#e8f7f5;color:#087c75;border:1px solid #c9e8e3;border-radius:999px;padding:1.2mm 3.3mm;font-size:6.6pt;font-weight:900}.gip-title h1{margin:1.5mm 0 .5mm;color:#0b3656;font-size:20pt;line-height:1.2}.gip-title small{font-size:7.5pt;color:#6b7f8a;font-weight:800}
  .gip-meta{margin:3mm 9mm 0;display:grid;grid-template-columns:repeat(3,1fr);border:1px solid #dce8ee;border-radius:9px;overflow:hidden;background:#f7fafc}.gip-meta span{display:flex;justify-content:space-between;gap:3mm;padding:2.2mm 3.2mm;border-left:1px solid #e1ebf0;font-size:7pt}.gip-meta span:last-child{border-left:0}.gip-meta b{color:#6a7e89}.gip-meta strong{color:#163d51}
  .gip-body{padding:5mm 11mm 3mm;display:flex;flex-direction:column;gap:3mm}.gip-salutation{margin:0;font-size:11pt;font-weight:700;color:#163d51}.gip-salutation strong{color:#087c75;border-bottom:1.3px solid #87bbb7;padding:0 2mm 1mm}
  .gip-student-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:2mm;background:#f4f9fb;border:1px solid #dce8ee;border-radius:8px;padding:2.4mm 3mm;font-size:6.8pt;color:#647b88}.gip-student-strip b{color:#183f52}
  .gip-letter-text{white-space:pre-line;margin:1mm 0 0;font-size:9.8pt;line-height:1.82;color:#1f3b4b;text-align:justify;min-height:45mm;max-height:72mm;overflow:hidden}
  .gip-frame.gip-copy-compact .gip-letter-text{font-size:9pt;line-height:1.62;min-height:40mm;max-height:68mm}
  .gip-frame.gip-copy-tight .gip-letter-text{font-size:8.2pt;line-height:1.48;min-height:36mm;max-height:62mm}
  .gip-appointment{display:grid;grid-template-columns:auto repeat(3,1fr);align-items:center;gap:2mm;border:1.3px solid #9fd4ce;background:linear-gradient(135deg,#f0fbf9,#f8fcfd);border-radius:10px;padding:2.7mm 3.5mm}.gip-appointment-label{font-size:7pt;font-weight:900;color:#fff;background:#088d84;border-radius:999px;padding:1.4mm 3mm}.gip-appointment strong{font-size:7.4pt;color:#44616e}.gip-appointment b{color:#0b3656;font-size:8pt}
  .gip-signatures{margin:1mm 11mm 3mm;display:grid;grid-template-columns:1fr 1fr;gap:12mm}.gip-signatures>div{text-align:center;border-top:1px solid #d4e2e8;padding-top:2.5mm}.gip-signatures span{display:block;font-size:7pt;color:#667d89;font-weight:800}.gip-signatures strong{display:block;margin:1mm 0;font-size:9pt;color:#173e53}.gip-signatures small{font-size:6.4pt;color:#7a8c95}
  .gip-parent-response{margin:0 9mm 3mm;border:1.2px dashed #aebfc8;border-radius:10px;padding:3mm 4mm;background:#fcfdfd}.gip-parent-response header{display:flex;justify-content:space-between;gap:5mm;align-items:end;border-bottom:1px solid #e2eaee;padding-bottom:2mm;margin-bottom:2mm}.gip-parent-response header strong{font-size:8.5pt;color:#0b4d70}.gip-parent-response header span{font-size:6.2pt;color:#7a8b94}.gip-response-line{font-size:7.6pt;line-height:1.9;color:#304e5d;margin:.8mm 0}.gip-write-line{display:inline-block;border-bottom:1px dotted #556c78;min-width:31mm;height:4mm;vertical-align:bottom}.gip-write-line.short{min-width:18mm}.gip-parent-fields{display:grid;grid-template-columns:1.5fr 1fr 1.2fr;gap:5mm;margin-top:2.3mm;font-size:6.9pt}.gip-parent-fields span{display:flex;align-items:end;gap:2mm}.gip-parent-fields i{display:block;flex:1;border-bottom:1px dotted #647985;height:4mm}
  .gip-footer{margin-top:auto;display:flex;justify-content:space-between;align-items:center;gap:6mm;background:linear-gradient(90deg,#0b3656,#0b628f);color:#fff;padding:2.4mm 9mm}.gip-footer strong{font-size:6.8pt}.gip-footer span{font-size:6.2pt;color:rgba(255,255,255,.82)}

/* V1.0.124 — reusable WhatsApp sending UI */
.whatsapp-button{border:0;border-radius:10px;background:#168a5b;color:#fff;font-family:inherit;font-weight:900;cursor:pointer;padding:9px 14px;box-shadow:0 8px 20px rgba(22,138,91,.18);transition:.18s ease;white-space:nowrap}
.whatsapp-button:hover{transform:translateY(-1px);filter:brightness(.97)}
.whatsapp-button:focus-visible{outline:3px solid rgba(22,138,91,.24);outline-offset:2px}
.whatsapp-button[hidden]{display:none!important}
.guardian-invitation-report-panel .report-actions-head,.guardian-invitation-report-panel .report-actions-cell{width:25%!important;min-width:255px!important}
.guardian-invitation-report-panel .report-row-actions .report-whatsapp-action{flex:1 1 0!important;min-width:0!important;padding:7px 7px!important;font-size:.68rem!important;line-height:1.25!important}
.wa-modal[hidden]{display:none!important}
.wa-modal{position:fixed;inset:0;z-index:3000;display:grid;place-items:center;padding:18px;direction:rtl;font-family:"Cairo",Tahoma,Arial,sans-serif}
.wa-modal-backdrop{position:absolute;inset:0;background:rgba(9,28,37,.64);backdrop-filter:blur(4px)}
.wa-modal-card{position:relative;width:min(760px,96vw);max-height:92vh;overflow:auto;background:#fff;border-radius:22px;box-shadow:0 28px 85px rgba(6,29,36,.34);border:1px solid #dbe8e5}
.wa-modal-head{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:20px 22px 16px;border-bottom:1px solid #e5eeec;background:linear-gradient(135deg,#f7fcfa,#eef8f4)}
.wa-modal-head span{display:block;font-size:.76rem;font-weight:900;color:#168a5b;margin-bottom:3px}
.wa-modal-head h2{margin:0;color:#173d4a;font-size:1.18rem}
.wa-modal-close{width:38px;height:38px;border:1px solid #d6e4e1;background:#fff;border-radius:12px;color:#526d75;font-size:1.5rem;line-height:1;cursor:pointer}
.wa-modal-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:20px 22px}
.wa-modal-grid label{display:flex;flex-direction:column;gap:7px;color:#274c57;font-size:.82rem;font-weight:900}
.wa-modal-grid label>small{font-size:.68rem;font-weight:700;color:#70858b;line-height:1.6}
.wa-modal-grid input,.wa-modal-grid textarea{width:100%;box-sizing:border-box;border:1px solid #cadbd7;border-radius:12px;background:#fff;padding:11px 12px;font:inherit;color:#183b46;outline:none}
.wa-modal-grid input:focus,.wa-modal-grid textarea:focus{border-color:#168a5b;box-shadow:0 0 0 3px rgba(22,138,91,.10)}
.wa-modal-grid input[readonly],.wa-modal-grid textarea[readonly]{background:#f7faf9}
.wa-modal-full{grid-column:1/-1}
.wa-modal-note{margin:0 22px 18px;padding:12px 14px;border-radius:12px;background:#fff8e8;border:1px solid #f0dfb7;color:#6c5a2e;font-size:.76rem;line-height:1.75}
.wa-modal-note strong{color:#775717}
.wa-modal-actions{display:flex;justify-content:flex-start;gap:10px;padding:0 22px 22px}
@media(max-width:680px){.wa-modal-grid{grid-template-columns:1fr}.wa-modal-full{grid-column:auto}.wa-modal-card{border-radius:17px}.wa-modal-actions{flex-direction:column}.wa-modal-actions button{width:100%}.guardian-invitation-report-panel .report-actions-head,.guardian-invitation-report-panel .report-actions-cell{min-width:0!important;width:auto!important}}
@media print{.wa-modal,.whatsapp-button{display:none!important}}

/* V1.0.125 — unified four-button editor action bar */
.editor-actions{
  display:grid;
  grid-template-columns:repeat(4,minmax(142px,1fr));
  gap:9px;
  align-items:stretch;
  width:min(100%,760px);
}
.editor-actions>button{
  width:100%;
  min-width:0;
  min-height:44px;
  margin:0!important;
  padding:10px 13px!important;
  border-radius:12px!important;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:1.35;
  white-space:nowrap;
  font-family:inherit;
  font-size:.82rem;
  font-weight:900;
  box-sizing:border-box;
}
.editor-actions>button[hidden]{display:none!important}
@media(max-width:980px){.editor-actions{grid-template-columns:repeat(2,minmax(145px,1fr));width:100%}}
@media(max-width:520px){.editor-actions{grid-template-columns:1fr}.editor-actions>button{min-height:46px}}

/* V1.0.129 — guardian invitation: minimum print margins, one-page PDF and PDF render stage */
.guardian-invitation-print{page:guardian-invitation-page}
@page guardian-invitation-page{size:A4 portrait;margin:5mm}
.guardian-invitation-pdf-stage{position:fixed;left:-10000px;top:0;width:200mm;background:#fff;z-index:-1;pointer-events:none;direction:rtl}
.guardian-invitation-pdf-stage .guardian-invitation-print{display:block!important;width:200mm!important}
.guardian-invitation-pdf-stage .gip-frame{width:200mm!important;height:282mm!important;max-height:282mm!important;box-sizing:border-box!important}
@media print{
  body.printing-guardian-invitation .guardian-invitation-print{page:guardian-invitation-page}
  body.printing-guardian-invitation .gip-frame{height:282mm!important;max-height:282mm!important;break-inside:avoid!important;page-break-inside:avoid!important}
  body.printing-guardian-invitation .gip-letter-text{orphans:2;widows:2}
}

/* V1.0.129 — harden one-page guardian invitation print geometry */
@media print{
  body.printing-guardian-invitation #guardianInvitationPrint{width:200mm!important;height:287mm!important;max-height:287mm!important;margin:0!important;padding:0!important;overflow:hidden!important}
  body.printing-guardian-invitation #guardianInvitationPrint .gip-frame{width:200mm!important;height:282mm!important;max-height:282mm!important;margin:0!important;overflow:hidden!important}
}


/* V1.0.133 — Observation visit report actions stay on one horizontal row */
.observation-visit-report-panel .record-report-table .report-actions-head,
.observation-visit-report-panel .record-report-table .report-actions-cell{
  width:20%!important;
  min-width:190px!important;
}
.observation-visit-report-panel .report-row-actions{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  width:100%!important;
  white-space:nowrap!important;
}
.observation-visit-report-panel .report-row-actions button{
  flex:1 1 0!important;
  width:auto!important;
  min-width:0!important;
  padding:7px 7px!important;
  font-size:.68rem!important;
  line-height:1.25!important;
  border-radius:8px!important;
  white-space:nowrap!important;
}

/* V1.0.134 — Observation report header stays on one clean horizontal line */
.observation-visit-report-panel .record-report-table{
  min-width:1080px!important;
  table-layout:auto!important;
}
.observation-visit-report-panel .record-report-table thead th{
  white-space:nowrap!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  line-height:1.2!important;
  text-align:center!important;
  vertical-align:middle!important;
  padding:13px 12px!important;
}
.observation-visit-report-panel .record-report-table thead th:nth-child(1){min-width:105px!important}
.observation-visit-report-panel .record-report-table thead th:nth-child(2){min-width:90px!important}
.observation-visit-report-panel .record-report-table thead th:nth-child(3){min-width:130px!important}
.observation-visit-report-panel .record-report-table thead th:nth-child(4){min-width:90px!important}
.observation-visit-report-panel .record-report-table thead th:nth-child(5){min-width:90px!important}
.observation-visit-report-panel .record-report-table thead th:nth-child(6){min-width:180px!important}
.observation-visit-report-panel .record-report-table .report-actions-head{min-width:190px!important}

/* V1.0.137 — مقابلة الطالب المستجد: تقرير مختصر + إصلاح النسبة */
.new-student-interview-report-panel .record-report-table{
  min-width:1040px!important;
  width:100%!important;
  table-layout:fixed;
}
.new-student-interview-report-panel .record-report-table thead th{
  white-space:nowrap!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  text-align:center;
}
.new-student-interview-report-panel .record-report-table .report-col-student{
  width:19%!important;
  min-width:170px!important;
  font-weight:900;
  color:#123f55;
}
.new-student-interview-report-panel .record-report-table .report-col-compact{
  min-width:105px!important;
  text-align:center;
}
.new-student-interview-report-panel .record-report-table .report-col-date{
  min-width:125px!important;
  text-align:center;
  color:#45636f;
  font-weight:800;
}
.new-student-interview-report-panel .record-report-table .report-actions-head,
.new-student-interview-report-panel .record-report-table .report-actions-cell{
  width:19%!important;
  min-width:205px!important;
}
.new-student-interview-report-panel .report-row-actions{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  white-space:nowrap!important;
}
.new-student-interview-report-panel .report-row-actions button{
  flex:1 1 0!important;
  min-width:0!important;
  width:auto!important;
  padding:7px 8px!important;
  font-size:.68rem!important;
  white-space:nowrap!important;
}
@media(max-width:680px){
  .new-student-interview-report-panel .record-report-table{min-width:0!important;width:100%!important}
  .new-student-interview-report-panel .record-report-table tbody td:nth-child(1)::before{content:"اسم الطالب"}
  .new-student-interview-report-panel .record-report-table tbody td:nth-child(2)::before{content:"الصف"}
  .new-student-interview-report-panel .record-report-table tbody td:nth-child(3)::before{content:"الفصل"}
  .new-student-interview-report-panel .record-report-table tbody td:nth-child(4)::before{content:"تاريخ المقابلة"}
  .new-student-interview-report-panel .record-report-table tbody td:nth-child(5)::before{content:"المستوى السابق"}
  .new-student-interview-report-panel .record-report-table tbody td:nth-child(6)::before{content:"النسبة السابقة"}
  .new-student-interview-report-panel .record-report-table tbody td:nth-child(7)::before{content:"الإجراءات"}
  .new-student-interview-report-panel .report-row-actions{width:100%!important}
}
@media print{
  .new-student-interview-report-panel .record-report-table{min-width:0!important;width:100%!important;table-layout:fixed;font-size:7.2pt!important}
  .new-student-interview-report-panel .record-report-table th,
  .new-student-interview-report-panel .record-report-table td{padding:5px!important}
}

/* V1.0.140 — المقابلات الفردية الدورية: أزرار الإجراءات في سطر واحد */
.periodic-interview-report-panel .record-report-table .report-actions-head,
.periodic-interview-report-panel .record-report-table .report-actions-cell{
  width:19%!important;
  min-width:205px!important;
}
.periodic-interview-report-panel .report-row-actions{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  width:100%!important;
  white-space:nowrap!important;
}
.periodic-interview-report-panel .report-row-actions button{
  flex:1 1 0!important;
  width:auto!important;
  min-width:0!important;
  padding:7px 8px!important;
  margin:0!important;
  font-size:.68rem!important;
  line-height:1.25!important;
  border-radius:8px!important;
  white-space:nowrap!important;
}
@media(max-width:680px){
  .periodic-interview-report-panel .record-report-table .report-actions-head,
  .periodic-interview-report-panel .record-report-table .report-actions-cell{
    min-width:205px!important;
  }
  .periodic-interview-report-panel .report-row-actions{
    flex-wrap:nowrap!important;
  }
}

/* V1.0.142 — المقابلات الفردية الدورية: اسم الطالب في سطر واحد */
.periodic-interview-report-panel .record-report-table .report-col-student,
.periodic-interview-report-panel .record-report-table .report-col-student .report-cell-value{
  white-space:nowrap!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
}
.periodic-interview-report-panel .record-report-table th.report-col-student,
.periodic-interview-report-panel .record-report-table td.report-col-student{
  width:24%!important;
  min-width:190px!important;
}
@media(max-width:680px){
  .periodic-interview-report-panel .record-report-table th.report-col-student,
  .periodic-interview-report-panel .record-report-table td.report-col-student{
    min-width:190px!important;
  }
}


/* V1.0.143 — Daily situations report + recurrence analytics */
.daily-incident-report-panel .record-report-table{min-width:1120px}
.daily-incident-report-panel .record-report-table .report-col-student{min-width:190px;white-space:nowrap;font-weight:900;color:#123f55}
.daily-incident-report-panel .record-report-table .report-col-problem{min-width:160px;max-width:230px}
.daily-incident-report-panel .record-report-table .report-col-compact{min-width:105px;white-space:nowrap}
.daily-incident-report-panel .record-report-table .report-col-date{min-width:125px;white-space:nowrap}
.daily-incident-report-panel .record-report-table .report-actions-head,.daily-incident-report-panel .record-report-table .report-actions-cell{min-width:195px}
.daily-incident-report-panel .report-row-actions{display:flex!important;flex-wrap:nowrap!important;gap:6px!important;align-items:center;justify-content:flex-start;white-space:nowrap}
.daily-incident-report-panel .report-row-actions button{white-space:nowrap;flex:0 0 auto}
.daily-incident-stats{padding:0 12px 16px;background:#fff}
.daily-stats-heading{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:18px 4px 12px;border-top:1px solid #e1ecef}
.daily-stats-heading span,.daily-stats-card header span{display:block;color:#087f79;font-size:.72rem;font-weight:900;letter-spacing:.02em}
.daily-stats-heading h3{margin:3px 0 2px;color:#123f55;font-size:1.15rem}.daily-stats-heading p{margin:0;color:#70858f;font-size:.76rem}
.daily-stats-kpis{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.daily-stats-kpis span{background:#f2faf8;border:1px solid #cfe9e3;border-radius:12px;padding:8px 11px;color:#41626d}.daily-stats-kpis b{color:#087f79;font-size:1.05rem;margin-left:3px}
.daily-stats-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:12px}.daily-stats-card{border:1px solid #dce9ed;border-radius:16px;background:linear-gradient(145deg,#fff,#fbfefe);overflow:hidden;box-shadow:0 9px 24px rgba(25,76,91,.05)}
.daily-stats-card>header{padding:13px 14px;border-bottom:1px solid #e6eff2;background:linear-gradient(135deg,#f6fbfc,#f7fcfa);display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.daily-stats-card h4{margin:2px 0 0;color:#173f50;font-size:.95rem}.daily-stats-card header small{max-width:290px;color:#748993;font-size:.67rem;line-height:1.65}
.daily-stats-table-wrap{overflow:auto;max-height:310px}.daily-stats-table{width:100%;border-collapse:collapse;font-size:.74rem;min-width:650px}.daily-stats-table th{background:#eef7f5;color:#315b66;padding:9px 10px;text-align:right;white-space:nowrap}.daily-stats-table td{padding:9px 10px;border-top:1px solid #edf2f4;color:#405c68;vertical-align:middle}.daily-stats-table td:first-child{font-weight:850;color:#173f50;white-space:nowrap}.daily-stats-table td strong{display:inline-grid;place-items:center;min-width:30px;height:26px;border-radius:9px;background:#e7f7f2;color:#087f79}
.daily-intervention-list{padding:7px 12px 12px}.daily-intervention-item{display:flex;gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid #edf2f4}.daily-intervention-item:last-child{border-bottom:0}.daily-intervention-rank{width:30px;height:30px;border-radius:10px;background:#0b6f78;color:#fff;display:grid;place-items:center;font-weight:900;font-size:.75rem;flex:0 0 auto}.daily-intervention-main{min-width:0;flex:1}.daily-intervention-head{display:flex;justify-content:space-between;gap:8px;align-items:center}.daily-intervention-head strong{color:#173f50;font-size:.78rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.daily-intervention-head span{font-size:.66rem;color:#637b85;white-space:nowrap}.daily-intervention-track{height:6px;border-radius:999px;background:#e9f1f3;overflow:hidden;margin:6px 0}.daily-intervention-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#0c8a82,#0b628f)}.daily-intervention-main small{font-size:.64rem;color:#748993}.daily-intervention-main small b{color:#315b66}.daily-stats-empty{padding:28px 16px;text-align:center;color:#7b8f98;font-size:.76rem}
@media(max-width:980px){.daily-stats-grid{grid-template-columns:1fr}.daily-stats-heading{align-items:flex-start;flex-direction:column}.daily-stats-kpis{justify-content:flex-start}}
@media(max-width:620px){.daily-incident-stats{padding:0 7px 12px}.daily-stats-card>header{flex-direction:column}.daily-stats-card header small{max-width:none}.daily-intervention-head{align-items:flex-start;flex-direction:column}.daily-stats-kpis{width:100%}.daily-stats-kpis span{flex:1;text-align:center}}
@media print{.daily-incident-stats{break-before:auto;padding:8mm 0 0}.daily-stats-grid{grid-template-columns:1fr 1fr}.daily-stats-table-wrap{max-height:none;overflow:visible}.daily-stats-card{box-shadow:none;break-inside:avoid}.daily-intervention-track{border:1px solid #dce9ed}.daily-incident-report-panel .report-actions-head,.daily-incident-report-panel .report-actions-cell{display:none!important}}


/* V1.0.152 — Daily situations compact report; actions stay on one row */
.daily-incident-report-panel .record-report-table{min-width:860px!important}
.daily-incident-report-panel .record-report-table th.report-col-student,
.daily-incident-report-panel .record-report-table td.report-col-student{width:25%!important;min-width:210px!important}
.daily-incident-report-panel .record-report-table .report-col-problem{width:27%!important;min-width:200px!important;max-width:300px!important}
.daily-incident-report-panel .record-report-table .report-col-compact{min-width:95px!important}
.daily-incident-report-panel .record-report-table .report-col-date{min-width:120px!important}
.daily-incident-report-panel .record-report-table .report-actions-head,
.daily-incident-report-panel .record-report-table .report-actions-cell{width:23%!important;min-width:220px!important}
.daily-incident-report-panel .report-row-actions{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  width:100%!important;
  white-space:nowrap!important;
}
.daily-incident-report-panel .report-row-actions button{
  flex:1 1 0!important;
  width:auto!important;
  min-width:0!important;
  margin:0!important;
  padding:7px 8px!important;
  font-size:.68rem!important;
  line-height:1.25!important;
  white-space:nowrap!important;
}
@media(max-width:680px){
  .daily-incident-report-panel .record-report-table{min-width:850px!important}
  .daily-incident-report-panel .record-report-table .report-actions-head,
  .daily-incident-report-panel .record-report-table .report-actions-cell{min-width:220px!important}
}


/* V1.0.153 — Daily situations report alignment + duplicate mirror cleanup */
.daily-incident-report-panel .record-report-table{
  width:100%!important;
  min-width:900px!important;
  table-layout:fixed!important;
  border-collapse:separate!important;
  border-spacing:0!important;
}
.daily-incident-report-panel .record-report-table th,
.daily-incident-report-panel .record-report-table td{
  vertical-align:middle!important;
  padding:11px 10px!important;
  border-bottom:1px solid #e6eef1!important;
}
.daily-incident-report-panel .record-report-table th{
  text-align:center!important;
  white-space:nowrap!important;
}
.daily-incident-report-panel .record-report-table tbody tr:nth-child(even){background:#fbfdfd!important}
.daily-incident-report-panel .record-report-table tbody tr:hover{background:#f4faf9!important}
.daily-incident-report-panel .record-report-table th:nth-child(1),
.daily-incident-report-panel .record-report-table td:nth-child(1){width:22%!important;min-width:0!important;text-align:right!important}
.daily-incident-report-panel .record-report-table th:nth-child(2),
.daily-incident-report-panel .record-report-table td:nth-child(2){width:11%!important;min-width:0!important;text-align:center!important}
.daily-incident-report-panel .record-report-table th:nth-child(3),
.daily-incident-report-panel .record-report-table td:nth-child(3){width:11%!important;min-width:0!important;text-align:center!important}
.daily-incident-report-panel .record-report-table th:nth-child(4),
.daily-incident-report-panel .record-report-table td:nth-child(4){width:24%!important;min-width:0!important;text-align:right!important}
.daily-incident-report-panel .record-report-table th:nth-child(5),
.daily-incident-report-panel .record-report-table td:nth-child(5){width:13%!important;min-width:0!important;text-align:center!important}
.daily-incident-report-panel .record-report-table th:nth-child(6),
.daily-incident-report-panel .record-report-table td:nth-child(6){width:19%!important;min-width:170px!important;text-align:center!important}
.daily-incident-report-panel .record-report-table td:nth-child(1) .report-cell-value{
  display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-weight:900!important;color:#123f55!important
}
.daily-incident-report-panel .record-report-table td:nth-child(4) .report-cell-value{
  display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;line-height:1.55!important
}
.daily-incident-report-panel .record-report-table td:nth-child(2) .report-cell-value,
.daily-incident-report-panel .record-report-table td:nth-child(3) .report-cell-value,
.daily-incident-report-panel .record-report-table td:nth-child(5) .report-cell-value{white-space:nowrap!important}
.daily-incident-report-panel .report-row-actions{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:5px!important;
  align-items:center!important;
  width:100%!important;
  white-space:nowrap!important;
}
.daily-incident-report-panel .report-row-actions button{
  width:100%!important;min-width:0!important;margin:0!important;padding:7px 5px!important;font-size:.66rem!important;line-height:1.2!important;white-space:nowrap!important
}
@media(max-width:680px){
  .daily-incident-report-panel .record-report-table{min-width:900px!important}
}

/* V1.0.157 — unified report layout: student names and action buttons stay on one line */
.record-report-panel .record-report-table td{vertical-align:middle!important}
.record-report-panel .record-report-table th{white-space:nowrap!important}
.record-report-panel .record-report-table th.report-col-student,
.record-report-panel .record-report-table td.report-col-student{
  min-width:205px!important;
  max-width:none!important;
  text-align:right!important;
}
.record-report-panel .record-report-table td.report-col-student .report-cell-value{
  display:block!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
  -webkit-line-clamp:unset!important;
  -webkit-box-orient:initial!important;
  font-weight:900!important;
  line-height:1.4!important;
}
.record-report-panel .record-report-table .report-actions-head,
.record-report-panel .record-report-table .report-actions-cell{
  min-width:270px!important;
  width:270px!important;
  max-width:none!important;
  text-align:center!important;
}
.record-report-panel .report-row-actions{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  width:100%!important;
  white-space:nowrap!important;
}
.record-report-panel .report-row-actions button{
  flex:1 1 0!important;
  width:auto!important;
  min-width:0!important;
  margin:0!important;
  padding:7px 7px!important;
  border-radius:8px!important;
  font-size:.67rem!important;
  line-height:1.2!important;
  white-space:nowrap!important;
}
.record-report-panel .report-row-actions .report-add-session{flex:1.35 1 0!important}
.record-report-panel .record-report-table .report-cell-value{line-height:1.5}
@media(max-width:720px){
  .record-report-panel .record-report-table .report-actions-head,
  .record-report-panel .record-report-table .report-actions-cell{min-width:270px!important;width:270px!important}
}
@media print{
  .record-report-panel .record-report-table .report-actions-head,
  .record-report-panel .record-report-table .report-actions-cell{display:none!important}
  .record-report-panel .record-report-table th.report-col-student,
  .record-report-panel .record-report-table td.report-col-student{min-width:0!important;width:auto!important}
  .record-report-panel .record-report-table td.report-col-student .report-cell-value{white-space:normal!important}
}
/* V1.0.157 specificity guard for report-specific legacy widths */
.record-report-panel .record-report-table thead th.report-actions-head,
.record-report-panel .record-report-table tbody td.report-actions-cell{
  min-width:270px!important;
  width:270px!important;
  max-width:none!important;
}
