/* Training Portal v42 | small, self-contained RTL programs UI */
.tp-programs-shell{--tp-green:#1b8354;--tp-stroke:#dfe8e2;max-width:1170px;margin:22px auto 65px;padding:0 16px;direction:rtl;text-align:right;color:#172b35}
.tp-programs-shell *{box-sizing:border-box}
.tp-programs-heading,.tp-programs-admin-top{display:flex;justify-content:space-between;align-items:center;gap:22px;margin-bottom:24px;flex-wrap:wrap}
.tp-programs-eyebrow{color:var(--tp-green);font-weight:700;font-size:14px}
.tp-programs-shell h1{font-size:30px;line-height:1.5;margin:3px 0 6px}
.tp-programs-shell h2{font-size:22px;line-height:1.55;margin:0 0 12px}
.tp-programs-shell p{font-size:15px;line-height:1.85;margin:0;color:#577068}
.tp-programs-outline,.tp-programs-back{display:inline-flex;align-items:center;gap:8px;padding:10px 15px;background:#fff;border:1px solid var(--tp-stroke);border-radius:10px;color:var(--tp-green);text-decoration:none;font-size:15px}
.tp-programs-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.tp-programs-card,.tp-programs-detail-head,.tp-programs-course,.tp-programs-admin-panel{background:#fff;border:1px solid var(--tp-stroke);border-radius:15px;box-shadow:0 7px 19px rgba(14,49,34,.035)}
.tp-programs-card{padding:23px;display:flex;flex-direction:column;min-height:240px}
.tp-programs-card h2{font-size:19px}
.tp-programs-card p{flex:1}
.tp-programs-card-icon{display:flex;align-items:center;justify-content:center;width:46px;height:46px;margin-bottom:16px;border-radius:12px;background:#e9f6ee;color:#14774c;font-size:23px}
.tp-programs-card-foot{border-top:1px solid #eaf0eb;margin-top:20px;padding-top:15px;display:flex;justify-content:space-between;align-items:center;gap:10px}
.tp-programs-card-foot span{color:#667c72;font-size:13px}
.tp-programs-card-foot a,.tp-programs-course a{color:var(--tp-green);font-weight:700;font-size:15px;text-decoration:none}
.tp-programs-detail-head{margin:17px 0 20px;padding:26px}
.tp-programs-detail-head>span{color:var(--tp-green);font-size:13px;font-weight:700}
.tp-programs-progress-info{display:flex;gap:10px;align-items:center;margin-top:20px}
.tp-programs-progress-info strong{color:var(--tp-green)}
.tp-programs-progress-info span{color:#667c72;font-size:13px}
.tp-programs-progress-track{background:#edf3ef;height:9px;border-radius:40px;margin-top:8px;overflow:hidden}
.tp-programs-progress-fill{background:#1b8354;height:100%;border-radius:40px;width:0}
.tp-programs-course-list{display:grid;gap:10px}
.tp-programs-course{padding:16px 19px;display:flex;align-items:center;gap:15px}
.tp-programs-course-number{width:35px;height:35px;border-radius:50%;background:#eaf5ed;color:#176b46;font-weight:700;display:grid;place-items:center;flex-shrink:0}
.tp-programs-course-text{flex:1;min-width:0}
.tp-programs-course h3{font-size:16px;margin:0 0 5px;line-height:1.55}
.tp-programs-course small{color:#617b6b}
.tp-programs-note{margin-top:16px!important;font-size:13px!important}
.tp-programs-empty,.tp-programs-alert{display:block;padding:18px;background:#eff9f2;border:1px solid #c9e9d2;border-radius:12px;font-size:15px;color:#275c3c;margin-bottom:15px}
.tp-programs-admin .tp-programs-admin-top h2{margin-bottom:3px}
.tp-programs-admin-layout{display:grid;grid-template-columns:1fr 1.65fr;gap:18px;align-items:start}
.tp-programs-admin-panel{padding:22px;min-width:0}
.tp-programs-admin-panel h3{font-size:19px;margin-bottom:15px}
.tp-programs-admin-panel h4{font-size:17px}
.tp-programs-admin-panel label{display:block;margin:13px 0 6px;font-weight:700;font-size:14px}
.tp-programs-admin-panel .form-control{min-height:43px;text-align:right;direction:rtl;max-width:100%}
.tp-programs-admin-panel textarea.form-control{min-height:90px;height:auto}
.tp-programs-admin-panel .btn{margin-top:12px}
.tp-programs-admin-list-item{display:flex;align-items:center;justify-content:space-between;gap:13px;padding:11px 0;border-bottom:1px solid #e7ede8}
.tp-programs-admin-list-item strong{display:block;font-size:14px;line-height:1.65}
.tp-programs-admin-list-item small{display:block;color:#678174;font-size:12px}
.tp-programs-admin-list-item a{color:var(--tp-green);font-size:15px;flex-shrink:0}
.tp-programs-helper{font-size:13px!important}
.tp-programs-add-course{display:flex;gap:10px;align-items:center}
.tp-programs-add-course .btn{margin:0;white-space:nowrap}
.tp-programs-publish{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-top:15px}
.tp-programs-publish a{font-size:14px}
@media(max-width:900px){.tp-programs-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tp-programs-admin-layout{grid-template-columns:1fr}}
@media(max-width:620px){.tp-programs-shell{margin:18px auto 40px;padding:0 12px}.tp-programs-shell h1{font-size:24px}.tp-programs-grid{grid-template-columns:1fr}.tp-programs-card{min-height:190px}.tp-programs-course{flex-wrap:wrap}.tp-programs-course a{margin-right:50px}.tp-programs-detail-head{padding:18px}.tp-programs-add-course{flex-direction:column;align-items:stretch}}

/* v43 | guided learning journey and small supervisor ordering controls */
.tp-programs-shell .tp-programs-section-title{font-size:19px;line-height:1.6;margin:24px 0 13px;color:#173d2a}
.tp-programs-progress-percent{margin-right:auto;font-weight:700;color:#176c46;font-size:14px!important;direction:ltr}
.tp-programs-next{display:flex;align-items:center;gap:17px;padding:21px 23px;border:1px solid #c5dfcf;border-right:4px solid #1b8354;border-radius:14px;background:#f5fbf7;margin:0 0 22px;box-shadow:0 6px 18px rgba(15,55,35,.025)}
.tp-programs-next-icon{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border-radius:12px;color:#167344;background:#e4f3e9;font-size:25px}
.tp-programs-next-content{flex:1;min-width:0}
.tp-programs-next-content h3{font-size:17px;line-height:1.6;margin:2px 0 5px;color:#173c2a}
.tp-programs-next-content p{font-size:14px;line-height:1.8;margin:0;color:#526d60}
.tp-programs-primary{display:inline-flex;align-items:center;justify-content:center;min-height:43px;padding:10px 16px;border-radius:9px;background:#1b8354;color:#fff!important;font-size:14px;text-align:center;font-weight:700;text-decoration:none!important;white-space:nowrap;flex-shrink:0}
.tp-programs-primary:hover,.tp-programs-primary:focus{background:#126c42;color:#fff!important}
.tp-programs-next-done{background:#f6faf6}
.tp-programs-course{border-right:4px solid #dde8df;align-items:flex-start}
.tp-programs-course--done{border-right-color:#1b8354}
.tp-programs-course--active{border-right-color:#60957d}
.tp-programs-course--action{border-right-color:#b9882f}
.tp-programs-course--waiting{border-right-color:#a3b0a9}
.tp-programs-course-text{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.tp-programs-course-text h3{margin:0}
.tp-programs-course-text p{margin:0!important;font-size:13px!important;color:#5b7166;line-height:1.7!important}
.tp-programs-course-state{display:inline-flex;align-items:center;background:#f2f5f3;color:#435e4c;padding:3px 10px;border-radius:7px;font-size:12px;line-height:1.6;font-weight:700}
.tp-programs-course-state--done{background:#e7f6ec;color:#126b41}
.tp-programs-course-state--action{background:#fff5df;color:#865b16}
.tp-programs-course-state--active{background:#eaf6f1;color:#126949}
.tp-programs-course-state--waiting{background:#f0f2f1;color:#58645d}
.tp-programs-course-action{display:inline-flex;align-items:center;gap:5px;align-self:center;white-space:nowrap}
.tp-programs-alert-error{color:#8b2626;background:#fff3f1;border-color:#efc9c5}
.tp-programs-admin-empty{display:block;border:1px dashed #c9d9cd;border-radius:10px;padding:14px;font-size:13px;color:#647970;background:#fbfdfb;margin:12px 0}
.tp-programs-section-row{display:flex;justify-content:space-between;align-items:center;gap:10px}
.tp-programs-counter{font-size:12px;color:#27724e;background:#eef8f1;border-radius:9px;padding:4px 10px}
.tp-programs-admin-course-title{display:flex;align-items:center;gap:11px;min-width:0;flex:1}
.tp-programs-order{display:grid;place-items:center;flex:0 0 29px;width:29px;height:29px;background:#eaf6ed;color:#186843;border-radius:9px;font-size:13px;font-weight:700}
.tp-programs-item-actions{display:flex;align-items:center;flex-wrap:wrap;gap:5px}
.tp-programs-item-actions a{border:1px solid #dbe5dd;border-radius:8px;background:#fff;color:#1b8354;font-size:12px;padding:6px 9px;text-decoration:none;white-space:nowrap}
.tp-programs-item-actions a:hover,.tp-programs-item-actions a:focus{background:#f1f8f3;border-color:#8ebca0}
.tp-programs-item-actions a.tp-programs-remove{color:#a23535;border-color:#efdad9}
.tp-programs-sortable-item{align-items:center;gap:10px}
.tp-programs-admin-panel .tp-programs-helper{color:#66766d}
@media(max-width:720px){
  .tp-programs-next{flex-wrap:wrap;align-items:flex-start;padding:17px;gap:12px}
  .tp-programs-next .tp-programs-primary{width:100%}
  .tp-programs-course-action{margin:2px 0 0 44px;align-self:flex-start}
  .tp-programs-sortable-item{align-items:flex-start;flex-direction:column}
  .tp-programs-item-actions{padding-right:40px}
}
@media(max-width:390px){.tp-programs-item-actions{padding-right:0}.tp-programs-course-action{margin-right:0}}
