.sort-actions {
  white-space: nowrap;
}

.sort-actions form {
  display: inline-block;
  margin: 0 3px 0 0;
}

.sort-actions .action {
  min-width: 33px;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-align: center;
}

.sort-actions .action:disabled {
  cursor: not-allowed;
  opacity: .35;
}

.device-type {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f2f2f7;
  color: #3a3a3c;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

[data-lamp-fields][hidden] {
  display: none !important;
}

[data-custom-field][hidden] {
  display: none !important;
}

/* A deliberately roomy, playful selector: the arrow sits away from the edge. */
.form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 52px;
  cursor: pointer;
  background-color: #fbfbff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 9.3 12 14.7l5.4-5.4' fill='none' stroke='%235856d6' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='18.5' cy='6' r='2' fill='%23ff9f0a'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 24px 24px;
}

.form select:hover {
  border-color: #acaaff;
  background-color: #f7f6ff;
}

/* 台账在窄屏时横向滚动，信息和操作始终保持在同一行。 */
.table th,
.table td {
  white-space: nowrap;
}

.table td:last-child {
  min-width: 174px;
}

/* 台账列较多，桌面端使用更宽的工作区，避免最后的删除按钮被截断。 */
@media (min-width: 1180px) {
  main {
    max-width: 1440px;
  }
}

/* 教室号是新增台账的首要信息，确保在任何叠层样式下均可点按输入。 */
.form input[name="room_no"] {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  -webkit-user-select: text;
  user-select: text;
}

