/* Desktop test skin for the UTM5 cabinet. */

:root {
  --utm-accent: #fc7100;
  --utm-accent-strong: #df5f00;
  --utm-accent-soft: #fff1e6;
  --utm-teal: #df5f00;
  --utm-page: #f5f5f3;
  --utm-surface: #ffffff;
  --utm-surface-muted: #faf7f4;
  --utm-sidebar: #ffffff;
  --utm-sidebar-muted: #8e949c;
  --utm-text: #232a31;
  --utm-text-muted: #676f78;
  --utm-border: #ebe5de;
  --utm-success: #2f9d52;
  --utm-danger: #c44d3c;
  --utm-shadow: 0 18px 44px rgba(35, 42, 49, 0.06);
  --utm-nav-width: 280px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--utm-text);
  background: var(--utm-page);
  -webkit-font-smoothing: antialiased;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

body {
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--utm-accent);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--utm-accent-strong);
  text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--utm-text);
  font-weight: 600;
  line-height: 1.2;
}

p {
  margin: 0 0 16px;
  color: var(--utm-text-muted);
  line-height: 1.6;
}

.app-shell {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--utm-nav-width) minmax(0, 1fr);
}

.menu-area {
  width: var(--utm-nav-width);
  flex: 0 0 var(--utm-nav-width);
  padding: 32px 22px;
  background: var(--utm-sidebar);
  color: var(--utm-text);
  border-right: 1px solid var(--utm-border);
}

.brand-block {
  display: flex;
  justify-content: center;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--utm-border);
}

.brand-block img,
.auth-brand img {
  width: 110px;
  border-radius: 0;
}

.menu-label {
  margin-bottom: 14px;
  color: var(--utm-sidebar-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.mainmenu-inact,
.mainmenu-act {
  display: block;
  padding: 12px 14px;
  margin-bottom: 6px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.mainmenu-inact {
  color: var(--utm-text);
  background: transparent;
}

.mainmenu-inact:hover {
  color: var(--utm-accent-strong);
  background: var(--utm-accent-soft);
}

.mainmenu-act {
  color: #ffffff;
  background: var(--utm-accent);
  box-shadow: 0 12px 24px rgba(252, 113, 0, 0.2);
}

.mainmenu-inact a,
.mainmenu-act a {
  display: block;
  color: inherit !important;
  text-decoration: none;
}

.work-area {
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 0 36px 40px;
}

.work-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px;
  margin-bottom: 20px;
  background: var(--utm-surface);
  border: 1px solid var(--utm-border);
  border-radius: 8px;
  box-shadow: var(--utm-shadow);
  width: 100%;
}

.work-top-copy {
  min-width: 0;
}

.work-top-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.page-kicker,
.auth-kicker {
  margin-bottom: 8px;
  color: var(--utm-teal);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.page-title {
  font-size: 32px;
}

.page-chip,
.page-user,
.auth-note {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.page-chip {
  color: var(--utm-accent-strong);
  background: var(--utm-accent-soft);
}

.page-user {
  color: var(--utm-text-muted);
  background: #f1ede8;
}

.submenu-area {
  padding: 12px;
  margin-bottom: 16px;
  background: var(--utm-surface);
  border: 1px solid var(--utm-border);
  border-radius: 8px;
  box-shadow: var(--utm-shadow);
  width: 100%;
}

.work-content {
  width: 100%;
}

.submenu-act,
.submenu-inact,
.subsubmenu-act,
.subsubmenu-inact {
  display: inline-block;
  margin: 4px 8px 4px 0;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.submenu-inact,
.subsubmenu-inact {
  color: var(--utm-text-muted);
  background: transparent;
}

.submenu-act,
.subsubmenu-act {
  color: var(--utm-accent-strong);
  background: var(--utm-accent-soft);
}

.submenu-inact:hover,
.subsubmenu-inact:hover {
  color: var(--utm-accent-strong);
  background: var(--utm-accent-soft);
}

.submenu-inact a,
.subsubmenu-inact a,
.submenu-act a,
.subsubmenu-act a {
  color: inherit !important;
  text-decoration: none;
}

.subsubmenu-area {
  padding: 0 0 12px;
  margin: 0;
  background: transparent;
}

.work-content > *:first-child {
  margin-top: 0;
}

.errorMessage,
#ErrorForm {
  margin: 0 0 16px;
  padding: 12px 16px;
  color: var(--utm-danger);
  background: #fff0ee;
  border: 1px solid #f3c8c1;
  border-radius: 8px;
}

input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
  max-width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--utm-border);
  border-radius: 6px;
  background: #ffffff;
  color: var(--utm-text);
  font: 400 14px/1.4 "Inter", "Segoe UI", Arial, sans-serif;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--utm-accent);
  box-shadow: 0 0 0 3px rgba(252, 113, 0, 0.14);
}

.button,
input[type="submit"],
input[type="button"],
button,
.button_pay,
input.submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 12px 18px;
  border: none;
  border-radius: 6px;
  background: var(--utm-accent);
  color: #ffffff;
  font: 600 15px/1.2 "Inter", "Segoe UI", Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(252, 113, 0, 0.18);
}

