/* NO1REMOTE v0.5.10 상담원 콘솔 전용 */
.operator-body {
  min-width: 1180px;
  background: #edf2f7;
}

.operator-topbar {
  min-height: 62px;
  padding: 0 20px;
  background: #0c1b2e;
}

.operator-topbar-left,
.operator-nav,
.operator-presence,
.device-head-actions,
.device-search-actions,
.device-status-tabs,
.device-table-footer,
.pagination-controls,
.pagination-pages,
.access-code-actions,
.access-side-head,
.dialog-actions {
  display: flex;
  align-items: center;
}

.operator-topbar-left { gap: 28px; }
.operator-nav { align-self: stretch; gap: 2px; }
.operator-nav-button {
  position: relative;
  height: 100%;
  padding: 0 17px;
  border: 0;
  color: #a9b7c9;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}
.operator-nav-button:hover { color: #fff; background: rgba(255,255,255,.045); }
.operator-nav-button.active { color: #fff; }
.operator-nav-button.active::after {
  content: "";
  position: absolute;
  right: 15px;
  bottom: 0;
  left: 15px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #2fd397;
}

.operator-presence {
  gap: 8px;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  color: #d9e5f1;
  background: rgba(255,255,255,.055);
  font-size: 12px;
  font-weight: 800;
}
.operator-presence i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #43d18f;
  box-shadow: 0 0 0 4px rgba(67,209,143,.13);
}
.operator-presence.busy i { background: #f0a634; box-shadow: 0 0 0 4px rgba(240,166,52,.13); }

.operator-page {
  width: min(1780px, calc(100% - 30px));
  margin: 0 auto;
  padding: 18px 0 56px;
}

.operator-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
  align-items: start;
}

.device-console {
  min-height: 655px;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 8px 26px rgba(12, 27, 46, .07);
}

.device-console-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #e0e7ef;
}
.device-console-head h1,
.access-code-head h2,
.dialog-head h2 {
  margin: 2px 0 0;
  color: #10223a;
  letter-spacing: -.035em;
}
.device-console-head h1 { font-size: 24px; }
.device-console-head > div > p:last-child {
  margin: 7px 0 0;
  color: #6d7c8e;
  font-size: 13px;
}
.console-eyebrow {
  margin: 0;
  color: #0f9a68;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
}
.device-head-actions { gap: 8px; }

.device-search-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.7fr) 150px 150px 160px auto;
  gap: 10px;
  align-items: end;
  padding: 14px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.compact-field { display: grid; gap: 6px; min-width: 0; }
.compact-field > span {
  color: #627287;
  font-size: 11px;
  font-weight: 800;
}
.search-control {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
}
.search-control .select {
  border-radius: 9px 0 0 9px;
  border-right: 0;
}
.search-control .input { border-radius: 0 9px 9px 0; }
.device-search-grid .input,
.device-search-grid .select {
  min-height: 40px;
  padding: 8px 10px;
  border-color: #cfd9e5;
  background: #fff;
  font-size: 12px;
}
.device-search-actions { gap: 7px; padding-bottom: 1px; }
.btn-ghost-dark {
  color: #4c6077;
  background: #fff;
  border: 1px solid #cfd9e5;
}
.btn-danger-outline {
  color: #be4050;
  background: #fff;
  border: 1px solid #efb9c0;
}

.device-status-tabs {
  gap: 6px;
  padding: 12px 18px;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}
