:root{--ep-bg:#f8f4e9;--ep-card:#fffefb;--ep-ink:#1f2a24;--ep-gold:#c99a45;--ep-gold2:#ddb665;--ep-teal:#176b78;--ep-red:#a84141;--ep-line:rgba(31,42,36,.13);--ep-shadow:0 14px 38px rgba(31,42,36,.09)}*{box-sizing:border-box}body.educator-page{margin:0;background:linear-gradient(180deg,#fbf6e9 0,#f7f3e8 100%);color:var(--ep-ink);font-family:'Tajawal',Arial,sans-serif;direction:rtl;min-height:100vh}.ep-wrap{max-width:1180px;margin:auto;padding:0 22px}.ep-header{background:rgba(255,254,251,.96);border-bottom:1px solid var(--ep-line);position:sticky;top:0;z-index:20;backdrop-filter:blur(12px)}.ep-header-row{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:20px}.ep-brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ep-ink)}.ep-brand img{width:56px;height:56px;object-fit:contain}.ep-brand strong{display:block;color:#75571d;font-size:18px}.ep-brand small{color:#6f776f}.ep-home{display:inline-flex;text-decoration:none;border:1px solid var(--ep-gold);color:#76500d;background:#fff8e8;border-radius:999px;padding:10px 18px;font-weight:800}.ep-main{padding:42px 0 72px}.ep-title{text-align:center;margin-bottom:28px}.ep-title span,.ep-kicker{color:#9b6b17;font-weight:800;font-size:13px}.ep-title h1{margin:4px 0 8px;color:#74551b;font-size:36px}.ep-title p{margin:0;color:#5e655e}.ep-auth-card,.ep-card{background:var(--ep-card);border:1px solid var(--ep-line);border-radius:22px;box-shadow:var(--ep-shadow);padding:28px}.ep-auth-card{max-width:610px;margin:0 auto;text-align:center}.ep-auth-icon{width:58px;height:58px;display:grid;place-items:center;margin:0 auto 12px;border-radius:18px;background:#f8eac5;font-size:26px}.ep-auth-card h2,.ep-card h2{margin:0 0 8px;color:#74551b}.ep-auth-card p,.ep-card p{color:#58645c}.ep-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.ep-field{display:flex;flex-direction:column;gap:7px;text-align:right}.ep-field.full{grid-column:1/-1}.ep-field label{font-size:13px;font-weight:800;color:#4a574f}.ep-field input{width:100%;border:1px solid #d7c49d;background:#fffefb;border-radius:12px;padding:12px 13px;font:inherit;color:#253128}.ep-field input:focus{outline:0;border-color:var(--ep-gold);box-shadow:0 0 0 3px rgba(201,154,69,.14)}.ep-field input[readonly],.ep-field input:disabled{background:#f5f0e5;color:#606961}.ep-btn{border:0;border-radius:12px;padding:12px 18px;font:inherit;font-weight:900;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:7px}.ep-btn:disabled{opacity:.5;cursor:not-allowed}.ep-btn.primary{background:linear-gradient(180deg,var(--ep-gold2),var(--ep-gold));color:#fff;border:1px solid #b47f24}.ep-btn.secondary{background:#fff8e8;color:#6d4b0d;border:1px solid #dec07b}.ep-btn.teal{background:var(--ep-teal);color:#fff}.ep-alert{margin-top:14px;padding:12px 14px;border-radius:11px;font-size:13px;text-align:right}.ep-alert.error{background:#fff0f0;border:1px solid #efcccc;color:#963030}.ep-alert.success{background:#eef8f1;border:1px solid #c5e6d0;color:#256943}.ep-hidden{display:none!important}.ep-shell{display:grid;grid-template-columns:245px 1fr;gap:22px}.ep-sidebar{background:var(--ep-card);border:1px solid var(--ep-line);border-radius:20px;padding:14px;height:max-content;position:sticky;top:96px;box-shadow:var(--ep-shadow)}.ep-user{text-align:center;padding:12px 8px 18px;border-bottom:1px solid #eadcbe;margin-bottom:8px}.ep-avatar{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:#f3e2b6;color:#785510;font-weight:900;margin:0 auto 8px}.ep-user strong{display:block;color:#74551b}.ep-user small{color:#68736c}.ep-nav button{width:100%;border:0;background:transparent;text-align:right;padding:12px 13px;border-radius:10px;font:inherit;font-weight:800;color:#46534b;cursor:pointer}.ep-nav button:hover{background:#fff7e5}.ep-nav button.active{background:#f7e7bf;color:#68470b;border-right:4px solid var(--ep-gold)}.ep-section{display:none}.ep-section.active{display:block}.ep-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.ep-stat{background:var(--ep-card);border:1px solid var(--ep-line);border-radius:16px;padding:18px;box-shadow:0 7px 22px rgba(31,42,36,.05)}.ep-stat small{display:block;color:#758078}.ep-stat strong{display:block;font-size:18px;color:#74551b;margin-top:5px}.ep-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:10px}.ep-chip{display:inline-flex;align-items:center;border-radius:999px;padding:7px 11px;font-size:12px;font-weight:800;background:#f1ead8;color:#6f5a2c}.ep-chip.ok{background:#e9f6ed;color:#24663e}.ep-chip.warn{background:#fff4da;color:#875d0d}.ep-contract-info{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px;margin:18px 0}.ep-contract-info div{border-bottom:1px solid #eee1c4;padding:11px 0}.ep-contract-info small{display:block;color:#7a837d}.ep-contract-info strong{color:#2f3b34}.ep-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.ep-support{margin-top:18px;padding:13px 15px;border:1px solid #ead29d;background:#fff9ea;border-radius:12px;color:#665429}.ep-footer{text-align:center;padding:24px;border-top:1px solid var(--ep-line);color:#717a73;font-size:13px}@media(max-width:900px){.ep-shell{grid-template-columns:1fr}.ep-sidebar{position:static}.ep-nav{display:flex;overflow:auto;gap:4px}.ep-nav button{min-width:max-content}.ep-stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){.ep-wrap{padding:0 14px}.ep-header-row{min-height:68px}.ep-brand img{width:46px;height:46px}.ep-brand small{display:none}.ep-home{padding:8px 11px;font-size:12px}.ep-main{padding-top:28px}.ep-title h1{font-size:29px}.ep-auth-card,.ep-card{padding:20px;border-radius:17px}.ep-stats,.ep-grid,.ep-contract-info{grid-template-columns:1fr}.ep-field.full{grid-column:auto}.ep-card-head{flex-direction:column}.ep-stat strong{font-size:17px}}.ep-auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;background:#f6eedb;border:1px solid #ead8ad;border-radius:14px;padding:6px;margin:0 0 22px}.ep-auth-tabs button{border:0;background:transparent;border-radius:10px;padding:11px 10px;font:inherit;font-weight:900;color:#6b604a;cursor:pointer}.ep-auth-tabs button.active{background:#fffefb;color:#75520f;box-shadow:0 4px 14px rgba(82,65,31,.1);border:1px solid #e1c98f}.ep-field label small{font-weight:500;color:#7a837d}
@media(max-width:520px){.ep-auth-tabs{grid-template-columns:1fr}.ep-auth-tabs button{padding:10px}}

/* 2.8.5 - اليومية التربوية */
.ep-field textarea,.ep-field select{width:100%;border:1px solid #d7c49d;background:#fffefb;border-radius:12px;padding:12px 13px;font:inherit;color:#253128;resize:vertical}.ep-field textarea:focus,.ep-field select:focus{outline:0;border-color:var(--ep-gold);box-shadow:0 0 0 3px rgba(201,154,69,.14)}.ep-field textarea:disabled,.ep-field select:disabled{background:#f5f0e5;color:#606961}.ep-chip.bad{background:#fff0f0;color:#963030}.ep-general-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:18px}.ep-general-grid div{padding:13px 14px;border:1px solid #eee1c4;border-radius:12px;background:#faf7ef}.ep-general-grid small{display:block;color:#778077;font-size:12px}.ep-general-grid strong{display:block;margin-top:5px;color:#37433c}.ep-general-grid.compact{margin:0 0 16px}.ep-daily-card{overflow:hidden}.ep-daily-top{display:flex;align-items:end;gap:10px;flex-wrap:wrap;padding:14px 0 18px;border-bottom:1px solid #eee1c4}.ep-daily-top .ep-field{min-width:210px}.ep-subcard{margin-top:18px;padding:18px;border:1px solid #eadfc7;border-radius:16px;background:#fffdf8}.ep-subcard h3{margin:0 0 14px;color:#604716}.ep-subcard p{margin:3px 0 0;font-size:13px}.ep-subcard-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:12px}.ep-daily-table-wrap{overflow:auto;border:1px solid #eadfc7;border-radius:12px}.ep-daily-table{width:100%;border-collapse:collapse;min-width:850px;background:#fff}.ep-daily-table th{padding:11px 10px;background:#f7ecd2;color:#6a511f;font-size:12px;text-align:right;border-bottom:1px solid #e2d2ad}.ep-daily-table td{padding:8px;border-bottom:1px solid #f0e7d4;vertical-align:top}.ep-daily-table tr:last-child td{border-bottom:0}.ep-mini{width:100%;min-width:90px;border:1px solid #dccba7;border-radius:9px;background:#fff;padding:8px 9px;font:inherit;font-size:13px;color:#2f3b34}.ep-mini.wide{min-width:180px}.ep-row-remove{width:34px;height:34px;border:1px solid #edcaca;border-radius:9px;background:#fff2f2;color:#9a3333;font-size:20px;cursor:pointer}.ep-row-remove:disabled{opacity:.4;cursor:not-allowed}.ep-photo-preview{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px;margin-top:10px}.ep-photo-preview div{border:1px solid #eadfc7;border-radius:10px;padding:7px;background:#fff}.ep-photo-preview img{display:block;width:100%;height:90px;object-fit:cover;border-radius:7px}.ep-photo-preview small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:5px;color:#666}.ep-file-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.ep-file-chip{display:inline-flex;padding:7px 10px;border-radius:999px;background:#f5eedc;color:#665427;font-size:12px}.ep-daily-actions{padding-top:18px;border-top:1px solid #eee1c4}.ep-daily-history{display:grid;gap:8px}.ep-daily-history-row{width:100%;display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid #eadfc7;background:#fffdf8;border-radius:12px;padding:11px 13px;text-align:right;font:inherit;cursor:pointer;color:#3c473f}.ep-daily-history-row:hover{background:#fff7e7;border-color:#d8bd80}.ep-daily-history-row span:first-child{display:flex;flex-direction:column;gap:3px}.ep-daily-history-row small{color:#788078}.ep-daily-history-row .ep-chip{white-space:nowrap}.ep-hidden.ep-nav button{display:none}.ep-nav .ep-hidden{display:none!important}
@media(max-width:900px){.ep-general-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ep-subcard{padding:15px}}
@media(max-width:600px){.ep-general-grid{grid-template-columns:1fr}.ep-daily-top{align-items:stretch}.ep-daily-top .ep-field{min-width:100%}.ep-daily-top .ep-btn{flex:1}.ep-subcard-head{flex-direction:column}.ep-daily-actions .ep-btn{width:100%}.ep-daily-history-row{align-items:flex-start;flex-direction:column}}
@media print{body.educator-page{background:#fff}.ep-header,.ep-title,.ep-sidebar,.ep-footer,.ep-daily-top,.ep-daily-actions,#ep-add-row,#ep-photo-preview,#ep-existing-photos,.ep-card:has(#ep-daily-history){display:none!important}.ep-main{padding:0}.ep-wrap{max-width:none;padding:0}.ep-shell{display:block}.ep-section{display:none!important}#ep-section-daily{display:block!important}.ep-card,.ep-subcard{box-shadow:none;border-color:#bbb;background:#fff;break-inside:avoid}.ep-daily-table-wrap{overflow:visible}.ep-daily-table{min-width:0}.ep-daily-table th,.ep-daily-table td{font-size:11px;padding:6px}.ep-row-remove{display:none}.ep-mini{border:0;padding:0;background:transparent;font-size:11px}.ep-mini:disabled{background:transparent;color:#111}.ep-chip{border:1px solid #bbb}}

/* 2.8.17 - تاريخ اليومية ثابت على تاريخ اليوم */
#ep-daily-date[readonly]{cursor:default;background:#fffdf8;font-weight:700}
#ep-daily-date[readonly]::-webkit-calendar-picker-indicator{display:none}

/* 2.8.18 — توقيت يومي ثابت + صور لكل حصة */
.ep-daily-table{min-width:1120px}
.ep-time-fixed:disabled{background:#f7f2e8;color:#5d665f;opacity:1;cursor:default}
.ep-slot-photo-cell{min-width:230px}
.ep-slot-upload{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px;padding:8px 9px;border:1px dashed #d9c18d;border-radius:9px;background:#fffaf0;font-size:12px;color:#6b562d;cursor:pointer}
.ep-slot-upload input{max-width:145px;font-size:11px}
.ep-slot-preview{grid-template-columns:repeat(2,minmax(72px,1fr));margin-top:7px}
.ep-slot-preview img{height:68px}
.ep-slot-deadline{display:none!important}
.ep-slot-no-photo{display:block;color:#8a8f8b;font-size:11px}
.ep-slot-locked{background:#faf7f1}
.ep-slot-locked .ep-slot-deadline{color:#a33b3b}
.ep-slot-locked .ep-slot-upload{background:#f4f1eb;border-color:#ddd2bd;color:#8a8a86;cursor:not-allowed}
.ep-slot-locked .ep-slot-edit:disabled{background:#f2eee6;color:#6a706c;opacity:1}
@media(max-width:600px){.ep-slot-photo-cell{min-width:210px}}
@media print{.ep-slot-upload,.ep-slot-preview,.ep-slot-deadline{display:none!important}.ep-slot-photo-cell{min-width:0}.ep-daily-table{min-width:0}}

/* 2.8.23 — التكوين والوثائق الإدارية */
.ep-simple-table-wrap{overflow:auto;border:1px solid #eadfc7;border-radius:12px;background:#fff}
.ep-simple-table{width:100%;border-collapse:collapse;min-width:720px}
.ep-simple-table th{background:#f7ecd2;color:#6a511f;text-align:right;padding:11px 12px;font-size:12px;border-bottom:1px solid #e2d2ad}
.ep-simple-table td{padding:11px 12px;border-bottom:1px solid #f0e7d4;vertical-align:middle;color:#36433c}
.ep-simple-table tr:last-child td{border-bottom:0}
.ep-link-btn{border:1px solid #dec07b;background:#fff8e8;color:#6d4b0d;border-radius:9px;padding:7px 12px;font:inherit;font-weight:800;cursor:pointer}
.ep-admin-note{display:block;margin-top:6px;color:#8b5b2b;font-size:11px;line-height:1.6}
.ep-documents-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}
.ep-document-card{border:1px solid #eadfc7;background:#fffdf8;border-radius:16px;padding:16px}
.ep-document-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.ep-document-head h3{margin:0;color:#604716;font-size:17px}
.ep-document-name{margin:0 0 12px;color:#727b74;font-size:13px;overflow-wrap:anywhere}
.ep-document-form input[type=file]{width:100%;border:1px solid #dccba7;border-radius:10px;background:#fff;padding:9px;font:inherit;font-size:12px;color:#4d574f}
.ep-document-card .ep-actions{margin-top:10px}
@media(max-width:720px){.ep-documents-grid{grid-template-columns:1fr}.ep-simple-table{min-width:650px}}

/* 2.8.25 - exit pointage */
.ep-exit-pointage{display:flex;align-items:center;justify-content:space-between;gap:18px}.ep-pointage-copy h3{margin:4px 0}.ep-pointage-copy p{margin:5px 0 0;font-weight:800;color:#84641e}.ep-exit-pointage .ep-btn{min-width:150px}.ep-exit-pointage .ep-btn.disabled{opacity:.55;cursor:not-allowed}@media(max-width:700px){.ep-exit-pointage{align-items:stretch;flex-direction:column}.ep-exit-pointage .ep-btn{width:100%}}

/* 2.8.38: فصل بصري للحصص المسائية */
.ep-period-separator td{background:#f6ecd2!important;border-top:2px solid #d8ae57!important;border-bottom:1px solid #e4c98f!important;padding:12px 16px!important;text-align:right!important;color:#7b5819!important}.ep-period-separator strong{display:block;font-size:16px}.ep-period-separator small{display:block;margin-top:2px;color:#9a7a42}.ep-slot-fixed-title:disabled{opacity:1!important;color:#6b4b14!important;font-weight:700!important;background:#fffaf0!important}

/* 2.8.39 - coordinator validation, visits and unified schedule */
.ep-chip-group{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.ep-schedule-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.ep-visit-list{display:grid;gap:12px}.ep-visit-card{border:1px solid #eadfc6;border-radius:14px;padding:14px;background:#fff}.ep-visit-card .head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:8px}.ep-visit-card h4{margin:0 0 4px;color:#725018}.ep-visit-card p{margin:6px 0;color:#5f5f5f}.ep-visit-meta{display:flex;gap:10px;flex-wrap:wrap;font-size:13px;color:#777}.ep-visit-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}@media(max-width:850px){.ep-schedule-grid{grid-template-columns:1fr}}

/* 2.8.40 - coordinator follow-up report delete icon */
.cp-delete-col,.cp-delete-cell{width:64px;text-align:center!important}
.cp-delete-report{width:38px;height:38px;border:1px solid #efc4c4;border-radius:10px;background:#fff3f3;color:#a83232;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:.18s ease;padding:0}
.cp-delete-report:hover{background:#a83232;color:#fff;border-color:#a83232;transform:translateY(-1px)}
.cp-delete-report:disabled{opacity:.45;cursor:not-allowed;transform:none}
.cp-delete-report svg{width:19px;height:19px;fill:currentColor}


/* 2.8.57 - سجل توزيع الكتب على المربين: تعديل + مستوى + لغة */
.cp-book-search{min-width:260px;max-width:360px}.cp-book-table{min-width:1180px}.cp-book-table small{color:#7a817c}.cp-level-badge,.cp-language-badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:900;white-space:nowrap}.cp-level-badge{background:#f4ead3;color:#76571b}.cp-language-badge{background:#eaf3ff;color:#215b9a}.cp-book-actions{display:flex;align-items:center;justify-content:center;gap:7px}.cp-edit-book,.cp-delete-book{width:38px;height:38px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:.18s ease;font-size:16px;padding:0}.cp-edit-book{border:1px solid #bbd7f7;background:#eef6ff;color:#1768b3}.cp-edit-book:hover{background:#1768b3;color:#fff;border-color:#1768b3;transform:translateY(-1px)}.cp-delete-book{border:1px solid #efc4c4;background:#fff3f3;color:#a83232}.cp-delete-book:hover{background:#a83232;color:#fff;border-color:#a83232;transform:translateY(-1px)}.cp-book-form-card input[readonly]{background:#f8f4ea;color:#675b43;font-weight:800}@media(max-width:700px){.cp-book-search{min-width:100%;max-width:none}.cp-book-table{min-width:1050px}}


/* 2.8.61 - المخزون وتوزيع الكتب المدرسية */
.cp-stock-negative{color:#b42318;font-weight:900}.ep-nav button[data-section="warehouse"],.ep-nav button[data-section="book-distribution"]{font-weight:900}
/* 2.8.64 - توزيع جماعي للكتب حسب اللغة */
.cp-bulk-books-preview{background:#fffaf0;border:1px solid #ead8ad;border-radius:14px;padding:14px}.cp-bulk-summary{font-weight:800;color:#6f4d16;margin:6px 0 10px}.cp-bulk-book-list{display:flex;flex-wrap:wrap;gap:8px}.cp-bulk-book-chip{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid #e4d2a5;border-radius:999px;background:#fff;color:#4f4638;font-size:.88rem;line-height:1.35}.cp-bulk-book-chip b{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 5px;border-radius:999px;background:#f4e6bf;color:#7a5718}

/* One-time educator weekly period selection */
.ep-one-time-card{border-color:#dfc483;background:#fffaf0}.ep-one-time-warning{padding:12px 14px;margin-bottom:14px;border:1px solid #ead29d;background:#fff4d8;border-radius:12px;color:#74551b;font-size:13px}.ep-weekly-period-table{border:1px solid #eadfc7;border-radius:14px;overflow:hidden;background:#fff}.ep-weekly-period-row{display:grid;grid-template-columns:minmax(120px,.7fr) minmax(180px,1.3fr);align-items:center;gap:14px;padding:11px 14px;border-bottom:1px solid #f0e7d4}.ep-weekly-period-row:last-child{border-bottom:0}.ep-weekly-period-row.head{background:#f7ecd2;color:#6a511f;font-size:12px;font-weight:900}.ep-weekly-period-row strong{color:#3b463f}.ep-weekly-period-row select{width:100%;border:1px solid #d7c49d;background:#fffefb;border-radius:10px;padding:9px 11px;font:inherit;color:#253128}.ep-weekly-period-row select:focus{outline:0;border-color:var(--ep-gold);box-shadow:0 0 0 3px rgba(201,154,69,.14)}.ep-saved-at{margin:12px 0 0!important;color:#6d756f!important;font-size:12px!important}@media(max-width:600px){.ep-weekly-period-row{grid-template-columns:100px 1fr;padding:10px}}

.ep-readonly-value{min-height:44px;display:flex;align-items:center;padding:10px 12px;border:1px solid #d9dfdc;border-radius:10px;background:#f8faf9;font-weight:700;color:#23443a}


/* Saved educator weekly schedule - V5 */
.ep-weekly-saved-card{overflow:hidden}
.ep-weekly-saved-grid{
  margin-top:14px;
  border:1px solid #eadfc7;
  border-radius:14px;
  overflow:hidden;
  background:#fff;
}
.ep-weekly-saved-head,
.ep-weekly-saved-row{
  display:grid;
  grid-template-columns:minmax(120px,.8fr) minmax(120px,1.2fr);
  align-items:center;
  gap:16px;
  min-height:48px;
  padding:10px 16px;
}
.ep-weekly-saved-head{
  background:#f5e8c9;
  color:#6f531d;
  font-size:13px;
  font-weight:900;
}
.ep-weekly-saved-row{
  border-top:1px solid #f0e7d4;
}
.ep-weekly-saved-row strong{
  display:block;
  color:#334139;
  font-weight:800;
}
.ep-weekly-period-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  justify-self:start;
  min-width:86px;
  padding:7px 16px;
  border-radius:999px;
  background:#edf8f3;
  border:1px solid #b8e0cf;
  color:#176749;
  font-weight:900;
  line-height:1.2;
}
@media(max-width:600px){
  .ep-weekly-saved-head,
  .ep-weekly-saved-row{
    grid-template-columns:1fr 1fr;
    gap:10px;
    padding:10px 12px;
  }
  .ep-weekly-period-badge{
    justify-self:stretch;
    min-width:0;
  }
}


/* Educator daily pedagogical journal - V6 */
.ep-daily-journal-card{overflow:hidden}
.ep-daily-journal-grid{margin-top:14px}
.ep-daily-journal-grid .ep-field.full{grid-column:1 / -1}
.ep-daily-journal-card textarea{line-height:1.7}
.ep-daily-journal-card .ep-chip{font-weight:800}
.ep-daily-journal-card small{opacity:.85}
.ep-daily-journal-grid input[readonly]{background:#f9f7f0;font-weight:700}
@media(max-width:760px){
  .ep-daily-journal-grid .ep-field.full{grid-column:auto}
}


/* Final pedagogical daily card - V8 */
.ep-daily-sketch-card{max-width:900px;margin-inline:auto}
.ep-daily-sketch-top{display:grid;grid-template-columns:1fr 2fr;gap:12px;margin-bottom:14px}
.ep-daily-sketch-top>div{border:1px solid #eadcc0;border-radius:12px;padding:10px 14px;background:#fffaf0}
.ep-daily-sketch-top small{display:block;color:#84672f;margin-bottom:4px}
.ep-daily-sketch-top strong{font-size:15px;color:#2f4138}
.ep-daily-sketch-grid{grid-template-columns:1fr 1fr}
.ep-daily-sketch-grid .full{grid-column:1/-1}
.ep-daily-sketch-grid textarea{min-height:82px;line-height:1.7;resize:vertical}
.ep-daily-sketch-grid input[readonly]{background:#f7f5ef;font-weight:800}
.ep-daily-video-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:16px}
.ep-video-upload-card{border:1px dashed #d8b66a;background:#fffaf0;border-radius:14px;padding:14px}
.ep-video-upload-card label{display:block;font-weight:900;color:#76540f;margin-bottom:8px}
.ep-video-upload-card input[type=file]{width:100%;padding:10px;border:1px solid #ead8b7;border-radius:10px;background:#fff}
.ep-video-upload-card small{display:block;margin-top:7px;color:#6d746f;line-height:1.5}
.ep-daily-actions{justify-content:center;margin-top:18px}
.ep-daily-actions .ep-btn.primary{min-width:220px;font-size:16px}
@media(max-width:720px){
  .ep-daily-sketch-top,.ep-daily-sketch-grid,.ep-daily-video-grid{grid-template-columns:1fr}
  .ep-daily-sketch-grid .full{grid-column:auto}
}


/* Daily attendance - V9 */
.ep-daily-attendance{margin-top:18px;padding:14px;border:1px solid #e6d7b6;border-radius:14px;background:#fffdf8}
.ep-daily-attendance-title{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}
.ep-daily-attendance-title strong{color:#6f521a;font-size:16px}
.ep-daily-attendance-title small{color:#777}
.ep-attendance-grid{grid-template-columns:repeat(3,1fr)}
@media(max-width:720px){
  .ep-attendance-grid{grid-template-columns:1fr}
  .ep-daily-attendance-title{align-items:flex-start;flex-direction:column}
}

.ep-attendance-one{grid-template-columns:minmax(180px,320px)}


/* Restored daily optional/notes fields - V11 */
.ep-daily-extra-fields{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  margin-top:16px;
}
.ep-daily-extra-fields .ep-field{margin:0}
.ep-daily-extra-fields textarea{min-height:88px;line-height:1.7}


/* Daily form language direction - V13 */
#ep-daily-form.ep-daily-lang-ar{
  direction:rtl;
}
#ep-daily-form.ep-daily-lang-ar .ep-field,
#ep-daily-form.ep-daily-lang-ar .ep-video-upload-card,
#ep-daily-form.ep-daily-lang-ar .ep-daily-attendance-title{
  text-align:right;
}
#ep-daily-form.ep-daily-lang-ar input,
#ep-daily-form.ep-daily-lang-ar textarea,
#ep-daily-form.ep-daily-lang-ar select{
  direction:rtl;
  text-align:right;
}

#ep-daily-form.ep-daily-lang-fr{
  direction:ltr;
}
#ep-daily-form.ep-daily-lang-fr .ep-daily-sketch-grid,
#ep-daily-form.ep-daily-lang-fr .ep-daily-extra-fields,
#ep-daily-form.ep-daily-lang-fr .ep-daily-attendance,
#ep-daily-form.ep-daily-lang-fr .ep-daily-video-grid{
  direction:ltr;
}
#ep-daily-form.ep-daily-lang-fr .ep-field,
#ep-daily-form.ep-daily-lang-fr .ep-video-upload-card,
#ep-daily-form.ep-daily-lang-fr .ep-daily-attendance-title{
  text-align:left;
}
#ep-daily-form.ep-daily-lang-fr input,
#ep-daily-form.ep-daily-lang-fr textarea,
#ep-daily-form.ep-daily-lang-fr select{
  direction:ltr;
  text-align:left;
}
#ep-daily-form.ep-daily-lang-fr input::placeholder,
#ep-daily-form.ep-daily-lang-fr textarea::placeholder{
  direction:ltr;
  text-align:left;
}


/* Bilingual daily journal - one page, one submission - V16 */
.ep-daily-main-meta{grid-template-columns:repeat(3,minmax(0,1fr))}
.ep-daily-bilingual-sections{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-top:16px;
}
.ep-daily-language-card{
  border:1px solid #e2d3b4;
  border-radius:15px;
  background:#fffdf8;
  padding:16px;
}
.ep-daily-language-card.ep-daily-ar{text-align:right;direction:rtl}
.ep-daily-language-card.ep-daily-fr{text-align:left;direction:ltr}
.ep-daily-language-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-bottom:10px;
  margin-bottom:12px;
  border-bottom:1px solid #eee2cb;
}
.ep-daily-language-title h3{margin:0;font-size:18px}
.ep-daily-language-title span{
  padding:5px 10px;
  border-radius:999px;
  background:#f5e8c9;
  font-weight:800;
}
.ep-daily-content-fields{display:grid;gap:11px}
.ep-daily-content-fields .ep-field{margin:0}
.ep-daily-ar input,.ep-daily-ar textarea{
  direction:rtl!important;
  text-align:right!important;
}
.ep-daily-fr input,.ep-daily-fr textarea{
  direction:ltr!important;
  text-align:left!important;
}
.ep-daily-language-card textarea{min-height:82px;line-height:1.7}
@media(max-width:900px){
  .ep-daily-bilingual-sections{grid-template-columns:1fr}
}
@media(max-width:720px){
  .ep-daily-main-meta{grid-template-columns:1fr}
}


/* Daily activity photo camera buttons - V17 */
.ep-daily-photo-section{
  margin-top:18px;
  padding:15px;
  border:1px solid #e6d7b6;
  border-radius:15px;
  background:#fffdf8;
}
.ep-daily-photo-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:13px;
}
.ep-daily-photo-title strong{font-size:16px;color:#6f521a}
.ep-daily-photo-title small{color:#777}
.ep-daily-photo-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.ep-camera-upload{
  display:flex;
  min-height:155px;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:16px;
  border:2px dashed #d5b361;
  border-radius:15px;
  background:#fffaf0;
  cursor:pointer;
  text-align:center;
  transition:transform .15s ease,border-color .15s ease;
}
.ep-camera-upload:hover{transform:translateY(-1px);border-color:#b88c2d}
.ep-camera-upload input[type=file]{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}
.ep-camera-icon{font-size:38px;line-height:1}
.ep-camera-upload strong{font-size:15px;color:#664b16}
.ep-camera-upload small{color:#6f746f;line-height:1.5}
.ep-camera-preview{width:100%;margin-top:5px}
.ep-camera-preview img{
  display:block;
  width:100%;
  max-width:240px;
  max-height:180px;
  object-fit:cover;
  margin:auto;
  border-radius:11px;
  border:1px solid #e4d4b2;
}
.ep-camera-upload:has(input:disabled){opacity:.65;cursor:not-allowed}
@media(max-width:720px){
  .ep-daily-photo-grid{grid-template-columns:1fr}
  .ep-daily-photo-title{align-items:flex-start;flex-direction:column}
}


/* Video block top + timing hints - V18 */
.ep-daily-video-block-top{
  margin:18px 0;
  padding:15px;
  border:1px solid #e6d7b6;
  border-radius:15px;
  background:#fffdf8;
}
.ep-daily-video-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:13px;
}
.ep-daily-video-head strong{font-size:16px;color:#6f521a}
.ep-daily-video-head small{color:#777}
.ep-video-upload{
  position:relative;
  display:flex;
  min-height:185px;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:16px;
  border:2px dashed #d5b361;
  border-radius:15px;
  background:#fffaf0;
  cursor:pointer;
  text-align:center;
  transition:transform .15s ease,border-color .15s ease;
}
.ep-video-upload:hover{transform:translateY(-1px);border-color:#b88c2d}
.ep-video-upload input[type=file]{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}
.ep-video-icon{font-size:38px;line-height:1}
.ep-video-upload strong{font-size:15px;color:#664b16}
.ep-video-upload small{color:#6f746f;line-height:1.5}
.ep-video-time-hint{
  width:100%;
  margin-top:8px;
  padding:9px 11px;
  border-radius:12px;
  background:#f5ecda;
  color:#6a5325;
  display:grid;
  gap:4px;
  font-size:13px;
}
.ep-video-time-hint b{font-size:13px}
.ep-video-time-hint span{display:block}
@media(max-width:720px){
  .ep-daily-video-head{align-items:flex-start;flex-direction:column}
}


/* Video timing activation - V19 */
.ep-video-timing-notice{margin-bottom:13px;padding:10px 12px;border-radius:12px;background:#fff2cf;border:1px solid #e7c96d;color:#6b5217;font-weight:800;line-height:1.55}
.ep-video-timing-notice.active{background:#eef7ef;border-color:#a8cbaa;color:#355a38}
.ep-video-upload.video-locked{opacity:.62;cursor:not-allowed;filter:grayscale(.15)}
.ep-video-upload.video-open{border-style:solid}
.ep-video-time-hint.open{background:#edf7ee;color:#315d36}
.ep-video-time-hint.closed{background:#fff0ee;color:#853c32}
.ep-video-time-hint.waiting{background:#fff7df;color:#735a1e}


/* Educator language specialty - V20 */
.ep-daily-specialty-note{
  margin:14px 0 10px;padding:10px 12px;border:1px solid #e4d3ac;border-radius:12px;
  background:#fff7e4;color:#6e551c;font-weight:800;line-height:1.55;
}
.ep-daily-language-card.ep-specialty-hidden{display:none!important}


/* Specialty persistence + video closing note - V22 */
.ep-video-closing-note{
  margin:0 0 12px;
  padding:11px 13px;
  border:1px solid #e3bf58;
  border-radius:12px;
  background:#fff4cf;
  color:#6f5310;
  font-size:13px;
  font-weight:700;
  line-height:1.8;
}
.ep-video-closing-note strong{display:block;margin-bottom:2px}
#ep-daily-form .ep-daily-language-card.ep-specialty-hidden{
  display:none!important;
}


/* Final video timing note - V23 */
.ep-video-closing-note b{font-weight:900}
.ep-video-closing-note strong{font-weight:900}


/* Assigned education level in daily journal - V25 */
.ep-daily-level-note{
  display:block;
  margin-top:6px;
  font-size:12px;
  line-height:1.55;
  color:#7b6c4c;
}
#ep-daily-level-choice.ep-level-locked{
  background:#f6f1e6;
  cursor:not-allowed;
  font-weight:800;
}


/* Sequential PS1-1 then PS2-1 daily journal - V26 */
.ep-daily-level-section{
  margin-top:14px;
  padding:12px;
  border:1px solid #e1d2b3;
  border-radius:16px;
  background:#fffdf8;
}
.ep-daily-level-section-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 12px;
  padding:9px 12px;
  border-radius:11px;
  background:#f7ecd0;
}
.ep-daily-level-section-title strong{font-size:18px;color:#5f4612}
.ep-daily-level-section-title span{font-size:12px;color:#81704c}
#ep-daily-level-display{font-weight:900;background:#f7f3e9}
#ep-daily-level-2.ep-hidden{display:none!important}


/* Optional special activity - V28 */
.ep-optional-label{
  font-size:12px;
  font-weight:700;
  color:#8a806f;
}


/* Timetable by teaching-language specialty - V29 */
.ep-schedule-language-specialty{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:8px;
  padding:7px 11px;
  border:1px solid #dfc98e;
  border-radius:999px;
  background:#fff7df;
  color:#6f5317;
  font-size:13px;
  font-weight:800;
}
.ep-schedule-language-fr{
  direction:ltr;
  text-align:left;
}
.ep-schedule-language-both .ep-schedule-activity strong{
  display:block;
  line-height:1.45;
}
.ep-schedule-activity-fr{
  display:block;
  margin-top:3px;
  color:#786a50;
  font-weight:700;
  direction:ltr;
}


/* Official preschool timetable model - V30 */
.ep-schedule-row-pause td{
  background:#fff0df!important;
  font-weight:900;
}
.ep-schedule-row-departure td{
  background:#f5f1e7!important;
  font-weight:800;
}
.ep-schedule-saturday-note{
  margin-top:14px;
  padding:12px 14px;
  border:1px solid #dfcfad;
  border-radius:12px;
  background:#fffdf8;
  color:#5f5749;
  line-height:1.7;
}
.ep-schedule-saturday-note strong{
  color:#6e4f16;
  margin-inline-end:6px;
}


/* Three official timetable models by language specialty - V31 */
.ep-schedule-row-ar td{
  background:#dfeec0!important;
}
.ep-schedule-row-fr td{
  background:#abdce8!important;
}
.ep-schedule-row-pause td{
  background:#ffd0a7!important;
  font-weight:900;
}
.ep-schedule-row-departure td{
  background:#ffd0a7!important;
  font-weight:900;
}
.ep-schedule-specialty-ar .ep-simple-table tbody td:last-child{
  direction:rtl;
  text-align:center;
}
.ep-schedule-specialty-fr .ep-simple-table tbody td:last-child{
  direction:ltr;
  text-align:center;
}
.ep-schedule-specialty-both .ep-simple-table tbody td:last-child{
  text-align:center;
}
.ep-schedule-language-specialty{
  margin-top:10px;
}


/* Weekly period half-level assignment - V32 */
.ep-weekly-period-row,
.ep-weekly-saved-head,
.ep-weekly-saved-row{
  grid-template-columns:minmax(95px,1fr) minmax(120px,1fr) minmax(110px,1fr) minmax(110px,1fr)!important;
}
.ep-weekly-level-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:6px 10px;
  border:1px solid #d9c590;
  border-radius:999px;
  background:#fff7df;
  color:#6d5017;
  font-weight:900;
  white-space:nowrap;
}
.ep-weekly-halves-note{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  margin:0 0 12px;
  padding:10px 12px;
  border:1px solid #ddd0af;
  border-radius:12px;
  background:#fffdf7;
  color:#625a4c;
  line-height:1.65;
}
.ep-weekly-halves-note strong{color:#755413}
@media(max-width:760px){
 .ep-weekly-period-row,
 .ep-weekly-saved-head,
 .ep-weekly-saved-row{
   grid-template-columns:minmax(78px,.8fr) minmax(92px,1fr) minmax(82px,1fr) minmax(82px,1fr)!important;
   gap:6px!important;
 }
 .ep-weekly-level-badge{font-size:12px;padding:5px 7px}
}


/* Manual weekly half-level selection - V33 */
.ep-weekly-level-select{
 width:100%;min-width:95px;min-height:38px;padding:6px 8px;
 border:1px solid #d6c28d;border-radius:10px;background:#fffaf0;
 color:#5f4718;font-weight:900;
}
.ep-weekly-level-select:disabled{opacity:.75;cursor:not-allowed}


/* Phone-only daily photo/video capture - V35 */
.ep-mobile-media-only-note{
  margin:0 0 12px;
  padding:10px 12px;
  border:1px solid #c9d8e6;
  border-radius:12px;
  background:#f6fbff;
  color:#41566b;
  font-size:13px;
  line-height:1.7;
}
.ep-mobile-media-only-note.is-desktop{
  border-color:#e2b8b8;
  background:#fff3f3;
  color:#8b3030;
}
.ep-mobile-media-disabled{
  opacity:.5!important;
  filter:grayscale(.35);
  cursor:not-allowed!important;
}
.ep-mobile-media-disabled *{
  cursor:not-allowed!important;
}