.button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
button:hover,
.button_pay:hover,
input.submit:hover {
  background: var(--utm-accent-strong);
}

.button[disabled],
input[disabled],
button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.utm-table-cover,
.layout-cover,
table.layout {
  width: 100%;
  margin: 0 0 24px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--utm-surface);
  border: 1px solid var(--utm-border);
  border-radius: 8px;
  box-shadow: var(--utm-shadow);
}

table.utm-table-cover {
  display: block;
  overflow-x: auto;
  overflow-y: hidden;
}

table.utm-table-cover > tbody,
table.utm-table-cover > tbody > tr,
table.utm-table-cover > tbody > tr > td {
  display: block;
  width: 100%;
}

table.utm-table-cover > tbody > tr > td {
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.utm-table {
  width: 100%;
  min-width: 780px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
}

.utm-table-caption,
.layout-caption {
  padding: 16px 18px;
  background: var(--utm-accent);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
}

.utm-table-first {
  padding: 12px 16px;
  background: #fff8f2;
  color: var(--utm-accent-strong);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  vertical-align: middle;
  line-height: 1.25;
}

.utm-cell,
.utm-table td {
  padding: 14px 16px;
  vertical-align: top;
  background: #ffffff;
  border-top: 1px solid var(--utm-border);
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.utm-table tr:hover .utm-cell {
  background: #fff8f2;
}

table.layout td,
table.layout th,
.layout-cell {
  padding: 14px 16px;
  background: #ffffff;
  color: var(--utm-text);
  border-top: 1px solid var(--utm-border);
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.layout-cell a {
  color: var(--utm-accent);
}

/* Phone slot list in the user_edit form: compact +/- chips that don't override
   the standard submit-button shape. */
.phone-input {
  vertical-align: middle;
}
.phone-add-btn,
.phone-remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  border: 1px solid var(--utm-border);
  background: var(--utm-surface-muted);
  color: var(--utm-text);
  font: 600 14px/1 "Inter", "Segoe UI", Arial, sans-serif;
  cursor: pointer;
  border-radius: 6px;
  padding: 6px 10px;
  margin: 0;
  min-width: 0;
  box-shadow: none;
}
.phone-remove-btn {
  margin-left: 6px;
  padding: 6px 10px;
  font-size: 16px;
  line-height: 1;
}
.phone-add-btn:hover,
.phone-remove-btn:hover {
  background: var(--utm-accent-soft);
  color: var(--utm-accent-strong);
}

/* Footer action row inside a layout-cover card (e.g. tariff selection submit button). */
.layout-action {
  padding: 16px;
  background: var(--utm-surface-muted);
  border-top: 1px solid var(--utm-border);
  text-align: right;
}

.layout-action input[type="submit"],
.layout-action .submit,
.layout-action button {
  margin: 0;
}

a.new_messages {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--utm-accent-soft);
  color: var(--utm-accent-strong);
  font-weight: 600;
}

.dashboard-highlights {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.channel-stack,
.notifications-links {
  display: grid;
  gap: 24px;
}

.channel-card,
.friends-promo,
body .company-info {
  background: var(--utm-surface);
  border: 1px solid var(--utm-border);
  border-radius: 8px;
  box-shadow: var(--utm-shadow);
}

.channel-card {
  padding: 20px;
  text-align: center;
}

.channel-card__eyebrow {
  margin-bottom: 8px;
  color: var(--utm-teal);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.channel-card__title {
  margin-bottom: 8px;
  font-size: 20px;
}

.channel-card__text {
  margin-bottom: 16px;
  font-size: 14px;
}

.channel-card__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--utm-accent-strong);
  font-weight: 600;
}

.channel-card__link:hover,
.channel-card__link:focus {
  text-decoration: none;
}

.channel-card__qr {
  display: block;
  width: 184px;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(35, 42, 49, 0.08);
}

.channel-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--utm-accent-soft);
  color: var(--utm-accent-strong);
}

.friends-promo {
  padding: 24px 28px;
}

