/* 考勤系统主样式 — 朴素中文界面，离线可用，无外部字体 */
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", Arial, sans-serif;
  font-size: 14px;
  background: #f5f7fa;
  color: #222;
  -webkit-font-smoothing: antialiased;
}
.error-box {
  margin: 10px 0; padding: 12px 14px;
  border: 1px solid #c84a4a; border-left: 4px solid #c84a4a;
  background: #fdecec; color: #9c2b2b; border-radius: 4px;
  font-size: 13px; line-height: 1.6;
}
body { padding: 16px; max-width: 1200px; margin: 0 auto; }
/* data.xlsx 导入提醒横幅（双击 html 打开时显示） */
.data-banner {
  display: flex; align-items: center; flex-wrap: wrap;
  padding: 10px 14px; margin-bottom: 16px;
  background: #fff8e8;
  border: 1px solid #e8b93e; border-left: 5px solid #e8b93e;
  border-radius: 6px;
  font-size: 14px; font-weight: 600; color: #7a5b00;
  animation: banner-pulse 2s ease-in-out infinite;
}
.data-banner button.primary { padding: 5px 12px; font-size: 13px; }
.data-banner button.sec { padding: 5px 10px; font-size: 14px; }
@keyframes banner-pulse {
  0%, 100% { background: #fff8e8; }
  50% { background: #ffefc2; }
}
header {
  background: #1f6feb;
  color: #fff;
  padding: 14px 18px;
  border-radius: 6px;
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
header h1 { margin: 0; font-size: 18px; font-weight: 600; }
header .brand { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
header .brand-user {
  color: #fff; font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,0.18);
  padding: 3px 12px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.35);
  align-self: center;
}
header .act-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
header .act-bar button, button.btn {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}
header .act-bar button:hover, button.btn:hover { background: rgba(255,255,255,0.32); }

section.card {
  background: #fff;
  border: 1px solid #e2e8ee;
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 14px;
}
section.card h2 {
  font-size: 14px;
  color: #1f6feb;
  margin: 0 0 10px 0;
  border-bottom: 1px solid #e2e8ee;
  padding-bottom: 8px;
}

/* 标签栏 nav */
nav.tabs {
  display: flex; gap: 0;
  border-bottom: 2px solid #1f6feb;
  margin-bottom: 16px;
}
nav.tabs button {
  background: transparent; border: 0; padding: 10px 18px;
  font-size: 14px; cursor: pointer; color: #5f6975;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
nav.tabs button.active {
  color: #1f6feb; font-weight: 600;
  border-bottom-color: #1f6feb;
}

.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row label { font-size: 13px; color: #4a5560; }
.row input, .row select {
  padding: 6px 10px; border: 1px solid #c7d0d8;
  border-radius: 4px; font-size: 14px;
}
.row input[type=date] { width: 150px; }
.row input[type=number] { width: 80px; }

/* 实上下拉：窄宽度，与"今天"后的周几显示宽度一致 */
.row select.narrow-dow {
  width: 64px;
  padding: 3px 6px;
  font-size: 13px;
  text-align: center;
  text-align-last: center;
}

button {
  background: #1f6feb; color: #fff; border: 0;
  padding: 7px 14px; border-radius: 4px; cursor: pointer;
  font-size: 13px;
}
button:hover { background: #1a59cc; }
button.sec { background: #6c7a89; }
button.sec:hover { background: #586470; }
button.danger { background: #d9534f; }
button.danger:hover { background: #b94440; }
button.primary {
  background: #2f8e3d; font-size: 15px; padding: 10px 28px;
  box-shadow: 0 2px 6px rgba(47,142,61,0.32);
}
button.primary:hover { background: #277a32; }

/* 输入区表格 */
table.day {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.day th, table.day td {
  border: 1px solid #d6dce3;
  padding: 6px 8px;
  text-align: center;
}
table.day th { background: #eaf2fb; color: #1f6feb; font-weight: 600; }
table.day td.period {
  font-weight: 600;
  color: #1f6feb;
  background: #f3f8ff;
}
table.day td.subject { font-weight: 600; color: #c84a4a; }
table.day td.banke  { color: #888; font-style: italic; }
/* ====== 录入区：单表网格（首行/首列固定，可滚动） ====== */
.grid-scroll {
  max-height: 70vh;
  min-height: 200px;
  overflow: auto;
  border: 1px solid #c9d4e0;
  border-radius: 6px;
  background: #fff;
}
table.kaoqin-grid {
  border-collapse: separate;
  border-spacing: 0;
  width: max-content;   /* 表格只占内容宽度，空白留在最右侧 */
  font-size: 13px;
}
/* 表头 + 首列固定（sticky） */
.kaoqin-grid thead th,
.kaoqin-grid tbody th.col-period {
  background: #eaf2fb;
  border-right: 1px solid #c9d4e0;
  border-bottom: 1px solid #c9d4e0;
  font-weight: 600;
  color: #1f3b57;
}
.kaoqin-grid thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  text-align: center;
  padding: 8px 6px;
  white-space: nowrap;
}
.kaoqin-grid thead th.corner {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 5;
  min-width: 64px;
}
.kaoqin-grid tbody th.col-period {
  position: sticky;
  left: 0;
  z-index: 3;
  text-align: center;
  padding: 6px;
  min-width: 64px;
  background: #f3f7fc;
}
.kaoqin-grid td.cell {
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 0;
  vertical-align: top;
  background: #fff;
}
.kaoqin-grid td.cell-banke { background: #fafbfc; }
/* 状态颜色（仅作扫描提示，可手动改） */
.kaoqin-grid td.status-调课 { background: #fff8e8; }
.kaoqin-grid td.status-代课 { background: #eef7ff; }

/* 每格内部 2 行 × 3 列，行列对齐；列宽收紧到刚好显示 3 字姓名 */
.cell-grid {
  display: grid;
  grid-template-columns: 48px 48px 82px;
  grid-template-rows: auto auto;
  gap: 2px;
  padding: 3px;
}
.cg-subject {
  grid-column: 1; grid-row: 1;
  font-weight: 700; font-size: 13px; color: #c84a4a;
  background: #fbe9ec; border-radius: 3px;
  padding: 3px 2px; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cg-expected {
  grid-column: 2; grid-row: 1;
  font-size: 11px; color: #5a6573; background: #f1f5f9;
  border-radius: 3px; padding: 3px 2px; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cg-actual  { grid-column: 3; grid-row: 1; font-size: 11px; padding: 3px 1px; }
.cg-status  { grid-column: 1; grid-row: 2; }
.cg-leave   { grid-column: 2; grid-row: 2; }
.cg-note    { grid-column: 3; grid-row: 2; }
.cg-actual, .cg-status, .cg-leave, .cg-note {
  font-size: 12px; padding: 3px 2px;
  border: 1px solid #cbd5e1; border-radius: 3px;
  width: 100%; box-sizing: border-box; background: #fff;
}
.cg-actual:disabled { background: #f1f5f9; color: #94a3b8; }
.cell-banke .cg-subject { color: #94a3b8; background: #eef2f6; font-weight: 400; }

/* 第一行（科目/应上/实上）高亮，第二行（状态/请假/备注）默认灰暗 */
.cg-status, .cg-leave, .cg-note {
  background: #f4f6f8;
  color: #8a95a1;
  border-color: #e3e8ee;
}
/* 提醒高亮：实上≠应上 → 状态格(第二行第一格)亮；状态≠正常 → 请假格(第二行第二格)亮 */
.cg-status.alert, .cg-leave.alert {
  background: #fff3cd;
  color: #7a5b00;
  border-color: #e0a800;
  font-weight: 600;
}
.cg-status.alert { box-shadow: 0 0 0 1px #e0a800 inset; }

/* 整日核对摘要 */
.day-summary {
  margin-top: 10px; padding: 8px 12px;
  background: #f3f8ff; border: 1px solid #d6e2ef; border-radius: 4px;
  font-size: 13px; color: #4a5560;
}
.day-summary .ok { color: #2f8e3d; font-weight: 600; }
.day-summary .warn { color: #c84a4a; font-weight: 600; }
.day-summary .dim { color: #888; }

/* 卡片列表（已录入日期）：固定一行，横向滚动；「今天」吸附右侧不随滚动消失 */
.dates-bar {
  display: flex; flex-wrap: nowrap; gap: 6px;
  overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: thin;
}
.dates-bar::-webkit-scrollbar { height: 6px; }
.dates-bar::-webkit-scrollbar-thumb { background: #c5d3e2; border-radius: 3px; }
.dates-bar .tag {
  background: #f0f5fb; color: #1f6feb;
  padding: 5px 10px; border-radius: 4px;
  cursor: pointer; font-size: 13px;
  border: 1px solid #d6e2ef;
  white-space: nowrap; flex: 0 0 auto;
}
.dates-bar .tag.today {
  background: #1f6feb; color: #fff;
}
.dates-bar .tag.pin-today {
  position: sticky; right: 0;
  background: #fff; color: #1f6feb;
  border: 1px solid #1f6feb; font-weight: 600;
  box-shadow: -6px 0 8px -6px rgba(31,111,235,.35);
}
.dates-bar .tag.pin-today:hover { background: #eaf1fb; }
.dates-bar .tag:hover { background: #d6e2ef; }

/* 统计区周标签（一行横向滚动，与已录入日期同风格） */
.week-tabs {
  display: flex; flex-wrap: nowrap; gap: 6px; align-items: center;
  overflow-x: auto; padding-bottom: 2px;
  scrollbar-width: thin;
  flex: 1; min-width: 0; margin-left: 4px;
}
.week-tabs::-webkit-scrollbar { height: 6px; }
.week-tabs::-webkit-scrollbar-thumb { background: #c5d3e2; border-radius: 3px; }
.week-tabs .tag {
  background: #f0f5fb; color: #1f6feb;
  padding: 5px 10px; border-radius: 4px;
  cursor: pointer; font-size: 13px;
  border: 1px solid #d6e2ef;
  white-space: nowrap; flex: 0 0 auto;
  user-select: none;
}
.week-tabs .tag:hover { background: #d6e2ef; }
.week-tabs .tag.active { background: #1f6feb; color: #fff; border-color: #1f6feb; }
.week-tabs .empty { color: #8a97a6; font-size: 12px; white-space: nowrap; }

/* 提示 */
.toast {
  position: fixed; bottom: 20px; left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.78); color: #fff;
  padding: 10px 18px; border-radius: 4px;
  font-size: 13px;
  z-index: 9999;
  opacity: 0; transition: opacity 0.3s;
  max-width: 80vw;
}
.toast.show { opacity: 1; }

.empty {
  padding: 24px;
  text-align: center;
  color: #888;
  font-size: 14px;
  background: #fafbfc;
  border: 1px dashed #d6dce3;
  border-radius: 4px;
}

.dim { color: #888; font-size: 12px; }

/* 状态颜色 */
.status-正常 { color: #2f8e3d; }
.status-调课 { color: #c84a4a; }
.status-代课 { color: #c87d2b; }
.status-请假 { color: #b94440; }
.status-公差 { color: #6c5ec4; }

/* ===== 框选批量设置 ===== */
#day-input-root.batch-mode td.cell { cursor: crosshair; }
#day-input-root.batch-mode td.cell * { pointer-events: none; }
#day-input-root.batch-mode thead th,
#day-input-root.batch-mode tbody th.col-period { cursor: pointer; user-select: none; }
#day-input-root.batch-mode thead th.col-class:hover,
#day-input-root.batch-mode tbody th.col-period:hover { background: #dbe7f7; }
.kaoqin-grid td.batch-selected { outline: 2px solid #1f6feb; outline-offset: -2px; background: #e8f1ff !important; }
td.status-空堂 { background: #f1f3f5; }
td.status-缺勤 { background: #fdeaea; }
.status-空堂 { color: #6b7280; }
.status-缺勤 { color: #c0392b; }
#batch-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 9999;
  background: #fff; border: 1px solid #d0d7de; border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,.18); padding: 10px 14px;
  display: flex; gap: 10px; align-items: center; font-size: 13px; white-space: nowrap;
}
#batch-bar select { padding: 3px 4px; }
#batch-bar .cnt { font-weight: 600; color: #1f6feb; }
#batch-bar label { display: flex; gap: 4px; align-items: center; }

/* ===== 紧凑节次总览格（方案B：上科目/下教师状态，点击弹编辑窗） ===== */
/* 宽度固定：按「姓名(3字) + · + 状态(2字)」设计，选请假类型后不再变宽 */
.kaoqin-grid td.cell { padding: 0; width: 120px; min-width: 120px; max-width: 120px; }
.kcell {
  cursor: pointer; padding: 6px 8px; min-height: 46px;
  border-left: 3px solid transparent; background: #fff;
  position: relative; overflow: hidden;
}
.kcell:hover { background: #eef4fc; }
.k-sj { font-size: 13px; font-weight: 700; color: #24292f; line-height: 1.35; white-space: nowrap; }
.k-tc { font-size: 12px; margin-top: 3px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-tc.st-正常 { color: #2f8e3d; }
.k-tc.st-调课 { color: #1f6feb; }
.k-tc.st-代课 { color: #d97a00; }
.k-tc.st-请假 { color: #8250df; }
.k-tc.st-缺勤 { color: #c0392b; font-weight: 700; }
.k-tc.st-空堂 { color: #98a2ad; }
.k-tc.st-dim { color: #b0b8c1; }
/* 右上角状态角标（代课/调课），颜色与左侧边条一致 */
.k-badge {
  position: absolute; top: 3px; right: 3px;
  width: 15px; height: 15px; border-radius: 50%;
  font-size: 10px; font-weight: 700; line-height: 15px; text-align: center;
  color: #fff; pointer-events: none;
}
.k-badge.b-代课 { background: #d97a00; }
.k-badge.b-调课 { background: #1f6feb; }
.k-ctl { display: none; }
td.status-正常 .kcell { border-left-color: #2f8e3d; }
td.status-调课 .kcell { border-left-color: #1f6feb; }
td.status-代课 .kcell { border-left-color: #d97a00; }
td.status-空堂 .kcell { border-left-color: #c9d1d9; background: #f6f8fa; }
td.status-空堂 .kcell:hover { background: #eef1f4; }
td.status-缺勤 .kcell { border-left-color: #c0392b; background: #fff5f5; }
td.cell-banke .kcell { background: #fafbfc; color: #98a2ad; cursor: default; }
td.cell-banke .k-sj { color: #b0b8c1; font-weight: 400; }
/* 批量选中优先显示蓝框（覆盖状态底色观感） */
.kaoqin-grid td.cell.batch-selected { background: #e8f1ff !important; }

/* ===== 单元格编辑浮窗 ===== */
#cell-editor {
  position: fixed; z-index: 1200; width: 280px;
  background: #fff; border: 1px solid #d0d7de; border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,.22); padding: 12px 14px;
}
#cell-editor .ce-hd { font-weight: 700; font-size: 13px; margin-bottom: 8px; color: #1f6feb; }
#cell-editor .ce-row { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 13px; }
#cell-editor .ce-row label { color: #667; flex: none; }
#cell-editor .ce-exp { color: #24292f; font-weight: 600; }
#cell-editor input, #cell-editor select { flex: 1; min-width: 0; padding: 3px 6px; border: 1px solid #cfd8e3; border-radius: 4px; }
#cell-editor .ce-btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 2px; }
#cell-editor .ce-btns button { padding: 4px 16px; }

/* ===== 登录遮罩（/kq 仅管理员） ===== */
.login-mask {
  position: fixed; inset: 0; z-index: 99999;
  background: #eef2f7;
  display: flex; align-items: center; justify-content: center;
}
.login-mask.hide { display: none; }
.login-box {
  width: 320px; background: #fff; border: 1px solid #dfe4ea; border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.10); padding: 26px 24px; text-align: center;
}
.login-box .login-ico { font-size: 34px; }
.login-box h2 { font-size: 18px; margin: 6px 0 2px; color: #1f3b57; }
.login-box p { margin: 0 0 16px; font-size: 12px; }
.login-box input {
  width: 100%; box-sizing: border-box; margin-bottom: 10px;
  padding: 8px 10px; border: 1px solid #cfd8e3; border-radius: 6px; font-size: 14px;
}
.login-box button.primary {
  width: 100%; padding: 9px 0; font-size: 15px; font-weight: 600;
  background: #1f6feb; color: #fff; border: none; border-radius: 6px; cursor: pointer;
}
.login-box button.primary:hover { background: #1a5fd0; }
.login-box button.primary:disabled { background: #9dbcf0; cursor: default; }
#kq-login-err { margin-top: 10px; font-size: 13px; color: #c0392b; min-height: 18px; }

/* ===== 早读登记 ===== */
.btn-mr {
  margin-left: 10px; background: #fff; color: #1f6feb;
  border: 1px solid #1f6feb; border-radius: 5px; padding: 4px 10px;
  font-size: 13px; cursor: pointer; display: inline-flex; align-items: center;
}
.btn-mr:hover { background: #e8f1ff; }
.badge-n {
  background: #1f6feb; color: #fff; border-radius: 9px;
  font-size: 11px; padding: 0 6px; margin-left: 5px; line-height: 16px;
}
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 10000;
  background: rgba(15, 30, 50, .35); align-items: center; justify-content: center;
}
.modal-overlay.show { display: flex; }
.mr-modal {
  width: 560px; background: #fff; border-radius: 10px; padding: 16px 18px;
  box-shadow: 0 10px 40px rgba(0,0,0,.22);
}
.mr-modal h3 { margin: 0 0 12px; font-size: 15px; color: #1f3b57; }
.mr-top { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 10px; }
.mr-top .mr-lb { color: #666; }
.mr-top input { flex: 1; min-width: 0; padding: 5px 8px; border: 1px solid #cfd8e3; border-radius: 5px; font-size: 12px; }
.mr-top .mr-sel-all { display: flex; align-items: center; gap: 4px; cursor: pointer; color: #555; }
.mr-chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 150px; overflow-y: auto; margin-bottom: 10px; }
.mr-chip {
  border: 1px solid #dbe4ef; background: #f8fafc; border-radius: 14px;
  padding: 3px 10px; font-size: 12px; cursor: pointer; user-select: none;
}
.mr-chip.on { background: #e8f1ff; border-color: #1f6feb; color: #1f6feb; font-weight: 600; }
.mr-sec-title { font-size: 13px; font-weight: 600; color: #1f3b57; margin-bottom: 6px; }
.mr-sec-title span { color: #d4380d; font-weight: 700; }
.mr-tbl-wrap { max-height: 190px; overflow-y: auto; border: 1px solid #eceff3; border-radius: 6px; }
table.mr-table { width: 100%; border-collapse: collapse; font-size: 12px; }
table.mr-table th, table.mr-table td { border-bottom: 1px solid #eceff3; padding: 5px 8px; text-align: left; }
table.mr-table th { background: #eaf2fb; color: #1f3b57; font-weight: 600; position: sticky; top: 0; }
table.mr-table td input, table.mr-table td select {
  width: 100%; box-sizing: border-box; padding: 2px 4px; font-size: 12px;
  border: 1px solid #dfe4ea; border-radius: 4px;
}
table.mr-table td.mr-del { width: 34px; text-align: center; color: #c0392b; cursor: pointer; }
.modal-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.modal-btns button { padding: 5px 16px; border-radius: 6px; font-size: 13px; cursor: pointer; }
.modal-btns .btn-ok { background: #1f6feb; color: #fff; border: 1px solid #1f6feb; }
.modal-btns .btn-cancel { background: #fff; color: #555; border: 1px solid #cfd8e3; }

/* ===== 滑块验证（点登录按钮后弹出） ===== */
.slider-mask {
  position: fixed; inset: 0; z-index: 100000;
  background: rgba(15, 30, 50, .45);
  display: none; align-items: center; justify-content: center;
}
.slider-mask.show { display: flex; }
.slider-box {
  width: 320px; background: #fff; border-radius: 12px;
  padding: 20px 22px; box-shadow: 0 12px 40px rgba(0,0,0,.22);
  text-align: center;
}
.slider-box h3 { margin: 0 0 6px; font-size: 16px; color: #1f3b57; }
.slider-stage {
  position: relative; width: 280px; height: 150px; margin: 6px auto 10px;
  background: linear-gradient(135deg, #d6e6fb 0%, #b9d2ee 100%);
  border-radius: 6px; overflow: hidden;
  background-image:
    linear-gradient(135deg, #d6e6fb 0%, #b9d2ee 100%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.18) 0 6px, transparent 6px 12px);
  background-blend-mode: overlay;
  user-select: none;
}
.slider-notch {
  position: absolute; width: 42px; height: 42px;
  background: rgba(15, 50, 100, .55);
  border: 2px dashed rgba(255,255,255,.85);
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(0,0,0,.15) inset;
}
.slider-puzzle {
  position: absolute; width: 42px; height: 42px;
  background: linear-gradient(135deg, #f4c266 0%, #e89a3b 100%);
  border: 2px solid #fff; border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  cursor: grab; display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #5a3a06;
  transition: transform 0s;
  /* clip-path 跟随 JS 随机形状；drop-shadow 让拼图块边缘更立体 */
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.35));
}
.slider-puzzle.grabbing { cursor: grabbing; }
.slider-puzzle.ok { background: linear-gradient(135deg, #67c989 0%, #38a85b 100%); color: #fff; }
.slider-puzzle.fail { background: linear-gradient(135deg, #e57a7a 0%, #c0392b 100%); color: #fff; }
.slider-track {
  position: relative; width: 280px; height: 36px; margin: 0 auto 10px;
  background: #eceff3; border-radius: 18px; border: 1px solid #dbe1e8;
}
.slider-bar {
  position: absolute; left: 0; top: 0; width: 44px; height: 34px; line-height: 32px;
  background: #1f6feb; color: #fff; font-weight: 700; border-radius: 16px;
  cursor: grab; box-shadow: 0 1px 4px rgba(0,0,0,.2);
  transition: background-color 0.2s;
}
.slider-bar.grabbing { cursor: grabbing; }
.slider-bar.ok { background: #38a85b; }
.slider-bar.fail { background: #c0392b; }
.slider-btns { text-align: right; margin-top: 4px; }
.slider-btns button.slider-cancel {
  background: #fff; color: #555; border: 1px solid #cfd8e3;
  padding: 4px 14px; border-radius: 5px; font-size: 13px; cursor: pointer;
}
.slider-btns button.slider-cancel:hover { background: #f3f6fa; }
.slider-err { margin-top: 8px; min-height: 18px; font-size: 12px; color: #c0392b; }
