@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap");
:root {
  font-family: Inter, "Noto Sans KR", sans-serif;
  color: #1b2a42;
  background: #f3f6fb;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.app {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 254px;
  background: linear-gradient(170deg, #1768dc, #1747a8);
  color: #fff;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 15;
}
.brand {
  height: 91px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 24px;
  border-bottom: 1px solid #ffffff24;
}
.brand-mark {
  width: 38px;
  height: 38px;
  background: #fff;
  color: #1e60d0;
  display: grid;
  place-items: center;
  font-size: 29px;
  font-weight: 800;
  border-radius: 12px;
  font-style: italic;
}
.brand strong {
  font-size: 21px;
  letter-spacing: 0.3px;
}
.brand strong small {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  opacity: 0.78;
}
.brand span:not(.brand-mark) {
  display: block;
  font-size: 10px;
  color: #d3e4ff;
  margin-top: 3px;
}
.nav-caption {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: #a8c7fa;
  margin: 31px 25px 11px;
}
.nav-caption.lower {
  margin-top: 30px;
}
.sidebar nav {
  padding: 0 12px;
}
.nav-link {
  width: 100%;
  background: transparent;
  border: 0;
  color: #c8dcff;
  padding: 13px 13px;
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  border-radius: 9px;
  margin: 3px 0;
}
.nav-link > span {
  font-size: 19px;
  width: 23px;
  text-align: center;
}
.nav-link.active,
.nav-link:hover {
  background: #ffffff24;
  color: white;
}
.nav-link.active {
  font-weight: 700;
}
.nav-link em {
  margin-left: auto;
  background: #f59b53;
  color: #fff;
  font-style: normal;
  border-radius: 20px;
  font-size: 10px;
  padding: 2px 7px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 15px;
}
.support-box {
  background: #ffffff16;
  border: 1px solid #ffffff24;
  border-radius: 12px;
  padding: 17px;
  margin-bottom: 18px;
}
.support-box b {
  font-size: 13px;
}
.support-box p {
  font-size: 11px;
  line-height: 1.7;
  color: #d5e5ff;
}
.support-box span {
  font-size: 9px;
  letter-spacing: 1.3px;
  color: #b2d2ff;
}
.side-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 7px 4px;
  border-top: 1px solid #ffffff25;
}
.avatar,
.top-avatar {
  background: #dceaff;
  color: #2055b2;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}
.side-user strong,
.side-user small {
  display: block;
}
.side-user strong {
  font-size: 12px;
}
.side-user small {
  font-size: 10px;
  color: #c0d9ff;
  margin-top: 3px;
}
.online-dot {
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #55e2aa;
}
.main-shell {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 78px;
  background: #fff;
  border-bottom: 1px solid #e8edf5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
}
.top-left,
.top-right {
  display: flex;
  align-items: center;
  gap: 17px;
}
.breadcrumbs {
  font-size: 12px;
  color: #8190a6;
}
.breadcrumbs span {
  margin: 0 9px;
  color: #ccd5e2;
}
.breadcrumbs b {
  color: #344762;
}
.today {
  font-size: 12px;
  color: #7d8ca2;
}
.top-divider {
  height: 23px;
  width: 1px;
  background: #e7ecf3;
}
.icon-button {
  border: 0;
  background: transparent;
  color: #637793;
  font-size: 19px;
  border-radius: 8px;
  width: 34px;
  height: 34px;
}
.icon-button:hover {
  background: #f1f5fc;
}
.notification {
  position: relative;
}
.notification i {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 7px;
  height: 7px;
  background: #f96e7e;
  border-radius: 50%;
}
.top-avatar {
  width: 33px;
  height: 33px;
}
.top-user strong,
.top-user small {
  display: block;
}
.top-user strong {
  font-size: 12px;
}
.top-user small {
  font-size: 10px;
  color: #9aa8b8;
  margin-top: 3px;
}
.hamburger,
.mobile-close {
  display: none;
}
main {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  flex: 1;
  padding: 34px 38px 54px;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 26px;
}
.eyebrow {
  font-size: 11px;
  color: #3477db;
  font-weight: 800;
  letter-spacing: 1.8px;
  margin-bottom: 8px;
}
.page-heading h1 {
  font-size: 27px;
  letter-spacing: -1.2px;
  margin: 0 0 9px;
}
.page-heading p {
  color: #8b99ad;
  font-size: 13px;
  margin: 0;
}
.button {
  border: 1px solid #dce5f2;
  background: white;
  color: #465c78;
  border-radius: 8px;
  padding: 10px 15px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.button:hover {
  background: #f5f8ff;
}
.button.primary {
  background: #2269dc;
  color: #fff;
  border-color: #2269dc;
}
.button.primary:hover {
  background: #1457c3;
}
.button.danger {
  color: #c64255;
}
.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}
.kpi {
  background: white;
  border: 1px solid #edf0f6;
  border-radius: 15px;
  padding: 23px 22px;
  box-shadow: 0 5px 23px #234f8810;
  position: relative;
  overflow: hidden;
}
.kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.kpi-label {
  color: #77869d;
  font-size: 12px;
  font-weight: 600;
}
.kpi-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 19px;
  background: #e9f1ff;
  color: #266bd9;
}
.kpi:nth-child(2) .kpi-icon {
  background: #fff2e5;
  color: #ed9936;
}
.kpi:nth-child(3) .kpi-icon {
  background: #e5f8f5;
  color: #18ae91;
}
.kpi:nth-child(4) .kpi-icon {
  background: #f0eaff;
  color: #8a62db;
}
.kpi-number {
  font-size: 31px;
  letter-spacing: -1.3px;
  font-weight: 800;
  margin-top: 12px;
}
.kpi-foot {
  font-size: 11px;
  color: #98a6b8;
  margin-top: 8px;
}
.positive {
  color: #159d7c;
  font-weight: 700;
}
.negative {
  color: #d76c63;
  font-weight: 700;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(310px, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.panel {
  background: #fff;
  border: 1px solid #edf0f6;
  border-radius: 15px;
  padding: 23px;
  box-shadow: 0 5px 23px #234f880b;
  min-width: 0;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 23px;
}
.panel-head h2 {
  font-size: 16px;
  letter-spacing: -0.4px;
  margin: 0;
}
.panel-head p {
  font-size: 11px;
  color: #99a6b8;
  margin: 5px 0 0;
}
.panel-head .link-button {
  border: 0;
  background: transparent;
  color: #276bd9;
  font-weight: 700;
  font-size: 11px;
}
.chart-legend {
  display: flex;
  gap: 14px;
  align-items: center;
  color: #8290a3;
  font-size: 11px;
}
.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  margin-right: 6px;
  background: #2a70e3;
}
.legend-dot.pale {
  background: #9fd6ff;
}
.chart-wrap {
  height: 235px;
  position: relative;
}
.line-chart {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.chart-gridline {
  stroke: #e9eef6;
  stroke-dasharray: 4 5;
}
.chart-axis {
  font-size: 11px;
  fill: #99a6b8;
}
.donut-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 225px;
}
.donut {
  width: 185px;
  height: 185px;
  border-radius: 50%;
  background: conic-gradient(
    #256bdc 0 48%,
    #3eb5ec 48% 76%,
    #f5ae48 76% 91%,
    #dce8fa 91% 100%
  );
  position: relative;
  flex-shrink: 0;
}
.donut:after {
  content: "";
  position: absolute;
  inset: 31px;
  background: #fff;
  border-radius: 50%;
}
.donut-center {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.donut-center strong {
  font-size: 26px;
}
.donut-center span {
  font-size: 11px;
  color: #8c9aae;
  margin-top: 3px;
}
.donut-legend {
  display: grid;
  gap: 15px;
  font-size: 11px;
  color: #697991;
}
.donut-legend div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.donut-legend b {
  margin-left: auto;
  color: #283a52;
}
.swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
  background: #256bdc;
}
.swatch.sky {
  background: #3eb5ec;
}
.swatch.orange {
  background: #f5ae48;
}
.swatch.gray {
  background: #dce8fa;
}
.dashboard-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(310px, 1fr);
  gap: 20px;
}
.table-wrap {
  overflow-x: auto;
}
.data-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  white-space: nowrap;
}
.data-table th {
  text-align: left;
  background: #f7f9fd;
  color: #8290a4;
  font-weight: 600;
  padding: 13px 14px;
}
.data-table td {
  border-bottom: 1px solid #eff2f7;
  padding: 15px 14px;
  color: #50627b;
}
.data-table tr:last-child td {
  border-bottom: 0;
}
.data-table tbody tr:hover {
  background: #f8fbff;
}
.ticket-id {
  font-weight: 700;
  color: #2670d8;
}
.cell-strong {
  font-weight: 700;
  color: #25354b;
}
.status {
  font-size: 10px;
  font-weight: 700;
  border-radius: 6px;
  padding: 5px 9px;
  display: inline-block;
}
.status.waiting {
  background: #fff2e1;
  color: #c88427;
}
.status.progress {
  background: #e8f1ff;
  color: #2871d9;
}
.status.done {
  background: #e6f8f1;
  color: #15946d;
}
.status.urgent {
  background: #ffe8eb;
  color: #d04f61;
}
.row-action {
  border: 0;
  background: #eef4ff;
  color: #2368cc;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}
.agent-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 0;
  border-bottom: 1px solid #f0f2f7;
}
.agent-row:last-child {
  border-bottom: 0;
}
.agent-initial {
  width: 36px;
  height: 36px;
  background: #e7efff;
  color: #3571d0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}
.agent-info {
  flex: 1;
}
.agent-info b,
.agent-info small {
  display: block;
}
.agent-info b {
  font-size: 12px;
}
.agent-info small {
  font-size: 10px;
  color: #98a4b4;
  margin-top: 4px;
}
.agent-state {
  font-size: 10px;
  color: #159a75;
  background: #e7f7f1;
  border-radius: 20px;
  padding: 5px 8px;
}
.agent-state.busy {
  color: #d58b30;
  background: #fff3e3;
}
.agent-state.off {
  color: #8794a6;
  background: #eef1f5;
}
.filters {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.field {
  border: 1px solid #e1e8f2;
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: #3e526e;
  font-size: 12px;
  min-height: 40px;
}
.search-field {
  min-width: 220px;
  flex: 1;
}
.filters .button {
  min-height: 40px;
}
.results-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8b99ab;
  font-size: 12px;
  margin: 12px 0;
}
.pagination {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
}
.page-button {
  border: 1px solid #e3e9f2;
  background: #fff;
  color: #5c708c;
  border-radius: 7px;
  min-width: 32px;
  height: 32px;
  font-size: 12px;
}
.page-button.active {
  background: #2369d8;
  border-color: #2369d8;
  color: #fff;
}
.empty {
  text-align: center;
  padding: 55px 20px;
  color: #97a5b8;
  font-size: 13px;
}
.progress-track {
  height: 9px;
  border-radius: 20px;
  background: #edf2fa;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, #236de1, #53b3f1);
}
.report-bars {
  height: 260px;
  display: flex;
  gap: 18px;
  align-items: end;
  padding: 10px 10px 0;
  border-bottom: 1px solid #e8edf5;
}
.bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
}
.bar {
  background: linear-gradient(0deg, #2269dc, #69b4ff);
  border-radius: 6px 6px 0 0;
  width: 55%;
  min-height: 3px;
}
.bar-group span {
  font-size: 11px;
  color: #8494a9;
  margin-bottom: -22px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 0;
  border-bottom: 1px solid #eff2f7;
}
.setting-row:last-child {
  border: 0;
}
.setting-row b {
  font-size: 13px;
}
.setting-row p {
  font-size: 11px;
  color: #92a0b3;
  margin: 5px 0 0;
}
.switch {
  appearance: none;
  width: 38px;
  height: 22px;
  border-radius: 30px;
  background: #cdd8e7;
  position: relative;
  cursor: pointer;
  transition: 0.2s;
}
.switch:checked {
  background: #276dde;
}
.switch:before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  transition: 0.2s;
}
.switch:checked:before {
  transform: translateX(16px);
}
footer {
  padding: 17px 38px;
  color: #a2afc0;
  font-size: 10px;
  border-top: 1px solid #e9eef5;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #10233e8c;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal-backdrop[hidden] {
  display: none;
}
.modal {
  background: white;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: 17px;
  box-shadow: 0 22px 70px #1227444d;
  padding: 26px;
}
.modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  border-bottom: 1px solid #edf0f6;
  padding-bottom: 18px;
  margin-bottom: 18px;
}
.modal-header small {
  color: #2d74dc;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
}
.modal-header h2 {
  font-size: 20px;
  margin: 6px 0 0;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.detail-item small {
  font-size: 11px;
  color: #91a0b4;
  display: block;
  margin-bottom: 6px;
}
.detail-item strong {
  font-size: 13px;
}
.detail-note {
  background: #f5f8fd;
  border-radius: 9px;
  padding: 15px;
  line-height: 1.8;
  font-size: 12px;
  color: #566880;
  margin: 19px 0;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}
.toast {
  position: fixed;
  right: 25px;
  bottom: 24px;
  background: #183c72;
  color: white;
  padding: 12px 18px;
  border-radius: 9px;
  font-size: 12px;
  box-shadow: 0 8px 26px #193b7040;
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  transition: 0.25s;
  z-index: 50;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.muted {
  color: #8d9aab;
}
.mobile-close {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 26px;
}
@media (max-width: 1250px) {
  .cards-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-grid,
  .dashboard-bottom {
    grid-template-columns: 1fr;
  }
  .donut-layout {
    justify-content: flex-start;
  }
  .sidebar {
    width: 225px;
  }
  main {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
    transition: transform 0.25s;
    width: 254px;
    box-shadow: 10px 0 25px #102a4426;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .mobile-close,
  .hamburger {
    display: block;
  }
  .topbar {
    height: 65px;
    padding: 0 16px;
  }
  .today,
  .top-user,
  .top-divider {
    display: none;
  }
  .top-right {
    gap: 8px;
  }
  .top-left {
    gap: 7px;
  }
  main {
    padding: 24px 15px 40px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 23px;
  }
  .page-heading p {
    line-height: 1.6;
  }
  .cards-4 {
    gap: 10px;
  }
  .kpi {
    padding: 16px;
  }
  .kpi-number {
    font-size: 25px;
  }
  .kpi-label {
    font-size: 11px;
  }
  .kpi-icon {
    width: 31px;
    height: 31px;
    font-size: 15px;
  }
  .panel {
    padding: 17px;
  }
  .donut-layout {
    flex-wrap: wrap;
    justify-content: center;
  }
  .donut {
    width: 160px;
    height: 160px;
  }
  .donut-legend {
    min-width: 130px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .filters {
    align-items: stretch;
  }
  .filters .field {
    flex: 1;
    min-width: 120px;
  }
  .filters .search-field {
    flex-basis: 100%;
  }
  footer {
    padding: 15px;
    line-height: 1.5;
    flex-direction: column;
  }
  .chart-legend {
    gap: 6px;
    font-size: 10px;
  }
  .page-heading > .button {
    font-size: 11px;
    padding: 9px;
  }
  .detail-grid {
    gap: 14px;
  }
}
