@font-face {
  font-family: Panel;
  src: local("Segoe UI");
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Panel, Inter, Arial, sans-serif;
  color: #22322e;
  background: #f5f7f8;
  font-size: 13px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  outline-offset: 3px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button {
  border: 1px solid #dce3e0;
  border-radius: 7px;
  background: white;
  color: inherit;
  padding: 8px 12px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
button:hover:not(:disabled) {
  background: #f0f5f2;
  border-color: #b8ccc3;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #176d58;
}
input,
textarea,
select {
  border: 1px solid #dce3e0;
  border-radius: 7px;
  background: white;
  padding: 9px 10px;
  color: #263832;
  min-width: 0;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #b4dacc;
  border-color: #438c73;
}
textarea {
  resize: vertical;
}
input[type="checkbox"] {
  accent-color: #176d58;
  width: 16px;
  height: 16px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 23px;
  letter-spacing: -0.7px;
  font-weight: 650;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.35px;
}
h3 {
  font-size: 14px;
}
small,
.muted {
  color: #78857f;
  font-size: 12px;
}
a {
  color: #176d58;
  text-decoration: none;
}
svg.icon {
  width: 17px;
  height: 17px;
  vertical-align: middle;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.primary {
  background: #176d58;
  color: white;
  border-color: #176d58;
}
.primary:hover:not(:disabled) {
  background: #125743;
  border-color: #125743;
}
.danger {
  color: #b24a44;
  border-color: #e9cac6;
}
.danger:hover:not(:disabled) {
  background: #fff0ee;
}
.ghost {
  border-color: transparent;
  background: transparent;
}
.small {
  font-size: 12px;
  padding: 5px 8px;
}
.icon-button {
  padding: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wrap {
  flex-wrap: wrap;
}
.initial {
  display: grid;
  place-items: center;
  height: 100vh;
  color: #176d58;
}
.app {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  height: 100vh;
  overflow: hidden;
}
.sidebar {
  background: #fff;
  border-right: 1px solid #e4e9e6;
  padding: 24px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 9px;
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -1px;
}
.brand img {
  width: 33px;
  height: 33px;
}
.brand small {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 1px;
  font-weight: 500;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #98a49e;
  padding: 0 12px;
  margin-bottom: 8px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav button {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 11px;
  border: none;
  background: transparent;
  padding: 10px 11px;
  border-radius: 7px;
  color: #6d7a74;
  font-weight: 500;
}
.nav button:hover {
  background: #f4f7f5;
}
.nav button.current {
  color: #176d58;
  background: #eaf3ef;
  font-weight: 650;
}
.nav .nav-count {
  margin-left: auto;
  font-size: 10px;
  background: #e0ece5;
  color: #176d58;
  padding: 2px 5px;
  border-radius: 4px;
}
.side-bottom {
  margin-top: auto;
  border-top: 1px solid #edf0ee;
  padding: 18px 10px 0;
}
.system-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: #58a985;
  margin-right: 5px;
}
.system-dot.off {
  background: #d29143;
}
.side-bottom p {
  font-size: 11px;
  color: #85918a;
  margin-top: 7px;
  line-height: 1.5;
}
.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.demo-ribbon {
  height: 30px;
  background: #f7f0dd;
  border-bottom: 1px solid #ede3c7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  color: #8b7136;
  font-size: 11px;
  flex-shrink: 0;
}
.demo-ribbon b {
  font-weight: 650;
}
.header {
  height: 66px;
  padding: 0 25px;
  background: #fff;
  border-bottom: 1px solid #e4e9e6;
  flex-shrink: 0;
}
.breadcrumb {
  color: #94a099;
  font-size: 12px;
}
.breadcrumb span {
  color: #334a40;
  margin-left: 9px;
}
.avatar {
  height: 32px;
  width: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e7eee7;
  color: #537155;
  font-weight: 650;
  font-size: 12px;
}
.user-button {
  display: flex;
  gap: 9px;
  align-items: center;
  border: none;
  background: transparent;
  padding: 5px;
}
.user-button strong {
  font-size: 12px;
  font-weight: 600;
}
.user-button small {
  display: block;
  text-align: left;
  font-size: 10px;
  margin-top: 2px;
}
.separator {
  width: 1px;
  height: 24px;
  background: #e5eae7;
  margin: 0 8px;
}
.view {
  padding: 22px 24px 0;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.page-heading {
  margin-bottom: 18px;
  flex-shrink: 0;
}
.page-heading p {
  margin-top: 5px;
  font-size: 12px;
  color: #7e8c84;
}
.page-heading .row {
  align-self: flex-start;
}
.pill {
  padding: 4px 7px;
  font-size: 10px;
  letter-spacing: 0.4px;
  border-radius: 5px;
  background: #edf2ef;
  color: #667e71;
  font-weight: 600;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.stat {
  padding: 14px 17px;
  background: #fff;
  border: 1px solid #e2e8e4;
  border-radius: 9px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stat-label {
  font-size: 11px;
  color: #74857a;
}
.stat strong {
  display: block;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.7px;
  margin-top: 6px;
}
.stat-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #f1f5f2;
  color: #7b9383;
}
.stat.alert .stat-icon {
  background: #fff3e7;
  color: #c18a4c;
}
.stat.alert strong {
  color: #b57839;
}
.workspace {
  border: 1px solid #dfe6e1;
  border-radius: 10px 10px 0 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.queue-top {
  padding: 13px 15px 0;
  border-bottom: 1px solid #e8ede9;
  flex-shrink: 0;
}
.toolbar {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  padding-bottom: 13px;
}
.segmented {
  padding: 3px;
  background: #f1f4f2;
  border-radius: 7px;
  display: flex;
  gap: 2px;
}
.segmented button {
  border: none;
  background: transparent;
  padding: 6px 11px;
  font-size: 11px;
  color: #718178;
  border-radius: 5px;
}
.segmented button.active {
  background: #fff;
  color: #24513c;
  box-shadow: 0 1px 4px #1f392514;
}
.search {
  position: relative;
  flex: 1;
  min-width: 170px;
  max-width: 350px;
}
.search input {
  width: 100%;
  padding-left: 32px;
  font-size: 12px;
}
.search .icon {
  position: absolute;
  left: 10px;
  top: 10px;
  color: #9ca89f;
}
.toolbar select {
  font-size: 11px;
  max-width: 170px;
}
.toolbar .spacer {
  flex: 1;
}
.tabs {
  display: flex;
  gap: 19px;
  overflow-x: auto;
  white-space: nowrap;
}
.tabs button {
  border: none;
  border-radius: 0;
  padding: 0 1px 12px;
  font-size: 12px;
  background: transparent;
  color: #829085;
  border-bottom: 2px solid transparent;
}
.tabs button.active {
  color: #176d58;
  border-bottom-color: #176d58;
  font-weight: 600;
}
.tabs .count {
  font-size: 10px;
  background: #eef3ef;
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 4px;
}
.queue-body {
  display: flex;
  flex: 1;
  min-height: 0;
}
.list-pane {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.table-scroll {
  overflow: auto;
  flex: 1;
  min-height: 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
thead {
  position: sticky;
  top: 0;
  background: #f8faf9;
  z-index: 1;
}
th {
  font-size: 10px;
  font-weight: 550;
  color: #95a097;
  white-space: nowrap;
  padding: 10px 12px;
  border-bottom: 1px solid #e8ede9;
}
td {
  font-size: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #eef1ee;
  white-space: nowrap;
}
tr.order-row {
  cursor: pointer;
}
tr.order-row:hover {
  background: #f8faf8;
}
tr.order-row.selected {
  background: #eef6f1;
}
tr.order-row.selected td:first-child {
  box-shadow: inset 3px 0 #267858;
}
.order-id {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 12px;
  color: #2d4637;
}
.order-sub {
  font-size: 10px;
  color: #8a978e;
  margin-top: 3px;
}
.bs {
  font-size: 9px;
  padding: 3px 4px;
  background: #ebeff8;
  color: #697da6;
  border-radius: 4px;
  font-weight: 650;
  letter-spacing: 0.2px;
}
.bs.two {
  background: #f0eafa;
  color: #997db5;
}
.amount {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.method {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: #8c988e;
  margin-top: 3px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  padding: 4px 7px;
  border-radius: 5px;
  color: #748078;
  background: #f1f4f2;
}
.status::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.status.dispute {
  background: #fff1e5;
  color: #b37a3a;
}
.status.waiting {
  background: #edf2fc;
  color: #768bad;
}
.status.search {
  background: #f0ecfa;
  color: #9381ae;
}
.status.success {
  background: #e9f4ee;
  color: #578b6b;
}
.status.review {
  background: #fbedea;
  color: #b5776b;
}
.status.cancel-client,
.status.cancel-timer,
.status.cancel-operator {
  color: #9a8581;
  background: #f5f0ed;
}
.unread {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: #216f53;
  color: white;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
}
.receipt-icon {
  color: #b48852;
  margin-left: 4px;
}
.time {
  font-size: 11px;
  color: #85948a;
  font-variant-numeric: tabular-nums;
}
.protected {
  color: #b28b50;
  font-size: 10px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 11px;
  color: #8c978f;
  border-top: 1px solid #e7ece8;
  background: #fff;
  flex-shrink: 0;
}
.pagination button {
  padding: 4px 7px;
}
.detail {
  width: 407px;
  border-left: 1px solid #e2e8e3;
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex-shrink: 0;
}
.detail-head {
  padding: 15px 17px 12px;
  border-bottom: 1px solid #e8ece8;
  flex-shrink: 0;
}
.detail-head h2 {
  font-size: 16px;
}
.detail-head .subline {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 7px;
}
.detail-info {
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: #849086;
  margin-top: 11px;
}
.detail-info strong {
  color: #55695b;
  font-weight: 500;
}
.detail-tabs {
  padding: 0 17px;
  display: flex;
  gap: 20px;
  border-bottom: 1px solid #e8ece8;
  flex-shrink: 0;
}
.detail-tabs button {
  padding: 10px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: #8b988d;
  font-size: 11px;
  background: transparent;
}
.detail-tabs button.active {
  color: #176d58;
  border-bottom-color: #176d58;
}
.detail-content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: #fcfdfc;
  padding: 14px 17px;
}
.client-compact {
  border: 1px solid #e0e8e0;
  background: white;
  border-radius: 7px;
  padding: 11px;
  margin-bottom: 15px;
}
.client-compact .mini-stats {
  display: flex;
  gap: 15px;
  font-size: 10px;
  color: #9aa399;
  margin-top: 9px;
}
.mini-stats b {
  font-size: 12px;
  color: #5d7765;
  display: block;
  font-weight: 600;
  margin-top: 3px;
}
.text-button {
  border: 0;
  background: transparent;
  color: #528167;
  padding: 2px;
  font-size: 10px;
}
.chat-day {
  text-align: center;
  color: #a3ada4;
  font-size: 10px;
  margin: 12px 0;
}
.message {
  max-width: 91%;
  margin: 12px 0;
  line-height: 1.5;
}
.message .sender {
  font-size: 10px;
  color: #8b978e;
  margin-bottom: 4px;
}
.bubble {
  background: #fff;
  border: 1px solid #e7ece6;
  padding: 10px 12px;
  border-radius: 0 10px 10px 10px;
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message.out {
  margin-left: auto;
}
.message.out .bubble {
  background: #edf5ef;
  border-color: #e0ecdf;
  border-radius: 10px 0 10px 10px;
}
.message.out .sender {
  text-align: right;
}
.message-time {
  font-size: 9px;
  color: #a2aca3;
  display: block;
  text-align: right;
  margin-top: 5px;
}
.system-message {
  text-align: center;
  font-size: 10px;
  line-height: 1.6;
  color: #9aa399;
  margin: 14px 0;
}
.receipt-card {
  display: flex;
  gap: 9px;
  text-align: left;
  background: #fbf8f1;
  width: 100%;
  margin-top: 9px;
  padding: 10px;
  border-color: #eadfc9;
}
.receipt-card .icon {
  color: #b99b67;
  width: 23px;
  height: 23px;
}
.receipt-card strong {
  font-size: 11px;
  display: block;
}
.receipt-card small {
  font-size: 9px;
  display: block;
  margin-top: 3px;
}
.notice {
  font-size: 11px;
  line-height: 1.5;
  padding: 9px 11px;
  border-radius: 6px;
  border: 1px solid #eddcb6;
  background: #fffaed;
  color: #a08450;
  margin-bottom: 12px;
}
.notice.error {
  background: #fff2ed;
  color: #af6f5d;
  border-color: #f0d7cd;
}
.notice.success {
  background: #eef7f0;
  border-color: #dceade;
  color: #698775;
}
.presence {
  color: #8b9b8f;
  font-size: 10px;
  margin-top: 10px;
  min-height: 14px;
}
.composer {
  padding: 11px 14px 12px;
  border-top: 1px solid #e4eae3;
  background: white;
  flex-shrink: 0;
}
.template-chips {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  margin-bottom: 8px;
}
.template-chips button {
  white-space: nowrap;
  font-size: 9px;
  padding: 5px 7px;
  color: #899582;
  background: #f7f9f5;
  border-color: #e9ede5;
}
.composer textarea {
  display: block;
  width: 100%;
  min-height: 70px;
  max-height: 160px;
  border-color: #e4e9e0;
  font-size: 12px;
  padding: 10px;
  line-height: 1.5;
}
.composer .between {
  margin-top: 8px;
}
.composer small {
  font-size: 9px;
}
.composer .primary {
  font-size: 11px;
  padding: 7px 10px;
}
.detail-footer {
  padding: 9px 14px;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  border-top: 1px solid #edf0ea;
  background: #fcfdfb;
}
.detail-footer button {
  font-size: 10px;
  padding: 6px 8px;
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 25px;
  text-align: center;
  gap: 12px;
  color: #839086;
  flex: 1;
}
.empty .icon {
  width: 34px;
  height: 34px;
  stroke-width: 1;
}
.empty strong {
  font-size: 14px;
  color: #5d7364;
  font-weight: 500;
}
.empty p {
  max-width: 300px;
  font-size: 12px;
  line-height: 1.7;
}
.content-scroll {
  overflow: auto;
  flex: 1;
  padding-bottom: 24px;
}
.panel {
  background: white;
  border: 1px solid #e1e7e2;
  border-radius: 9px;
  padding: 20px;
}
.panel-title {
  margin-bottom: 16px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}
.card {
  background: white;
  border: 1px solid #e0e7df;
  border-radius: 9px;
  padding: 19px;
}
.card p {
  color: #819180;
  font-size: 12px;
  line-height: 1.7;
  margin: 13px 0;
  white-space: pre-wrap;
}
.card .card-bottom {
  border-top: 1px solid #eef1ea;
  padding-top: 12px;
  margin-top: 15px;
}
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0;
}
.stat-grid small {
  display: block;
  font-size: 10px;
}
.stat-grid strong {
  display: block;
  margin-top: 5px;
  font-size: 17px;
  font-weight: 550;
}
.note {
  padding: 10px 0;
  border-bottom: 1px solid #e5ebe2;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.note small {
  font-size: 10px;
  display: block;
  margin-bottom: 4px;
}
.note-form {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.note-form textarea {
  width: 100%;
  min-height: 65px;
  font-size: 12px;
}
.note-form button {
  align-self: flex-end;
  font-size: 11px;
}
.audit td {
  white-space: normal;
  font-size: 12px;
  max-width: 340px;
  line-height: 1.6;
}
.audit small {
  font-size: 10px;
}
.settings-scope {
  padding: 13px 15px;
  background: #f0f5f1;
  border-radius: 7px;
  color: #68846b;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 18px;
}
.badge-off {
  background: #f4f0e9;
  color: #a5977d;
  font-size: 10px;
  border-radius: 4px;
  padding: 4px 6px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
label.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  color: #687f6a;
}
label.check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  line-height: 1.6;
  margin: 10px 0;
  color: #69806c;
}
label.check input {
  margin-top: 3px;
  flex-shrink: 0;
}
dialog {
  border: 1px solid #e1e8dd;
  border-radius: 12px;
  padding: 0;
  width: 510px;
  max-width: calc(100vw - 28px);
  max-height: calc(100vh - 32px);
  box-shadow: 0 30px 100px #10211438;
  color: #253c2b;
}
dialog::backdrop {
  background: #15271f66;
  backdrop-filter: blur(3px);
}
.modal-header {
  padding: 20px 23px 14px;
  border-bottom: 1px solid #e9eee4;
}
.modal-body {
  padding: 20px 23px;
  overflow: auto;
}
.modal-footer {
  padding: 14px 23px;
  border-top: 1px solid #e9eee4;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  background: #fbfcfa;
}
.modal-description {
  color: #83917c;
  font-size: 12px;
  line-height: 1.7;
  margin: 12px 0 18px;
}
.receipt-preview {
  background: #faf9f5;
  border: 1px dashed #d6d9cd;
  padding: 24px;
  text-align: center;
  max-width: 310px;
  margin: 0 auto 20px;
}
.receipt-preview h3 {
  font-size: 13px;
  letter-spacing: 2px;
  color: #8f9a83;
}
.receipt-preview .receipt-amount {
  font-size: 28px;
  font-weight: 650;
  margin: 20px 0;
}
.receipt-preview dl {
  font-size: 11px;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.receipt-preview dt {
  color: #9a9e8f;
}
.receipt-preview dd {
  margin: 0;
  text-align: right;
}
.receipt-preview .sample {
  margin-top: 22px;
  font-size: 10px;
  border: 1px solid #dfd9c6;
  padding: 6px;
  color: #b1a382;
}
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: #fff;
}
.login-intro {
  background: #173c30;
  padding: 10vh 9vw;
  color: #eaf3e8;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-intro .brand {
  padding: 0;
  margin-bottom: 70px;
  font-size: 29px;
}
.login-intro h1 {
  font-size: 40px;
  font-weight: 550;
  line-height: 1.2;
  letter-spacing: -1.3px;
  max-width: 450px;
}
.login-intro p {
  font-size: 14px;
  line-height: 1.9;
  color: #a4b8a6;
  margin-top: 22px;
  max-width: 370px;
}
.login-intro .intro-foot {
  margin-top: 70px;
  font-size: 11px;
  color: #6f967b;
  letter-spacing: 1px;
}
.login-form {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 45px;
}
.login-box {
  max-width: 350px;
  width: 100%;
}
.login-box h2 {
  font-size: 23px;
  margin-bottom: 10px;
}
.login-box .subtitle {
  color: #899684;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.account-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  margin-top: 10px;
  padding: 13px;
  border-radius: 9px;
}
.account-choice strong {
  display: block;
  font-size: 13px;
}
.account-choice small {
  font-size: 11px;
  display: block;
  margin-top: 3px;
}
.account-choice .icon {
  margin-left: auto;
  color: #95a38c;
}
.login-foot {
  margin-top: 25px;
  font-size: 11px;
  color: #a09d8a;
  line-height: 1.8;
}
.mobile-menu {
  display: none;
}
#toasts {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: #234735;
  color: #f5f8f0;
  border: 1px solid #446c4e;
  box-shadow: 0 8px 25px #17332026;
  padding: 12px 18px;
  border-radius: 8px;
  max-width: min(520px, 92vw);
  font-size: 12px;
  line-height: 1.6;
}
.toast.error {
  background: #804d40;
  border-color: #a16c5a;
}
.date-filters {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0 0 12px;
  font-size: 11px;
  color: #8b9786;
}
.date-filters input {
  font-size: 11px;
  padding: 6px;
  max-width: 150px;
}
.connection {
  font-size: 10px;
  color: #8b998b;
}
.health {
  display: inline-flex;
  gap: 9px;
}
.form-error {
  color: #b26a5b;
  font-size: 12px;
  margin-bottom: 12px;
  line-height: 1.5;
}
.conflict {
  margin: 0 0 8px;
}
.detail-inner-heading {
  margin: 15px 0 8px;
  font-size: 12px;
  color: #698068;
}
.history-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 11px;
  border-bottom: 1px solid #edf0e8;
}
.status small {
  font-size: 9px;
}
.header-right .icon-button {
  color: #80917f;
}
.label-tag {
  font-size: 10px;
  color: #ad9672;
  background: #f9f4e8;
  padding: 4px 6px;
  border-radius: 4px;
}
.table-empty {
  padding: 45px;
  text-align: center;
  color: #859780;
}
.detail .notice {
  margin-top: 0;
}
.inspector {
  width: 410px;
}
.audit-action {
  color: #57725c;
}
.footer-version {
  font-size: 9px;
  color: #a5ada0;
  margin-top: 14px;
}
.busy {
  opacity: 0.65;
  pointer-events: none;
}
.linked {
  font-size: 11px;
  color: #867c9d;
  margin: 12px 0;
}
.disabled-card {
  opacity: 0.68;
}
.not-real {
  font-size: 10px;
  color: #9a9987;
  line-height: 1.6;
  margin-top: 12px;
}
button.link {
  border: 0;
  background: none;
  color: #497e58;
  padding: 0;
  font-size: inherit;
}
.section-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.toolbar .date-toggle {
  font-size: 11px;
}
.table-scroll .merchant-cell {
  max-width: 145px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.table-scroll .client-cell {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 1600px) {
  .detail {
    width: 460px;
  }
  td {
    padding: 12px 14px;
  }
  .sidebar {
    padding-top: 28px;
  }
  .app {
    grid-template-columns: 200px minmax(0, 1fr);
  }
}
@media (max-width: 1250px) {
  .app {
    grid-template-columns: 155px minmax(0, 1fr);
  }
  .view {
    padding: 18px 16px 0;
  }
  .detail {
    width: 350px;
  }
  .detail-open .merchant-col,
  .detail-open .deadline-col {
    display: none;
  }
  .stat {
    padding: 12px;
  }
  .stat-icon {
    display: none;
  }
  td,
  th {
    padding: 10px;
  }
  .sidebar {
    padding-inline: 9px;
  }
  .header {
    padding-inline: 18px;
  }
  .tabs {
    gap: 15px;
  }
  .stats {
    gap: 9px;
  }
  .stat strong {
    font-size: 23px;
  }
}
@media (max-width: 950px) {
  .app {
    grid-template-columns: 65px minmax(0, 1fr);
  }
  .sidebar {
    padding: 20px 9px;
  }
  .sidebar .brand {
    padding: 0;
    justify-content: center;
  }
  .sidebar .brand-text,
  .sidebar .nav-label,
  .sidebar .nav button span,
  .side-bottom,
  .sidebar .nav-count {
    display: none;
  }
  .sidebar .nav button {
    justify-content: center;
    padding: 12px;
  }
  .detail {
    width: 355px;
  }
  .detail-open .method,
  .detail-open .client-col {
    display: none;
  }
  .header-right .connection {
    display: none;
  }
  .stats {
    margin-bottom: 12px;
  }
  .stat-label {
    font-size: 10px;
  }
  .page-heading {
    margin-bottom: 14px;
  }
  .queue-top {
    padding: 11px 12px 0;
  }
  .tabs {
    gap: 13px;
  }
  .toolbar {
    gap: 6px;
  }
  .toolbar .spacer {
    display: none;
  }
  .search {
    max-width: none;
  }
  .toolbar select {
    max-width: 150px;
  }
  .login-intro {
    padding: 6vw;
  }
  .login-intro h1 {
    font-size: 32px;
  }
}
@media (max-width: 700px) {
  .app {
    display: block;
    height: 100dvh;
  }
  .sidebar {
    display: none;
    position: fixed;
    left: 0;
    top: 86px;
    bottom: 0;
    width: 205px;
    z-index: 5;
    box-shadow: 12px 0 35px #1b392b25;
  }
  .sidebar.open {
    display: flex;
  }
  .sidebar .brand {
    display: none;
  }
  .sidebar .nav button {
    justify-content: flex-start;
  }
  .sidebar .nav button span,
  .sidebar .nav-label {
    display: block;
  }
  .main {
    height: 100dvh;
  }
  .demo-ribbon {
    padding: 0 12px;
    height: 27px;
    font-size: 9px;
  }
  .demo-ribbon .ribbon-extra {
    display: none;
  }
  .header {
    height: 58px;
    padding: 0 13px;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .breadcrumb {
    font-size: 11px;
  }
  .header .separator,
  .header .header-right > .icon-button {
    display: none;
  }
  .header-right .user-button small {
    display: none;
  }
  .view {
    padding: 16px 12px 0;
  }
  .page-heading h1 {
    font-size: 21px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .page-heading .row > .ghost {
    display: none;
  }
  .stats {
    gap: 6px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 12px;
  }
  .stat {
    padding: 10px 8px;
    border-radius: 7px;
  }
  .stat-label {
    font-size: 9px;
  }
  .stat strong {
    font-size: 21px;
    margin-top: 5px;
  }
  .queue-top {
    padding: 10px 9px 0;
  }
  .toolbar {
    gap: 7px;
  }
  .segmented button {
    padding: 6px 9px;
  }
  .search {
    min-width: 150px;
    flex-basis: 45%;
  }
  .toolbar select {
    font-size: 10px;
    flex: 1;
    max-width: none;
  }
  .tabs {
    gap: 16px;
  }
  .tabs button {
    font-size: 11px;
  }
  .queue-body {
    position: relative;
  }
  .detail-open .list-pane {
    display: none;
  }
  .detail {
    width: 100%;
    border-left: 0;
  }
  .detail-open .detail {
    flex: 1;
  }
  .detail-head {
    padding: 12px 14px 10px;
  }
  .detail-content {
    padding: 12px 15px;
  }
  .detail .client-compact {
    padding: 9px;
    margin-bottom: 10px;
  }
  .detail-head h2 {
    font-size: 15px;
  }
  .detail-tabs button {
    padding: 9px 0;
  }
  .detail-info {
    margin-top: 9px;
  }
  .composer {
    padding: 9px 12px;
  }
  .composer textarea {
    min-height: 60px;
  }
  .deadline-col,
  .merchant-col {
    display: none;
  }
  td {
    padding: 12px 9px;
  }
  th {
    padding: 9px;
  }
  .amount {
    font-size: 11px;
  }
  .status {
    font-size: 9px;
    padding: 4px 5px;
  }
  .order-id {
    font-size: 11px;
  }
  .client-col {
    display: none;
  }
  .order-sub {
    font-size: 9px;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 16px;
  }
  .content-scroll > .panel {
    padding: 10px;
    overflow: auto;
  }
  .audit td {
    min-width: 110px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .wide {
    grid-column: auto;
  }
  .login-page {
    display: block;
  }
  .login-intro {
    padding: 28px 24px;
  }
  .login-intro .brand {
    margin-bottom: 28px;
    font-size: 24px;
  }
  .login-intro h1 {
    font-size: 29px;
  }
  .login-intro p {
    font-size: 12px;
    margin-top: 15px;
  }
  .login-intro .intro-foot {
    display: none;
  }
  .login-form {
    padding: 28px 24px;
  }
  .login-box {
    max-width: none;
  }
  .login-box h2 {
    font-size: 20px;
  }
  .login-box .subtitle {
    font-size: 12px;
    margin-bottom: 15px;
  }
  .modal-body {
    padding: 16px 18px;
  }
  .modal-header {
    padding: 16px 18px 12px;
  }
  .modal-footer {
    padding: 12px 18px;
  }
  .section-controls {
    flex-wrap: wrap;
  }
  .inspector {
    width: 100%;
  }
  .page-heading .pill {
    display: none;
  }
  .user-button {
    gap: 6px;
  }
  .user-button strong {
    font-size: 11px;
  }
  .avatar {
    height: 29px;
    width: 29px;
  }
  .detail-open .queue-top .toolbar,
  .detail-open .queue-top .tabs {
    display: none;
  }
  .detail-open .queue-top {
    padding: 0;
    border: 0;
  }
  .detail-open.workspace {
    flex: 1;
  }
  .view:has(.detail-open) .stats,
  .view:has(.detail-open) .page-heading {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Give conversation space priority when a request is open. */
.view:has(.detail-open) .stats {
  display: none;
}
.view:has(.detail-open) .page-heading {
  margin-bottom: 12px;
}
.view:has(.detail-open) .page-heading p {
  display: none;
}
.template-chips {
  scrollbar-width: thin;
}
.detail-content {
  overscroll-behavior: contain;
}
.nav button[aria-label] {
  position: relative;
}
@media (max-height: 800px) and (min-width: 701px) {
  .view {
    padding-top: 14px;
  }
  .detail-head {
    padding: 11px 14px;
  }
  .detail-info {
    margin-top: 8px;
  }
  .composer textarea {
    min-height: 58px;
  }
  .composer {
    padding: 9px 12px;
  }
  .page-heading {
    margin-bottom: 12px;
  }
}
.merchant-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid #edf0e8;
  font-size: 10px;
  color: #869481;
}
.merchant-metrics b {
  display: block;
  font-size: 17px;
  font-weight: 550;
  color: #516e56;
  margin-top: 5px;
}
@media (max-width: 700px) {
  .section-controls > small {
    flex-basis: 100%;
  }
  .card .stat-grid strong {
    font-size: 15px;
  }
}
.detail-footer .next-unread {
  margin-right: auto;
}
.method-options {
  border: 1px solid #e2e8de;
  border-radius: 7px;
  padding: 8px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
}
.method-options legend {
  font-size: 12px;
  color: #687f6a;
  padding: 0 4px;
}
.method-options .check {
  margin: 4px 0;
}
@media (max-width: 700px) {
  .table-scroll > table,
  .table-scroll > table tbody {
    display: block;
    width: 100%;
  }
  .table-scroll > table thead {
    display: none;
  }
  .table-scroll .order-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    position: relative;
    padding: 12px 14px;
    border-bottom: 1px solid #e8ede7;
    gap: 7px 8px;
  }
  .table-scroll .order-row td {
    padding: 0;
    border: 0;
    white-space: normal;
  }
  .table-scroll .order-row td:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
    box-shadow: none;
  }
  .table-scroll .order-row td:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
    padding-right: 27px;
    font-size: 13px;
  }
  .table-scroll .order-row td:nth-child(4) {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .table-scroll .order-row td:nth-child(6) {
    position: absolute;
    right: 13px;
    top: 13px;
  }
  .table-scroll .order-row.selected {
    box-shadow: inset 3px 0 #267858;
  }
  .table-scroll .order-row .order-id {
    font-size: 12px;
  }
  .table-scroll .order-row .order-sub {
    font-size: 10px;
    margin-top: 5px;
  }
  .table-scroll .order-row .status {
    font-size: 10px;
  }
  .table-scroll .order-row .method {
    font-size: 10px;
  }
}
@media (max-width: 700px) {
  .clients-table,
  .clients-table tbody,
  .audit,
  .audit tbody {
    display: block;
    width: 100%;
  }
  .clients-table thead,
  .audit thead {
    display: none;
  }
  .clients-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 14px 5px;
    gap: 10px;
    border-bottom: 1px solid #e9ede5;
  }
  .clients-table td {
    padding: 0;
    border: 0;
    font-size: 12px;
  }
  .clients-table td:nth-child(2) {
    text-align: right;
  }
  .clients-table td:nth-child(6) {
    text-align: right;
  }
  .clients-table td:nth-child(3)::before {
    content: "Успешных: ";
    color: #8a9784;
    font-size: 10px;
  }
  .clients-table td:nth-child(4)::before {
    content: "Объём: ";
    color: #8a9784;
    font-size: 10px;
  }
  .clients-table td:nth-child(5)::before {
    content: "Конверсия: ";
    color: #8a9784;
    font-size: 10px;
  }
  .audit tbody tr {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 14px 5px;
    border-bottom: 1px solid #e9ede5;
  }
  .audit td {
    min-width: 0;
    max-width: none;
    padding: 0;
    border: 0;
    overflow-wrap: anywhere;
  }
  .audit td:first-child {
    font-size: 10px;
    color: #93a08b;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading .primary {
    max-width: 125px;
    white-space: normal;
    font-size: 11px;
  }
}