.friends-promo h4 {
  margin-bottom: 12px;
  font-size: 28px;
}

.friends-label {
  margin-bottom: 8px;
}

.friends-addresses {
  margin: 12px 0 18px;
  padding-left: 20px;
  color: var(--utm-text);
}

.friends-addresses li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.friends-status {
  color: var(--utm-success);
  font-weight: 600;
}

.friends-feedback {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 600;
}

.friends-feedback--success {
  color: var(--utm-success);
  background: #eef9f1;
}

.friends-feedback--error {
  color: var(--utm-danger);
  background: #fff0ee;
}

.friends-form {
  margin: 18px 0;
  padding: 18px 20px;
  background: var(--utm-surface-muted);
  border-radius: 8px;
}

.friends-form-title {
  margin-bottom: 14px;
}

.friends-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.friends-form-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--utm-text);
  font-size: 14px;
  font-weight: 600;
}

.friends-form input {
  width: 92px;
}

.friends-form select {
  min-width: 180px;
}

.friends-add-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.friends-footer {
  margin-bottom: 10px;
}

.friends-note {
  margin-bottom: 0;
  font-size: 12px;
}

.friends-note a {
  font-weight: 600;
  white-space: nowrap;
}

input.promised-payment__amount {
  width: min(100%, 180px);
  padding: 12px 14px;
  border-width: 2px;
  border-color: #ddd0c3;
  background: #fffaf5;
  color: var(--utm-text);
  font-size: 16px;
  font-weight: 600;
  text-align: right;
}

input.promised-payment__amount::placeholder {
  color: #9da4ac;
  font-weight: 400;
}

input.promised-payment__amount:focus {
  background: #ffffff;
}

body .payment-container {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(240px, 1fr);
  gap: 24px;
  align-items: start;
}

body .payment-form {
  flex: none;
  min-width: 0;
}

body .payment-layout {
  width: 100%;
}

/*
  Leave a predictable safe area for the floating desktop chat button so the
  tariff action column stays clickable on wide desktop screens.
*/
.tariffs-page {
  width: 100%;
}

.tariff-note {
  margin: 0 0 24px;
  padding: 18px 20px;
  background: #fff8f2;
  border: 1px solid var(--utm-border);
  border-left: 4px solid var(--utm-accent);
  border-radius: 8px;
}

.tariff-note__title {
  margin: 0 0 10px;
  color: var(--utm-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.tariff-note__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.tariff-note__item {
  position: relative;
  padding-left: 18px;
  color: var(--utm-text-muted);
  line-height: 1.6;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.tariff-note__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--utm-accent);
}

.tariff-note__item a {
  font-weight: 600;
  white-space: nowrap;
}

.form-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--utm-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.form-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--utm-accent);
  flex: 0 0 auto;
}

.form-checkbox__label {
  display: inline-block;
}

.help-faq {
  display: grid;
  gap: 18px;
}

.help-faq__intro {
  margin: 0 0 2px;
}

.help-faq__eyebrow {
  margin: 0 0 8px;
  color: var(--utm-teal);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.help-faq__lead {
  margin: 0;
  max-width: 720px;
}

.help-card {
  padding: 22px 24px;
  background: var(--utm-surface);
  border: 1px solid var(--utm-border);
  border-radius: 8px;
  box-shadow: var(--utm-shadow);
}

.help-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.help-card__title {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}

.help-card__logos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.help-card__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  height: 40px;
  padding: 8px 10px;
  background: #ffffff;
  border: 1px solid var(--utm-border);
  border-radius: 6px;
}

.help-card__logo img {
  display: block;
  max-width: 100%;
  max-height: 20px;
  width: auto;
}

.help-card__text {
  margin: 0;
  color: var(--utm-text-muted);
  line-height: 1.7;
}

.help-card__text + .help-card__text {
  margin-top: 10px;
}

.entryphone-page {
  width: 100%;
}

.entryphone-card {
  padding: 24px 26px;
  background: var(--utm-surface);
  border: 1px solid var(--utm-border);
  border-radius: 8px;
  box-shadow: var(--utm-shadow);
}

.entryphone-card--empty {
  max-width: 100%;
}

.entryphone-card__intro {
  margin-bottom: 18px;
}

.entryphone-card__eyebrow {
  margin: 0 0 8px;
  color: var(--utm-teal);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.entryphone-card__title {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.25;
}

.entryphone-card__text {
  margin: 0;
  color: var(--utm-text-muted);
  line-height: 1.7;
}

.entryphone-warning {
  margin-bottom: 20px;
  padding: 14px 16px;
  color: #a0382c;
  background: #fff1ef;
  border: 1px solid #f3c8c1;
  border-radius: 8px;
  font-weight: 600;
  line-height: 1.6;
}

.entryphone-card__layout {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.entryphone-qr-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--utm-border);
  border-radius: 8px;
}

