#program-dialog{width:min(1200px,96vw);max-height:92vh;overflow:auto}#program-dialog .dialog-head{position:sticky;top:-28px;background:#fff;z-index:1;padding:12px 0}#program-dialog .program-table{white-space:normal;table-layout:fixed;width:100%}#program-dialog .program-table th:first-child{width:50%}#program-dialog .program-table td,#program-dialog .program-table th{padding:10px 12px;overflow-wrap:anywhere;vertical-align:top}#program-dialog h3{background:#1b8d85;color:#fff;font-weight:400;padding:12px;margin-bottom:0}#program-dialog .program-total{text-align:right;margin:24px 0}#program-count{margin:16px 24px}#program-search{min-width:220px}
#program-dialog textarea{width:100%;min-height:44px;resize:vertical;padding:7px;box-sizing:border-box;font:inherit}#program-dialog .program-toggle{width:28px;height:28px;padding:0;margin-right:8px;font-size:20px}#program-dialog .program-leaf{display:inline-block;width:36px}#program-dialog .program-actions{display:flex;flex-wrap:wrap;gap:8px}#program-dialog tr[hidden]{display:none}#program-message{color:#16717b}
#program-dialog .program-table select{width:100%;min-height:44px;padding:7px;font:inherit;box-sizing:border-box}
#program-rows button[data-action="view"]{background:#087f8c;color:#fff;border-color:#087f8c}#program-rows button[data-action="edit"],#program-edit{background:#2459b8;color:#fff;border-color:#2459b8}#program-rows button[data-action="delete"],#program-delete{background:#b83232;color:#fff;border-color:#b83232}#program-rows button:hover,#program-edit:hover,#program-delete:hover{filter:brightness(.9)}#program-rows button:focus-visible,#program-edit:focus-visible,#program-delete:focus-visible{outline:3px solid #f0b429;outline-offset:3px}
#program-rows button[data-action="visibility"]{background:#62549b;color:white;border-color:#62549b}
#program-dialog{width:calc(100vw - 32px);max-width:none;height:calc(100vh - 32px);max-height:none;box-sizing:border-box;padding:16px 20px;border-radius:4px}#program-dialog .dialog-head{top:-16px;padding:4px 0 12px}#program-dialog .dialog-head h2{font-size:20px;font-weight:400;margin:0 auto}#program-detail{min-height:calc(100% - 64px);display:flex;flex-direction:column}#program-dialog .program-table th:first-child{width:67%}#program-dialog .program-table td,#program-dialog .program-table th{padding:6px 8px;font-size:14px;border-right:1px solid #eee}#program-dialog .program-table td:not(:first-child){text-align:right}#program-dialog .program-table th{font-weight:400;color:#666;border-bottom:1px solid #1b8d85}#program-dialog .program-toggle{width:17px;height:17px;min-height:0;background:#a1a1a1;color:white;border:0;border-radius:0;font-size:16px;line-height:17px;margin-right:7px}#program-dialog .program-leaf{width:24px}#program-dialog .program-total{margin-top:auto;padding-top:24px;margin-bottom:0;color:#555}#program-dialog .program-subjects{margin:12px 0}#program-dialog .program-subjects summary{cursor:pointer;color:#087f8c;padding:10px 0}#program-dialog .program-subjects th:first-child{width:67%}#program-dialog h3{margin-top:10px;padding:10px;font-size:16px}#program-dialog #program-message:empty{display:none}@media(max-width:800px){#program-dialog{width:98vw;height:96vh;padding:12px}#program-dialog .program-table{min-width:700px}#program-dialog .program-subjects .program-table{min-width:500px}}
#program-dialog .program-subjects{border:1px solid #dce8eb;border-radius:10px;background:#fff;margin:16px 0;overflow:hidden;flex-shrink:0}#program-dialog .program-subjects summary{display:flex;align-items:center;gap:10px;list-style:none;padding:14px 18px;background:#f1f8f9;color:#24565d;font-size:15px;font-weight:600;cursor:pointer}#program-dialog .program-subjects summary::-webkit-details-marker{display:none}#program-dialog .program-subjects summary::before{content:'+';display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:5px;background:#dceff1;color:#087f8c;font-size:18px;font-weight:400}#program-dialog .program-subjects[open] summary::before{content:'−'}#program-dialog .program-subjects summary:focus-visible{outline:3px solid #f0b429;outline-offset:-3px}#program-dialog .program-subjects .table-wrap{margin:0;padding:0 16px 8px}#program-dialog .program-subjects .program-table th{background:#fff;text-align:left;padding:13px 12px;font-size:12px;font-weight:600;color:#697d85;border-bottom:1px solid #dce8eb;border-right:0}#program-dialog .program-subjects .program-table th:first-child{width:65%}#program-dialog .program-subjects .program-table td{padding:12px;vertical-align:middle;text-align:left;line-height:1.5;border-right:0;border-bottom:1px solid #edf1f3;color:#344650}#program-dialog .program-subjects .program-table tr:last-child td{border-bottom:0}#program-dialog .program-subjects .program-table tbody tr:hover{background:#f8fbfc}#program-dialog .program-subjects select{min-height:40px;border:1px solid #ccdce2;border-radius:7px;background:#fff;color:#344650;padding:8px 30px 8px 12px;font-size:14px;cursor:pointer}#program-dialog .program-subjects select:focus{outline:2px solid #1b8d85;outline-offset:2px}#program-dialog .program-subjects textarea{border:1px solid #d7e3e8;border-radius:7px;min-height:44px;padding:9px 12px;line-height:1.5;background:#fff}@media(max-width:800px){#program-dialog .program-subjects .table-wrap{padding:0 6px 6px}#program-dialog .program-subjects summary{padding:12px}#program-dialog .program-subjects .program-table th:first-child{width:58%}}

