.student-list-panel{padding:22px}
.student-table{min-width:1420px;table-layout:fixed;border-collapse:separate;border-spacing:0}
.student-table .student-name{width:140px}
.student-table .parent-name{width:135px}
.student-table .short-value{width:90px}
.student-table .address{width:190px}
.student-table .admission-number{width:125px}
.student-table .phone{width:125px}
.student-table .email{width:180px}
.student-table .year{width:125px}
.student-table .action{width:125px}
.student-list-panel th{
  position:sticky;top:0;z-index:1;white-space:nowrap;
  background:#F3E9DC;color:#5A4632;font-size:12px;font-weight:700;
  text-transform:uppercase;letter-spacing:.05em;text-align:left;
  border-right:1px solid #E4D6C6;border-bottom:2px solid #D4B996;
}
.student-list-panel td{white-space:normal;overflow-wrap:anywhere;vertical-align:top;line-height:1.4;border-right:1px solid #EEE3D5;border-bottom:1px solid #EEE3D5;color:#4A4A4A}
.student-list-panel th,.student-list-panel td{padding:12px}
.student-list-panel th:last-child,.student-list-panel td:last-child{border-right:0}
.student-list-panel tbody tr:nth-child(even){background:#FBF7F1}
.student-list-panel tbody tr:hover{background:#F5EAD9}
.student-list-panel td:last-child{white-space:nowrap}
.student-list-panel button{margin:2px 0;padding:6px 9px;border:1px solid #D9CBB8;border-radius:6px;background:#FFFDF9;color:#8B6F47;transition:background .15s ease,border-color .15s ease}
.student-list-panel button:hover{background:#F0E4D4;border-color:#C4A875}
.student-table .empty-table{text-align:center;padding:28px;color:#A3896A;font-style:italic;border-right:0}

/* ---- Edit mode indicator on the admission form ---- */
.editing-banner{
  background:#fef3c7;border:1px solid #f59e0b;color:#92400e;padding:10px 14px;
  border-radius:8px;margin-bottom:16px;font-size:13px;font-weight:600;grid-column:1/-1;
}

/* ---- Search bar above the student table (Sample Registry style) ---- */
.student-search{
  width:100%;max-width:420px;padding:12px 18px;
  border:1px solid #D4C9BE;border-radius:999px;font-size:14px;background:#FFFAF5;
}
.student-search:focus{outline:none;border-color:#9B8B7E;box-shadow:0 0 0 3px rgba(155,139,126,.12);background:#F5F0E8}
.student-filters{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.student-class-filter{min-width:170px;padding:12px 14px;border:1px solid #D4C9BE;border-radius:999px;font-size:14px;background:#FFFAF5;color:#352e29}
.student-class-filter:focus{outline:none;border-color:#9B8B7E;box-shadow:0 0 0 3px rgba(155,139,126,.12);background:#F5F0E8}

@media print{
  body.printing-students *{visibility:hidden}
  body.printing-students .student-list-panel,
  body.printing-students .student-list-panel *{visibility:visible}
  body.printing-students .student-list-panel{
    position:absolute;top:0;left:0;width:100%;margin:0;padding:0;
    box-shadow:none;border:none;border-radius:0;background:#fff !important;
  }
  body.printing-students .student-actions,
  body.printing-students .student-filters{display:none !important}

  /* Action buttons (Edit/Delete/View) don't apply to a printed page — drop that
     column and let the remaining columns size to content so nothing clips. */
  body.printing-students .student-table th:last-child,
  body.printing-students .student-table td:last-child{display:none !important}
  body.printing-students .student-table{
    table-layout:auto;min-width:0;width:100%;
  }
  body.printing-students .student-table th,
  body.printing-students .student-table td{
    width:auto !important;font-size:11px;padding:7px 6px;
  }
  body.printing-students .student-table th{
    text-transform:none;letter-spacing:normal;
  }
}