.entryphone-qr,
.entryphone-qr > img,
.entryphone-qr > canvas {
  width: 256px !important;
  height: 256px !important;
}

.entryphone-card__details {
  display: grid;
  gap: 14px;
  align-content: start;
}

.entryphone-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 220px;
  padding: 12px 18px;
  border-radius: 6px;
  background: var(--utm-accent);
  color: #ffffff !important;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(252, 113, 0, 0.18);
}

.entryphone-action:hover,
.entryphone-action:focus {
  color: #ffffff !important;
  background: var(--utm-accent-strong);
  text-decoration: none;
}

.entryphone-meta {
  margin: 0;
  color: var(--utm-accent-strong);
  font-size: 14px;
  font-weight: 600;
}

.report-graph {
  width: 100%;
  height: 400px;
  margin: 0 0 24px;
  background: var(--utm-surface);
  border: 1px solid var(--utm-border);
  border-radius: 8px;
  box-shadow: var(--utm-shadow);
  padding: 12px;
}

body .company-info {
  padding: 24px;
  font-size: 14px;
  line-height: 1.7;
}

body .card-modal__content {
  border-radius: 8px;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px;
}

.auth-panel {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(360px, 0.9fr);
  width: min(1080px, 100%);
  background: var(--utm-surface);
  border: 1px solid var(--utm-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--utm-shadow);
}

.auth-intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 40px;
  background: #fff7ef;
  color: var(--utm-text);
  border-right: 1px solid var(--utm-border);
}

.auth-copy p,
.auth-note {
  color: var(--utm-text-muted);
}

.auth-title {
  margin-bottom: 14px;
  color: var(--utm-text);
  font-size: 38px;
}

.auth-form-frame {
  padding: 40px;
}

.auth-form-header {
  margin-bottom: 24px;
}

.auth-form-title {
  font-size: 28px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-field label {
  color: var(--utm-text);
  font-size: 14px;
  font-weight: 600;
}

.login-button {
  width: 100%;
}

@media (max-width: 1100px) {
  :root {
    --utm-nav-width: 240px;
  }

  .dashboard-highlights,
  body .payment-container,
  .auth-panel {
    grid-template-columns: 1fr;
  }

}

@media (min-width: 901px) {
  body #cw-bubble-holder {
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
  }

  body .woot-widget-bubble.woot-elements--right {
    left: calc((var(--utm-nav-width) - 140px) / 2) !important;
    right: auto !important;
    bottom: 32px !important;
    transform: none !important;
  }
}

@media (max-width: 900px) {
  .app-shell {
    display: block;
  }

  .menu-area,
  .work-area {
    width: 100%;
    max-width: none;
    flex-basis: auto;
  }

  .work-area,
  .auth-shell {
    padding: 24px;
  }

  .work-top {
    flex-direction: column;
  }

  .work-top-meta {
    align-items: flex-start;
  }

  .help-card__header {
    flex-direction: column;
  }

  .entryphone-card__layout {
    grid-template-columns: 1fr;
  }

  .entryphone-action {
    width: 100%;
  }
}

/* ---- New-message highlight (2026-09-05): pulsing frame/badges replace the
   old bold-only marking that blended into the tables ---- */
a.new_messages {
  animation: utm-new-pulse 1.6s ease-in-out infinite;
}

.new_messages__count,
.menu-badge,
.msg-badge {
  display: inline-block;
  min-width: 18px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--utm-accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  vertical-align: middle;
}

/* unread counter next to «Сообщения» in the left menu */
.menu-badge {
  margin-left: 6px;
  animation: utm-new-pulse 1.6s ease-in-out infinite;
}

.mainmenu-act .menu-badge {
  background: #ffffff;
  color: var(--utm-accent-strong);
}

/* unread row in the message lists */
.msg-new {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid var(--utm-accent);
  border-radius: 8px;
  background: var(--utm-accent-soft);
  animation: utm-new-pulse 1.6s ease-in-out infinite;
}

.msg-new a {
  font-weight: 700;
  color: var(--utm-accent-strong);
}

@keyframes utm-new-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(252, 113, 0, 0.55); }
  50% { box-shadow: 0 0 0 5px rgba(252, 113, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  a.new_messages,
  .menu-badge,
  .msg-new {
    animation: none;
  }
}