.device-status-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 12px;
  color: #5e7187;
  background: #f2f5f8;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.device-status-tab strong {
  color: #18324f;
  font-size: 11px;
}
.device-status-tab:hover { background: #e9eef4; }
.device-status-tab.active {
  color: #087b54;
  background: #e8f8f1;
  border-color: #bfead8;
}
.device-status-tab.active strong { color: #087b54; }

.device-table-wrap {
  min-height: 398px;
  overflow: auto;
  background: #fff;
}
.device-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.device-table th {
  height: 42px;
  padding: 9px 10px;
  color: #fff;
  background: #7f93a5;
  border-right: 1px solid rgba(255,255,255,.12);
  font-size: 11px;
  font-weight: 900;
  text-align: left;
}
.device-table th:last-child { border-right: 0; }
.device-table td {
  height: 52px;
  padding: 8px 10px;
  color: #263b53;
  border-bottom: 1px solid #e3e9ef;
  font-size: 12px;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.device-table tbody tr { transition: background .14s ease; }
.device-table tbody tr:hover { background: #f1f8f5; }
.device-table tbody tr.device-busy { background: #fff9ec; }
.device-table tbody tr.device-blocked { background: #f7f7f8; opacity: .82; }
.device-table .number-cell { width: 58px; text-align: center; }
.device-table .action-cell { width: 68px; text-align: center; }
.device-table th:nth-child(2) { width: 108px; }
.device-table th:nth-child(3) { width: 22%; }
.device-table th:nth-child(4) { width: 18%; }
.device-table th:nth-child(5) { width: 88px; }
.device-table th:nth-child(6) { width: 102px; }
.device-table th:nth-child(7) { width: 142px; }
.device-table .table-button {
  width: 42px;
  height: 32px;
  padding: 0;
  border: 1px solid #c7d3df;
  border-radius: 9px;
  color: #3b526b;
  background: #fff;
  font-size: 11px;
  font-weight: 900;
}
.device-table .table-button:hover { border-color: #169f6c; color: #087b54; background: #effbf6; }
.device-table .table-button.primary { border-color: #93dfc2; color: #087b54; background: #eaf9f2; }
.device-table .table-button:disabled { cursor: not-allowed; opacity: .42; }
.table-empty { padding: 62px 20px; }

.device-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
}
.device-state i {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
}
.device-state.online i { background: #7ecb13; }
.device-state.offline i { background: #b5bdc7; }
.device-state.busy i { background: #f3a52d; box-shadow: 0 0 0 4px rgba(243,165,45,.12); }
.device-state.blocked i { background: #e05a68; }
.device-state.online { color: #4d780f; }
.device-state.offline { color: #7a8796; }
.device-state.busy { color: #a46508; }
.device-state.blocked { color: #b83a49; }
.device-subtext {
  display: block;
  margin-top: 3px;
  color: #8390a0;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.device-name-main { display: block; color: #142c47; font-weight: 800; }
.device-type-tag {
  display: inline-flex;
  min-width: 52px;
  justify-content: center;
  padding: 5px 7px;
  color: #52667d;
  background: #eef2f6;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 900;
}

.device-table-footer {
  justify-content: space-between;
  min-height: 58px;
  gap: 16px;
  padding: 10px 18px;
  color: #6f7f91;
  background: #f7f9fb;
  font-size: 11px;
}
.pagination-controls { gap: 4px; }
.pagination-pages { gap: 4px; }
.pagination-button {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #51667d;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}
.pagination-button:hover:not(:disabled) { background: #e7edf3; }
.pagination-button.active { color: #fff; background: #58758d; }
.pagination-button:disabled { cursor: not-allowed; opacity: .35; }

.access-column {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 80px;
}
.access-code-card,
.access-side-card {
  background: #fff;
  border: 1px solid #dce4ec;
  border-radius: 14px;
  box-shadow: 0 8px 26px rgba(12, 27, 46, .07);
}
.access-code-card { padding: 19px; }
.access-code-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.access-code-head h2 { font-size: 19px; }
.pin-state {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}
.pin-idle { color: #607188; background: #eef2f6; }
.pin-waiting { color: #087b54; background: #e7f8f0; }
.pin-joined { color: #156cc1; background: #e8f2ff; }
.pin-active { color: #9c6108; background: #fff1d5; }
.pin-closed { color: #a43c49; background: #ffe9ec; }
.access-code-number {
  padding: 22px 0 8px;
  color: #7b29d0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .04em;
  text-align: center;
  user-select: all;
}
.access-code-countdown {
  min-height: 20px;
  color: #6d7d90;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.access-address-card {
  position: relative;
  display: grid;
  gap: 3px;
  margin: 17px 0 13px;
  padding: 12px 13px;
  color: #51647b;
  background: #f3f6f9;
  border: 1px solid #e0e7ee;
  border-radius: 10px;
}
.access-address-card span { font-size: 10px; font-weight: 800; }
.access-address-card strong { color: #18314d; font-size: 13px; }
.text-button {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  color: #087b54;
  background: transparent;
  font-size: 10px;
  font-weight: 900;
}
.access-code-form { display: grid; gap: 10px; }
.access-settings {
  border: 1px solid #e1e7ee;
  border-radius: 10px;
  background: #fafbfd;
}
.access-settings summary {
  padding: 10px 12px;
  color: #5d7086;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}
.access-permission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  padding: 0 12px 11px;
}
.access-permission-grid label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #52667c;
  font-size: 10px;
  font-weight: 700;
}
.access-code-actions { justify-content: center; gap: 7px; margin-top: 9px; }
.access-code-message {
  margin-top: 13px;
  padding: 10px 11px;
  color: #5f7185;
  background: #f8fafc;
  border: 1px solid #e5eaf0;
  border-radius: 9px;
  font-size: 10px;
  line-height: 1.55;
  text-align: center;
}
.access-side-card { padding: 15px; }
.access-side-head { justify-content: space-between; gap: 12px; }
.access-side-head h3 { margin: 0; color: #18314d; font-size: 13px; }
.access-side-head span { color: #7b8999; font-family: ui-monospace, monospace; font-size: 11px; }
.current-session-summary {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding: 12px;
  color: #627286;
  background: #f6f8fa;
  border-radius: 9px;
  font-size: 10px;
  line-height: 1.5;
}
.current-session-summary strong { color: #1f3854; font-size: 12px; }
.quick-downloads a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  padding: 10px 11px;
  color: #51657c;
  background: #f6f8fa;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 800;
}
.quick-downloads a:hover { color: #087b54; background: #ecf8f3; }
.quick-downloads a strong { color: inherit; }

.recent-support-panel {
  margin-top: 16px;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 8px 26px rgba(12, 27, 46, .06);
}
.recent-support-head { padding: 17px 20px; }
.recent-table-wrap { overflow: auto; border-top: 1px solid #e2e8f0; }
.recent-table { width: 100%; border-collapse: collapse; }
.recent-table th {
  padding: 10px 12px;
  color: #607186;
  background: #f4f7f9;
  border-bottom: 1px solid #e1e7ed;
  font-size: 10px;
  font-weight: 900;
  text-align: left;
}
.recent-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #e8edf2;
  color: #3b5169;
  font-size: 11px;
}
.recent-table tbody tr:hover { background: #f4faf7; }
.recent-table .recent-open-button {
  border: 0;
  color: #087b54;
  background: transparent;
  font-size: 10px;
  font-weight: 900;
}

.support-workspace {
  display: grid;
  gap: 16px;
  margin-top: 16px;
  scroll-margin-top: 76px;
}
.support-workspace .panel { border-radius: 14px; box-shadow: 0 8px 26px rgba(12, 27, 46, .06); }

.operator-dialog {
  width: min(560px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 32px 90px rgba(5, 19, 34, .28);
}
.operator-dialog::backdrop { background: rgba(7, 20, 39, .58); backdrop-filter: blur(3px); }
.dialog-shell { padding: 24px; }
.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.dialog-head h2 { font-size: 22px; }
.dialog-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  color: #52667d;
  background: #eef2f6;
  font-size: 22px;
  line-height: 1;
}
.dialog-description { margin: 13px 0 18px; color: #68798d; font-size: 12px; line-height: 1.65; }
.enrollment-result {
  margin-top: 16px;
  padding: 18px;
  text-align: center;
  background: #f1fbf7;
  border: 1px solid #c6ecdd;
  border-radius: 13px;
}
.enrollment-result small { color: #557066; font-size: 11px; }
.enrollment-result .code { color: #0f8c60; }
.device-detail-shell { width: 100%; }
.device-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.device-detail-grid > div {
  min-width: 0;
  padding: 12px;
  background: #f5f7f9;
  border: 1px solid #e4e9ef;
  border-radius: 10px;
}
.device-detail-grid .wide { grid-column: 1 / -1; }
.device-detail-grid small,
.device-detail-grid strong { display: block; }
.device-detail-grid small { color: #7c8998; font-size: 10px; }
.device-detail-grid strong { margin-top: 4px; color: #213a55; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dialog-actions { justify-content: flex-end; gap: 8px; margin-top: 18px; }

@media (max-width: 1380px) {
  .device-search-grid { grid-template-columns: minmax(330px, 1.5fr) 140px 140px 145px auto; }
  .operator-dashboard { grid-template-columns: minmax(0, 1fr) 310px; }
  .access-code-number { font-size: 44px; }
}

@media (max-width: 1180px) {
  .operator-body { min-width: 0; }
  .operator-dashboard { grid-template-columns: 1fr; }
  .access-column { position: static; grid-template-columns: minmax(280px, .9fr) minmax(250px, .6fr) minmax(250px, .6fr); }
  .device-search-grid { grid-template-columns: minmax(300px, 1fr) 140px 140px 150px auto; }
  .operator-nav { display: none; }
}

@media (max-width: 900px) {
  .operator-page { width: min(100% - 18px, 1780px); }
  .device-search-grid { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .device-search-actions { align-self: end; }
  .access-column { grid-template-columns: 1fr; }
  .device-table { min-width: 980px; }
  .operator-topbar .brand-copy small { display: none; }
}

/* v0.5.10 · 상담원 로그인 다운로드와 휴대폰 PIN 복구 */
.staff-login-wrap {
  padding: 46px 24px 64px;
  align-items: flex-start;
}
.staff-login-layout {
  width: min(1040px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(340px, 440px) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}
.staff-login-layout .login-card { width: 100%; }
.staff-login-downloads {
  padding: 32px;
  border: 1px solid #d7e4ef;
  border-radius: 24px;
  background: linear-gradient(145deg, #f8fbff 0%, #eef7f3 100%);
  box-shadow: 0 18px 44px rgba(18, 52, 79, .11);
}
.staff-login-download-head h2 { margin: 6px 0 8px; font-size: 27px; letter-spacing: -.04em; }
.staff-login-download-head > p:last-child { margin: 0 0 22px; color: #63778a; line-height: 1.65; }
.staff-login-download-grid { display: grid; gap: 12px; }
.staff-login-download-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 16px 18px;
  color: #17344d;
  text-decoration: none;
  border: 1px solid #d6e3ec;
  border-radius: 16px;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.staff-login-download-grid a:hover { transform: translateY(-2px); border-color: #87b9a5; box-shadow: 0 12px 24px rgba(20, 71, 52, .1); }
.staff-login-download-grid a span { display: grid; gap: 4px; }
.staff-login-download-grid a b { font-size: 17px; }
.staff-login-download-grid a small { color: #718397; font-size: 12px; }
.staff-login-download-grid a strong { flex: 0 0 auto; color: #087b54; font-size: 13px; }

.recovery-dialog { width: min(560px, calc(100% - 28px)); }
.recovery-shell { padding: 28px; }
.recovery-step { margin-top: 22px; }
.recovery-sent-to { margin-bottom: 16px; padding: 14px 16px; border-radius: 13px; background: #eef7ff; color: #2c5578; line-height: 1.6; }
.recovery-code-input { text-align: center; font-size: 25px; font-weight: 900; letter-spacing: .22em; }
.recovery-security-note { margin: 18px 0 0; color: #718397; font-size: 12px; line-height: 1.7; }

@media (max-width: 820px) {
  .staff-login-layout { grid-template-columns: 1fr; max-width: 560px; }
  .staff-login-wrap { padding: 28px 16px 48px; }
}
@media (max-width: 520px) {
  .staff-login-downloads, .recovery-shell { padding: 22px 18px; border-radius: 20px; }
  .staff-login-download-grid a { min-height: 70px; padding: 14px; }
}

/* --------------------------------------------------------------------------
   NO1REMOTE v0.5.10 · 데스크톱 상담원 콘솔
   사용자 제공 원격지원 프로그램의 빠른 검색·좌측 장비목록·우측 접속번호 구조를
   참고하되 NO1REMOTE 브랜드와 기존 기능/데이터 구조를 그대로 유지한다.
   -------------------------------------------------------------------------- */

.operator-body {
  min-width: 1080px;
  background:
    radial-gradient(circle at 16% 14%, rgba(74, 183, 214, .16), transparent 26%),
    radial-gradient(circle at 88% 82%, rgba(54, 160, 119, .12), transparent 28%),
    linear-gradient(135deg, #dcebf0 0%, #edf3f4 48%, #d8e7e3 100%);
}

.operator-body:not(.operator-authenticated) .operator-topbar { display: none; }
.operator-body:not(.operator-authenticated) .shell { display: grid; min-height: 100vh; }

.operator-topbar {
  min-height: 58px;
  padding: 0 18px;
  background: #35444b;
  border-bottom: 1px solid #27343a;
  box-shadow: 0 2px 10px rgba(20, 36, 44, .18);
}
.operator-topbar .brand { gap: 9px; }
.operator-topbar .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(145deg, #10aee0, #087eaf);
  box-shadow: none;
  font-size: 12px;
}
.operator-topbar .brand-copy { font-size: 14px; }
.operator-topbar .brand-copy small { color: #aebdc4; font-size: 9px; }
.operator-topbar-left { gap: 20px; }
.operator-nav-button { padding: 0 15px; color: #c8d2d7; font-size: 12px; }
.operator-nav-button.active::after { right: 12px; left: 12px; background: #18b9df; }
.operator-presence { border-color: rgba(255,255,255,.13); background: rgba(255,255,255,.06); }
.operator-topbar .version-pill { color: #caf3ff; background: rgba(20,184,222,.12); border-color: rgba(49,196,229,.22); }
.operator-topbar .btn-ghost { min-height: 30px; color: #e1e9ec; background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.1); }

.operator-page {
  width: min(1700px, calc(100% - 30px));
  margin: 0 auto;
  padding: 14px 0 44px;
}
.operator-dashboard { grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; }
.device-console,
.access-code-card,
.access-side-card,
.recent-support-panel,
.support-workspace .panel {
  border-color: #cbd5da;
  border-radius: 10px;
  box-shadow: 0 7px 22px rgba(37, 57, 66, .1);
}
.device-console { min-height: 650px; }
.device-console-head {
  min-height: 77px;
  padding: 15px 18px 13px;
  border-bottom-color: #d2dbe0;
  background: #f4f6f7;
}
.device-console-head h1 { margin-top: 0; color: #293c46; font-size: 20px; }
.device-console-head > div > p:last-child { margin-top: 4px; color: #75858d; font-size: 11px; }
.console-eyebrow { color: #139bc0; font-size: 9px; }
.device-head-actions .btn { border-radius: 7px; }
.device-head-actions .btn-dark { background: #43555e; }

.device-search-grid {
  grid-template-columns: minmax(340px, 1.6fr) 145px 145px 148px auto;
  gap: 8px;
  padding: 10px 14px 12px;
  background: #46555c;
  border-bottom-color: #35444b;
}
.compact-field > span { color: #d5e0e4; font-size: 10px; }
.device-search-grid .input,
.device-search-grid .select {
  min-height: 36px;
  padding: 7px 9px;
  border-color: #6c7a80;
  border-radius: 5px;
  color: #25363f;
  background: #fff;
  font-size: 11px;
  box-shadow: none;
}
.search-control { grid-template-columns: 105px minmax(0, 1fr); }
.search-control .select { border-radius: 5px 0 0 5px; }
.search-control .input { border-radius: 0 5px 5px 0; }
.device-search-actions .btn { min-height: 36px; border-radius: 18px; }
.device-search-actions .btn-secondary { color: #fff; border-color: #11b4d9; background: #11b4d9; }
.device-search-actions .btn-ghost-dark { color: #e8eef0; border-color: #6f7f86; background: #617078; }

.device-status-tabs {
  gap: 7px;
  padding: 11px 15px;
  border-bottom-color: #d6dfe3;
  background: #eef1f3;
}
.device-status-tab {
  min-height: 31px;
  padding: 5px 11px;
  color: #586b74;
  border-color: #d0d9dd;
  border-radius: 16px;
  background: #fff;
  font-size: 11px;
}
.device-status-tab.active { color: #078eb2; border-color: #45c7e4; background: #f2fcff; }
.device-status-tab.active strong { color: #078eb2; }

.device-table-wrap { min-height: 390px; }
.device-table th {
  height: 44px;
  color: #fff;
  background: #93a5ad;
  border-right-color: rgba(255,255,255,.2);
  font-size: 11px;
  text-align: center;
}
.device-table td {
  height: 50px;
  color: #344b56;
  border-bottom-color: #dfe5e8;
  font-size: 11px;
}
.device-table tbody tr:hover { background: #f0f9fc; }
.device-table .number-cell,
.device-table .action-cell { text-align: center; }
.device-name-main { color: #2b424d; font-weight: 700; }
.device-subtext { color: #89979d; }
.device-state.online { color: #5d8800; }
.device-state.online i { background: #89cc00; box-shadow: 0 0 0 3px rgba(137,204,0,.11); }
.device-table .table-button {
  width: 48px;
  height: 30px;
  border-radius: 15px;
  color: #596d76;
  border-color: #bfcbd0;
  font-size: 10px;
}
.device-table .table-button.primary { color: #078eb2; border-color: #80d5e8; background: #effbfe; }
.device-table-footer { min-height: 52px; background: #f2f4f5; }
.pagination-button { border-radius: 3px; }
.pagination-button.active { background: #627d8a; }

.access-column { top: 72px; gap: 11px; }
.access-code-card { padding: 16px; }
.access-code-head h2 { color: #344b56; font-size: 17px; }
.pin-state { border-radius: 12px; }
.access-code-number { padding: 20px 0 5px; color: #8b23d4; font-size: 45px; }
.access-address-card { margin-top: 14px; border-radius: 7px; background: #f2f4f5; }
.access-settings { border-radius: 7px; }
.access-code-card .btn-primary { border-radius: 8px; background: #13a9ce; box-shadow: 0 8px 18px rgba(19,169,206,.2); }
.access-side-card { padding: 13px; }
.quick-downloads a { border: 1px solid #e0e6e9; border-radius: 7px; background: #f8f9fa; }
.quick-downloads a:hover { color: #078eb2; background: #effaff; }

/* v0.5.10.24 · 단순하고 세련된 상담원 로그인 */
.staff-login-wrap {
  min-height: 100vh;
  padding: 32px;
  place-items: center;
  background:
    radial-gradient(circle at 16% 10%, rgba(18, 153, 214, .18), transparent 28%),
    radial-gradient(circle at 88% 85%, rgba(22, 196, 154, .12), transparent 29%),
    linear-gradient(145deg, #06111b 0%, #0a1b29 50%, #0e2431 100%);
}
.staff-login-window {
  width: min(980px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 34px 100px rgba(0, 0, 0, .42);
}
.staff-login-brandbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  padding: 17px 32px;
  background: #fff;
  border-bottom: 1px solid #e6edf2;
}
.staff-login-logo { display: flex; align-items: center; gap: 13px; color: #0c2030; }
.staff-login-logo-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  background: linear-gradient(145deg, #16a6dd, #0976b5);
  border-radius: 15px;
  box-shadow: 0 10px 24px rgba(9,118,181,.25);
  font-size: 18px;
  font-weight: 950;
}
.staff-login-logo strong { display: block; font-size: 25px; line-height: 1; letter-spacing: -.045em; }
.staff-login-logo small { display: block; margin-top: 6px; color: #7a8a98; font-size: 8px; letter-spacing: .17em; }
.staff-login-security { display: flex; align-items: center; gap: 7px; margin-right: 66px; color: #557080; font-size: 11px; font-weight: 800; }
.staff-login-security i { width: 8px; height: 8px; border-radius: 50%; background: #19b889; box-shadow: 0 0 0 4px rgba(25,184,137,.12); }
.staff-login-version { position: absolute; right: 24px; top: 18px; color: #9aa8b3; font-size: 9px; font-weight: 800; }

.staff-login-main {
  display: grid;
  grid-template-columns: minmax(260px, .86fr) minmax(430px, 1.14fr);
  min-height: 485px;
  color: #fff;
  background: #fff;
}
.staff-login-intro {
  position: relative;
  overflow: hidden;
  padding: 58px 45px;
  background:
    radial-gradient(circle at 88% 18%, rgba(25, 173, 222, .22), transparent 31%),
    linear-gradient(150deg, #0a2233 0%, #0d3044 58%, #0c3c4a 100%);
}
.staff-login-intro::after {
  position: absolute;
  right: -90px;
  bottom: -105px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255,255,255,.025), 0 0 0 86px rgba(255,255,255,.018);
  content: '';
}
.staff-login-intro p { margin: 0 0 15px; color: #53c7ec; font-size: 10px; font-weight: 900; letter-spacing: .17em; }
.staff-login-intro h1 { margin: 0; font-size: 34px; line-height: 1.23; letter-spacing: -.055em; }
.staff-login-intro > span { display: block; max-width: 320px; margin-top: 20px; color: #afc1cc; font-size: 12px; line-height: 1.8; }
.staff-login-features { position: relative; z-index: 1; display: grid; gap: 12px; margin-top: 38px; }
.staff-login-features span { display: flex; align-items: center; gap: 11px; margin: 0; color: #dce8ee; font-size: 11px; font-weight: 700; }
.staff-login-features i { display: grid; place-items: center; width: 30px; height: 30px; color: #5dd2f4; border: 1px solid rgba(108,209,239,.24); border-radius: 9px; background: rgba(74,183,218,.1); font-size: 9px; font-style: normal; font-weight: 900; }

.staff-login-form {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 43px 52px;
  color: #183042;
  background: #fff;
}
.staff-login-form-head { margin-bottom: 5px; }
.staff-login-form-head > span { color: #168fc3; font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.staff-login-form-head h2 { margin: 7px 0 5px; color: #102637; font-size: 27px; letter-spacing: -.045em; }
.staff-login-form-head p { margin: 0; color: #7c8c98; font-size: 11px; }
.staff-login-fields { display: grid; gap: 11px; }
.staff-login-field { display: grid; gap: 6px; min-width: 0; color: #486071; font-size: 10px; font-weight: 850; }
.staff-login-input { position: relative; display: block; min-width: 0; }
.staff-login-input > i {
  position: absolute;
  z-index: 1;
  left: 13px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  color: #3d6d86;
  border-radius: 7px;
  background: #edf5f8;
  font-size: 8px;
  font-style: normal;
  font-weight: 950;
  transform: translateY(-50%);
}
.staff-login-fields .input {
  width: 100%;
  min-height: 49px;
  padding: 10px 52px 10px 49px;
  color: #173248;
  border: 1px solid #d7e2e9;
  border-radius: 11px;
  background: #fbfdfe;
  font-size: 13px;
  box-shadow: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.staff-login-fields .input:focus { border-color: #2c9ed0; background: #fff; box-shadow: 0 0 0 4px rgba(30,151,202,.11); }
.staff-login-fields .input[readonly] { color: #6a7d89; background: #f3f7f9; }
.staff-login-fields .password-field { min-width: 0; }
.staff-login-fields .password-toggle { right: 8px; min-height: 32px; padding: 6px 9px; color: #37748f; border-radius: 7px; font-size: 9px; }
.staff-login-options { display: flex; align-items: center; gap: 19px; padding: 1px 0; }
.remember-login { display: inline-flex; align-items: center; gap: 7px; color: #435b6c; font-size: 10px; font-weight: 750; cursor: pointer; }
.remember-login input { width: 16px; height: 16px; margin: 0; accent-color: #168fc3; }
.staff-recovery-link { padding: 0; border: 0; color: #1686b5; background: transparent; font-size: 10px; font-weight: 800; }
.staff-recovery-link:hover { text-decoration: underline; }
.staff-login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 51px;
  padding: 10px 18px;
  color: #fff;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #159bd0, #087ab8);
  box-shadow: 0 12px 24px rgba(8,122,184,.22);
}
.staff-login-button:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 15px 28px rgba(8,122,184,.27); }
.staff-login-button:disabled { transform: none; opacity: .65; }
.staff-login-button strong { font-size: 13px; }
.staff-login-button span { font-size: 18px; line-height: 1; }
.staff-login-form .error-box { margin: 0; }
.staff-login-form .demo-credentials { margin: 0; }
.staff-login-help { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.staff-login-help > span { color: #99a5ad; font-size: 8px; }
.production-login-note { display: flex; align-items: center; justify-content: center; gap: 7px; color: #7b8c97; font-size: 9px; line-height: 1.5; text-align: center; }
.production-login-note i { width: 6px; height: 6px; border-radius: 50%; background: #26b88b; }

.staff-login-downloads {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 17px 26px;
  border: 0;
  border-top: 1px solid #e8eef2;
  border-radius: 0;
  background: #f7f9fb;
  box-shadow: none;
}
.staff-login-download-head { display: grid; gap: 4px; }
.staff-login-download-head strong { color: #243b4b; font-size: 12px; }
.staff-login-download-head span { color: #8a98a2; font-size: 8px; }
.staff-login-download-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.staff-login-download-grid a {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 8px 10px;
  color: #314a5a;
  border: 1px solid #e0e7ec;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}
.staff-login-download-grid a:hover { transform: translateY(-1px); border-color: #87c9e4; box-shadow: 0 8px 18px rgba(31,96,126,.08); }
.staff-login-download-grid a > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.staff-login-download-grid a b { font-size: 10px; }
.staff-login-download-grid a small { color: #8997a0; font-size: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staff-login-download-grid a > strong { color: #1588b8; font-size: 8px; }
.download-icon { display: grid !important; place-items: center; width: 30px; height: 30px; color: #fff; border-radius: 9px; background: #516d7b; font-size: 8px; font-weight: 950; }
.staff-login-download-grid a:nth-child(2) .download-icon { background: #1595c8; }
.staff-login-download-grid a:nth-child(3) .download-icon { background: #19a279; }
.staff-login-footer { display: flex; justify-content: space-between; gap: 18px; padding: 10px 25px; color: #8ca0ad; background: #0c202e; font-size: 8px; }

@media (max-width: 1260px) {
  .device-search-grid { grid-template-columns: minmax(300px, 1.4fr) 135px 135px 138px auto; }
  .operator-dashboard { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 1080px) {
  .operator-body { min-width: 0; }
  .operator-dashboard { grid-template-columns: 1fr; }
  .access-column { position: static; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .staff-login-wrap { padding: 16px; }
  .staff-login-window { max-width: 560px; border-radius: 20px; }
  .staff-login-main { grid-template-columns: 1fr; }
  .staff-login-intro { padding: 34px 30px; }
  .staff-login-intro h1 { font-size: 29px; }
  .staff-login-intro > span { margin-top: 14px; }
  .staff-login-features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 24px; }
  .staff-login-features span { display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 8px; }
  .staff-login-form { padding: 32px 30px; }
  .staff-login-downloads { grid-template-columns: 1fr; }
  .staff-login-download-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .staff-login-download-grid a { grid-template-columns: 30px minmax(0,1fr); }
  .staff-login-download-grid a > strong { display: none; }
  .access-column { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .staff-login-wrap { padding: 10px; }
  .staff-login-brandbar { min-height: 74px; padding: 13px 18px; }
  .staff-login-logo-mark { width: 42px; height: 42px; border-radius: 13px; }
  .staff-login-logo strong { font-size: 21px; }
  .staff-login-logo small { display: none; }
  .staff-login-security { margin-right: 0; font-size: 9px; }
  .staff-login-version { display: none; }
  .staff-login-intro { padding: 28px 22px; }
  .staff-login-intro h1 { font-size: 26px; }
  .staff-login-intro > span { font-size: 10px; }
  .staff-login-form { gap: 13px; padding: 28px 22px 30px; }
  .staff-login-form-head h2 { font-size: 24px; }
  .staff-login-fields .input { min-height: 52px; font-size: 16px; }
  .staff-login-options { gap: 16px; }
  .staff-login-help { align-items: flex-start; flex-direction: column; gap: 6px; }
  .staff-login-download-grid { grid-template-columns: 1fr; }
  .staff-login-footer { display: grid; }
}

/* v0.5.10 · 고객 연결 시 원격 화면 자동 새 창 */
.current-remote-open-button {
  margin-top: 12px;
  min-height: 47px;
  font-weight: 900;
}
.remote-window-launch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid #a9d1f5;
  border-radius: 15px;
  background: linear-gradient(135deg, #eef7ff 0%, #f8fcff 100%);
  box-shadow: 0 9px 22px rgba(26, 94, 156, .08);
}
.remote-window-launch-card > div { min-width: 0; }
.remote-window-launch-card strong,
.remote-window-launch-card span { display: block; }
.remote-window-launch-card strong { color: #134e82; font-size: 16px; letter-spacing: -.025em; }
.remote-window-launch-card span { margin-top: 5px; color: #60758a; font-size: 13px; line-height: 1.6; }
.remote-window-launch-card .btn { flex: 0 0 auto; min-width: 180px; }
.embedded-remote-panel-disabled { display: none !important; }
@media (max-width: 720px) {
  .remote-window-launch-card { align-items: stretch; flex-direction: column; }
  .remote-window-launch-card .btn { width: 100%; }
}

/* v0.5.10 · 원격화면 여백 최소화 및 듀얼 감지 보정 */

/* v0.5.10 · 상담원 집중형 화면: 진행 중 원격지원만 표시 */
.recent-support-panel,
.operator-records-hidden,
#downloadPanel[hidden] { display: none !important; }
.active-connections-card { min-height: 180px; }
.active-session-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 25px;
  padding: 3px 8px;
  color: #05779a !important;
  background: #e8f8fc;
  border: 1px solid #9eddec;
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  font-size: 10px !important;
  font-weight: 950;
}
.active-session-list { display: grid; gap: 8px; margin-top: 11px; }
.active-session-empty {
  padding: 18px 10px;
  color: #71828b;
  background: #f5f7f8;
  border: 1px dashed #cbd7dc;
  border-radius: 8px;
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}
.active-session-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 8px;
  padding: 10px;
  border: 1px solid #d7e1e5;
  border-radius: 9px;
  background: #fbfcfd;
}
.active-session-item.is-active { border-color: #8bd7bc; background: #f0fbf7; }
.active-session-item.is-paused { border-color: #e8c66f; background: #fff9e9; }
.active-session-copy { min-width: 0; }
.active-session-copy strong,
.active-session-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.active-session-copy strong { color: #263f4a; font-size: 11px; }
.active-session-copy span { margin-top: 3px; color: #71828b; font-size: 9px; }
.active-session-clock { color: #173a4b; font-family: ui-monospace, monospace; font-size: 10px; font-weight: 900; }
.active-session-actions { display: flex; grid-column: 1 / -1; gap: 6px; }
.active-session-actions button {
  flex: 1 1 0;
  min-height: 29px;
  border: 1px solid #b9c8ce;
  border-radius: 7px;
  color: #39545f;
  background: #fff;
  font-size: 9px;
  font-weight: 900;
}
.active-session-actions .open { color: #fff; border-color: #0c9ec2; background: #12a9cf; }
.active-session-actions .end { color: #b12635; border-color: #e6aab1; background: #fff6f7; }
.operator-record-note { margin: 10px 0 0; color: #839097; font-size: 9px; line-height: 1.55; text-align: center; }
.operator-presence.busy span { font-variant-numeric: tabular-nums; }
@media (max-width: 1080px) {
  .access-column { grid-template-columns: minmax(280px, .8fr) minmax(320px, 1fr); }
}
@media (max-width: 720px) {
  .access-column { grid-template-columns: 1fr; }
}

/* v0.5.10 종료 후 처리내용 */
.pending-reports-card{border-color:#efd18c;background:linear-gradient(150deg,#fffdf8,#fff8e6)}
.pending-report-count{display:inline-flex;align-items:center;justify-content:center;min-width:34px;padding:4px 9px;border-radius:999px;background:#f6b735;color:#5f3b00;font-size:11px;font-weight:950}
.pending-report-help{margin:6px 0 12px;color:#7a6844;font-size:12px;line-height:1.55}
.pending-report-list{display:grid;gap:8px}
.pending-report-item{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px;padding:10px 11px;border:1px solid #ead7aa;border-radius:11px;background:#fff}
.pending-report-copy strong{display:block;color:#283b4d;font-size:13px}
.pending-report-copy span{display:block;margin-top:3px;color:#7d8997;font-size:10px}
.pending-report-item button{border:0;border-radius:9px;background:#0d70d6;color:#fff;padding:7px 10px;font-size:11px;font-weight:900;cursor:pointer}
.session-report-dialog{width:min(660px,calc(100vw - 28px));max-width:none}
.session-report-shell{width:100%;max-width:none}
.operator-report-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.operator-report-follow{display:flex;align-items:center;gap:9px;margin-top:13px;padding:12px;border:1px solid #dbe5ef;border-radius:11px;background:#f8fbfe;color:#3e556d;font-size:12px;font-weight:800}
.operator-report-follow input{width:18px;height:18px;margin:0}
@media(max-width:680px){.operator-report-grid{grid-template-columns:1fr}.pending-report-item{grid-template-columns:1fr}.pending-report-item button{width:100%}}


/* v0.5.10.16 · 상시연결 장비 이름·재등록·보관 관리 */
.device-detail-edit-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:14px 0; }
.device-detail-edit-grid label { display:grid; gap:6px; color:#45657e; font-size:12px; font-weight:800; }
.device-detail-edit-grid input { width:100%; min-height:42px; padding:9px 11px; border:1px solid #c8d8e4; border-radius:10px; background:#fff; }
.device-management-actions { flex-wrap:wrap; gap:8px; }
@media (max-width:640px) { .device-detail-edit-grid { grid-template-columns:1fr; } .device-management-actions button { min-height:44px; flex:1 1 140px; } }

/* 휴대폰 상담원 콘솔: 로그인부터 장비 선택·접속번호·진행 세션까지 한 화면 흐름 */
@media (max-width: 900px), (pointer: coarse) {
  .operator-body { min-width:0; overflow-x:hidden; }
  .operator-page { width:100%; padding:10px 10px 32px; }
  .operator-topbar { min-height:54px; padding:6px 10px; flex-wrap:wrap; }
  .operator-topbar-left, .operator-topbar-right { min-width:0; gap:8px; }
  .operator-topbar .brand-copy small, .operator-presence, .operator-nav { display:none; }
  .operator-topbar .btn-ghost { min-height:40px; padding:8px 11px; }
  .operator-dashboard, .support-workspace { grid-template-columns:1fr; }
  .access-column { order:-1; }
  .device-console, .access-code-card, .access-side-card, .recent-support-panel { border-radius:14px; }
  .device-search-grid { grid-template-columns:1fr; }
  .search-field, .device-search-actions { grid-column:auto; }
  .device-search-actions { display:grid; grid-template-columns:1fr 1fr; }
  .device-search-actions button { min-height:46px; }
  .device-table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .device-table { min-width:760px; }
  .device-table button, .active-session-list button, .access-code-card button { min-height:44px; }
  dialog { max-height:calc(100dvh - 20px); overflow:auto; }
}

.staff-app-install { white-space:nowrap; box-shadow:0 6px 16px rgba(23,175,118,.22); }
@media (display-mode:standalone) { .staff-app-install { display:none !important; } }
@media (max-width:520px) {
  .operator-topbar .version-pill { display:none; }
  .operator-topbar .brand-copy { font-size:12px; }
  .operator-page { padding-left:7px; padding-right:7px; }
  .staff-login-wrap { min-height:100dvh; padding:18px 10px 30px; }
  .staff-login-layout { gap:12px; }
  .staff-login-downloads { display:none; }
  .login-card input, .login-card button { min-height:48px; font-size:16px; }
}

/* v0.5.10.40: 휴대폰은 상시연결 장비 목록을 맨 위에 표시합니다. */
@media (max-width: 900px), (pointer: coarse) {
  .operator-dashboard > .device-console { order: -2; }
  .operator-dashboard > .access-column { order: 0; }
  #pendingReportsPanel { display: none !important; }
}

/* v0.5.10.41: 상담원 상태 자동진단 */
.diagnostics-shell { width:min(680px, calc(100vw - 28px)); max-height:calc(100dvh - 28px); overflow:auto; }
.diagnostics-summary { margin:16px 0 12px; padding:14px 16px; border-radius:12px; background:#eef5fa; color:#29465b; font-size:14px; font-weight:900; }
.diagnostics-summary.success { background:#eaf8f1; color:#087b54; }
.diagnostics-summary.warning { background:#fff5df; color:#9a630e; }
.diagnostics-summary.error { background:#ffecef; color:#ae3445; }
.diagnostics-results { display:grid; gap:8px; }
.diagnostics-item { display:grid; grid-template-columns:92px minmax(0,1fr); gap:12px; padding:12px 14px; border:1px solid #dde6ed; border-radius:11px; background:#fff; }
.diagnostics-state { display:inline-flex; align-items:center; justify-content:center; align-self:start; min-height:30px; padding:5px 9px; border-radius:999px; font-size:11px; font-weight:900; }
.diagnostics-state.pass { color:#087b54; background:#e7f8f0; }
.diagnostics-state.warn { color:#94600d; background:#fff1d4; }
.diagnostics-state.fail { color:#b23848; background:#ffe7eb; }
.diagnostics-detail strong { display:block; color:#19334a; font-size:13px; }
.diagnostics-detail span { display:block; margin-top:4px; color:#65788a; font-size:11px; line-height:1.5; }
.diagnostics-timestamp { display:block; margin-top:12px; color:#81909e; text-align:right; }
.diagnostics-actions { flex-wrap:wrap; }
@media(max-width:560px){.diagnostics-item{grid-template-columns:72px minmax(0,1fr);padding:11px 10px}.diagnostics-actions button{flex:1 1 130px}}