.program-create-form{display:grid;gap:15px;padding:15px}.program-create-form label{display:grid;gap:7px}.program-create-form input,.program-create-form select{padding:10px;border:1px solid #cbd8dc}.program-create-form button{justify-self:start}.program-row-tools{display:flex;gap:6px;align-items:center;margin-top:6px;font-size:12px}
#programs-view .toolbar{flex-wrap:wrap}#programs-view .filters{flex-wrap:wrap;justify-content:flex-end}#program-new{white-space:nowrap}#program-detail input[data-program-visible]{display:inline-block;width:auto;margin:0 7px 0 0}

#program-rows .program-list-total{white-space:normal;max-width:650px;margin-top:7px;color:#52676e;font-size:13px;line-height:1.6}#program-dialog .program-hours-summary{flex-shrink:0;white-space:normal;margin:12px 0;padding:14px 18px;border:1px solid #c7e5e8;border-radius:8px;background:#eef9fa;color:#24565d;line-height:1.7}#program-dialog .program-hours-summary textarea{min-height:75px}

/* Program preview layout matches the source catalog. */
#program-dialog{width:calc(100vw - 6px);height:calc(100vh - 8px);max-height:none;padding:0 16px;border:0;border-top:5px solid #1b8d85;border-radius:0;color:#555;font-family:var(--font);font-size:14px}
#program-dialog .dialog-head{position:relative;top:0;min-height:44px;padding:0;margin:0;border:0;display:flex;align-items:center;justify-content:center;background:#fff}
#program-dialog .dialog-head h2{font-size:18px;font-weight:400;text-align:center;margin:0}
#program-dialog #program-close{position:absolute;right:0;top:5px;border:0;background:transparent;color:#147d77;font-size:24px;padding:4px;min-height:30px}
#program-detail{min-height:calc(100% - 44px);display:flex;flex-direction:column}
#program-dialog .program-meta-row{display:grid;grid-template-columns:190px 1fr;align-items:center;min-height:54px;gap:12px;flex-shrink:0}
#program-dialog .program-meta-label{color:#999;padding-left:4px}.program-required{color:#e64c4c}
#program-dialog .program-meta-value{padding:10px 0 6px;border-bottom:1px solid #cfd3d5;min-height:20px}
#program-dialog .program-composition-heading{display:flex;align-items:center;justify-content:space-between;background:#1b8d85;min-height:39px;margin-top:8px;flex-shrink:0}
#program-dialog .program-composition-heading h3{background:none;margin:0;padding:10px;font-size:16px;color:white}
#program-dialog #program-edit.program-pencil{border:0;background:transparent;color:#c5c5c5;font-size:22px;padding:4px 12px;min-height:30px}
#program-dialog .program-plan-wrap{padding:0;margin:0;flex-shrink:0}
#program-dialog .program-plan th:first-child{width:auto}
#program-dialog .program-plan th{padding:15px 8px;text-align:center;white-space:nowrap;color:#666;border-right:1px solid #f3f3f3;border-bottom:1px solid #1b8d85;font-size:14px;font-weight:400}
#program-dialog .program-plan td{padding:7px 8px;font-size:14px;border-bottom:1px solid #e9e9e9;border-right:1px solid #eee;line-height:1.25}

#program-dialog .program-toggle{width:15px;height:15px;font-size:15px;line-height:15px;vertical-align:middle;margin-right:7px;padding:0}
#program-dialog .program-leaf{width:22px}.program-akpp{color:#b06ba3}
#program-dialog .program-subjects{border:0;border-radius:0;margin:12px 0;background:white;flex-shrink:0}
#program-dialog .program-subjects summary{padding:6px 8px;background:white;color:#999;font-size:12px;font-weight:400}
#program-dialog .program-subjects summary::before{width:15px;height:15px;border-radius:0;background:#aaa;color:white;font-size:15px}
#program-dialog .program-bottom{margin-top:auto;flex-shrink:0;padding-top:24px}
#program-dialog .program-total{margin:0;padding:12px 10px;text-align:right;font-size:14px;line-height:1.6;color:#666}
#program-dialog .program-footer{display:flex;justify-content:flex-end;flex-shrink:0;padding:16px 16px 12px;min-height:42px}
#program-dialog #program-bottom-close{background:transparent;border:0;color:#147d77;text-transform:uppercase;font-size:14px;padding:8px 12px}
#program-dialog.program-editing .program-actions{padding:8px 0}#program-dialog.program-editing .program-plan th{white-space:normal}
@media(max-width:800px){#program-dialog .program-meta-row{grid-template-columns:150px 1fr}#program-dialog .program-plan{min-width:900px}#program-dialog .program-total{text-align:left}#program-dialog .program-meta-label{font-size:12px}}

@media(min-width:801px) and (max-width:1400px){#program-dialog .program-plan col:nth-child(1){width:58%!important}#program-dialog .program-plan col:nth-child(2){width:8%!important}#program-dialog .program-plan col:nth-child(3){width:12%!important}#program-dialog .program-plan col:nth-child(4){width:15%!important}#program-dialog .program-plan col:nth-child(5){width:7%!important}}

.program-exam-flag{color:#ec8b38;margin-right:4px}