.heading-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.super-tools { margin: 10px 0 -4px; }
.super-tools .action { background: #fff4d6; color: #8c5a00; }
.summary.issue-summary { grid-template-columns: repeat(4, 1fr); }
.summary.issue-summary > a { text-decoration: none; color: var(--ink); }
.summary.issue-summary > a:hover { transform: translateY(-2px); box-shadow: 0 8px 18px #1d1d1f16; }
.summary.issue-summary > .issue-status-card { position: relative; overflow: hidden; min-height: 112px; padding: 21px 19px 18px 23px; border: 0; border-radius: 24px; box-shadow: 0 8px 20px #1d1d1f12; }
.summary.issue-summary > .issue-status-card:before { width: 11px; height: 52px; background: #34c759; box-shadow: 0 0 0 5px #ffffff70; }
.summary.issue-summary > .issue-status-card:after { content: ""; position: absolute; right: -17px; top: -21px; width: 74px; height: 74px; border-radius: 50%; background: #ffffff80; box-shadow: -16px 40px 0 -12px #ffffff61; }
.summary.issue-summary > .issue-status-card.is-clear { background: linear-gradient(135deg, #dff9e7 0%, #effff3 58%, #ffffff 100%); }
.summary.issue-summary > .issue-status-card.is-clear b { color: #16823a; }
.summary.issue-summary > .issue-status-card.has-issue { background: linear-gradient(135deg, #ffdce4 0%, #fff0d9 58%, #ffffff 100%); }
.summary.issue-summary > .issue-status-card.has-issue:before { background: #ff4f72; }
.summary.issue-summary > .issue-status-card.has-issue b { color: #d82852; }
.summary.issue-summary > .issue-status-card span { position: relative; z-index: 1; font-weight: 680; }
.summary.issue-summary > .issue-status-card b { position: relative; z-index: 1; font-size: 34px; }

/* 台账与状态卡统一为圆润、轻松的卡片语言。 */
.table {
  border: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, #fafaff, #f5f7ff);
  box-shadow: 0 10px 26px #2d2a5d0d;
  padding: 7px 9px 11px;
}

.table table {
  border-collapse: separate;
  border-spacing: 0 8px;
}

.table th {
  padding: 9px 13px 7px;
  border: 0;
  background: transparent;
  color: #77708f;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .03em;
}

.table tbody td {
  padding: 14px 13px;
  border-top: 1px solid #ffffff;
  border-bottom: 1px solid #e9e7f5;
  background: #ffffff;
  color: #34313f;
  font-weight: 560;
}

.table tbody td:first-child {
  border-left: 1px solid #e9e7f5;
  border-radius: 16px 0 0 16px;
}

.table tbody td:last-child {
  border-right: 1px solid #e9e7f5;
  border-radius: 0 16px 16px 0;
}

.table tbody tr { transition: transform .18s ease, filter .18s ease; }
.table tbody tr:hover { position: relative; z-index: 1; transform: translateY(-1px); filter: drop-shadow(0 6px 9px #6e63c514); }
.table tbody tr:hover td { background: #f7f5ff; border-top-color: #ddd8ff; border-bottom-color: #ddd8ff; box-shadow: none; }
.table tbody tr:hover td:first-child { border-left: 3px solid #7b70e8; padding-left: 11px; }
.table tbody tr:hover td:last-child { border-right-color: #ddd8ff; }

.table td strong {
  font-weight: 760;
  letter-spacing: .01em;
}

.table .action {
  padding: 7px 12px;
  box-shadow: inset 0 0 0 1px #ffffff80;
}

.table .action:not(.secondary):not(.danger) {
  background: #eeecff;
  color: #5856d6;
}

.table .action.secondary,
.table .sort-actions .action {
  background: #f3f3f8;
  color: #5d5a6d;
}

.table .action.danger {
  background: #fff0f3;
  color: #df3b60;
}

.table small {
  color: #9993aa;
  font-size: 12px;
}

.device-type {
  padding: 5px 10px;
  background: #f1efff;
  color: #5b52b9;
}

.status { background: #e7f9ed; color: #1c9144; }
.bad { background: #ffedf1; color: #da3b5d; }

/* 所有原生下拉统一替换为页面内的糖果风选项菜单。 */
.cute-select { position: relative; display: block; width: 100%; margin-top: 7px; }
.cute-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  margin: -1px !important;
  padding: 0 !important;
  opacity: 0 !important;
  pointer-events: none;
  clip-path: inset(50%);
}
.cute-select-trigger {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  padding: 11px 54px 11px 15px;
  overflow: hidden;
  border: 1px solid #d9d3ff;
  border-radius: 16px;
  background: linear-gradient(135deg, #fbfaff, #f1efff);
  color: #383349;
  box-shadow: 0 3px 0 #ffffff inset, 0 4px 10px #5b52b915;
  font: inherit;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  transition: transform .16s, border-color .16s, box-shadow .16s;
}
.cute-select-trigger:after {
  content: "";
  position: absolute;
  right: 18px;
  width: 12px;
  height: 12px;
  border-right: 3px solid #675de0;
  border-bottom: 3px solid #675de0;
  border-radius: 2px;
  transform: translateY(-3px) rotate(45deg);
  transition: transform .18s;
}
.cute-select-trigger:before {
  content: "";
  position: absolute;
  right: 13px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff9f5a;
}
.cute-select.open .cute-select-trigger,
.cute-select-trigger:hover { border-color: #a79dff; box-shadow: 0 0 0 4px #857cff20, 0 4px 12px #5b52b91d; }
.cute-select.open .cute-select-trigger:after { transform: translateY(3px) rotate(225deg); }
.cute-select-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  display: none;
  max-height: 260px;
  padding: 7px;
  overflow: auto;
  border: 1px solid #ded8ff;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 34px #372f6a26;
}
.cute-select.open .cute-select-menu { display: grid; gap: 4px; }
.cute-select-option {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #494358;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.cute-select-option:hover { background: #f0eeff; color: #554bd0; }
.cute-select-option.selected { background: linear-gradient(90deg, #e2ddff, #f0edff); color: #5147c9; }
.cute-select-option:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 650px) { .cute-select-trigger { min-height: 46px; border-radius: 15px; } .cute-select-menu { max-height: 220px; } }

/* 顶部管理员设置入口与设置中心。 */
.header-user-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-user-actions span { margin-left: 0; }
.header-user-actions form { margin: 0; }
.header-page-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.header-page-actions > a { padding: 6px 8px; color: #696377; font-size: 12px; white-space: nowrap; }
.header-brand-actions { margin-left: 0; }
.header-settings { display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px; border-radius: 999px; background: linear-gradient(135deg, #f0edff, #fff2df); color: #584ec5; font-size: 13px; font-weight: 720; box-shadow: 0 3px 9px #5d51bd18; }
.header-settings:hover { background: linear-gradient(135deg, #e4dfff, #ffead0); }
.settings-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.settings-heading .back { margin-bottom: 14px; }
.settings-sparkle { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 19px; background: linear-gradient(135deg, #e2ddff, #ffe4bd); box-shadow: 0 7px 16px #5d51bd1c; font-size: 25px; }
.settings-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 18px; margin-top: 24px; }
.settings-menu { display: grid; align-content: start; gap: 8px; padding: 10px; border: 1px solid #e8e3ff; border-radius: 22px; background: linear-gradient(160deg, #fbfaff, #f3f1ff); }
.settings-menu a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 15px; color: #625d70; font-weight: 700; }
.settings-menu a:hover { background: #ece9ff; color: #554bd0; }
.settings-menu a.active { background: linear-gradient(135deg, #dcd6ff, #f4e6ff); color: #5044c8; box-shadow: 0 4px 10px #5c50bc17; }
.settings-menu span { font-size: 18px; }
.settings-panel { min-height: 330px; padding: 26px; border: 1px solid #e9e4ff; border-radius: 24px; background: linear-gradient(135deg, #ffffff, #fbfaff); box-shadow: 0 10px 25px #2d2a5d0c; }
.settings-panel h2 { margin: 11px 0 17px; font-size: 22px; }
.settings-badge { display: inline-block; padding: 5px 10px; border-radius: 999px; background: #eeeaff; color: #594fca; font-size: 12px; font-weight: 750; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 0; border-bottom: 1px dashed #ddd8ef; }
.setting-row b { display: block; font-size: 15px; }
.setting-row small { margin-top: 5px; }
.setting-state { padding: 6px 10px; border-radius: 999px; background: #e5f9eb; color: #238442; font-size: 12px; font-weight: 720; white-space: nowrap; }
.settings-note { margin-top: 20px; padding: 13px 15px; border-radius: 15px; background: #faf8ff; color: #726d80; font-size: 13px; line-height: 1.6; }
.permissions-note { margin-top: 0; }
.user-management-heading { margin-top: 31px !important; }
.user-management-note { margin-top: 0; }
.permission-add-card { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 1.8fr); gap: 18px; align-items: center; margin-top: 17px; padding: 17px; border: 1px solid #dcd7ff; border-radius: 19px; background: linear-gradient(135deg, #fdfcff, #f3f1ff); }
.permission-add-card > div { position: relative; padding-left: 49px; }
.permission-add-card h3 { margin: 0 0 5px; color: #5148bc; font-size: 16px; }
.permission-add-card p { font-size: 12px; line-height: 1.55; }
.permission-add-icon { position: absolute; left: 0; top: 0; display: grid; width: 37px; height: 37px; place-items: center; border-radius: 13px; background: linear-gradient(135deg, #7268df, #9c91f4); color: #fff; font-size: 23px; font-weight: 300; }
.permission-add { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 9px; align-items: end; }
.permission-add label { color: #625c71; font-size: 12px; font-weight: 750; }
.permission-add input { display: block; width: 100%; min-height: 40px; margin-top: 5px; padding: 8px 10px; border: 1px solid #ddd8f7; border-radius: 12px; background: #fff; color: #423c51; font: inherit; outline: 0; }
.permission-add input:focus { border-color: #9d92ff; box-shadow: 0 0 0 3px #8c83e01d; }
.permission-add .button { min-height: 40px; padding: 8px 14px; white-space: nowrap; }
.admin-directory { display: grid; gap: 9px; margin-top: 15px; }
.admin-directory-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #e6e1fb; border-radius: 15px; background: #fff; }
.admin-directory-item > span { display: grid; width: 33px; height: 33px; place-items: center; border-radius: 11px; background: #f0eeff; }
.admin-directory-item div { min-width: 0; flex: 1; }
.admin-directory-item b,.admin-directory-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-directory-item small { margin-top: 2px; }
.admin-directory-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.admin-directory-item em { padding: 5px 8px; border-radius: 999px; background: #e8f8ec; color: #268143; font-size: 11px; font-style: normal; font-weight: 750; white-space: nowrap; }
.admin-remove { border: 0; border-radius: 999px; padding: 6px 10px; background: #fff0f3; color: #dc3155; cursor: pointer; font: inherit; font-size: 12px; font-weight: 750; white-space: nowrap; transition: background .16s, transform .16s; }
.admin-remove:hover { background: #ffe0e7; transform: translateY(-1px); }
.admin-remove:focus-visible { outline: 3px solid #ff9db099; outline-offset: 2px; }
.admin-env-tag { padding: 5px 8px; border-radius: 999px; background: #f1f0f5; color: #777283; font-size: 11px; font-weight: 700; white-space: nowrap; }
.module-nav { display: flex; align-items: center; gap: 5px; margin-left: 8px; }
.module-nav a { padding: 8px 11px; border-radius: 12px; color: #676174; font-size: 13px; white-space: nowrap; }
.module-nav a:hover { background: #f0eeff; color: #554cc4; }
.module-nav a.active { background: linear-gradient(135deg, #7166dc, #8e83ed); color: #fff; box-shadow: 0 3px 9px #685ed62e; }
.header-user-actions > a { padding: 6px 8px; color: #696377; font-size: 12px; white-space: nowrap; }
.module-page { min-height: 480px; padding: 35px; border: 1px solid #e7e3f5; border-radius: 26px; background: linear-gradient(135deg, #ffffff, #faf9ff); box-shadow: 0 7px 22px #463c7410; }
.module-page h1 { margin-top: 15px; }
.module-empty { display: grid; place-items: center; max-width: 620px; min-height: 260px; margin: 40px auto 0; padding: 30px; border: 2px dashed #dcd6f6; border-radius: 24px; background: #fcfbff; text-align: center; }
.module-empty > span { display: grid; width: 65px; height: 65px; place-items: center; border-radius: 22px; background: #eeeaff; font-size: 32px; }
.module-empty h2 { margin: 16px 0 7px; }
.module-empty p { max-width: 410px; line-height: 1.7; }
@media (max-width: 980px) { header { height: auto; min-height: 64px; flex-wrap: wrap; padding-top: 9px; padding-bottom: 9px; } .module-nav { order: 3; width: 100%; overflow-x: auto; margin-left: 0; } .header-page-actions { order: 4; width: 100%; margin-left: 0; justify-content: flex-start; overflow-x: auto; } .header-brand-actions { order: 1; width: auto; margin-left: auto; justify-content: flex-end; } }
.permission-list { display: grid; gap: 11px; margin-top: 17px; }
.permission-card { display: grid; grid-template-columns: minmax(160px, 1fr) repeat(3, auto); gap: 13px; align-items: center; padding: 15px; border: 1px solid #e5e0fb; border-radius: 17px; background: linear-gradient(135deg, #fff, #fbfaff); }
.permission-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.permission-user > span { display: grid; width: 34px; height: 34px; place-items: center; flex: 0 0 auto; border-radius: 12px; background: #eeeaff; font-size: 16px; }
.permission-user b,.permission-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.permission-user small { margin-top: 2px; }
.permission-toggle { display: inline-flex; align-items: center; gap: 7px; color: #5d5868; font-size: 12px; font-weight: 720; white-space: nowrap; cursor: pointer; }
.permission-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.permission-toggle span { position: relative; width: 34px; height: 20px; border-radius: 99px; background: #d9d6e2; transition: .18s; }
.permission-toggle span:after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #37324433; transition: .18s; }
.permission-toggle input:checked + span { background: #6d63dd; }
.permission-toggle input:checked + span:after { transform: translateX(14px); }
.permission-toggle input:focus-visible + span { box-shadow: 0 0 0 3px #857cff34; }
.permission-save { margin-top: 17px; }
.permission-empty { margin-top: 17px; padding: 22px; border: 1px dashed #d8d3ed; border-radius: 17px; background: #faf9ff; color: #817c8d; line-height: 1.6; text-align: center; }
@media (max-width: 780px) { .permission-card { grid-template-columns: 1fr; gap: 10px; } .permission-toggle { justify-content: space-between; padding: 8px 0; border-top: 1px solid #f0eef8; } }
@media (max-width: 780px) { .permission-add-card,.permission-add { grid-template-columns: 1fr; } .permission-add .button { width: 100%; } .admin-directory-item { align-items: flex-start; } .admin-directory-actions { justify-content: flex-start; } }
@media (max-width: 650px) { .header-user-actions { gap: 7px; } .header-user-actions span { display: none; } .header-settings { padding: 6px 9px; } .settings-layout { grid-template-columns: 1fr; } .settings-menu { grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 5px; padding: 6px; } .settings-menu a { justify-content: center; padding: 9px 5px; font-size: 12px; } .settings-menu a span { display: none; } .settings-panel { min-height: 0; padding: 20px; } }

.parameter-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; padding: 16px; border-radius: 18px; background: #faf9ff; }
.parameter-form label { font-size: 13px; font-weight: 700; }
.parameter-form input,.option-row input,.option-add input { display: block; width: 100%; margin-top: 6px; padding: 10px 11px; border: 1px solid #ddd7fa; border-radius: 12px; background: #fff; color: #403a51; font: inherit; outline: none; }
.parameter-form input:focus,.option-row input:focus,.option-add input:focus { border-color: #9d92ff; box-shadow: 0 0 0 3px #8c83e01d; }
.parameter-form .button { white-space: nowrap; }
.parameter-tabs { display: inline-flex; gap: 6px; margin: 14px 0 22px; padding: 5px; border: 1px solid #e4e0fa; border-radius: 16px; background: #f5f3ff; }
.parameter-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 11px; color: #746d87; font-size: 13px; font-weight: 750; }
.parameter-tabs a:hover { background: #ebe8ff; color: #594fca; }
.parameter-tabs a.active { background: linear-gradient(135deg, #675ddd, #8278eb); box-shadow: 0 4px 10px #5c52c534; color: #fff; }
.network-parameter-form { grid-template-columns: minmax(220px, 1fr) auto; align-items: start; max-width: 620px; }
.network-parameter-form .button { margin-top: 27px; }
.parameter-form small { display: block; margin-top: 6px; color: #8a8497; font-size: 12px; font-weight: 500; line-height: 1.45; }
.field-hint { display: block; margin-top: 6px; color: #a26022; font-size: 12px; line-height: 1.4; }
.network-resource-form { max-width: 760px; }
.sim-card-section { margin: 5px 0 22px; padding: 17px; border: 1px solid #e1dcfa; border-radius: 18px; background: linear-gradient(145deg,#fbfaff,#f5f3ff); }
.sim-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.sim-card-heading h2 { margin: 0 0 4px; color: #5148bd; font-size: 16px; }
.sim-card-heading p { font-size: 12px; line-height: 1.45; }
.sim-card-heading > span { padding: 5px 9px; border-radius: 999px; background: #e7f7ef; color: #278343; font-size: 12px; font-weight: 750; white-space: nowrap; }
.sim-package-name { width: min(100%, 250px); margin: 0 0 0 auto !important; color: #615b71; font-size: 12px !important; font-weight: 700; }
.sim-package-name input { display: block; box-sizing: border-box; width: 100%; margin-top: 5px; padding: 8px 10px; border: 1px solid #ddd7fa; border-radius: 10px; background: #fff; color: #403a51; font: inherit; outline: none; }
.sim-card-grid { display: grid; gap: 8px; }
.sim-line-group { margin: 14px 0 0; padding: 12px; border: 1px solid #e7e2fb; border-radius: 14px; background: #ffffffa8; }
.sim-line-group[hidden] { display: none !important; }
.sim-line-group h3 { margin: 0 0 10px; color: #554bc1; font-size: 14px; }
.sim-line-group h3 small { margin-left: 6px; color: #8a8499; font-size: 12px; font-weight: 600; }
.sim-card-row { display: grid; grid-template-columns: 28px repeat(5,minmax(0,1fr)); gap: 9px; align-items: end; padding: 10px; border: 1px solid #ebe7fb; border-radius: 14px; background: #fff; }
.sim-card-row > b { display: grid; width: 27px; height: 27px; place-items: center; margin-bottom: 8px; border-radius: 9px; background: #eeeaff; color: #5b51c7; font-size: 12px; }
.sim-card-row label { margin: 0 !important; color: #615b71; font-size: 12px !important; }
.sim-card-row label[hidden] { display: none !important; }
.sim-card-row input,.sim-card-row select { display: block; width: 100%; margin-top: 5px; padding: 9px 10px; border: 1px solid #ddd7fa; border-radius: 10px; background: #faf9ff; color: #403a51; font: inherit; outline: none; }
.sim-card-row input:focus,.sim-card-row select:focus { border-color: #9d92ff; box-shadow: 0 0 0 3px #8c83e01d; }
.option-heading { margin-top: 30px !important; }
.option-groups { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; margin-top: 15px; }
.option-group { padding: 16px; border: 1px solid #e7e1ff; border-radius: 18px; background: linear-gradient(145deg, #fff, #faf9ff); }
.option-group h3 { margin: 0 0 12px; color: #554dc0; font-size: 15px; }
.option-list { display: grid; gap: 7px; max-height: 205px; overflow: auto; padding-right: 3px; }
.option-row { display: flex; gap: 6px; align-items: center; }
.option-row .option-edit { display: flex; flex: 1; gap: 6px; align-items: center; }
.option-order { display: flex; gap: 4px; }
.move-option { min-width: 30px; padding-inline: 7px; font-size: 15px; line-height: 1; }
.option-row input { margin: 0; min-width: 0; padding: 8px 9px; }
.tiny-button { border: 0; border-radius: 11px; padding: 8px 10px; background: #edeaff; color: #564dc8; font: inherit; font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.tiny-button:hover { background: #ded8ff; }
.delete-option { background: #fff0f3; color: #db3e60; }
.delete-option:hover { background: #ffdfe6; }
.option-protected { display: inline-flex; align-items: center; min-height: 31px; padding: 0 9px; border-radius: 11px; background: #f3f2f7; color: #8a8794; font-size: 12px; font-weight: 700; white-space: nowrap; }
.super-tools { display: flex; flex-wrap: wrap; gap: 9px; margin: 14px 0 0; }
.audit-link { background: linear-gradient(135deg, #e6f5ff, #eeeaff); color: #4b53b8; }
.audit-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.audit-heading .back { margin-bottom: 14px; }
.audit-icon { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 19px; background: linear-gradient(135deg, #dff6ff, #eee2ff); box-shadow: 0 7px 16px #5d51bd1c; font-size: 27px; }
.audit-card { margin-top: 26px; padding: 16px; border: 1px solid #e4e0fb; border-radius: 22px; background: linear-gradient(145deg, #fff, #faf9ff); box-shadow: 0 9px 24px #2d2a5d0b; }
.audit-filter { display: grid; grid-template-columns: minmax(180px,1.5fr) minmax(135px,1fr) minmax(135px,1fr) auto auto; gap: 10px; align-items: end; padding: 14px; border-radius: 17px; background: #f8f7ff; }
.audit-filter label { color: #625c71; font-size: 12px; font-weight: 750; }
.audit-filter select,.audit-filter input { display: block; width: 100%; min-height: 40px; margin-top: 5px; padding: 8px 10px; border: 1px solid #ddd8f7; border-radius: 12px; background: #fff; color: #423c51; font: inherit; outline: 0; }
.audit-filter select:focus,.audit-filter input:focus { border-color: #9d92ff; box-shadow: 0 0 0 3px #8c83e01d; }
.audit-date-input { cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, #665cce 50%), linear-gradient(135deg, #665cce 50%, transparent 50%); background-position: calc(100% - 16px) 17px, calc(100% - 11px) 17px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.audit-filter .button { min-height: 40px; padding: 8px 15px; white-space: nowrap; }
.audit-clear { align-self: center; margin-top: 17px; padding: 8px 4px; color: #6a61c9; font-size: 13px; white-space: nowrap; }
.audit-card-title { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 2px 4px 14px; color: #5149bb; font-weight: 750; }
.audit-card-title small { margin: 0; font-weight: 500; }
.audit-table { border-radius: 15px; box-shadow: none; }
.audit-table time { white-space: nowrap; color: #55505f; font-variant-numeric: tabular-nums; }
.audit-table small { font-size: 11px; }
.audit-action { display: inline-block; padding: 5px 9px; border-radius: 999px; background: #ece9ff; color: #554bc5; font-size: 12px; font-weight: 750; white-space: nowrap; }
.audit-empty { padding: 36px; color: #8c8996; text-align: center; }
.audit-calendar { position: fixed; z-index: 100; width: 298px; padding: 12px; border: 1px solid #ded9fb; border-radius: 19px; background: #fff; box-shadow: 0 18px 42px #33296c2e; color: #443d56; }
.calendar-head { display: flex; align-items: center; justify-content: space-between; padding: 0 1px 10px; }
.calendar-head strong { color: #5148bd; font-size: 14px; }
.calendar-head button { width: 30px; height: 30px; border: 0; border-radius: 10px; background: #f0eeff; color: #5b51c7; font: 23px/1 sans-serif; cursor: pointer; }
.calendar-head button:hover,.calendar-footer button:hover { background: #dfd9ff; }
.calendar-week,.calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.calendar-week { padding: 4px 0 6px; color: #9690aa; font-size: 11px; font-weight: 700; }
.calendar-day { height: 32px; border: 0; border-radius: 10px; background: transparent; color: #4b4559; font: inherit; font-size: 12px; cursor: pointer; }
.calendar-day:hover { background: #f0eeff; color: #554bc5; }
.calendar-day.today { color: #4f46c3; font-weight: 800; }
.calendar-day.selected { background: linear-gradient(135deg, #6b61df, #9086f5); box-shadow: 0 3px 8px #5d53bd33; color: #fff; font-weight: 800; }
.calendar-footer { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid #eeeaff; }
.calendar-footer button { border: 0; border-radius: 10px; padding: 7px 12px; background: #f3f1ff; color: #5b51c7; font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
.governance-badge { background: #e3f4ff; color: #3671a1; }
.governance-note { margin-top: 0; }
.governance-cards { display: grid; gap: 13px; margin-top: 18px; }
.governance-card { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 18px; border: 1px solid #e3dffc; border-radius: 19px; background: linear-gradient(135deg, #fff, #f9f8ff); color: #373244; box-shadow: 0 5px 16px #2d2a5d0b; }
.governance-card:hover { transform: translateY(-2px); border-color: #c8c0fa; box-shadow: 0 10px 22px #4f46901b; }
.governance-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 16px; background: #e7f7ef; font-size: 23px; }
.audit-card-link .governance-icon { background: #e8f5ff; }
.governance-card h3 { margin: 0 0 5px; color: #5148bc; font-size: 16px; }
.governance-card p { font-size: 13px; line-height: 1.5; }
.governance-card b { color: #5a50c7; font-size: 13px; white-space: nowrap; }
@media (max-width: 650px) { .governance-card { grid-template-columns: 42px minmax(0,1fr); padding: 15px; } .governance-icon { width: 42px; height: 42px; font-size: 20px; } .governance-card b { grid-column: 2; } }
@media (max-width: 650px) { .audit-card { padding: 10px; } .audit-icon { width: 46px; height: 46px; } }
@media (max-width: 760px) { .audit-filter { grid-template-columns: 1fr 1fr; } .audit-filter label:first-child { grid-column: 1 / -1; } .audit-filter .button { width: 100%; } .audit-clear { margin-top: 0; align-self: end; } }
.option-add { display: flex; gap: 6px; margin-top: 11px; align-items: center; }
.option-add input { margin: 0; min-width: 0; }
.add-option { background: #e3f8e9; color: #278343; }
.network-people-directory { margin: 22px 0; padding: 18px; border: 1px solid #e2defb; border-radius: 22px; background: linear-gradient(140deg, #fff, #faf9ff); box-shadow: 0 10px 24px #2d2a5d0b; }
.heading-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.heading-actions .secondary { background: #eeecff; color: #5148bc; }
.directory-heading .back { display: inline-block; margin-bottom: 12px; }
.network-people-heading h2 { margin: 0 0 5px; color: #4f47b7; font-size: 19px; }
.network-people-heading p { margin: 0; color: #7a748a; font-size: 13px; }
.network-people-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 15px; }
.network-people-card { min-width: 0; background: linear-gradient(145deg, #fff, #f7f6ff); }
.network-people-card .option-list { max-height: 230px; }
.network-people-empty { margin: 5px 0; color: #9690a1; font-size: 13px; }
.network-status { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; background: #e8f8ee; color: #228548; font-size: 12px; font-weight: 750; white-space: nowrap; }
.network-status.inactive { background: #fff0e5; color: #b36518; }
.ledger-switch { display: flex; gap: 9px; align-items: center; margin: 23px 0 13px; padding: 7px; width: fit-content; border: 1px solid #e2defb; border-radius: 18px; background: #faf9ff; box-shadow: 0 6px 16px #2d2a5d0a; }
.ledger-switch a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 13px; color: #655f74; font-size: 14px; font-weight: 780; transition: background .18s, color .18s, box-shadow .18s; }
.ledger-switch a:hover { background: #efedff; color: #554bc7; }
.ledger-switch a.active { background: linear-gradient(135deg, #6257d8, #8275ea); box-shadow: 0 5px 12px #5c51bd36; color: #fff; }
.test-session-panel { width: 285px; padding: 14px; border: 1px solid #ddd8fa; border-radius: 16px; background: #fbfaff; color: #655f74; box-shadow: 0 6px 16px #2d2a5d0a; }
.test-session-panel.active { border-color: #ffbf69; background: #fff8ee; }
.test-session-panel b,.test-session-panel span { display: block; }
.test-session-panel b { color: #554bc7; font-size: 14px; }
.test-session-panel.active b { color: #b56b18; }
.test-session-panel span { margin-top: 5px; font-size: 12px; line-height: 1.45; }
.test-session-panel form { margin-top: 10px; }
.test-session-panel label { display: flex; align-items: flex-start; gap: 6px; margin: 0 0 9px; font-size: 12px; line-height: 1.35; }
.test-session-panel label input { width: auto; margin: 2px 0 0; }
.change-unchanged { display: inline-block; padding: 5px 9px; border-radius: 999px; background: #f1f0f7; color: #827c90; font-size: 12px; font-weight: 700; }
@media (max-width: 650px) { .ledger-switch { width: 100%; box-sizing: border-box; } .ledger-switch a { flex: 1; justify-content: center; padding-inline: 8px; font-size: 13px; } }

/* 网络台账字段较多：扩大工作区，并在电脑端锁定用于识别房间的前五列。 */
.network-ledger-table { overflow: auto; scrollbar-color: #b9b2ed #f0eff8; scrollbar-width: thin; }
.network-ledger-table table { width: 1787px; min-width: 1787px; table-layout: fixed; }
.network-ledger-table th,.network-ledger-table td { box-sizing: border-box; }
.network-ledger-table th:nth-child(1),.network-ledger-table td:nth-child(1) { width: 52px; }
.network-ledger-table th:nth-child(2),.network-ledger-table td:nth-child(2) { width: 128px; }
.network-ledger-table th:nth-child(3),.network-ledger-table td:nth-child(3) { width: 135px; }
.network-ledger-table th:nth-child(4),.network-ledger-table td:nth-child(4) { width: 148px; }
.network-ledger-table th:nth-child(5),.network-ledger-table td:nth-child(5) { width: 100px; }
.network-ledger-table th:nth-child(6),.network-ledger-table td:nth-child(6) { width: 330px; }
.network-ledger-table th:nth-child(7),.network-ledger-table td:nth-child(7) { width: 280px; }
.network-ledger-table th:nth-child(8),.network-ledger-table td:nth-child(8) { width: 132px; }
.network-ledger-table th:nth-child(9),.network-ledger-table td:nth-child(9) { width: 120px; }
.network-ledger-table .network-sim-cell { white-space: normal; vertical-align: top; }
.network-sim-line-block { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #ddd8f5; }
.network-sim-line-block:first-child { margin-top: 8px; }
.network-sim-line-block > b { display: block; margin: 0 0 7px; color: #5b51c7; font-size: 12px; }
.network-sim-line-block > small { margin: 0; }
.network-ledger-table th:nth-child(7),.network-ledger-table .network-account-cell { text-align: center; }
.network-ledger-table .network-account-cell { white-space: normal; overflow-wrap: anywhere; word-break: break-word; vertical-align: middle; }
.network-credential-line { display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; }
.network-password-line { margin-top: 5px; color: #837d92; font-size: 12px; }
.network-credential-value { min-width: 0; overflow-wrap: anywhere; }
.network-credential-icon { display: inline-grid; width: 22px; height: 22px; flex: 0 0 auto; place-items: center; padding: 0; border: 0; border-radius: 8px; background: #eeebff; color: #5b51c7; font: 700 15px/1 inherit; cursor: pointer; transition: transform .16s, background .16s; }
.network-credential-icon:hover { background: #ded9ff; transform: translateY(-1px); }

.broadband-link-section { margin: 4px 0 22px; padding: 18px; border: 1px solid #ccefdc; border-radius: 18px; background: linear-gradient(145deg,#fbfffc,#eefbf3); }
.broadband-link-section h2 { margin: 0 0 5px; color: #21864a; }
.broadband-link-section > p { margin-bottom: 14px; font-size: 13px; line-height: 1.55; }
.secondary-line-badge { display: inline-block; margin-top: 7px; padding: 3px 7px; border-radius: 999px; background: #e3f8eb; color: #208348; font-size: 11px; font-weight: 760; white-space: nowrap; }
.network-credential-group { padding: 4px 0; }
.network-credential-group > b { display: block; margin-bottom: 4px; color: #625d72; font-size: 12px; }
.network-credential-group > b small { display: inline; margin: 0 0 0 4px; font-weight: 600; }
.network-eye-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.network-ledger-table .network-expiry-cell { white-space: nowrap; }
.network-sim-list { display: grid; gap: 6px; margin-top: 7px; }
.network-sim-summary { display: flex; flex-wrap: wrap; gap: 4px 7px; align-items: center; line-height: 1.45; color: #777184; font-size: 12px; overflow-wrap: anywhere; }
.network-sim-summary span { display: inline-block; min-width: 0; padding: 3px 7px; border-radius: 8px; background: #f3f1fb; overflow-wrap: anywhere; }
.network-sim-summary .network-sim-number { color: #5048ba; font-weight: 760; font-variant-numeric: tabular-nums; background: #ece9ff; }

@media (min-width: 900px) {
  .network-ledger-table th:nth-child(-n+5),.network-ledger-table td:nth-child(-n+5) { position: sticky; z-index: 2; background: #fff; }
  .network-ledger-table th:nth-child(-n+5) { z-index: 4; background: #fafaff; }
  .network-ledger-table th:nth-child(1),.network-ledger-table td:nth-child(1) { left: 0; }
  .network-ledger-table th:nth-child(2),.network-ledger-table td:nth-child(2) { left: 52px; }
  .network-ledger-table th:nth-child(3),.network-ledger-table td:nth-child(3) { left: 180px; }
  .network-ledger-table th:nth-child(4),.network-ledger-table td:nth-child(4) { left: 315px; }
  .network-ledger-table th:nth-child(5),.network-ledger-table td:nth-child(5) { left: 463px; box-shadow: 10px 0 15px -14px #6159a8aa; }
  .network-ledger-table tbody tr:hover td:nth-child(-n+5) { background: #f7f5ff; }
}

.change-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin: 22px 0; }
.change-card,.change-history { padding: 18px; border: 1px solid #e2defb; border-radius: 22px; background: linear-gradient(140deg, #fff, #faf9ff); box-shadow: 0 10px 24px #2d2a5d0b; }
.change-card h2,.change-history h2 { margin: 0 0 6px; color: #5048bb; font-size: 18px; }
.change-card p { min-height: 38px; margin: 0 0 14px; color: #777184; font-size: 13px; line-height: 1.5; }
.change-card form { display: grid; gap: 11px; }
.change-card label { color: #625c71; font-size: 13px; font-weight: 700; }
.change-card select,.change-card input { display: block; box-sizing: border-box; width: 100%; min-height: 40px; margin-top: 5px; padding: 8px 10px; border: 1px solid #ddd8f7; border-radius: 12px; background: #fff; color: #423c51; font: inherit; outline: 0; }
.change-card select:focus,.change-card input:focus { border-color: #9d92ff; box-shadow: 0 0 0 3px #8c83e01d; }

/* IPTV 服务套餐与实物设备分层台账 */
.iptv-editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start;margin-top:22px}.iptv-form{max-width:none;margin:0;border-color:#e0dcff;background:linear-gradient(145deg,#fff,#fbfaff)}.iptv-form h2{margin:0 0 4px;color:#5047c8}.section-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:20px}.section-title p{font-size:13px}.iptv-badge{display:inline-flex;align-items:center;justify-content:center;padding:6px 11px;border-radius:999px;background:#ece9ff;color:#574dcf;font-size:12px;font-weight:800}.iptv-badge.mint{background:#e8f9ee;color:#22884a}.coverage-picker{margin:4px 0 17px;padding:14px;border:1px solid #e1ddfa;border-radius:16px;background:#faf9ff}.coverage-picker legend{padding:0 7px;color:#5148c7;font-weight:800}.coverage-picker>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:230px;overflow:auto}.coverage-picker label{display:flex;align-items:center;gap:8px;margin:0;padding:9px 10px;border:1px solid #ebe8fb;border-radius:12px;background:#fff;cursor:pointer}.coverage-picker input{width:17px;height:17px;margin:0;accent-color:#655add}.coverage-picker small{margin:1px 0 0}.form-actions,.row-actions{display:flex;align-items:center;gap:7px;flex-wrap:nowrap}.button.secondary{background:#efedf9;color:#4f47bf}.iptv-list{margin-top:30px}.room-chip{display:inline-flex;margin:2px 4px 2px 0;padding:5px 8px;border-radius:999px;background:#f0eeff;color:#554bc7;font-size:12px;font-weight:750;white-space:nowrap}.row-actions form{display:inline-flex;margin:0}.row-actions .action{border:0;white-space:nowrap;cursor:pointer}.row-actions .danger{background:#fff0f3;color:#d92f53}.iptv-form [hidden]{display:none!important}@media(max-width:900px){.iptv-editor-grid{grid-template-columns:1fr}.coverage-picker>div{grid-template-columns:1fr}}@media(max-width:650px){.iptv-editor-grid{gap:14px}.coverage-picker>div{max-height:280px}}
.iptv-list .table{overflow-x:auto;overflow-y:hidden;border:0;border-radius:0;background:transparent;box-shadow:none}.iptv-list table{min-width:980px;border-collapse:separate;border-spacing:0 10px}.iptv-list thead th{padding:0 14px 5px;border:0;background:transparent}.iptv-list tbody tr{background:transparent}.iptv-list tbody td{padding:15px 14px;border-top:1px solid #ddd9ff;border-bottom:1px solid #ddd9ff;background:linear-gradient(105deg,#fbfaff,#f5f3ff);vertical-align:middle}.iptv-list tbody td:first-child{border-left:1px solid #ddd9ff;border-radius:17px 0 0 17px;box-shadow:inset 3px 0 #786dea}.iptv-list tbody td:last-child{border-right:1px solid #ddd9ff;border-radius:0 17px 17px 0}.iptv-list tbody tr:hover td{background:#f0eeff}.iptv-device-count strong{display:block;color:#403a59;font-size:14px}.iptv-device-count small{line-height:1.45}.iptv-device-note{color:#827b98}
.iptv-list td.row-actions{display:table-cell;white-space:nowrap}.iptv-list td.row-actions .action{display:inline-block;vertical-align:middle}
.iptv-list .iptv-serial{width:58px;text-align:center;color:#655ed1;font-weight:800;font-variant-numeric:tabular-nums}
.iptv-shared-group{margin:16px 0;padding:12px 15px;border:1px solid #d8d3ff;border-radius:14px;background:#f6f4ff;color:#5148c7;font-weight:800}.iptv-shared-group span{display:inline-block;padding:3px 7px;border-radius:8px;background:#fff;margin:0 3px}.iptv-shared-group small{font-weight:600}
.charging-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:24px}.charging-card{padding:18px;border:1px solid #dedaff;border-radius:20px;background:#fff}.charging-card h2,.charging-card h3{margin:0 0 8px;color:#5148c7}.charging-card h3{margin-top:16px;font-size:14px}.charging-current{margin:14px 0;padding:12px;border-radius:14px;background:#f3f1ff}.charging-current b,.charging-current strong{display:block}.charging-current strong{margin-top:3px;font-size:25px;letter-spacing:.12em}.charging-form{display:flex;gap:8px;margin:8px 0}.charging-form input{min-width:0;flex:1;padding:8px;border:1px solid #ddd8f7;border-radius:10px;font:inherit}.charging-history{max-height:150px;overflow:auto}.charging-history div{display:flex;justify-content:space-between;gap:8px;padding:7px 0;border-bottom:1px solid #eee}.charging-history span{color:#777184;font-size:12px}.charging-add{max-width:720px}@media(max-width:900px){.charging-grid{grid-template-columns:1fr}}
.iptv-editor-page{margin-top:22px}.iptv-editor-page .iptv-form{max-width:880px}.iptv-page-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:9px}.iptv-page-actions .button{white-space:nowrap}@media(max-width:650px){.iptv-page-actions{margin-top:15px;justify-content:flex-start}}
.change-card .button { justify-self: start; }
.change-history { margin-top: 22px; }
@media (max-width: 760px) { .change-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .network-people-groups { grid-template-columns: 1fr; } .network-person-row { flex-wrap: wrap; } }
@media (max-width: 900px) { .sim-card-row { grid-template-columns: 26px repeat(2,minmax(0,1fr)); } .sim-card-row label:nth-of-type(n+3) { grid-column: auto; } }
@media (max-width: 760px) { .parameter-form,.option-groups,.network-parameter-form { grid-template-columns: 1fr; } .parameter-form .button { width: 100%; } .parameter-tabs { display: flex; } .parameter-tabs a { flex: 1; justify-content: center; } .sim-card-row { grid-template-columns: 26px 1fr; } .sim-card-row label { grid-column: 2; } }
.summary .mint:before { background: #34c759; }
.summary .lamp-card:before { background: #ff375f; }
.issue-badge { display: inline-block; padding: 4px 9px; border-radius: 999px; background: #fff5dd; color: #a96500; font-size: 12px; font-weight: 700; }
.issue-badge.urgent { background: #fff0f3; color: #d92f53; }
.issue-clear { color: #8e8e93; font-size: 13px; }
.issue-fieldset { margin: 2px 0 17px; padding: 15px; border: 1px solid #e4ddff; border-radius: 15px; background: #faf9ff; }
.issue-fieldset legend { padding: 0 6px; color: #5856d6; font-weight: 750; }
.issue-fieldset label { margin-bottom: 13px; }
.issue-fieldset label:last-of-type { margin-bottom: 7px; }
.issue-hint { font-size: 12px; line-height: 1.5; }
.issue-list { display: grid; gap: 12px; margin-top: 23px; }
.issue-card { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 20px; background: #fff; border: 1px solid #e5e5ea; border-radius: 18px; box-shadow: 0 3px 12px #0000000d; }
.issue-card.urgent { border-color: #ffb7c5; background: #fffafb; }
.issue-card h2 { margin: 0 0 6px; font-size: 17px; }
.issue-card p { margin: 0 0 5px; }
.issue-card small { display: block; }
.issue-detail { color: #3a3a3c !important; }
.issue-priority { display: inline-block; padding: 3px 8px; margin-bottom: 7px; border-radius: 999px; background: #f2f2f7; color: #636366; font-size: 12px; font-weight: 700; }
.urgent .issue-priority { background: #fff0f3; color: #d92f53; }
.resolve { border: 0; cursor: pointer; background: #eaf9ef; color: #23813d; white-space: nowrap; }
.undo-test { border: 0; cursor: pointer; background: #fff4d6; color: #8c5a00; white-space: nowrap; }
.empty-issues { padding: 32px; border: 1px dashed #d1d1d6; border-radius: 18px; color: #6e6e73; text-align: center; }
@media (max-width: 850px) { .summary.issue-summary { grid-template-columns: repeat(2, 1fr); } .issue-card { align-items: flex-start; flex-direction: column; } }
.charging-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.charging-card { padding: 18px; border: 1px solid #dedaff; border-radius: 20px; background: #fff; }
.charging-card h2, .charging-card h3 { margin: 0 0 8px; color: #5148c7; }
.charging-card h3 { margin-top: 16px; font-size: 14px; }
.charging-current { margin: 14px 0; padding: 12px; border-radius: 14px; background: #f3f1ff; }
.charging-current b, .charging-current strong { display: block; }
.charging-current strong { margin-top: 3px; font-size: 25px; letter-spacing: .12em; }
.charging-form { display: flex; gap: 8px; margin: 8px 0; }
.charging-form input { min-width: 0; flex: 1; padding: 8px; border: 1px solid #ddd8f7; border-radius: 10px; font: inherit; }
.charging-history { max-height: 150px; overflow: auto; }
.charging-history div { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid #eee; }
.charging-history span { color: #777184; font-size: 12px; }
.charging-add-modal { background: #16152c99; }
.charging-add-modal .modal-card { width: min(100%, 660px); padding: 30px; border: 1px solid #ffffff66; border-radius: 26px; background: linear-gradient(145deg, #ffffff 0%, #fbfaff 100%); box-shadow: 0 30px 80px #0c0b2270; text-align: left; }
.charging-modal-heading { display: flex; gap: 13px; align-items: center; }
.charging-modal-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 15px; background: linear-gradient(135deg, #6056da, #8a81f2); box-shadow: 0 8px 18px #6258d84d; font-size: 22px; }
.charging-modal-kicker { margin: 0 0 3px; color: #77718e; font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.charging-add-modal .modal-card h2 { margin: 0; color: #292542; font-size: 25px; letter-spacing: -.6px; }
.charging-modal-intro { margin: 18px 0 21px !important; color: #716c82; font-size: 14px; line-height: 1.6; }
.charging-add { margin: 0; }
.charging-add-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.charging-field { display: block; padding: 12px; border: 1px solid #e4e0f5; border-radius: 15px; background: #fff; transition: border-color .18s, box-shadow .18s; }
.charging-field:focus-within { border-color: #847bed; box-shadow: 0 0 0 4px #665dd81a; }
.charging-field > span { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 7px; color: #464156; font-size: 13px; font-weight: 750; }
.charging-field i { color: #756bd9; font-size: 11px; font-style: normal; font-weight: 650; }
.charging-field input { display: block; width: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: #282436; font: inherit; }
.charging-field input::placeholder { color: #aaa6b4; }
.charging-add-actions { display: flex; gap: 10px; align-items: center; margin-top: 22px; }
.charging-add-actions .button { min-width: 122px; text-align: center; }
.charging-add-actions .modal-cancel { width: auto; padding: 10px 18px; }
.charging-edit { margin-top: 14px; padding-top: 12px; border-top: 1px solid #eee; }
.charging-edit summary { cursor: pointer; color: #5148c7; font-weight: 700; }
.charging-edit-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.charging-edit-form label { color: #4b495c; font-size: 13px; font-weight: 650; }
.charging-edit-form input { display: block; width: 100%; margin-top: 5px; padding: 8px; border: 1px solid #ddd8f7; border-radius: 10px; font: inherit; }
.charging-edit-form .button { grid-column: span 2; justify-self: start; }
.charging-delete { margin-top: 10px; }
.map-home-actions { display: grid; justify-items: end; gap: 12px; }
@media (max-width: 650px) { .charging-edit-form { grid-template-columns: 1fr; } .charging-edit-form .button { grid-column: auto; } }
@media (max-width: 650px) { .charging-add-modal .modal-card { padding: 22px 20px 26px; } .charging-add-fields { grid-template-columns: 1fr; } .charging-add-actions { display: grid; grid-template-columns: 1fr; } .charging-add-actions .button, .charging-add-actions .modal-cancel { width: 100%; } }
@media (max-width: 650px) { .map-home-actions { justify-items: start; margin-top: 16px; } }
@media (max-width: 900px) { .charging-grid { grid-template-columns: 1fr; } }

/* 手机端台账改为卡片，避免宽表横向滑动。 */
.network-mobile-list, .iptv-mobile-list { display: none; }
@media (max-width: 760px) {
  .network-ledger-table, .iptv-list > .table { display: none; }
  .network-mobile-list, .iptv-mobile-list { display: grid; gap: 13px; margin-top: 18px; }
  .iptv-mobile-list { margin-top: 26px; }
  .iptv-mobile-list > h2 { margin: 0 0 1px; color: #3e3852; font-size: 18px; }
  .network-mobile-card, .iptv-mobile-card { overflow: hidden; border: 1px solid #dedaff; border-radius: 20px; background: linear-gradient(145deg, #fff, #faf9ff); box-shadow: 0 7px 18px #2d2a5d0a; }
  .network-mobile-card > header, .iptv-mobile-card > header { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 15px; border-bottom: 1px solid #eeeaff; }
  .network-mobile-card h2, .iptv-mobile-card h3 { margin: 0 0 3px; color: #403a59; font-size: 17px; }
  .network-mobile-card header p, .iptv-mobile-card header p { margin: 0; color: #827b98; font-size: 12px; }
  .network-mobile-serial, .iptv-mobile-serial { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 9px; background: #eeebff; color: #5b51c7; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
  .network-mobile-card .network-status, .iptv-mobile-card .network-status { font-size: 11px; white-space: nowrap; }
  .network-mobile-facts, .iptv-mobile-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 7px 15px; }
  .network-mobile-facts > div, .iptv-mobile-facts > div { min-width: 0; padding: 10px 0; border-bottom: 1px solid #f0eef7; }
  .network-mobile-facts > div:nth-last-child(-n+2), .iptv-mobile-facts > div:nth-last-child(-n+2) { border-bottom: 0; }
  .network-mobile-facts > div:nth-child(odd), .iptv-mobile-facts > div:nth-child(odd) { padding-right: 11px; }
  .network-mobile-facts > div:nth-child(even), .iptv-mobile-facts > div:nth-child(even) { padding-left: 11px; border-left: 1px solid #f0eef7; }
  .network-mobile-facts b, .iptv-mobile-facts b { display: block; margin-bottom: 4px; color: #8b849b; font-size: 11px; font-weight: 700; }
  .network-mobile-facts span, .iptv-mobile-facts span { display: block; overflow-wrap: anywhere; color: #403a59; font-size: 13px; font-weight: 700; }
  .network-mobile-card > .secondary-line-badge { margin: 0 15px 11px; }
  .network-mobile-details, .iptv-mobile-card details { margin: 0 15px 12px; padding: 11px 12px; border: 1px solid #e7e3f8; border-radius: 13px; background: #f8f7ff; }
  .network-mobile-details summary, .iptv-mobile-card summary { cursor: pointer; color: #554bc7; font-size: 13px; font-weight: 800; }
  .network-mobile-details section { margin-top: 12px; }
  .network-mobile-details section > b { display: block; margin-bottom: 7px; color: #655e74; font-size: 12px; }
  .network-mobile-details .network-credential-line { justify-content: flex-start; }
  .network-mobile-details .network-account-cell { text-align: left; }
  .network-mobile-details .iptv-ledger-tag { width: 100%; }
  .network-mobile-actions, .iptv-mobile-actions { display: flex; gap: 8px; align-items: center; padding: 12px 15px; border-top: 1px solid #eeeaff; }
  .network-mobile-actions form { margin: 0; }
  .iptv-mobile-detail { display: grid; gap: 7px; margin-top: 10px; }
  .iptv-mobile-detail small { margin: 0; }
  .iptv-mobile-card .room-chip { width: fit-content; max-width: 100%; overflow-wrap: anywhere; white-space: normal; }
  .iptv-mobile-card .network-status { align-self: start; }
}

/* app.css 的顶部栏曾使用通用 header 选择器，移动端台账卡片的 header 也会被误设为吸顶层。
   仅重置主内容内的语义卡片标题；真正的系统顶部栏位于 main 外。 */
main header { height: auto; min-height: 0; padding: 0; background: transparent; backdrop-filter: none; border: 0; position: static; top: auto; z-index: auto; gap: normal; }

/* 教室设备台账：手机端的两项管理操作使用等高、固定比例的操作栏。 */
@media (max-width: 650px) {
  .dashboard-heading-actions { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); width: 100%; margin-top: 20px; gap: 10px; }
  .dashboard-heading-actions .action, .dashboard-heading-actions .button { display: flex; min-height: 50px; align-items: center; justify-content: center; margin: 0; padding: 10px 8px; white-space: nowrap; text-align: center; }
}

/* 网络台账辅助入口：紧凑工具栏与主操作分离。 */
.network-heading-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.network-tool-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.network-tool-link { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 5px; padding: 7px 9px; border: 1px solid #e1dcf9; border-radius: 11px; background: #f8f7ff; color: #564dc0; font-size: 12px; font-weight: 760; white-space: nowrap; }
.network-tool-link:hover { background: #eeeaff; color: #4439af; }
.network-tool-link > span { font-size: 14px; line-height: 1; }
.network-add-button { min-height: 40px; white-space: nowrap; }
@media (max-width: 650px) {
  .network-heading-actions { display: grid; width: 100%; margin-top: 20px; gap: 12px; }
  .network-tool-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 8px; }
  .network-tool-link { min-height: 46px; padding: 8px; border-radius: 13px; font-size: 13px; }
  .network-add-button { display: flex; min-height: 50px; width: 100%; align-items: center; justify-content: center; }
}
