/* 客服任务交接台 - 样式（浅色主题，适配内网办公电脑） */

:root {
  --brand: #1f6fd0;
  --brand-dark: #17579f;
  --brand-soft: #e8f1fd;
  --bg: #f4f6fa;
  --panel: #ffffff;
  --line: #e2e7f0;
  --line-strong: #cfd8e6;
  --text: #1c2430;
  --muted: #6b7788;
  --danger: #d64545;
  --danger-soft: #fdeceb;
  --warn: #d98324;
  --warn-soft: #fdf3e3;
  --ok: #1f9d61;
  --ok-soft: #e6f6ee;
  --info: #3b7dd8;
  --info-soft: #e9f1fd;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(23, 43, 77, 0.06), 0 8px 24px rgba(23, 43, 77, 0.06);
  --shadow-sm: 0 1px 2px rgba(23, 43, 77, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

a { color: var(--brand); text-decoration: none; }
button { font-family: inherit; font-size: inherit; }

/* ----------------------------- 登录页 ----------------------------- */

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, #eef4fd 0%, #f7f9fc 45%, #eaf2ff 100%);
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--panel);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 32px 32px 24px;
  border: 1px solid var(--line);
}

.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.login-brand .logo {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; letter-spacing: 1px;
}
.login-brand h1 { font-size: 19px; margin: 0; }
.login-brand p { margin: 0; color: var(--muted); font-size: 12.5px; }
.login-tip {
  margin: 18px 0 6px; padding: 10px 12px; border-radius: 8px;
  background: var(--brand-soft); color: #24537f; font-size: 12.5px; line-height: 1.7;
}
.login-footer { margin-top: 18px; color: var(--muted); font-size: 12px; text-align: center; }

/* ----------------------------- 表单 ----------------------------- */

.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; }
.field .req { color: var(--danger); margin-left: 2px; }

input[type="text"], input[type="password"], input[type="number"], input[type="datetime-local"],
input[type="date"], select, textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 111, 208, .12);
}
textarea { resize: vertical; min-height: 66px; }
input[disabled], select[disabled] { background: #f5f7fa; color: var(--muted); }

.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1 1 160px; min-width: 0; }

/* ----------------------------- 按钮 ----------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 7px 14px; border-radius: 8px; border: 1px solid var(--line-strong);
  background: #fff; color: var(--text); cursor: pointer;
  transition: background .15s, border-color .15s, opacity .15s;
  white-space: nowrap;
}
.btn:hover { background: #f7f9fc; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-danger { background: #fff; border-color: #f0bcbc; color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-ok:hover { filter: brightness(.95); }
.btn-sm { padding: 4px 9px; font-size: 12.5px; border-radius: 6px; }
.btn-block { width: 100%; padding: 10px; font-size: 14.5px; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--brand); padding: 4px 6px; }
.btn-ghost:hover { background: var(--brand-soft); }

/* ----------------------------- 顶栏 ----------------------------- */

