/* Scoped semester history; existing entry/summary styles remain intact. */
.cp-history{min-width:0;color:#133b5e}.cp-history *{box-sizing:border-box}.cp-history .cph-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px}.cp-history h3{margin:0 0 5px;font-size:18px}.cp-history p{margin:5px 0;font-size:12px;color:#6482a0;line-height:1.7}.cp-history .cph-tag{font-size:11px;background:#edf6ff;color:#1b6caf;padding:5px 9px;border-radius:20px;white-space:nowrap}.cp-history .cph-filters{display:grid;grid-template-columns:1fr 1fr 1.3fr 1fr 1fr auto;gap:12px;align-items:end;padding:15px;background:#f4f8fd;border:1px solid #dfebf8;border-radius:10px}.cp-history label{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:12px}.cp-history input,.cp-history select{min-width:0;max-width:100%;width:100%;height:36px;border:1px solid #c6d9ed;border-radius:6px;background:white;color:#173e63;padding:6px 8px;font:inherit}.cp-history button{border:1px solid #bbd5ed;border-radius:6px;color:#0864aa;background:white;padding:7px 11px;font:inherit;cursor:pointer;white-space:nowrap}.cp-history button.primary-button{background:#136ab2;color:white}.cp-history button:disabled{opacity:.45;cursor:default}.cp-history .cph-actions{display:flex;gap:7px}.cp-history .cph-note{margin-top:10px}.cp-history .cph-scroll{width:100%;max-width:100%;overflow-x:auto;margin-top:13px}.cp-history table{border-collapse:collapse;width:100%;min-width:800px;font-size:13px}.cp-history th,.cp-history td{padding:12px 10px;text-align:left;border-bottom:1px solid #e4edf7;white-space:nowrap}.cp-history th{background:#f0f6fc;color:#42698d;font-size:12px}.cp-history td small{display:block;margin-top:4px;color:#7791a9;font-size:11px}.cp-history td.cph-remark{max-width:280px;min-width:100px;white-space:normal;overflow-wrap:anywhere}.cp-history .cph-status{display:inline-block;background:#f0f3f7;color:#6f7c8b;border-radius:5px;padding:3px 7px;font-size:12px}.cp-history .cph-status.is-valid{background:#e7f6ef;color:#218563}.cp-history [data-cp-reverse]{color:#bb4646;border-color:#ebc5c5}.cp-history .cph-pagination{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:15px;font-size:12px}.cp-history .cph-pagination label{flex-direction:row;align-items:center;gap:6px}.cp-history .cph-pagination input{width:64px}.cp-history .cph-pagination select{width:80px}.cp-history .cph-pagination>div{display:flex;gap:7px}.cp-history .cph-message{padding:22px 14px;margin-top:14px;background:#f2f7fc;border-radius:8px;font-size:13px}.cp-history .cph-message.is-error{background:#fff2ee;color:#a54a30}.cp-history .cph-message button{margin-left:12px}.cp-history :focus-visible{outline:3px solid #8fc5ff;outline-offset:2px}
@media(max-width:1250px){.cp-history .cph-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.cp-history .cph-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:11px;gap:11px}.cp-history .cph-heading{flex-direction:column}.cp-history input,.cp-history select{font-size:16px}.cp-history .cph-actions{flex-wrap:wrap}.cp-history .cph-actions button{flex:1}.cp-history .cph-pagination{gap:10px}.cp-history .cph-pagination>span{width:100%}.cp-history .cph-note{font-size:11px}}
