/* =========================================================
   V28.7.81 — Course Admin UX Cleanup
   Compact cards + full-size editor dialog + lean pricing table
   ========================================================= */
.v28781-pricing-admin{margin-bottom:18px!important}
.v28781-price-table{min-width:760px}
.v28781-price-table th:nth-child(1){width:32%}
.v28781-price-table th:nth-child(2),.v28781-price-table th:nth-child(3){width:18%}
.v28781-price-table th:nth-child(4){width:18%}
.v28781-price-table th:last-child{width:110px}
.v28781-price-table input,.v28781-price-table select{width:100%;min-width:120px!important}
.v28781-price-table td:last-child{text-align:right}

.v28781-course-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}
.v28781-course-card{background:#fff;border:1px solid #e2e7ef;border-radius:18px;padding:17px 18px;box-shadow:0 8px 22px rgba(27,39,72,.045);display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:15px 18px;align-items:start;min-width:0;overflow:hidden}
.v28781-course-top{min-width:0}.v28781-course-top h3{font-size:17px!important;line-height:1.28!important;margin:0!important;color:#16213a!important;overflow-wrap:anywhere}
.v28781-skill-block{min-width:0;border-left:1px solid #edf0f5;padding-left:16px}.v28781-skill-block>small{display:block;color:#7b8799;font-size:9px;font-weight:950;letter-spacing:.08em;text-transform:uppercase;margin:1px 0 8px}
.v28781-course-card .v28736-skills{gap:5px!important}.v28781-course-card .v28736-skills span{font-size:9px!important;padding:5px 7px!important;background:#f7f9fc!important}
.v28781-card-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1.1fr;gap:9px;border-top:1px solid #eef1f5;padding-top:12px}
.v28781-card-actions .btn,.v28781-card-actions .v28736-manage-btn{width:100%!important;min-height:38px!important;margin:0!important;font-size:10px!important;padding:8px 11px!important}
.v28781-edit-btn{cursor:pointer;color:#34405a!important;background:#f7f9fc!important;border:1px solid #dce2eb!important}
.v28781-edit-btn:hover{background:#eef2f8!important}

body.v28781-modal-open{overflow:hidden}
.v28781-course-dialog{width:min(820px,calc(100vw - 36px));max-height:min(90vh,900px);padding:0;border:0;border-radius:22px;background:#fff;box-shadow:0 28px 90px rgba(12,22,48,.28);overflow:hidden;color:#17213a}
.v28781-course-dialog::backdrop{background:rgba(17,26,48,.55);backdrop-filter:blur(3px)}
.v28781-dialog-shell{display:flex;flex-direction:column;max-height:min(90vh,900px)}
.v28781-dialog-head{display:flex;justify-content:space-between;gap:18px;padding:20px 22px 17px;border-bottom:1px solid #edf0f4;background:linear-gradient(180deg,#fbfcff,#fff)}
.v28781-dialog-head h2{font-size:23px;line-height:1.2;margin:3px 0 5px;color:#17213a}.v28781-dialog-head p{font-size:11px;color:#7b8799;margin:0}
.v28781-dialog-close{width:38px;height:38px;flex:0 0 38px;border:1px solid #e1e6ee;border-radius:12px;background:#fff;color:#4d5a70;font-size:22px;line-height:1;cursor:pointer}.v28781-dialog-close:hover{background:#f4f6fa;color:#16213a}
.v28781-dialog-body{overflow:auto;padding:18px 22px 4px;display:grid;gap:14px}
.v28781-editor-section{border:1px solid #e4e8ef;border-radius:17px;background:#fff;padding:16px}
.v28781-section-head{display:flex;gap:11px;align-items:flex-start;margin-bottom:14px}.v28781-section-head>span{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:9px;background:#edf1ff;color:#4459d9;font-size:10px;font-weight:1000;flex:0 0 auto}.v28781-section-head h3{font-size:14px;margin:0 0 3px;color:#1d2942}.v28781-section-head p{font-size:10px;margin:0;color:#8490a2}
.v28781-wide-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:end}.v28781-wide-form label,.v28781-description-form label,.v28781-access-form label{font-size:10px;font-weight:900;color:#58657a}.v28781-wide-form input,.v28781-description-form textarea,.v28781-access-form input{width:100%;margin-top:6px}
.v28781-description-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:end;margin-top:10px}.v28781-description-form textarea{resize:vertical;min-height:92px}
.v28781-feature-list{display:grid;gap:8px}.v28781-feature-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;background:#fafbfd;border:1px solid #e8ecf2;border-radius:12px;padding:7px}
.v28781-feature-text-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:center}.v28781-feature-text-form input{width:100%}
.v28781-feature-tools{display:flex;gap:4px}.v28781-feature-tools form{margin:0}.v28781-feature-tools button{width:31px;height:31px;border:1px solid #dce2eb;background:#fff;border-radius:8px;font-weight:950;cursor:pointer;color:#47546b}.v28781-feature-tools button:hover{background:#f1f4f8}.v28781-feature-tools button.danger{color:#c92e2e;background:#fff5f5;border-color:#ffd6d6}
.v28781-feature-add{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-top:10px}.v28781-feature-add input{width:100%}.v28781-feature-empty{font-size:10px;color:#8490a2;background:#fafbfd;border:1px dashed #dce2ec;padding:11px;border-radius:10px;margin:0}
.v28781-access-section{background:#fbfcff}.v28781-access-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:9px;align-items:end}
.v28781-dialog-foot{display:flex;justify-content:space-between;gap:10px;padding:14px 22px 18px;border-top:1px solid #edf0f4;background:#fff}.v28781-dialog-foot .btn{margin:0!important}

@media(max-width:960px){.v28781-course-grid{grid-template-columns:1fr}.v28781-course-card{grid-template-columns:1.2fr 1fr}}
@media(max-width:680px){.v28781-course-card{grid-template-columns:1fr}.v28781-skill-block{border-left:0;border-top:1px solid #edf0f5;padding:12px 0 0}.v28781-card-actions{grid-template-columns:1fr}.v28781-course-dialog{width:calc(100vw - 18px);max-height:94vh;border-radius:18px}.v28781-dialog-shell{max-height:94vh}.v28781-dialog-head,.v28781-dialog-body,.v28781-dialog-foot{padding-left:14px;padding-right:14px}.v28781-wide-form,.v28781-description-form,.v28781-feature-row,.v28781-feature-text-form,.v28781-feature-add,.v28781-access-form{grid-template-columns:1fr}.v28781-feature-tools{justify-content:flex-end}.v28781-dialog-foot{flex-direction:column}.v28781-dialog-foot .btn{width:100%}}
