:root {
  --blue: #2468b1;
  --blue-dark: #1a5e9a;
  --blue-line: #1b609c;
  --cyan: #1eb0ec;
  --page: #f9f9f9;
  --line: #bdc8d3;
  --text: #333;
  font-family: "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-width: 1180px; height: 100%; color: var(--text); background: #333; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; display: flex; flex-direction: column; background: var(--page); }
.demo-watermark { position: fixed; z-index: 20; right: 8px; bottom: 38px; color: rgba(255, 0, 0, .5); font-size: 12px; pointer-events: none; }

.topbar { height: 70px; flex: 0 0 70px; display: flex; align-items: stretch; background: var(--blue); color: #fff; border-bottom: 2px solid #d8d8d8; }
.brand { width: 575px; display: flex; align-items: center; padding-left: 35px; white-space: nowrap; }
.brand-image { width: 421px; height: 57px; background: url("./assets/brand.png") center / contain no-repeat; }
.motto { flex: 1; height: 57px; align-self: center; background: url("./assets/motto.png") center / 535px 57px no-repeat; }
.top-actions { width: 500px; display: flex; align-items: stretch; border-left: 1px solid rgba(0,0,0,.16); }
.top-action { width: 77px; flex: 0 0 77px; padding: 0; border: 0; border-right: 1px solid rgba(0,0,0,.2); color: white; background: transparent; display: flex; align-items: center; justify-content: center; }
.top-action:hover { background: rgba(0,0,0,.1); }
.action-art { display: block; width: 76px; height: 60px; background-position: center; background-size: 100% 100%; background-repeat: no-repeat; }
.home-action .action-art { background-image: url("./assets/home.png"); }
.password-action .action-art { background-image: url("./assets/password.png"); }
.switch-action .action-art { background-image: url("./assets/switch.png"); }
.logout-action .action-art { background-image: url("./assets/logout.png"); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.account-panel { flex: 1; padding: 8px 9px 3px; min-width: 164px; }
.account-chip { height: 29px; background: #1562a8; border-radius: 18px; display: flex; align-items: center; gap: 4px; padding: 0 8px; font-size: 13px; white-space: nowrap; }
.user-icon { font-size: 17px; }
.mail-icon { margin-left: auto; font-size: 17px; }
.notice-count { padding: 1px 8px; background: #ef2c2c; color: #fff; font-size: 12px; }
.current-date { text-align: center; font-size: 13px; margin-top: 4px; }

.workspace { flex: 1; display: flex; min-height: 0; }
.sidebar { width: 230px; flex: 0 0 230px; position: relative; overflow: hidden; background: var(--blue); color: #fff; border-right: 1px solid #d1d1d1; }
.sidebar-title { height: 50px; display: flex; align-items: center; padding-left: 35px; gap: 9px; font-size: 16px; background: #2a70b7; border-bottom: 1px solid #1a5a96; }
.hamburger { font-size: 24px; line-height: 1; }
.menu-item, .sub-item { width: 100%; border: 0; color: #fff; text-align: left; }
.menu-item { height: 41px; padding-left: 36px; background: #2775bd; border-bottom: 1px solid #1c65a6; font-size: 14px; }
.menu-icon { display: inline-block; width: 28px; font-size: 21px; vertical-align: -2px; }
.selected-group { background: var(--cyan); }
.sub-menu { background: #205f9b; padding-left: 22px; }
.sub-item { height: 35px; padding: 0 18px; background: transparent; border-bottom: 1px dotted rgba(255,255,255,.22); font-size: 14px; }
.sub-item.active { color: #fff900; }
.sub-heading { display: flex; align-items: center; justify-content: space-between; padding-left: 0; }
.sub-heading > span:first-child { font-size: 24px; }
.chevron { font-size: 20px; }
.menu-secondary { background: #2775bd; }
.side-scrollbar { position: absolute; top: 50px; right: 0; width: 14px; height: calc(100% - 50px); background: #e9e9e9; }
.scroll-thumb { width: 12px; height: 250px; background: #9ec4e4; border-radius: 0 0 7px 7px; }
.collapse-handle { position: absolute; right: -1px; top: 430px; width: 15px; height: 30px; color: #999; background: #f7f7f7; font-size: 20px; text-align: center; line-height: 30px; }

.content { flex: 1; min-width: 0; background: #fff; padding: 8px 28px 0 26px; }
.content-toolbar { height: 38px; border-bottom: 1px solid #d6d6d6; }
.new-button { border: 0; background: #5c9cdb; color: #fff; height: 26px; min-width: 73px; font-size: 13px; border-radius: 2px; }
.new-button span { font-size: 15px; margin-right: 4px; }
.leave-panel { margin-top: 5px; }
.panel-heading { height: 34px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px 0 28px; border: 1px solid var(--line); background: #ecf2f8; }
.heading-title { font-family: "宋体", SimSun, serif; font-size: 14px; line-height: 32px; white-space: nowrap; }
.tri { display: inline-block; margin-right: 16px; color: #224d70; font-size: 12px; transform: translateY(-1px); }
.warning { color: red; font-weight: 700; margin-left: 8px; }
.summary { font-size: 13px; white-space: nowrap; }
em { color: red; font-style: normal; padding: 0 6px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 1040px; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
th, td { border: 1px solid var(--line); height: 33px; padding: 0 8px; text-align: center; font-weight: 400; white-space: nowrap; }
th { background: #efefef; height: 32px; }
tbody tr:nth-child(odd) { background: #f6f6f4; }
tbody tr:nth-child(even) { background: #f9f9f9; }
td a { color: #333; text-decoration: underline; }
td.status, td.cancel { color: red; font-weight: 700; }
.col-index { width: 63px; }.col-student { width: 170px; }.col-time { width: 32%; }.col-days { width: 125px; }.col-type { width: 145px; }.col-location { width: 18%; }.col-status { width: 16%; }.col-cancel { width: 125px; }
.pagination { height: 58px; display: flex; align-items: flex-start; justify-content: flex-end; gap: 3px; padding-top: 8px; font-size: 13px; }
.pagination button { height: 23px; border: 0; background: #c9c9c9; color: #fff; padding: 0 8px; font-size: 12px; }
.pagination button:disabled { cursor: default; }
.pagination input { width: 39px; height: 23px; border: 1px solid #d8d8d8; text-align: center; }
.jump-label { margin-left: 6px; }

.statusbar { height: 34px; flex: 0 0 34px; border-top: 1px solid #ddd; background: #efefef; text-align: right; padding: 8px 20px; font-size: 12px; color: #222; }

dialog { border: 0; border-radius: 3px; padding: 0; width: 520px; box-shadow: 0 12px 50px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(0,0,0,.35); }
.modal-card { background: #fff; }
.modal-header { height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 15px; color: #fff; background: var(--blue); }
.modal-close { border: 0; background: transparent; color: #fff; font-size: 25px; line-height: 1; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 22px 24px 10px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid input, .form-grid select { height: 34px; border: 1px solid #bbc8d4; padding: 0 9px; color: #333; }
.modal-note { margin: 0 24px; color: #777; font-size: 12px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 18px 24px 20px; }
.primary-button, .secondary-button { border: 0; height: 32px; padding: 0 16px; border-radius: 2px; }
.primary-button { color: #fff; background: #2877be; }.secondary-button { color: #555; background: #e8e8e8; }

@media (max-width: 1450px) {
  .brand { width: 445px; padding-left: 14px; }.brand-image { transform: scale(.82); transform-origin: left center; }.motto { background-size: 435px 46px; }.top-actions { width: 430px; }.top-action { width: 72px; flex-basis: 72px; }.action-art { width: 72px; }
  .content { padding-right: 18px; padding-left: 18px; }
}
