/* M-52 C-132「管理 · 合同」：一张表列合同，点一行在抽屉里看详情；新签 / 修改 / 课程包用弹窗。打印一式两份（机构留存、家长留存各一页起）。只用 tokens.css 的档位。 */
.ct{padding:16px 0 4px}
.ct-bar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 16px;padding:0 20px 14px}
.ct-q input{min-height:44px;width:min(320px,70vw);border:1px solid transparent;border-radius:var(--r-sm);background:var(--tonal);padding:0 14px;font:inherit;color:var(--ink)}
.ct-q input:focus{background:#fff;border-color:var(--line2)}
.ct .sr,.ct-form .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ct-wrap{overflow:auto;border-top:1px solid var(--line)}
.ct-t{width:100%;border-collapse:collapse;font-size:14px}
.ct-t th{position:sticky;top:0;background:#fff;text-align:left;font-size:13px;font-weight:600;color:var(--muted);padding:10px 12px;border-bottom:1px solid var(--line);white-space:nowrap}
.ct-t td{padding:10px 12px;border-bottom:1px solid var(--tonal);vertical-align:top}
.ct-t tbody tr{cursor:pointer}
.ct-t tbody tr:hover td,.ct-t tbody tr:focus-visible td{background:var(--soft)}
.ct-t tbody tr:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
.ct-t td b{font-weight:600}
.ct-t td small{display:block;font-size:12px;color:var(--faint)}
.ct-t .r{text-align:right}
.ct-t td.late{color:var(--amber-t);font-weight:600}
.ct-t th:first-child,.ct-t td:first-child{padding-left:20px}.ct-t th:last-child,.ct-t td:last-child{padding-right:20px}
.ct .empty{padding:36px 20px}
.ct-st{margin:0 0 12px;font-size:13px;color:var(--muted)}
.ct-dl{display:grid;grid-template-columns:1fr 1fr;gap:10px 20px;margin:0 0 16px}
.ct-dl>div{min-width:0}
.ct-dl dt{font-size:12px;color:var(--faint)}
.ct-dl dd{margin:2px 0 0;font-size:15px;color:var(--ink)}
.ct-dl dd small{display:block;font-size:12px;color:var(--faint)}
.ct-acts{display:flex;flex-wrap:wrap;gap:8px;padding:12px 0 16px;border-bottom:1px solid var(--tonal)}
.mpdrawer h2 small{font-size:13px;font-weight:500;color:var(--faint)}
.mpdrawer h3{font-size:14px;font-weight:700;margin:16px 0 6px}
.ct-log{list-style:none;margin:0;padding:0;font-size:13px;color:var(--muted);line-height:1.6}
.ct-log li{padding:5px 0;border-top:1px solid var(--tonal)}.ct-log li:first-child{border-top:0}
.ct-log .num{color:var(--faint);margin-right:4px}
.ct-sum{margin:6px 0 0;font-size:14px;color:var(--muted)}.ct-sum b{color:var(--ink);font-size:16px}
.modal h2 small{font-size:14px;font-weight:500;color:var(--faint)}
.ct-pks{list-style:none;margin:10px 0 18px;padding:0}
.ct-pks li{display:flex;align-items:center;gap:12px;padding:8px 0;border-top:1px solid var(--tonal)}.ct-pks li:first-child{border-top:0}
.ct-pks li>div{flex:1;min-width:0;display:flex;flex-direction:column}
.ct-pks small{font-size:12px;color:var(--faint)}
.ct-pkf{padding-top:12px;border-top:1px solid var(--line)}
.ct-pkf h3{margin:0;font-size:16px;font-weight:700}
.ct-chk{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:14px}
@media (max-width:700px){.ct-dl{grid-template-columns:1fr}}
/* 打印合同：一式两份，每份从新的一页开始 */
@media print{
  #print-sheet.ct-print .ct-copy{break-after:page;color:#000;line-height:1.65}
  #print-sheet.ct-print .ct-copy:last-child{break-after:auto}
  #print-sheet.ct-print header{border-bottom:1.5px solid #000;margin-bottom:5mm;padding-bottom:2mm}
  #print-sheet.ct-print h1{font-size:17pt;margin:0 0 1mm;text-align:center}
  #print-sheet.ct-print header p{margin:0;font-size:9.5pt;text-align:center}
  #print-sheet.ct-print .ct-pt{width:100%;border-collapse:collapse;font-size:10pt;margin-bottom:5mm}
  #print-sheet.ct-print .ct-pt th,#print-sheet.ct-print .ct-pt td{border:1px solid #000;padding:1.6mm 2.4mm;text-align:left;vertical-align:top}
  #print-sheet.ct-print .ct-pt th{width:18mm;white-space:nowrap;font-weight:600}
  #print-sheet.ct-print section{margin:0 0 3mm;break-inside:avoid}
  #print-sheet.ct-print h3{font-size:11pt;margin:0 0 1mm}
  #print-sheet.ct-print p{font-size:10pt;margin:0 0 1mm}
  #print-sheet.ct-print .ct-att{margin-top:5mm;padding-top:3mm;border-top:1px dashed #000}
  #print-sheet.ct-print footer{display:flex;justify-content:space-between;gap:6mm;margin-top:10mm;font-size:10.5pt;break-inside:avoid}
  #print-sheet.ct-print .ct-ver{font-size:8pt;margin-top:4mm}
}