.topbar {
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
}
.topbar-inner {
  max-width: 1320px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.brand .logo {
  width: 30px; height: 30px; border-radius: 9px; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.shift-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  background: var(--brand-soft); color: #24537f; border-radius: 20px; font-size: 12.5px;
}
.shift-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.topbar .spacer { flex: 1 1 auto; }
.user-box { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; background: #dbe7f8; color: #24537f;
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px;
}
.badge-role {
  font-size: 11px; padding: 1px 6px; border-radius: 10px;
  background: var(--brand-soft); color: #24537f; border: 1px solid #cfe0f7;
}

.tabs {
  max-width: 1320px; margin: 0 auto; padding: 0 20px;
  display: flex; gap: 4px; overflow-x: auto;
}
.tab {
  padding: 9px 14px; border: none; background: transparent; cursor: pointer;
  color: var(--muted); border-bottom: 2px solid transparent; font-size: 14px; white-space: nowrap;
}
.tab:hover { color: var(--brand); }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.tab .badge {
  display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 5px;
  background: var(--danger); color: #fff; border-radius: 9px; font-size: 11px; line-height: 17px;
  text-align: center; vertical-align: 1px;
}

/* ----------------------------- 布局 ----------------------------- */

.page { max-width: 1320px; margin: 0 auto; padding: 18px 20px 60px; }
.panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 16px;
}
.panel > .head {
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.panel > .head h3 { margin: 0; font-size: 14.5px; }
.panel > .head .sub { color: var(--muted); font-size: 12.5px; }
.panel > .body { padding: 14px 16px; }
.panel > .body.tight { padding: 0; }
.spacer { flex: 1 1 auto; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .12s, border-color .12s;
}
.stat:hover { transform: translateY(-1px); border-color: var(--brand); }
.stat .k { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 5px; }
.stat .v { font-size: 25px; font-weight: 700; margin-top: 2px; line-height: 1.2; }
.stat .v small { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.stat.warn .v { color: var(--warn); }
.stat.danger .v { color: var(--danger); }
.stat.ok .v { color: var(--ok); }
.stat.brand .v { color: var(--brand); }

/* ----------------------------- 任务卡 ----------------------------- */

.task-list { display: flex; flex-direction: column; }
.task {
  border-bottom: 1px solid var(--line); padding: 12px 16px;
  display: flex; gap: 12px; align-items: flex-start;
}
.task:last-child { border-bottom: none; }
.task:hover { background: #fafcff; }
.task.done { background: #fbfdfc; }
.task .t-id { color: var(--muted); font-size: 12px; flex: none; width: 42px; padding-top: 2px; }
.task .t-main { flex: 1 1 auto; min-width: 0; }
.task .t-title { font-weight: 600; font-size: 14.5px; word-break: break-word; }
.task.done .t-title { color: var(--muted); text-decoration: line-through; font-weight: 500; }
.task .t-meta { color: var(--muted); font-size: 12.5px; margin-top: 3px; display: flex; gap: 12px; flex-wrap: wrap; }
.task .t-detail {
  margin-top: 6px; color: #3b4757; font-size: 13px; white-space: pre-wrap; word-break: break-word;
  background: #f8fafd; border: 1px dashed var(--line-strong); border-radius: 8px; padding: 8px 10px;
}
.task .t-handover {
  margin-top: 6px; font-size: 13px; color: #7a4b12; background: var(--warn-soft);
  border-left: 3px solid var(--warn); border-radius: 6px; padding: 7px 10px; white-space: pre-wrap;
}
.task .t-result {
  margin-top: 6px; font-size: 13px; color: #14603c; background: var(--ok-soft);
  border-left: 3px solid var(--ok); border-radius: 6px; padding: 7px 10px; white-space: pre-wrap;
}
.task .t-actions { flex: none; display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }

.chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; padding: 1px 8px; border-radius: 20px; border: 1px solid transparent;
  white-space: nowrap;
}
.chip-todo { background: #eef2f8; color: #46536b; border-color: #dde4ef; }
.chip-doing { background: var(--info-soft); color: #1d5aa8; border-color: #cadffb; }
.chip-done { background: var(--ok-soft); color: #14603c; border-color: #bfe6d2; }
.chip-high { background: var(--danger-soft); color: #a83232; border-color: #f4c9c9; font-weight: 600; }
.chip-normal { background: #f2f4f8; color: #5b6779; border-color: #e3e8f0; }
.chip-low { background: #f6f7f9; color: #7b8698; border-color: #e8ecf2; }
.chip-carry { background: var(--warn-soft); color: #8a5510; border-color: #f0dcb8; }
.chip-overdue { background: var(--danger-soft); color: #a83232; border-color: #f4c9c9; }
.chip-shift { background: #f0eefb; color: #4b3fa8; border-color: #dcd7f5; }
.chip-mine { background: var(--brand-soft); color: #24537f; border-color: #cfe0f7; }
.chip-date { background: #f2f4f8; color: #5b6779; border-color: #e3e8f0; }
.chip-plain { background: #fff; color: var(--muted); border-color: var(--line-strong); }

/* ----------------------------- 表格 ----------------------------- */

table.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
table.grid th, table.grid td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.grid th { background: #f7f9fc; color: var(--muted); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
table.grid tr:last-child td { border-bottom: none; }
table.grid tr:hover td { background: #fafcff; }
.mono { font-family: Consolas, "Courier New", monospace; font-size: 12.5px; }

/* ----------------------------- 过滤器 ----------------------------- */

.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.filters .f { min-width: 112px; }
.filters .f.grow { flex: 1 1 190px; }
.filters label { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 3px; }
.filters select, .filters input { padding: 6px 9px; font-size: 13px; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.seg button {
  border: none; background: #fff; padding: 6px 12px; cursor: pointer; color: var(--muted);
  border-right: 1px solid var(--line-strong);
}
.seg button:last-child { border-right: none; }
.seg button.active { background: var(--brand); color: #fff; }

/* ----------------------------- 交接看板 ----------------------------- */

.banner {
  display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px;
  border-radius: var(--radius); margin-bottom: 16px; border: 1px solid;
}
.banner.info { background: var(--info-soft); border-color: #cadffb; color: #1d4f8f; }
.banner.warn { background: var(--warn-soft); border-color: #f0dcb8; color: #8a5510; }
.banner.ok { background: var(--ok-soft); border-color: #bfe6d2; color: #14603c; }
.banner .b-icon { font-size: 18px; line-height: 1.2; }
.banner b { font-weight: 700; }
.banner .b-actions { margin-left: auto; display: flex; gap: 8px; flex: none; }

.group-head {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  background: #f7f9fc; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.group-head .g-title { font-weight: 600; }
.group-head .g-count { font-size: 12.5px; color: var(--muted); }

.handover-editor { padding: 10px 16px 14px; background: #fbfcfe; border-bottom: 1px solid var(--line); }
.handover-editor textarea { min-height: 58px; font-size: 13px; }
.handover-editor .actions { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
.save-state { font-size: 12.5px; color: var(--muted); }
.save-state.dirty { color: var(--warn); font-weight: 600; }
.save-state.saved { color: var(--ok); }

/* ----------------------------- 弹窗 ----------------------------- */

.modal-mask {
  position: fixed; inset: 0; background: rgba(20, 32, 48, .45);
  display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; z-index: 100;
  overflow-y: auto;
}
.modal {
  background: #fff; border-radius: 14px; box-shadow: 0 18px 48px rgba(16, 30, 48, .25);
  width: 100%; max-width: 720px; overflow: hidden;
}
.modal.sm { max-width: 460px; }
.modal.wide { max-width: 900px; }
.modal > .m-head {
  padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px;
}
.modal > .m-head h3 { margin: 0; font-size: 15.5px; }
.modal > .m-head .x { margin-left: auto; }
.modal > .m-body { padding: 16px 18px; max-height: 66vh; overflow-y: auto; }
.modal > .m-foot {
  padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 10px;
  justify-content: flex-end; align-items: center; background: #fafbfd;
}
.modal .m-foot .left { margin-right: auto; }

/* ----------------------------- 提示 ----------------------------- */

#toasts { position: fixed; right: 18px; top: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: 8px; padding: 10px 14px; box-shadow: var(--shadow); min-width: 220px; max-width: 380px;
  font-size: 13.5px; animation: slidein .18s ease-out;
}
.toast.ok { border-left-color: var(--ok); }
.toast.err { border-left-color: var(--danger); }
.toast.warn { border-left-color: var(--warn); }
@keyframes slidein { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }

.empty { padding: 34px 16px; text-align: center; color: var(--muted); }
.empty .big { font-size: 30px; margin-bottom: 8px; opacity: .55; }
.loading { padding: 30px; text-align: center; color: var(--muted); }

.perm-grid { display: grid; grid-template-columns: 1fr; gap: 4px; }
.perm-row {
  display: flex; gap: 10px; align-items: flex-start; padding: 7px 10px;
  border: 1px solid var(--line); border-radius: 8px;
}
.perm-row:hover { background: #fafcff; }
.perm-row input { margin-top: 3px; width: 16px; height: 16px; flex: none; }
.perm-row .p-name { font-weight: 600; font-size: 13.5px; }
.perm-row .p-desc { color: var(--muted); font-size: 12px; }
.perm-row.on { border-color: #bfd8f5; background: #f6faff; }
.perm-group-title { font-size: 12.5px; color: var(--muted); margin: 14px 0 6px; font-weight: 600; }
.perm-group-title:first-child { margin-top: 0; }

.hint { color: var(--muted); font-size: 12.5px; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.pw-box {
  font-family: Consolas, monospace; font-size: 17px; letter-spacing: 1px; background: #f5f8fc;
  border: 1px dashed var(--line-strong); border-radius: 8px; padding: 10px 14px; text-align: center;
}
.timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 12px 12px; font-size: 13px; }
.timeline li::before {
  content: ''; position: absolute; left: -19px; top: 6px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--brand); border: 2px solid #fff;
}
.timeline .tl-time { color: var(--muted); font-size: 12px; }

/* ----------------------------- 工作台搜索框 ----------------------------- */

.search-panel > .body { padding: 12px 16px; }
.search-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.search-row input[type="search"] {
  flex: 1 1 260px; min-width: 180px; padding: 9px 12px 9px 34px; font-size: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7788' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 10px center; background-size: 16px 16px;
}
.search-row input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
.search-row select { flex: 0 0 auto; width: auto; min-width: 150px; padding: 8px 10px; font-size: 13.5px; }
.search-row .btn { flex: 0 0 auto; }

/* ----------------------------- 配件登记跟踪记录表 ----------------------------- */

.acc-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.acc-chip {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: #fff; color: var(--muted); font-size: 13px; transition: all .15s;
}
.acc-chip:hover { border-color: var(--brand); color: var(--brand); }
.acc-chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.acc-chip b { font-weight: 700; }
.acc-chip.active b { color: #fff; }

.acc-table td { vertical-align: top; }
.acc-table .acc-title { font-weight: 600; font-size: 14px; }

/* 登记表单 */
.acc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; }
.acc-grid.one { grid-template-columns: 1fr; }
.acc-field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.acc-field input, .acc-field select, .acc-field textarea { width: 100%; }
@media (max-width: 820px) { .acc-grid { grid-template-columns: 1fr; } }

/* 图片上传区 */
.img-box { border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; background: #fbfcfe; }
.img-box-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.img-drop {
  border: 2px dashed var(--line-strong); border-radius: 10px; padding: 18px 12px; text-align: center;
  color: var(--muted); font-size: 13px; cursor: pointer; background: #fff; transition: all .15s;
}
.img-drop:hover, .img-drop.over { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.img-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.img-thumb { position: relative; width: 104px; height: 104px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.img-thumb img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; display: block; }
.img-thumb .img-del {
  position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; line-height: 18px;
  border: none; border-radius: 50%; background: rgba(214, 69, 69, .9); color: #fff;
  cursor: pointer; font-size: 14px; padding: 0;
}
.img-gallery { display: flex; flex-wrap: wrap; gap: 8px; }
.img-gallery img { width: 110px; height: 110px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); cursor: zoom-in; }

/* ----------------------------- 工作台两栏布局 ----------------------------- */

.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.home-left { min-width: 0; }
.home-right { position: sticky; top: 108px; }

.panel.shift-panel > .head { gap: 8px; }
.shift-list { display: flex; flex-direction: column; }
.shift-item { padding: 11px 14px; border-bottom: 1px solid var(--line); }
.shift-item:last-child { border-bottom: none; }
.shift-item.current { background: #f6faff; border-left: 3px solid var(--brand); }
.shift-item .s-top { display: flex; align-items: center; gap: 6px; }
.shift-item .s-name { font-weight: 600; font-size: 14px; }
.shift-item .s-code { margin-left: auto; color: var(--muted); font-size: 11.5px; font-family: Consolas, monospace; }
.shift-item .s-time { font-size: 16px; font-weight: 600; letter-spacing: .5px; margin-top: 3px; }
.shift-item .s-edit { display: flex; align-items: center; gap: 5px; margin-top: 6px; }
.shift-item .s-edit input { width: 62px; padding: 5px 7px; font-size: 13px; text-align: center; }
.shift-item .s-dash { color: var(--muted); }
.shift-item .s-note { color: var(--muted); font-size: 12px; margin-top: 3px; }

/* 对班表：可编辑形态 */
.shift-item .s-editor { margin-top: 7px; display: flex; flex-direction: column; gap: 6px; }
.shift-item .s-line { display: flex; align-items: center; gap: 5px; }
.shift-item .s-line input { padding: 5px 7px; font-size: 13px; }
.shift-item .shift-name { flex: 1 1 auto; min-width: 0; }
.shift-item .shift-start, .shift-item .shift-end { width: 58px; text-align: center; flex: none; }
.shift-item select.shift-members {
  width: 100%; padding: 4px 6px; font-size: 12.5px; min-height: 76px; line-height: 1.5;
}
.shift-item .s-actions { display: flex; gap: 5px; align-items: center; }
.shift-item .s-actions .btn { padding: 3px 8px; font-size: 12px; }

/* 对班人员标签 */
.shift-item .s-members { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.member-chip {
  display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px;
  background: #eef3fb; color: #24537f; border: 1px solid #d7e3f5;
  border-radius: 6px; padding: 1px 7px;
}
.member-chip i { font-style: normal; font-size: 10.5px; color: #fff; background: var(--brand); border-radius: 4px; padding: 0 3px; }

/* 新增班次 */
.shift-add { padding: 11px 14px; border-top: 1px dashed var(--line-strong); background: #fbfcfe; }
.shift-add .s-line { display: flex; align-items: center; gap: 5px; margin: 6px 0; }
.shift-add input { padding: 5px 7px; font-size: 13px; }
.shift-add #new-shift-name { flex: 1 1 auto; min-width: 0; }
.shift-add #new-shift-start, .shift-add #new-shift-end { width: 58px; text-align: center; flex: none; }

@media (max-width: 1080px) {
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .home-right { position: static; }
}

@media (max-width: 720px) {
  .task { flex-wrap: wrap; }
  .task .t-actions { flex-direction: row; width: 100%; }
  .task .t-actions .btn { flex: 1 1 auto; }
  .topbar-inner { padding: 8px 12px; }
  .page { padding: 12px 12px 50px; }
  .tabs { padding: 0 8px; }
}
