/* QAYEM_OWNER_PASSWORD_REQUIRED — Owner: محمد قيم. Follow AGENTS.md. */
/* Keep curriculum layout independent of the booking page's chapter cards. */
#workspace .curriculum>.chapter{display:block;grid-template-columns:none;min-width:0;width:100%;max-width:100%;padding:0;position:static;float:none;direction:rtl;text-align:start}
#workspace .curriculum>.chapter>summary{display:grid;grid-template-columns:42px minmax(0,1fr) auto 18px;align-items:center;gap:14px;min-width:0;width:100%;box-sizing:border-box;padding:20px 22px;position:static;float:none;direction:rtl;text-align:start;list-style:none}
#workspace .curriculum>.chapter>summary::-webkit-details-marker{display:none}
#workspace .curriculum>.chapter>summary>.chapter-index{grid-column:1;grid-row:1;align-self:start;width:40px;height:40px;flex:none;direction:ltr;white-space:nowrap}
#workspace .curriculum>.chapter>summary>.chapter-title{grid-column:2;grid-row:1;min-width:0;width:auto;max-width:none;display:block;position:static;float:none;writing-mode:horizontal-tb;white-space:normal;text-align:start}
#workspace .curriculum>.chapter>summary>.chapter-title>strong{display:block;font-size:16px;line-height:1.75;white-space:normal;word-break:normal;overflow-wrap:break-word;writing-mode:horizontal-tb;margin:0}
#workspace .curriculum>.chapter>summary>.chapter-title>p{grid-column:auto;margin:5px 0 0;font-size:12px;line-height:1.8;white-space:normal;word-break:normal;overflow-wrap:break-word;max-width:none}
#workspace .curriculum>.chapter>summary>.chapter-count{grid-column:3;grid-row:1;white-space:nowrap;align-self:center;margin:0}
#workspace .curriculum>.chapter>summary>.chapter-chevron{grid-column:4;grid-row:1;width:18px;height:18px;justify-self:end}
#workspace .curriculum>.chapter>.chapter-lessons{display:block;width:100%;min-width:0;box-sizing:border-box;padding:0 20px 10px;position:static}
#workspace .curriculum>.chapter:not([open])>.chapter-lessons,#workspace .curriculum>.chapter:not([open])>.chapter-footer{display:none}
#workspace .curriculum>.chapter>.chapter-lessons>.lesson-row{display:flex;flex-wrap:nowrap;align-items:center;gap:12px;width:100%;min-width:0;min-height:62px;box-sizing:border-box;position:static;direction:rtl;text-align:start;padding:13px 12px}
#workspace .curriculum .lesson-row>.lesson-icon{flex:0 0 20px;width:20px;height:20px}
#workspace .curriculum .lesson-row>.lesson-name{flex:1 1 0;min-width:0;width:auto;max-width:none;line-height:1.8;white-space:normal;word-break:normal;overflow-wrap:break-word;writing-mode:horizontal-tb}
#workspace .curriculum .lesson-row>small{flex:0 0 auto;white-space:nowrap;direction:ltr;unicode-bidi:isolate}
#workspace .curriculum .lesson-row>.table-actions{display:flex;flex:0 0 auto;flex-wrap:wrap;align-items:center;gap:6px;width:auto;margin:0}
#workspace .curriculum .lesson-row>.table-actions .btn{flex:none;white-space:nowrap}
#workspace .curriculum>.chapter>.chapter-footer{display:flex;flex-wrap:wrap;align-items:center;gap:8px;width:100%;box-sizing:border-box;position:static;padding:8px 20px 18px}
@media(max-width:800px){
 #workspace .curriculum>.chapter>summary{grid-template-columns:36px minmax(0,1fr) auto 16px;gap:10px;padding:17px 15px}
 #workspace .curriculum>.chapter>summary>.chapter-index{width:34px;height:34px}
 #workspace .curriculum>.chapter>summary>.chapter-title>strong{font-size:15px}
 #workspace .curriculum>.chapter>.chapter-lessons{padding:0 12px 8px}
 #workspace .curriculum>.chapter>.chapter-lessons>.lesson-row{flex-wrap:wrap;gap:9px}
 #workspace .curriculum .lesson-row>.lesson-name{flex:1 1 calc(100% - 90px);min-width:0}
 #workspace .curriculum .lesson-row>.table-actions{flex:1 0 100%;width:100%;justify-content:flex-end;margin:3px 0 0}
 #workspace .curriculum>.chapter>.chapter-footer{padding:8px 14px 17px}
}
@media(max-width:480px){
 #workspace .curriculum>.chapter>summary{grid-template-columns:32px minmax(0,1fr) 15px;gap:9px;padding:15px 12px}
 #workspace .curriculum>.chapter>summary>.chapter-index{width:30px;height:32px}
 #workspace .curriculum>.chapter>summary>.chapter-count{display:none}
 #workspace .curriculum>.chapter>summary>.chapter-chevron{grid-column:3;width:15px;height:15px}
 #workspace .curriculum>.chapter>summary>.chapter-title>strong{font-size:14px}
 #workspace .curriculum>.chapter>summary>.chapter-title>p{font-size:11px}
 #workspace .curriculum .lesson-row>.lesson-name{flex-basis:calc(100% - 84px);font-size:12px}
}
