/* ======================================================================
제목 : NEX / NEX Push Platform R4.1
파일명 : console.css
최종업데이트일자 : 2026-11-30
최종업데이트개발자 : 이지성
최종업데이트요청자 : 이지성
수정 요청 내용 : R4.2 단일 기기 시험 입력 폼과 이력을 기존 테마에 연결함.
설명 : 첨부 시안의 색상·서체와 화면 크기에 따른 배치를 적용함
수정 내용: 신규 기능 추가 - 첨부 시안의 색상·서체와 화면 크기에 따른 배치를 적용함
수정일: 2026-11-30
====================================================================== */
@font-face {
  font-family: SUIT;
  src: url(fonts/SUIT-Variable.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #151817;
  --panel: #1e2220;
  --sub: #252a27;
  --line: #39443e;
  --text: #e8eeea;
  --muted: #a5b4aa;
  --accent: #76d7ae;
  --active: #173e30;
  --on: #10251d;
  --warn: #ffb5a2;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f5f3;
  --panel: #fff;
  --sub: #f0f3f1;
  --line: #ccd5d0;
  --text: #202a24;
  --muted: #55665d;
  --accent: #176748;
  --active: #deeee5;
  --on: #fff;
  --warn: #9b331d;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    400 14px/1.55 SUIT,
    "Malgun Gothic",
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  background: var(--sub);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 14px;
  font-weight: 650;
}
button:hover,
a:hover {
  color: var(--accent);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button.primary {
  background: var(--accent);
  color: var(--on);
  border-color: var(--accent);
}
button.primary:hover {
  filter: brightness(0.94);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 27px;
  line-height: 1.22;
  letter-spacing: -0.035em;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.022em;
}
h3 {
  font-size: 16px;
}
small,
.muted,
.hint {
  color: var(--muted);
}
input,
textarea,
select {
  border: 1px solid var(--line);
  min-height: 40px;
  border-radius: 7px;
  background: var(--bg);
  padding: 8px 10px;
  max-width: 100%;
}
label {
  font-weight: 640;
  display: grid;
  gap: 6px;
}
input,
textarea,
select {
  font-weight: 450;
}
textarea {
  min-height: 80px;
  resize: vertical;
}
fieldset {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  margin: 0;
  padding: 12px;
}
legend {
  font-weight: 650;
  padding: 0 6px;
}
.access {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}
.brand {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #192820;
  color: #e8eeea;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 4vw, 72px);
}
.brand:after {
  content: "";
  position: absolute;
  border-radius: 100%;
  width: 80%;
  aspect-ratio: 1;
  border: 1px solid #385e48;
  box-shadow:
    0 0 0 52px #213429,
    0 0 0 104px #1e2f25;
  bottom: -29%;
  right: -43%;
  z-index: -1;
}
.brand img {
  width: 172px;
}
.brand h1 {
  font-size: clamp(52px, 5vw, 86px);
  letter-spacing: -0.055em;
  line-height: 1.01;
}
.brand h1 span {
  color: #76d7ae;
}
.brand p {
  color: #b5c5ba;
  font-size: 16px;
  margin-top: 22px;
}
.brand small {
  color: #b5c5ba;
}
.access-panel {
  align-self: center;
  justify-self: center;
  max-width: 430px;
  width: 100%;
  padding: 24px;
}
.login {
  display: grid;
  gap: 18px;
}
.login h2 {
  font-size: 30px;
}
.login p {
  color: var(--muted);
  margin-top: -12px;
}
.login button {
  margin-top: 5px;
  min-height: 46px;
}
.login input {
  min-height: 46px;
}
#accessMessage,
#formError {
  color: var(--warn);
  margin-top: 12px;
}
.skip {
  position: absolute;
  top: -80px;
  z-index: 9;
}
.skip:focus {
  top: 0;
  background: var(--panel);
  padding: 9px;
}
header {
  min-height: 64px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
  flex-wrap: wrap;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  line-height: 1.12;
  font-size: 15px;
  font-weight: 780;
}
.wordmark img {
  width: 132px;
  max-height: 42px;
}
.wordmark small {
  display: block;
  font-size: 11px;
  margin-top: 4px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
#groups {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  flex-wrap: wrap;
}
nav button {
  border-color: transparent;
  background: none;
  text-align: start;
}
#groups button {
  border-radius: 0;
  border-bottom: 3px solid transparent;
  padding: 11px 13px;
}
#groups button[aria-current] {
  border-bottom-color: var(--accent);
  color: var(--accent);
}
.account {
  display: flex;
  gap: 8px;
  margin-inline-start: auto;
}
.account button {
  font-size: 13px;
}
.layout {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: calc(100dvh - 64px);
}
aside {
  background: var(--panel);
  border-inline-end: 1px solid var(--line);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
aside label {
  font-size: 13px;
  color: var(--muted);
}
aside select {
  width: 100%;
  color: var(--text);
}
#menu {
  display: grid;
  gap: 3px;
}
#menu button {
  min-height: 37px;
}
#menu button[aria-current] {
  background: var(--active);
  color: var(--accent);
}
#identity {
  margin-top: auto;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  overflow-wrap: anywhere;
}
#content {
  width: 100%;
  min-width: 0;
  max-width: 1700px;
  padding: clamp(16px, 2.5vw, 38px);
  margin-inline: auto;
}
.title,
.row,
.bar,
.dialog-head,
.dialog-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.title,
.dialog-head,
.dialog-foot {
  justify-content: space-between;
}
.title {
  margin: 6px 0 20px;
}
#crumb {
  font-size: 12px;
}
#message:not(:empty) {
  border-left: 3px solid var(--accent);
  padding: 7px 12px;
  margin: 12px 0;
  background: var(--sub);
}
#message.error {
  border-left-color: var(--warn);
}
.bar {
  margin-bottom: 14px;
}
.bar input[type="search"] {
  min-width: 120px;
  flex: 1;
  max-width: 330px;
}
.bar select {
  max-width: 260px;
}
.panel,
.metric {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.panel {
  padding: 18px;
  margin-bottom: 14px;
  min-width: 0;
}
.panel h2 {
  margin-bottom: 14px;
  font-size: 18px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
  gap: 12px;
  margin: 12px 0 18px;
}
.metric {
  padding: 17px;
}
.metric span {
  color: var(--muted);
}
.metric strong {
  display: block;
  font-size: 30px;
  font-variant-numeric: tabular-nums;
  margin-top: 8px;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  text-align: start;
}
th,
td {
  text-align: start;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
  vertical-align: top;
}
th {
  color: var(--muted);
  font-weight: 650;
}
tbody tr:last-child td {
  border-bottom: 0;
}
dl {
  display: grid;
  grid-template-columns: minmax(100px, 0.6fr) minmax(0, 1.4fr);
  gap: 8px 16px;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.empty {
  padding: 24px 8px;
  color: var(--muted);
}
.mobile {
  display: none;
}
dialog {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  width: min(600px, calc(100% - 24px));
  max-height: 90dvh;
  padding: 22px;
  overflow-y: auto;
}
dialog::backdrop {
  background: #0009;
}
.dialog-head {
  margin-bottom: 20px;
}
.dialog-foot {
  justify-content: flex-end;
  margin-top: 18px;
}
#fields,
.subfields {
  display: grid;
  gap: 14px;
}
.hint {
  font-size: 12px;
}
.secret {
  overflow-wrap: anywhere;
  user-select: all;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
#results[aria-busy="true"] {
  opacity: 0.65;
}
@media (max-width: 1100px) {
  header {
    gap: 10px;
  }
  .wordmark img {
    width: 104px;
  }
  #groups button {
    padding-inline: 8px;
  }
  .account {
    gap: 4px;
  }
}
@media (max-width: 820px) {
  .layout {
    display: block;
  }
  .mobile {
    display: inline-block;
  }
  header {
    padding: 9px 12px;
    gap: 8px;
    min-height: 62px;
  }
  #groups {
    display: none;
  }
  .wordmark span {
    display: none;
  }
  .wordmark img {
    width: 105px;
  }
  .account button {
    padding-inline: 8px;
  }
  aside {
    display: none;
    border: 0;
    border-bottom: 1px solid var(--line);
  }
  aside.open {
    display: flex;
  }
  #menu {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
  #identity {
    display: none;
  }
  button,
  select,
  input {
    min-height: 44px;
  }
  .table-scroll {
    overflow: visible;
  }
  table,
  tbody,
  tr,
  td {
    display: block;
  }
  thead {
    display: none;
  }
  tbody tr {
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
  }
  td {
    display: grid;
    grid-template-columns: minmax(78px, 0.7fr) minmax(0, 1.3fr);
    gap: 8px;
    padding: 5px 0;
    border: 0;
  }
  td:before {
    content: attr(data-label);
    color: var(--muted);
  }
  td button {
    justify-self: start;
  }
  .access {
    display: flex;
    flex-direction: column;
  }
  .brand {
    padding: 24px;
    gap: 18px;
  }
  .brand img {
    width: 132px;
  }
  .brand h1 {
    font-size: 31px;
    line-height: 1.15;
  }
  .brand h1 br {
    display: none;
  }
  .brand h1 br:after {
    content: " ";
  }
  .brand p,
  .brand small {
    display: none;
  }
  .access-panel {
    margin: auto;
    max-width: 470px;
    padding: 32px 24px;
  }
  .title {
    align-items: flex-start;
  }
  .panel {
    padding: 14px;
  }
  .bar select,
  .bar input {
    max-width: 100%;
  }
}
@media (max-width: 380px) {
  .account button {
    font-size: 12px;
  }
  .wordmark img {
    width: 82px;
  }
  #content {
    padding: 14px;
  }
  .brand h1 {
    font-size: 28px;
  }
  dialog {
    padding: 14px;
  }
}
.activity-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 14px;
}
.activity-chart {
  display: block;
  width: 100%;
  height: 145px;
}
.activity-layout .title {
  margin: 0 0 8px;
}
.activity-layout .title h2 {
  margin: 0;
}
.activity-layout summary {
  cursor: pointer;
  margin-top: 12px;
}
/* ======================================================================
수정 내용: 기기 선택·승인·단일 알림·일정 양식의 읽기 순서와 소형 화면 줄바꿈을 정리함.
수정일: 2026-11-30 / 수정자: 이지성 / 요청자: 이지성
요청 내용: 기존 다크·라이트 및 모바일 환경에서 실제 시험 폼을 조작함.
수정 이유: 긴 UUID와 시간·상태를 가려두면 운영자가 실제 기기를 대조할 수 없음.
====================================================================== */
.tester {
  max-width: 900px;
}
.tester .panel {
  margin-block: 0 1rem;
}
.tester-form {
  display: grid;
  gap: 1rem;
  margin-block: 1rem;
}
.tester-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.tester-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}
.tester-inline label {
  flex: 1 1 13rem;
}
.tester-panel label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-weight: 600;
}
.tester-panel input,
.tester-panel select,
.tester-panel textarea {
  width: 100%;
  min-width: 0;
}
.tester button {
  min-height: 44px;
}
.tester-form button {
  justify-self: start;
}
.tester-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block: 1.25rem;
}
.tester-nav [aria-pressed="true"],
.bar [aria-pressed="true"] {
  font-weight: 750;
  border-color: var(--accent);
}
.tester-values {
  grid-template-columns: minmax(6.5rem, 0.35fr) minmax(0, 1fr);
  margin-block: 1rem;
}
.tester-values dd,
.tester-timeline li {
  overflow-wrap: anywhere;
}
.tester-timeline {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.tester-timeline li {
  display: grid;
  grid-template-columns: minmax(6.5rem, 0.35fr) minmax(0, 1fr);
  gap: 0.85rem;
  border-top: 1px solid var(--line);
  padding-block: 0.65rem;
}
.tester-message:not(:empty) {
  padding: 0.75rem 0;
}
.tester-message.error {
  color: var(--warn);
}
.tester-panel p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.tester-panel select + button {
  margin-top: 0.7rem;
}
@media (max-width: 600px) {
  .tester-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .tester-values,
  .tester-timeline li {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.18rem;
  }
  .tester-values dd {
    margin-bottom: 0.5rem;
  }
}
.activity-item {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 820px) {
  .activity-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}
