.portal-export-tools{display:flex;flex-wrap:wrap;gap:8px;margin-block:12px}.portal-export-tools button{min-height:44px;padding:9px 18px;border:1px solid #bdd6e9;border-radius:10px;background:#edf6ff;color:#07568e;font:inherit;font-weight:700;cursor:pointer}.portal-export-tools button:focus-visible{outline:3px solid #e9a23b;outline-offset:3px}.portal-export-status{font-size:14px;color:#246143}.portal-export-status:empty{display:none}.portal-student-id{display:block;margin-block:10px;font-weight:700;color:#134e73}.portal-export-status textarea{display:block;width:100%;min-height:160px}#portal-print-root{display:none}
@media print{body.portal-printing> *{display:none!important}body.portal-printing>#portal-print-root{display:block!important;direction:rtl;padding:10mm;color:#111;background:#fff}#portal-print-root *{box-shadow:none!important;overflow:visible!important;max-width:100%}#portal-print-root table{width:100%;min-width:0!important;border-collapse:collapse}#portal-print-root th,#portal-print-root td{border:1px solid #bbb;padding:7px}#portal-print-root img{max-height:180px;width:auto;object-fit:contain}#portal-print-root .portal-export-tools,#portal-print-root .service-actions-cell{display:none!important}#portal-print-root tr,#portal-print-root article{break-inside:avoid}#portal-print-root a{color:#111}#portal-print-root a:after{content:none!important}}

/* weekly-mobile-cards-v1 */
.service-weekly-table .service-edit-button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:8px 17px;background:#b42318;color:#fff!important;border:1px solid #b42318;border-radius:10px;font-weight:700;text-decoration:none}
.service-weekly-table .service-edit-button:hover{background:#912018}.service-weekly-table .service-edit-button:focus-visible{outline:3px solid #f59e0b;outline-offset:3px}
.service-weekly-table .service-state{display:inline-flex;align-items:center;padding:6px 12px;margin:4px;border-radius:9px;font-size:13px;font-weight:700}.service-weekly-table .is-active{color:#166534;background:#dcfce7;border:1px solid #bbf7d0}.service-weekly-table .is-inactive{color:#475569;background:#f1f5f9;border:1px solid #cbd5e1}.service-lecture-time{direction:ltr;unicode-bidi:isolate;white-space:nowrap}
@media(max-width:760px){
.service-weekly-table{overflow:visible!important}.service-weekly-table table{display:block;width:100%!important;min-width:0!important}.service-weekly-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.service-weekly-table tbody{display:grid;gap:16px}.service-weekly-table tbody tr{display:block;border:1px solid #d5e5ef;border-radius:16px;padding:10px 14px;background:#fff!important;box-shadow:0 3px 12px #073d7b08}
.service-weekly-table tbody td{display:grid;grid-template-columns:82px minmax(0,1fr);gap:12px;width:auto!important;min-width:0!important;max-width:100%;padding:11px 0;border:0;border-bottom:1px solid #edf2f7;background:transparent!important;text-align:start;white-space:normal;overflow-wrap:anywhere;line-height:1.65;font-size:15px}
.service-weekly-table td::before{content:attr(data-label);font-size:13px;font-weight:700;color:#64748b}.service-weekly-table td:last-child{border-bottom:0}.service-weekly-table td[data-label="المادة"]{font-weight:700;color:#123c65}.service-weekly-table td.service-actions-cell{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}.service-weekly-table td.service-actions-cell::before{margin-inline-end:auto}.service-weekly-table .service-state{margin:0}.service-weekly-table .service-edit-button{min-height:44px}
}

/* ce-four-per-page-v166 */
#portal-print-root .ce-print-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6mm}
#portal-print-root .ce-print-card{box-sizing:border-box;border:1px solid #bdd4e2;border-radius:4mm;padding:4mm;background:#edf5fc;color:#214762}
#portal-print-root .ce-print-card:nth-child(2){background:#eef8f0;border-color:#c6dfcb}
#portal-print-root .ce-print-card:nth-child(3){background:#f3eef9;border-color:#d8cbe8}
#portal-print-root .ce-print-card:nth-child(4){background:#fff5e7;border-color:#e9d6b6}
#portal-print-root .ce-print-card>div{display:grid;grid-template-columns:19mm minmax(0,1fr);gap:2mm;padding:3mm 0;border-bottom:1px solid #cfdee7;line-height:1.6;overflow-wrap:anywhere}
#portal-print-root .ce-print-card>div:last-child{border:0}
#portal-print-root .ce-print-card b{color:#506e82;font-size:9pt}
#portal-print-root .ce-print-card span{font-size:10pt}
@media print{
@page{size:A4 portrait;margin:12mm}
body.portal-printing>#portal-print-root.ce-four-ready{padding:0!important;margin:0!important;width:100%!important}
#portal-print-root.ce-four-ready>h1{display:none!important}
#portal-print-root .ce-print-sheet{box-sizing:border-box;height:258mm;display:flex;flex-direction:column;break-after:page;page-break-after:always;break-inside:avoid;page-break-inside:avoid;margin:0;padding:0}
#portal-print-root .ce-print-sheet:last-child{break-after:auto;page-break-after:auto}
#portal-print-root .ce-print-sheet>h2{font-size:14pt;line-height:1.5;margin:0 0 5mm}
#portal-print-root .ce-print-grid{flex:1;min-height:0;grid-template-rows:repeat(2,minmax(0,1fr))}
#portal-print-root .ce-print-card{break-inside:avoid!important;page-break-inside:avoid!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
}

/* ce-export-buttons-v170 */
@media screen{
#main .portal-export-tools{
display:flex!important;flex-wrap:wrap!important;
align-items:center!important;align-self:start!important;
justify-content:flex-start;gap:10px!important;
height:auto!important;min-height:0!important;
margin:12px 0!important;padding:10px 0!important}
#main .portal-export-tools button{
display:inline-flex!important;align-items:center!important;
justify-content:center!important;align-self:center!important;
height:44px!important;min-height:44px!important;
max-height:44px!important;flex:0 1 auto!important;
width:auto!important;padding:8px 18px!important;
border-radius:11px!important;font-size:14px!important;
line-height:1.4!important;box-sizing:border-box}
#main .announcement-grid>.portal-export-tools,
#main .announcement-grid>.portal-export-status{
grid-column:1/-1!important;align-self:start!important}
}
