@font-face {
  font-family: Myanmar;
  src: url("/fonts/NotoSansMyanmar.ttf") format("truetype");
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  font:
    14px/1.55 Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Myanmar,
    sans-serif;
  color: #203047;
  background: #f5f7fa;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: #285ecb;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #82acfa;
  outline-offset: 3px;
}
button,
input,
select {
  min-height: 44px;
}
button {
  border: 1px solid #dce2eb;
  border-radius: 8px;
  background: #fff;
  color: #34445b;
  padding: 9px 15px;
  font-weight: 600;
}
button:hover {
  background: #f0f4fa;
}
button.primary {
  background: #203a62;
  border-color: #203a62;
  color: #fff;
}
button.primary:hover {
  background: #132d50;
}
button.danger {
  color: #b83240;
  background: #fff5f5;
  border-color: #f1d1d5;
}
button.small {
  font-size: 12px;
  padding: 7px 11px;
  min-height: 36px;
}
input,
select,
textarea {
  width: 100%;
  background: #fff;
  color: #23334b;
  border: 1px solid #dbe1e9;
  border-radius: 8px;
  padding: 10px 12px;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
label {
  display: block;
  font-size: 12px;
  color: #52627a;
  font-weight: 600;
}
label input,
label select,
label textarea {
  margin-top: 6px;
}
label.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
label.check input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 27px;
  line-height: 1.3;
  letter-spacing: -0.7px;
  color: #14243e;
}
h2 {
  font-size: 16px;
  color: #203047;
}
h3 {
  font-size: 14px;
}
p.sub,
.muted {
  color: #77859a;
  font-size: 13px;
}
small {
  color: #77859a;
}
hr {
  border: 0;
  border-top: 1px solid #edf0f5;
  margin: 20px 0;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.between {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.stack {
  display: grid;
  gap: 18px;
}
.grid {
  display: grid;
  gap: 20px;
}
.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 224px;
  background: #fff;
  border-right: 1px solid #e5eaf0;
  display: flex;
  flex-direction: column;
  padding: 27px 16px;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px 29px;
  color: #152c50;
}
.brand-mark {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  background: #1b3359;
  color: white;
  font-size: 14px;
  font-weight: 800;
  border-radius: 10px;
  letter-spacing: -1px;
}
.brand strong {
  font-size: 18px;
  letter-spacing: -0.5px;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 1.5px;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #93a0b3;
  padding: 13px 13px 9px;
  font-weight: 700;
}
.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: none;
  text-align: left;
  padding: 12px;
  margin: 2px 0;
  color: #738097;
  font-size: 13px;
  font-weight: 500;
}
.nav-item svg {
  width: 19px;
  height: 19px;
  flex: none;
}
.nav-item.active {
  background: #eef3fb;
  color: #1b3b6b;
  font-weight: 700;
}
.sidebar-bottom {
  margin-top: auto;
}
.agency {
  font-size: 10px;
  color: #94a0b1;
  padding: 20px 10px 0;
}
.topbar {
  position: fixed;
  top: 0;
  left: 224px;
  right: 0;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: #fff;
  border-bottom: 1px solid #e6eaf0;
  z-index: 20;
}
.topbar-title {
  font-size: 12px;
  color: #8290a3;
}
.account-name {
  font-size: 12px;
  text-align: right;
}
.account-name small {
  display: block;
  text-transform: capitalize;
  font-size: 10px;
}
.avatar {
  width: 34px;
  height: 34px;
  background: #edf1f7;
  color: #324a6a;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex: none;
}
.icon-button {
  padding: 8px;
  display: grid;
  place-items: center;
  width: 44px;
}
.icon-button svg {
  width: 18px;
  height: 18px;
}
main {
  margin-left: 224px;
  padding: 104px 32px 35px;
  max-width: 1800px;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.page-head p {
  margin-top: 7px;
}
.card {
  background: #fff;
  border: 1px solid #e4e9f0;
  border-radius: 12px;
  box-shadow: 0 2px 4px #20304a03;
}
.pad {
  padding: 23px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}
.stat {
  padding: 20px;
}
.stat-label {
  font-size: 12px;
  color: #7a879b;
}
.stat-value {
  font-size: 27px;
  font-weight: 700;
  color: #172f52;
  letter-spacing: -0.5px;
  margin: 10px 0 5px;
}
.stat-note {
  font-size: 10px;
  color: #8996a8;
}
.stat-icon {
  background: #eef3fa;
  border-radius: 8px;
  padding: 7px;
  color: #607fa5;
  display: inline-flex;
}
.stat-icon svg {
  width: 16px;
  height: 16px;
}
.chart-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 20px;
}
.chart {
  height: 200px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding-top: 22px;
  border-bottom: 1px solid #e8edf3;
}
.bar-column {
  height: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
  min-width: 0;
}
.bar {
  width: min(100%, 44px);
  min-height: 3px;
  border-radius: 5px 5px 0 0;
  background: #567ba9;
}
.bar-column small {
  font-size: 9px;
  margin-top: 7px;
}
.breakdown {
  padding: 14px 0;
  border-bottom: 1px solid #f0f2f6;
  display: flex;
  justify-content: space-between;
}
.operations {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 22px 0;
}
.op {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 16px;
  text-align: left;
  font-size: 12px;
}
.op strong {
  font-size: 22px;
  color: #244b7d;
}
.toolbar {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.toolbar label {
  min-width: 140px;
}
.toolbar input[type="search"] {
  min-width: 200px;
}
.toolbar .grow {
  flex: 1;
}
.toolbar .dates {
  display: flex;
  gap: 10px;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  background: #eef3f9;
  color: #526b8b;
  font-size: 10px;
  border-radius: 5px;
  text-transform: capitalize;
  white-space: nowrap;
}
.badge.green {
  color: #187053;
  background: #eaf6ef;
}
.badge.orange {
  color: #9a6b19;
  background: #fff5e2;
}
.badge.red {
  color: #ad3d4d;
  background: #fff0f1;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
  white-space: nowrap;
}
th {
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #8b97a8;
  background: #fafbfd;
  padding: 13px 18px;
  border-bottom: 1px solid #e8ecf2;
}
td {
  padding: 15px 18px;
  border-bottom: 1px solid #edf0f5;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fbfcfe;
}
td strong {
  color: #33455e;
}
td small {
  display: block;
}
.empty {
  padding: 45px 25px;
  color: #8591a2;
  text-align: center;
}
.loading {
  padding: 50px;
  text-align: center;
  color: #718096;
}
.notice {
  padding: 12px 16px;
  border: 1px solid #dbe7fa;
  border-radius: 8px;
  background: #f2f7ff;
  color: #526c8c;
  font-size: 12px;
  margin-bottom: 18px;
}
.error {
  color: #ac3748;
  background: #fff1f3;
  border: 1px solid #f2d3d9;
  padding: 13px;
  border-radius: 8px;
}
.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  overflow-x: auto;
}
.tabs button {
  border: 0;
  background: none;
  color: #8894a6;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  white-space: nowrap;
}
.tabs button.active {
  color: #244b7d;
  border-bottom-color: #244b7d;
}
.inbox-layout {
  display: grid;
  grid-template-columns: 270px minmax(280px, 1fr) 290px;
  height: calc(100dvh - 166px);
  min-height: 500px;
  overflow: hidden;
}
.queue {
  border-right: 1px solid #e5eaf1;
  overflow-y: auto;
}
.queue-toolbar {
  padding: 13px;
  display: grid;
  gap: 8px;
  border-bottom: 1px solid #e7ebf2;
}
.case-row {
  border: 0;
  border-bottom: 1px solid #f0f2f6;
  background: white;
  padding: 17px 15px;
  text-align: left;
  border-radius: 0;
  width: 100%;
  display: block;
  font-weight: 400;
}
.case-row.active {
  background: #eff5fc;
  border-left: 3px solid #315b91;
  padding-left: 12px;
}
.case-name {
  font-size: 12px;
  font-weight: 600;
}
.case-preview {
  font-size: 11px;
  color: #8a95a5;
  margin-top: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.case-channel {
  font-size: 9px;
  color: #8194ae;
  margin-top: 5px;
}
.conversation-pane {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-header {
  padding: 14px 17px;
  min-height: 72px;
  border-bottom: 1px solid #e8ecf1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.chat-header h2 {
  font-size: 13px;
}
.conversation-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
.conversation-head {
  padding: 8px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.conversation-head h3 {
  font-size: 10px;
  color: #9aa5b3;
}
.conversation-head small {
  font-size: 9px;
}
.conversation-scroll {
  flex: 1;
  min-height: 150px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 18px;
  background: #fcfdfe;
}
.message-bubble {
  max-width: 87%;
  align-self: flex-start;
  border: 1px solid #e6ebf1;
  border-radius: 10px;
  padding: 10px 13px;
  background: white;
}
.message-bubble.outbound,
.message-bubble.human {
  align-self: flex-end;
  background: #edf3fb;
  border-color: #e2eaf6;
}
.message-bubble.human {
  background: #f0f7f5;
}
.message-meta {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  font-size: 8px;
  color: #8996a7;
  margin-bottom: 5px;
}
.message-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.9;
}
.message-media img {
  max-width: 100%;
  max-height: 250px;
  border-radius: 6px;
}
.message-media audio {
  max-width: 100%;
  width: 240px;
}
.inbox-composer {
  border-top: 1px solid #e5eaf1;
  padding: 13px;
  background: white;
}
.inbox-composer textarea {
  min-height: 60px;
  max-height: 120px;
  font-size: 12px;
  border: 0;
  resize: none;
}
.composer-surface {
  border: 1px solid #dfe6ef;
  border-radius: 10px;
}
.composer-row {
  display: flex;
  align-items: center;
  padding: 4px 8px;
}
.composer-tools {
  display: flex;
  gap: 3px;
}
.composer-icon {
  border: 0;
  min-height: 40px;
  width: 40px;
  padding: 10px;
  background: transparent;
  display: grid;
  place-items: center;
}
.composer-icon svg {
  width: 18px;
  height: 18px;
}
.inbox-send {
  margin-left: auto;
  background: #244b7d;
  color: white;
  border-radius: 8px;
}
.composer-hint {
  font-size: 9px;
  color: #a0abba;
  margin-left: 10px;
}
.inbox-status,
.inbox-delivery {
  font-size: 10px;
  margin-top: 5px;
  color: #8798aa;
}
.delivery-error {
  color: #bb4554;
}
.inbox-attachment img {
  height: 65px;
  width: 65px;
  object-fit: cover;
}
.case-details {
  overflow: auto;
  border-left: 1px solid #e6eaf0;
  padding: 18px;
  background: #fff;
}
.case-details h3 {
  font-size: 12px;
  margin-bottom: 12px;
}
.detail-section {
  border-bottom: 1px solid #ebeff5;
  padding: 0 0 18px;
  margin-bottom: 18px;
}
.detail-section p {
  font-size: 11px;
  line-height: 1.9;
}
.detail-section .row {
  margin-top: 9px;
}
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  font-size: 10px;
  margin: 12px 0;
}
.facts strong {
  display: block;
  color: #374f6d;
  font-size: 12px;
}
.back-chat,
.show-details {
  display: none;
}
.course-card h2 {
  font-size: 19px;
}
.course-price {
  font-size: 28px;
  font-weight: 700;
  color: #25476f;
  margin: 20px 0;
}
.course-description {
  white-space: pre-wrap;
  color: #748198;
  font-size: 13px;
  min-height: 80px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 25px;
}
.settings-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.settings-nav button {
  text-align: left;
  border: 0;
  background: transparent;
  font-size: 12px;
}
.settings-nav button.active {
  background: #eaf0f8;
  color: #244b7d;
}
.settings-content {
  max-width: 950px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
}
.field-note {
  font-size: 11px;
  color: #8392a6;
  margin-top: 5px;
}
.proof-img {
  display: block;
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  background: #f5f7fa;
  margin-bottom: 16px;
}
.login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at top left, #e8eff8, transparent 60%), #f5f7fa;
}
.login-card {
  width: 100%;
  max-width: 420px;
  padding: 35px;
  background: #fff;
  border: 1px solid #e4eaf2;
  border-radius: 16px;
  box-shadow: 0 16px 50px #1930520b;
}
.login-card .brand {
  padding: 0 0 30px;
}
.login-card h1 {
  font-size: 24px;
}
.login-card form {
  display: grid;
  gap: 20px;
  margin-top: 25px;
}
.login-card footer {
  margin-top: 30px;
  text-align: center;
  font-size: 10px;
  color: #98a4b4;
}
.mobile-nav {
  display: none;
}
dialog {
  border: 1px solid #e3e8f0;
  border-radius: 14px;
  padding: 27px;
  width: min(640px, 94vw);
  max-height: 90dvh;
  overflow: auto;
  color: #23334b;
  box-shadow: 0 30px 100px #132c5026;
}
dialog::backdrop {
  background: #13243e66;
  backdrop-filter: blur(2px);
}
dialog h2 {
  font-size: 20px;
  margin-bottom: 20px;
}
dialog form {
  display: grid;
  gap: 18px;
}
dialog .form-actions {
  margin-top: 5px;
}
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 400px;
  background: #1d334f;
  color: white;
  border-radius: 10px;
  font-size: 12px;
  z-index: 100;
  padding: 0;
  box-shadow: 0 8px 25px #15233d20;
}
#toast:not(:empty) {
  padding: 13px 20px;
}
.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  background: white;
  padding: 12px;
}
.import-preview {
  max-height: 300px;
  overflow: auto;
}
.technical-result {
  white-space: pre-wrap;
  font: 12px/1.6 monospace;
  overflow-wrap: anywhere;
  background: #f4f7fb;
  padding: 15px;
  border-radius: 8px;
}
.pagination {
  display: flex;
  justify-content: space-between;
  padding: 13px 18px;
}
.text-link {
  border: 0;
  background: none;
  padding: 0;
  min-height: 32px;
  color: #2f5f97;
  text-align: left;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
@media (min-width: 1700px) {
  .inbox-layout {
    grid-template-columns: 300px minmax(400px, 1fr) 320px;
  }
}
@media (max-width: 1250px) {
  .sidebar {
    width: 195px;
  }
  .topbar {
    left: 195px;
  }
  main {
    margin-left: 195px;
    padding-left: 22px;
    padding-right: 22px;
  }
  .inbox-layout {
    grid-template-columns: 235px minmax(260px, 1fr);
  }
  .case-details {
    display: none;
  }
  .show-details {
    display: block;
  }
  .inbox-layout.details-open {
    grid-template-columns: 235px minmax(260px, 1fr);
  }
  .details-open .conversation-pane {
    display: none;
  }
  .details-open .case-details {
    display: block;
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 16px;
  }
  .stat-value {
    font-size: 23px;
  }
}
@media (max-width: 800px) {
  .sidebar {
    display: none;
  }
  .topbar {
    left: 0;
    height: 62px;
    padding: 0 18px;
  }
  .topbar-title {
    color: #294869;
    font-weight: 700;
  }
  main {
    margin-left: 0;
    padding: 85px 16px 100px;
  }
  .page-head {
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 12px;
  }
  h1 {
    font-size: 23px;
  }
  .page-head .row {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .chart-grid,
  .two {
    grid-template-columns: 1fr;
  }
  .operations {
    grid-template-columns: repeat(2, 1fr);
  }
  .chart {
    height: 170px;
  }
  .toolbar {
    gap: 10px;
  }
  .toolbar .dates {
    width: 100%;
  }
  .toolbar .dates label {
    flex: 1;
    min-width: 0;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #dfe6f0;
    z-index: 40;
    padding: 5px 3px max(5px, env(safe-area-inset-bottom));
    justify-content: space-around;
  }
  .mobile-nav button {
    border: 0;
    background: none;
    padding: 8px 10px;
    font-size: 9px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: #8a97a9;
    flex: 1;
  }
  .mobile-nav button svg {
    width: 20px;
    height: 20px;
  }
  .mobile-nav button.active {
    color: #214675;
    background: #f1f5fb;
    border-radius: 8px;
  }
  .inbox-layout {
    display: block;
    height: calc(100dvh - 228px);
    min-height: 420px;
  }
  .queue {
    height: 100%;
    border: 0;
  }
  .conversation-pane,
  .case-details {
    display: none;
  }
  .inbox-layout.has-selection .queue {
    display: none;
  }
  .inbox-layout.has-selection .conversation-pane {
    display: flex;
    height: 100%;
  }
  .inbox-layout.has-selection.details-open .conversation-pane {
    display: none;
  }
  .inbox-layout.has-selection.details-open .case-details {
    display: block;
    height: 100%;
  }
  .back-chat,
  .show-details {
    display: block;
  }
  .message-bubble {
    max-width: 92%;
  }
  .message-text {
    font-size: 13px;
  }
  .inbox-composer textarea {
    font-size: 16px;
  }
  .composer-hint {
    display: none;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .settings-nav {
    flex-direction: row;
    overflow: auto;
  }
  .settings-nav button {
    white-space: nowrap;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: auto;
  }
  .account-name {
    display: none;
  }
  .pad {
    padding: 18px;
  }
  #toast {
    bottom: 85px;
    left: 16px;
    right: 16px;
    max-width: none;
  }
  .table-scroll {
    max-width: 100%;
  }
  .login-card {
    padding: 27px;
  }
  .course-description {
    min-height: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.ui-icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  flex-shrink: 0;
}
button > .ui-icon {
  margin-right: 5px;
}
.icon-button > .ui-icon,
.nav-item > .ui-icon,
.composer-icon > .ui-icon,
.mobile-nav .ui-icon {
  margin: 0;
}
@media (pointer: coarse) {
  button.small {
    min-height: 44px;
  }
}
