/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
      "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
      "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --color-red-600: oklch(57.7% 0.245 27.325);
    --color-sky-100: oklch(95.1% 0.026 236.824);
    --color-sky-700: oklch(50% 0.134 242.749);
    --color-purple-100: oklch(94.6% 0.033 307.174);
    --color-purple-700: oklch(49.6% 0.265 301.924);
    --color-pink-100: oklch(94.8% 0.028 342.258);
    --color-pink-700: oklch(52.5% 0.223 3.958);
    --color-white: #fff;
    --spacing: 0.25rem;
    --container-xl: 36rem;
    --container-2xl: 42rem;
    --text-xs: 0.75rem;
    --text-xs--line-height: calc(1 / 0.75);
    --text-sm: 0.875rem;
    --text-sm--line-height: calc(1.25 / 0.875);
    --text-lg: 1.125rem;
    --text-lg--line-height: calc(1.75 / 1.125);
    --text-2xl: 1.5rem;
    --text-2xl--line-height: calc(2 / 1.5);
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-extrabold: 800;
    --tracking-wide: 0.025em;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring:where(:not(iframe)) {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities {
  .relative {
    position: relative;
  }
  .mx-auto {
    margin-inline: auto;
  }
  .mt-1 {
    margin-top: var(--spacing);
  }
  .mt-2 {
    margin-top: calc(var(--spacing) * 2);
  }
  .mt-3 {
    margin-top: calc(var(--spacing) * 3);
  }
  .mr-2 {
    margin-right: calc(var(--spacing) * 2);
  }
  .mb-1 {
    margin-bottom: var(--spacing);
  }
  .mb-2 {
    margin-bottom: calc(var(--spacing) * 2);
  }
  .mb-3 {
    margin-bottom: calc(var(--spacing) * 3);
  }
  .mb-4 {
    margin-bottom: calc(var(--spacing) * 4);
  }
  .mb-6 {
    margin-bottom: calc(var(--spacing) * 6);
  }
  .block {
    display: block;
  }
  .flex {
    display: flex;
  }
  .grid {
    display: grid;
  }
  .hidden {
    display: none;
  }
  .inline-flex {
    display: inline-flex;
  }
  .table {
    display: table;
  }
  .size-3\.5 {
    width: calc(var(--spacing) * 3.5);
    height: calc(var(--spacing) * 3.5);
  }
  .size-4 {
    width: calc(var(--spacing) * 4);
    height: calc(var(--spacing) * 4);
  }
  .size-14 {
    width: calc(var(--spacing) * 14);
    height: calc(var(--spacing) * 14);
  }
  .min-h-dvh {
    min-height: 100dvh;
  }
  .w-\[min\(100\%\,380px\)\] {
    width: min(100%, 380px);
  }
  .w-full {
    width: 100%;
  }
  .max-w-2xl {
    max-width: var(--container-2xl);
  }
  .max-w-xl {
    max-width: var(--container-xl);
  }
  .min-w-0 {
    min-width: 0px;
  }
  .flex-1 {
    flex: 1;
  }
  .transform {
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
  }
  .flex-wrap {
    flex-wrap: wrap;
  }
  .place-content-center {
    place-content: center;
  }
  .items-center {
    align-items: center;
  }
  .justify-between {
    justify-content: space-between;
  }
  .gap-1 {
    gap: var(--spacing);
  }
  .gap-1\.5 {
    gap: calc(var(--spacing) * 1.5);
  }
  .gap-2 {
    gap: calc(var(--spacing) * 2);
  }
  .gap-3 {
    gap: calc(var(--spacing) * 3);
  }
  .gap-4 {
    gap: calc(var(--spacing) * 4);
  }
  :where(.space-y-3 > :not(:last-child)) {
    --tw-space-y-reverse: 0;
    margin-block-start: calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));
    margin-block-end: calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)));
  }
  .truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .overflow-auto {
    overflow: auto;
  }
  .rounded-2xl {
    border-radius: var(--radius-2xl);
  }
  .rounded-full {
    border-radius: calc(infinity * 1px);
  }
  .rounded-lg {
    border-radius: var(--radius-lg);
  }
  .rounded-xl {
    border-radius: var(--radius-xl);
  }
  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }
  .border-t {
    border-top-style: var(--tw-border-style);
    border-top-width: 1px;
  }
  .border-b {
    border-bottom-style: var(--tw-border-style);
    border-bottom-width: 1px;
  }
  .border-\[var\(--line\)\] {
    border-color: var(--line);
  }
  .bg-\[var\(--bg\)\] {
    background-color: var(--bg);
  }
  .bg-\[var\(--forest\)\] {
    background-color: var(--forest);
  }
  .bg-\[var\(--mint\)\] {
    background-color: var(--mint);
  }
  .bg-pink-100 {
    background-color: var(--color-pink-100);
  }
  .bg-purple-100 {
    background-color: var(--color-purple-100);
  }
  .bg-sky-100 {
    background-color: var(--color-sky-100);
  }
  .bg-white {
    background-color: var(--color-white);
  }
  .p-3 {
    padding: calc(var(--spacing) * 3);
  }
  .p-4 {
    padding: calc(var(--spacing) * 4);
  }
  .p-5 {
    padding: calc(var(--spacing) * 5);
  }
  .p-6 {
    padding: calc(var(--spacing) * 6);
  }
  .p-8 {
    padding: calc(var(--spacing) * 8);
  }
  .px-3 {
    padding-inline: calc(var(--spacing) * 3);
  }
  .px-4 {
    padding-inline: calc(var(--spacing) * 4);
  }
  .py-2 {
    padding-block: calc(var(--spacing) * 2);
  }
  .py-2\.5 {
    padding-block: calc(var(--spacing) * 2.5);
  }
  .py-3 {
    padding-block: calc(var(--spacing) * 3);
  }
  .text-center {
    text-align: center;
  }
  .text-left {
    text-align: left;
  }
  .text-right {
    text-align: right;
  }
  .text-2xl {
    font-size: var(--text-2xl);
    line-height: var(--tw-leading, var(--text-2xl--line-height));
  }
  .text-lg {
    font-size: var(--text-lg);
    line-height: var(--tw-leading, var(--text-lg--line-height));
  }
  .text-sm {
    font-size: var(--text-sm);
    line-height: var(--tw-leading, var(--text-sm--line-height));
  }
  .text-xs {
    font-size: var(--text-xs);
    line-height: var(--tw-leading, var(--text-xs--line-height));
  }
  .leading-6 {
    --tw-leading: calc(var(--spacing) * 6);
    line-height: calc(var(--spacing) * 6);
  }
  .font-extrabold {
    --tw-font-weight: var(--font-weight-extrabold);
    font-weight: var(--font-weight-extrabold);
  }
  .font-medium {
    --tw-font-weight: var(--font-weight-medium);
    font-weight: var(--font-weight-medium);
  }
  .font-semibold {
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
  }
  .tracking-wide {
    --tw-tracking: var(--tracking-wide);
    letter-spacing: var(--tracking-wide);
  }
  .whitespace-pre-wrap {
    white-space: pre-wrap;
  }
  .text-\[var\(--accent\)\] {
    color: var(--accent);
  }
  .text-\[var\(--forest\)\] {
    color: var(--forest);
  }
  .text-\[var\(--ink\)\] {
    color: var(--ink);
  }
  .text-\[var\(--mint-strong\)\] {
    color: var(--mint-strong);
  }
  .text-\[var\(--muted\)\] {
    color: var(--muted);
  }
  .text-\[var\(--sidebar-muted\)\] {
    color: var(--sidebar-muted);
  }
  .text-pink-700 {
    color: var(--color-pink-700);
  }
  .text-purple-700 {
    color: var(--color-purple-700);
  }
  .text-red-600 {
    color: var(--color-red-600);
  }
  .text-sky-700 {
    color: var(--color-sky-700);
  }
  .capitalize {
    text-transform: capitalize;
  }
  .uppercase {
    text-transform: uppercase;
  }
  .shadow-sm {
    --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
  .shadow-xl {
    --tw-shadow: 0 20px 25px -5px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 8px 10px -6px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
  .filter {
    filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
  }
  @media (width >= 48rem) {
    .md\:grid-cols-2 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (width >= 80rem) {
    .xl\:grid-cols-3 {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .xl\:grid-cols-4 {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
  }
}
:root {
  --forest: #0b4d3a;
  --forest-deep: #073628;
  --forest-mid: #0f5c46;
  --mint: #d8f3e4;
  --mint-strong: #b7e6cb;
  --accent: #128c5b;
  --accent-hover: #0e734b;
  --wa-green: #128c5b;
  --wa-green-dark: #0b4d3a;
  --wa-teal: #128c5b;
  --bg: #f4f7f5;
  --panel: #ffffff;
  --ink: #1a2b24;
  --muted: #66756e;
  --line: #e3ebe6;
  --chat-bg: #eef6f1;
  --mine: #d8f3e4;
  --theirs: #f3f4f6;
  --sidebar: #0b4d3a;
  --sidebar-text: #e8f6ef;
  --sidebar-muted: #b7d4c6;
  --danger: #dc2626;
  --shadow: 0 8px 24px rgba(11, 77, 58, 0.08);
  --radius: 12px;
}
[data-theme="dark"] {
  --bg: #0f1a16;
  --panel: #16241e;
  --ink: #e8f6ef;
  --muted: #94a8a0;
  --line: #274038;
  --chat-bg: #12201b;
  --mine: #1b4a38;
  --theirs: #1c2c27;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html, body {
  min-block-size: 100dvb;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  overflow-x: clip;
  max-inline-size: 100%;
  accent-color: var(--accent);
  color-scheme: light;
}
a {
  color: inherit;
  text-decoration: none;
}
button, input, select, textarea {
  font: inherit;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.inbox-field,
.inbox-select,
.inbox-composer textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  padding: 10px 12px;
}
.inbox-field:focus,
.inbox-select:focus,
.inbox-composer textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent);
  @supports (color: color-mix(in lab, red, red)) {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
  }
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: clip;
}
.scroll-pane {
  overflow: auto;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}
.crm-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-block-size: 100dvb;
  max-inline-size: 100%;
  background: var(--bg);
}
.crm-sidebar {
  display: none;
  flex-direction: column;
  margin: 0;
  inset: 0 auto 0 0;
  inline-size: min(280px, 86dvw);
  block-size: 100dvb;
  max-inline-size: none;
  max-block-size: none;
  border: 0;
  padding: 0;
  background: var(--sidebar);
  color: var(--sidebar-text);
  box-shadow: 8px 0 32px rgb(0 0 0 / 0.28);
}
.crm-sidebar[open] {
  display: flex;
  animation: crm-drawer-in 180ms ease;
}
.crm-sidebar::backdrop {
  background: rgb(0 0 0 / 0.45);
}
@keyframes crm-drawer-in {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .crm-sidebar[open] {
    animation: none;
  }
}
.crm-menu-btn {
  display: grid;
}
.crm-drawer-close {
  margin-inline-start: auto;
  display: grid;
  place-content: center;
  inline-size: 36px;
  block-size: 36px;
  border: 0;
  border-radius: 10px;
  background: rgb(255 255 255 / 0.1);
  color: #fff;
  cursor: pointer;
}
.crm-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px 16px;
}
.crm-brand-copy {
  min-inline-size: 0;
}
.crm-logo {
  inline-size: 44px;
  block-size: 44px;
  border-radius: 999px;
  background: #fff;
  display: grid;
  place-content: center;
  color: var(--forest);
  font-weight: 800;
  flex-shrink: 0;
}
.crm-brand-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}
.crm-brand-tag {
  margin-top: 2px;
  font-size: 11px;
  color: var(--sidebar-muted);
}
.crm-nav {
  flex: 1;
  overflow: auto;
  padding: 8px 12px 16px;
}
.crm-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 13px;
  color: var(--sidebar-text);
}
.crm-nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
}
.crm-nav-link.is-active {
  background: var(--mint);
  color: var(--forest-deep);
  font-weight: 700;
}
.crm-nav-badge {
  margin-inline-start: auto;
  min-inline-size: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}
.crm-nav-sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 4px 0 8px 18px;
}
.crm-nav-sub a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--sidebar-muted);
}
.crm-nav-sub a:hover,
.crm-nav-sub a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.crm-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}
.crm-user-avatar {
  inline-size: 36px;
  block-size: 36px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--forest);
  display: grid;
  place-content: center;
  font-size: 12px;
  font-weight: 700;
}
.crm-main {
  display: grid;
  grid-template-rows: 56px minmax(0, 1fr);
  min-inline-size: 0;
  min-block-size: 100dvb;
}
.crm-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-inline: 12px;
  background: var(--panel);
  border-block-end: 1px solid var(--line);
  min-inline-size: 0;
}
.crm-connected {
  display: flex;
  align-items: center;
  gap: 8px;
  min-inline-size: 0;
  font-size: 13px;
  color: var(--muted);
}
.crm-connected-phone {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 600;
}
.crm-dot {
  inline-size: 8px;
  block-size: 8px;
  border-radius: 999px;
  background: #22c55e;
}
.crm-icon-btn {
  position: relative;
  display: grid;
  place-content: center;
  inline-size: 36px;
  block-size: 36px;
  border: 0;
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
}
.crm-icon-dot {
  position: absolute;
  inset-block-start: 6px;
  inset-inline-end: 6px;
  inline-size: 8px;
  block-size: 8px;
  border-radius: 999px;
  background: #ef4444;
}
.crm-page {
  min-inline-size: 0;
  min-block-size: 0;
  overflow: auto;
}
.crm-page:has(.inbox-layout) {
  overflow: hidden;
  padding-inline: 12px;
}
.crm-page:has(.dash-page) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.crm-page:has(.dash-page) .dash-page {
  flex: 1;
}
.crm-page:has(.cust-page) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.crm-page:has(.cust-page) .cust-page {
  flex: 1;
}
.crm-paper {
  background: #fff;
  color: #1a2b24;
}
.crm-paper thead {
  background: #eef2f0;
  color: #3d4f47;
}
.crm-paper tbody td,
.crm-paper .crm-paper-muted {
  color: #3d4f47;
}
.crm-paper tbody tr {
  color: #1a2b24;
}
.cust-page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  block-size: 100%;
  min-block-size: 0;
  padding: 12px;
  overflow: hidden;
}
.cust-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.cust-kicker {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.cust-hero h1 {
  margin: 2px 0 0;
  font-size: 20px;
  line-height: 1.15;
}
.cust-hero p {
  margin: 3px 0 0;
  font-size: 11px;
  color: var(--muted);
}
.cust-search {
  display: flex;
  align-items: center;
  gap: 8px;
  inline-size: min(320px, 100%);
  min-block-size: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--muted);
}
.cust-search input {
  flex: 1;
  min-inline-size: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  outline: none;
}
.cust-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent);
  @supports (color: color-mix(in lab, red, red)) {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
  }
}
.cust-empty {
  margin: 0;
  padding: 28px 12px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.cust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  align-content: start;
  min-block-size: 0;
  overflow: auto;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}
.cust-card {
  display: grid;
  gap: 8px;
  min-inline-size: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.cust-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-inline-size: 0;
}
.cust-avatar {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-content: center;
  inline-size: 46px;
  block-size: 46px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.18);
}
.cust-avatar.is-0 {
  background: linear-gradient(160deg, #16a34a, #0b4d3a);
}
.cust-avatar.is-1 {
  background: linear-gradient(160deg, #14b8a6, #0f766e);
}
.cust-avatar.is-2 {
  background: linear-gradient(160deg, #38bdf8, #0369a1);
}
.cust-avatar.is-3 {
  background: linear-gradient(160deg, #8b5cf6, #5b21b6);
}
.cust-avatar.is-4 {
  background: linear-gradient(160deg, #f59e0b, #b45309);
}
.cust-avatar.is-5 {
  background: linear-gradient(160deg, #fb7185, #be123c);
}
.cust-avatar img {
  position: absolute;
  inset: 0;
  display: block;
  inline-size: 100%;
  block-size: 100%;
  border-radius: inherit;
  object-fit: cover;
}
.cust-card-copy {
  min-inline-size: 0;
}
.cust-card-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}
.cust-card-phone {
  margin-block-start: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 11px;
}
.cust-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-block-start: 5px;
}
.cust-pill,
.cust-code,
.cust-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}
.cust-pill {
  background: var(--accent);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--accent) 14%, var(--panel));
  }
  color: var(--accent);
}
.cust-code {
  background: var(--bg);
  color: var(--muted);
}
.cust-card-place {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 11px;
}
.cust-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}
.cust-stats div {
  min-inline-size: 0;
  padding: 6px 7px;
  border-radius: 9px;
  background: var(--bg);
}
.cust-stats dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cust-stats dd {
  margin: 2px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
}
.cust-due {
  margin: 0;
  color: #e11d48;
  font-size: 11px;
  font-weight: 700;
}
.cust-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.cust-tags span {
  background: var(--accent);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--accent) 10%, var(--bg));
  }
  color: var(--ink);
  font-weight: 650;
}
.inbox-layout {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr) minmax(320px, 400px);
  min-block-size: calc(100dvb - 56px);
  block-size: calc(100dvb - 56px);
  max-inline-size: 100%;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}
.inbox-list,
.inbox-chat,
.inbox-details {
  display: flex;
  flex-direction: column;
  min-inline-size: 0;
  min-block-size: 0;
  background: var(--panel);
}
.inbox-list {
  border-inline-end: 1px solid var(--line);
}
.inbox-details {
  border-inline-start: 1px solid var(--line);
}
.inbox-toolbar {
  display: grid;
  gap: 8px;
  padding: 8px 12px 8px;
}
.inbox-toolbar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px auto;
  align-items: center;
  gap: 6px;
}
.inbox-toolbar-row .crm-icon-btn {
  inline-size: 28px;
  block-size: 28px;
  border-radius: 8px;
}
.inbox-toolbar-row .crm-icon-btn svg {
  inline-size: 14px;
  block-size: 14px;
}
.inbox-toolbar-row .btn-primary {
  min-block-size: 28px;
  padding: 4px 10px;
  font-size: 12px;
}
.inbox-search {
  position: relative;
}
.inbox-search span {
  pointer-events: none;
  position: absolute;
  inset-block: 0;
  inset-inline-start: 10px;
  display: grid;
  place-content: center;
  color: var(--muted);
}
.inbox-search span svg {
  inline-size: 14px;
  block-size: 14px;
}
.inbox-search input {
  inline-size: 100%;
  min-block-size: 28px;
  border-radius: 10px;
  padding: 5px 10px 5px 30px;
  font-size: 12px;
}
.inbox-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  padding-block-end: 2px;
  scrollbar-width: none;
}
.inbox-filters .chip {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 4px 10px;
  font-size: 11px;
}
.inbox-filters::-webkit-scrollbar {
  display: none;
}
.inbox-thread {
  display: flex;
  align-items: center;
  gap: 10px;
  inline-size: 100%;
  padding: 6px 12px;
  border: 0;
  border-block-end: 1px solid var(--line);
  background: transparent;
  color: inherit;
  text-align: start;
  cursor: pointer;
}
.inbox-thread:hover {
  background: var(--bg);
}
.inbox-thread.is-active {
  background: var(--mint);
}
.inbox-avatar {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-content: center;
  inline-size: 36px;
  block-size: 36px;
  border-radius: 999px;
  background: var(--forest);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.inbox-avatar img {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  object-fit: cover;
}
.inbox-avatar .inbox-wa {
  position: absolute;
  inset-block-end: -1px;
  inset-inline-end: -1px;
  display: grid;
  place-content: center;
  inline-size: 14px;
  block-size: 14px;
}
.inbox-avatar .inbox-wa svg {
  inline-size: 14px;
  block-size: 14px;
}
.inbox-thread-copy {
  min-inline-size: 0;
  flex: 1;
}
.inbox-thread-top,
.inbox-thread-mid {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.inbox-thread-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
}
.inbox-thread-time,
.inbox-thread-preview,
.inbox-thread-meta {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}
.inbox-thread-preview {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-block-start: 1px;
}
.inbox-unread {
  flex: 0 0 auto;
  min-inline-size: 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  padding: 0 6px;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.inbox-chat {
  background: var(--chat-bg);
}
.inbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-block-size: 48px;
  padding: 6px 12px;
  background: var(--panel);
  border-block-end: 1px solid var(--line);
}
.inbox-head .inbox-avatar {
  inline-size: 32px;
  block-size: 32px;
  font-size: 11px;
}
.inbox-head-user {
  display: flex;
  align-items: center;
  gap: 8px;
  min-inline-size: 0;
}
.inbox-head-copy {
  min-inline-size: 0;
}
.inbox-head-name {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}
.inbox-head-name .tag {
  padding: 1px 6px;
  font-size: 9px;
}
.inbox-head-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inbox-head-sub {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}
.inbox-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 0 auto;
}
.inbox-head-actions .inbox-select {
  min-block-size: 28px;
  padding: 2px 8px;
  font-size: 11px;
  border-radius: 8px;
}
.inbox-head-actions .crm-icon-btn {
  inline-size: 28px;
  block-size: 28px;
  border-radius: 8px;
}
.inbox-head-actions .crm-icon-btn svg {
  inline-size: 14px;
  block-size: 14px;
}
.inbox-head-actions .btn-primary {
  min-block-size: 28px;
  padding: 4px 10px;
  font-size: 11px;
}
.inbox-head-actions .crm-icon-btn.is-starred,
.inbox-head-actions .crm-icon-btn.is-starred svg {
  color: #d97706;
}
.inbox-messages {
  flex: 1;
  padding: 16px 20px;
}
.inbox-empty {
  display: grid;
  place-content: center;
  gap: 6px;
  min-block-size: 100%;
  padding: 32px;
  text-align: center;
  color: var(--muted);
}
.chat-row {
  display: flex;
  margin-block-end: 8px;
}
.chat-row.is-mine {
  justify-content: flex-end;
}
.chat-row.is-theirs {
  justify-content: flex-start;
}
.chat-bubble {
  max-inline-size: min(78%, 460px);
  overflow-wrap: anywhere;
  border-radius: 16px;
  padding: 8px 12px 6px;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 1px 2px rgb(16 40 32 / 0.06);
}
.chat-row.is-mine .chat-bubble {
  background: var(--mine);
  border-end-end-radius: 6px;
}
.chat-row.is-theirs .chat-bubble {
  background: var(--theirs);
  border-end-start-radius: 6px;
}
.chat-bubble.is-failed {
  box-shadow: inset 0 0 0 1px #f3c1c1;
}
.chat-fail {
  display: inline-flex;
  margin-block-start: 6px;
  border-radius: 999px;
  background: #fde8e8;
  color: #b42318;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 650;
}
.chat-meta {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-block-start: 4px;
  color: var(--muted);
  font-size: 10px;
}
.chat-meta.is-failed {
  color: #b42318;
  font-weight: 700;
}
.chat-audio {
  display: block;
  inline-size: min(240px, 100%);
  margin-block: 2px;
}
.chat-media {
  display: block;
  max-inline-size: 220px;
  max-block-size: 180px;
  margin-block: 4px 2px;
  border-radius: 10px;
  object-fit: cover;
}
.crm-icon-btn.is-recording {
  background: #fee2e2;
  color: #b42318;
}
.inbox-composer {
  display: grid;
  gap: 6px;
  padding: 8px 12px 10px;
  background: var(--panel);
  border-block-start: 1px solid var(--line);
}
.inbox-composer-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.inbox-composer-tools .crm-icon-btn {
  inline-size: 30px;
  block-size: 30px;
  border-radius: 8px;
}
.inbox-composer-tools .btn-ghost {
  min-block-size: 28px;
  padding: 4px 8px;
  font-size: 11px;
}
.inbox-composer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px auto;
  align-items: end;
  gap: 6px;
}
.inbox-composer-row .crm-icon-btn {
  inline-size: 30px;
  block-size: 30px;
}
.inbox-composer-row .btn-primary {
  min-block-size: 32px;
  padding: 6px 10px;
  font-size: 12px;
}
.inbox-composer textarea {
  inline-size: 100%;
  field-sizing: content;
  min-block-size: 34px;
  max-block-size: 8lh;
  resize: none;
  border-radius: 12px;
  padding: 7px 12px;
  font-size: 13px;
}
.inbox-sheet {
  display: flex;
  flex-direction: column;
  margin: 0 16px 4px;
  max-block-size: 280px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.inbox-sheet-search {
  position: sticky;
  inset-block-start: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--panel);
  border-block-end: 1px solid var(--line);
}
.inbox-sheet-title {
  flex: 1;
  font-size: 12px;
  font-weight: 700;
}
.inbox-sheet-search .inbox-field {
  min-block-size: 30px;
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 999px;
}
.inbox-sheet-search .crm-icon-btn {
  inline-size: 28px;
  block-size: 28px;
  border-radius: 8px;
}
.inbox-sheet-search .crm-icon-btn svg {
  inline-size: 14px;
  block-size: 14px;
}
.inbox-sheet-body {
  flex: 1;
  overflow: auto;
  padding: 10px 12px 12px;
}
.inbox-sheet:not(:has(.inbox-sheet-search)) {
  overflow: auto;
  padding: 12px;
}
.inbox-ai-reply {
  padding: 8px 12px 10px;
}
.inbox-ai-reply-label {
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--forest);
}
.inbox-ai-reply-text {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink);
  white-space: pre-wrap;
}
.inbox-ai-reply-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.inbox-ai-reply-actions .btn-primary {
  min-block-size: 28px;
  padding: 0 12px;
  font-size: 11px;
}
.inbox-ai-reply-actions button:not(.btn-primary) {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}
.inbox-details-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  min-block-size: 64px;
  padding: 10px 12px;
  overflow-x: auto;
  border-block-end: 1px solid var(--line);
  scrollbar-width: none;
}
.inbox-details-body {
  flex: 1;
  padding: 12px 14px;
}
.inbox-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-block-end: 10px;
}
.inbox-profile-photo {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.inbox-photo-link {
  margin-block-start: 2px;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 11px;
  cursor: pointer;
}
.inbox-order-erp {
  margin-block-start: 4px;
  color: var(--muted);
  font-size: 11px;
}
.inbox-erp-retry {
  margin-block-start: 6px;
  min-block-size: 26px;
  padding: 3px 8px;
  font-size: 11px;
}
.inbox-meta {
  display: grid;
}
.inbox-meta-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 5px 0;
  border-block-end: 1px solid var(--line);
  font-size: 12px;
}
.inbox-meta-row dt {
  color: var(--muted);
}
.inbox-meta-row dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.inbox-section-label {
  margin: 12px 0 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.inbox-edit {
  display: grid;
}
.inbox-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.inbox-actions .btn-ghost {
  min-block-size: 30px;
  padding: 5px 8px;
  font-size: 11px;
}
.inbox-edit .inbox-label {
  gap: 4px;
  margin: 0 0 8px;
  font-size: 11px;
}
.inbox-edit .inbox-field {
  padding: 7px 10px;
  font-size: 12px;
}
.inbox-save {
  min-block-size: 34px;
  margin-block-start: 2px;
  font-size: 12px;
}
.inbox-notes {
  display: grid;
  gap: 8px;
}
.inbox-notes-draft {
  width: 100%;
  min-block-size: 56px;
  padding: 7px 10px;
  font-size: 12px;
  line-height: 1.4;
  resize: vertical;
}
.inbox-notes-save {
  justify-self: start;
  min-block-size: 30px;
  padding: 5px 12px;
  font-size: 11px;
}
.inbox-note {
  display: grid;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--bg);
}
.inbox-note-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.inbox-note-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.inbox-note-actions .crm-icon-btn {
  inline-size: 26px;
  block-size: 26px;
  border-radius: 7px;
}
.inbox-note-actions .crm-icon-btn svg {
  inline-size: 13px;
  block-size: 13px;
}
.inbox-note-actions .btn-primary,
.inbox-note-actions .btn-ghost {
  min-block-size: 26px;
  padding: 3px 8px;
  font-size: 11px;
}
.inbox-product-row {
  margin-block-start: 8px;
  border-radius: 10px;
  background: var(--bg);
  padding: 8px 10px;
}
.inbox-product-name {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}
.inbox-product-meta {
  margin-block-start: 2px;
  color: var(--muted);
  font-size: 11px;
}
.inbox-cart {
  display: grid;
  gap: 6px;
  padding: 8px 10px 10px;
  border-block-start: 1px solid var(--line);
  background: var(--panel);
}
.inbox-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.inbox-cart-title {
  font-size: 11px;
  font-weight: 700;
}
.inbox-cart-head .crm-icon-btn {
  inline-size: 24px;
  block-size: 24px;
}
.inbox-cart-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 10px;
  background: var(--bg);
}
.inbox-cart-photo {
  inline-size: 36px;
  block-size: 36px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--panel);
}
.inbox-cart-photo.is-empty {
  display: grid;
  place-content: center;
  color: var(--muted);
  font-size: 8px;
  text-align: center;
  line-height: 1.15;
}
.inbox-cart-copy {
  min-inline-size: 0;
}
.inbox-cart-name {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}
.inbox-cart-meta {
  margin-block-start: 1px;
  color: var(--muted);
  font-size: 10px;
}
.inbox-cart-qtybox {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}
.inbox-cart-qtybox button {
  inline-size: 22px;
  block-size: 24px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.inbox-cart-qtybox button:disabled {
  color: var(--muted);
  cursor: default;
}
.inbox-cart-qtybox input {
  inline-size: 28px;
  block-size: 24px;
  border: 0;
  border-inline: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  text-align: center;
  appearance: textfield;
}
.inbox-cart-qtybox input::-webkit-outer-spin-button,
.inbox-cart-qtybox input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}
.inbox-cart-item > .crm-icon-btn {
  inline-size: 24px;
  block-size: 24px;
}
.inbox-cart-item > .crm-icon-btn svg {
  inline-size: 13px;
  block-size: 13px;
}
.inbox-cart-field {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}
.inbox-cart-field .inbox-field,
.inbox-cart-field .inbox-select {
  min-block-size: 28px;
  padding: 5px 8px;
  font-size: 12px;
}
.inbox-cart-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-block-start: 2px;
}
.inbox-cart-total {
  font-size: 12px;
  font-weight: 700;
}
.inbox-cart .btn-primary {
  min-block-size: 28px;
  padding: 4px 10px;
  font-size: 11px;
}
.inbox-label {
  display: grid;
  gap: 6px;
  margin-block-end: 12px;
  color: var(--muted);
  font-size: 12px;
}
.inbox-back,
.inbox-details-close {
  display: none;
}
.chip {
  border: 0;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  background: var(--bg);
  color: var(--muted);
}
.chip.is-active {
  background: var(--forest);
  color: #fff;
}
.btn-primary {
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--accent-hover);
}
.btn-ghost {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
  padding: 8px 12px;
  cursor: pointer;
}
.tag {
  display: inline-flex;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.product-card {
  display: flex;
  flex-direction: column;
  min-inline-size: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: clip;
  background: var(--panel);
}
.product-card.is-picked {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
  @supports (color: color-mix(in lab, red, red)) {
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
  }
}
.product-pick {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.product-pick input {
  accent-color: var(--accent);
}
.inbox-pick-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-block-end: 8px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font-size: 11px;
}
.inbox-pick-bar .btn-primary {
  min-block-size: 28px;
  padding: 4px 10px;
  font-size: 11px;
}
.product-card img,
.product-card-photo {
  inline-size: 100%;
  block-size: 72px;
  object-fit: cover;
  background: var(--bg);
}
.product-card-photo {
  display: grid;
  place-content: center;
  color: var(--muted);
  font-size: 11px;
}
.product-card-body {
  display: grid;
  gap: 4px;
  padding: 8px 10px 10px;
}
.product-card-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
}
.product-card-price {
  color: var(--forest);
  font-size: 13px;
  font-weight: 700;
}
.product-card-stock {
  color: var(--accent);
  font-size: 11px;
}
.product-card-stock.is-out {
  color: #b42318;
}
.product-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-block-start: 4px;
}
.product-card-actions .btn-ghost,
.product-card-actions .btn-primary {
  min-block-size: 32px;
  padding: 6px 8px;
  font-size: 11px;
}
@media (max-width: 1200px) {
  .inbox-layout {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  }
  .inbox-details {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 30;
    inline-size: min(360px, 100%);
    background: var(--panel);
    box-shadow: var(--shadow);
    display: none;
  }
  .inbox-layout[data-pane="details"] .inbox-details {
    display: flex;
    flex-direction: column;
  }
  .inbox-details-close {
    display: grid;
  }
}
@media (max-width: 900px) {
  .crm-connected strong {
    display: none;
  }
  .inbox-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .inbox-layout[data-pane="list"] .inbox-chat,
  .inbox-layout[data-pane="list"] .inbox-details,
  .inbox-layout[data-pane="chat"] .inbox-list,
  .inbox-layout[data-pane="chat"] .inbox-details,
  .inbox-layout[data-pane="details"] .inbox-list,
  .inbox-layout[data-pane="details"] .inbox-chat {
    display: none;
  }
  .inbox-layout[data-pane="details"] .inbox-details {
    position: relative;
    inset: auto;
    inline-size: 100%;
    box-shadow: none;
  }
  .inbox-back {
    display: grid;
  }
}
@media (max-width: 640px) {
  .crm-topbar,
  .crm-page:has(.inbox-layout) {
    padding-inline: 8px;
  }
  .chip {
    padding: 7px 12px;
  }
  .btn-primary,
  .btn-ghost {
    min-block-size: 40px;
  }
  .inbox-actions .btn-ghost,
  .inbox-save,
  .inbox-composer-tools .btn-ghost,
  .inbox-composer-row .btn-primary,
  .inbox-toolbar-row .btn-primary,
  .inbox-head-actions .btn-primary,
  .inbox-cart .btn-primary {
    min-block-size: 28px;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .inbox-chat header .btn-primary {
    padding-inline: 10px;
    font-size: 12px;
  }
}
.dash-page {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 8px;
  block-size: 100%;
  min-block-size: 0;
  padding: 10px 12px 12px;
  overflow: hidden;
}
.dash-hero {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 8px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0b4d3a, #128c5b 55%, #38bdf8);
  color: #fff;
}
.dash-kicker {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}
.dash-hero h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}
.dash-hero p {
  margin: 0;
  font-size: 12px;
  opacity: 0.9;
}
.dash-error {
  color: #b42318;
  font-size: 13px;
}
.dash-kpis {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}
.dash-kpi {
  min-inline-size: 0;
  padding: 8px 10px;
  border-radius: 12px;
  color: #fff;
  box-shadow: var(--shadow);
}
.dash-kpi.is-green {
  background: linear-gradient(180deg, #16a34a, #0b4d3a);
}
.dash-kpi.is-teal {
  background: linear-gradient(180deg, #14b8a6, #0f766e);
}
.dash-kpi.is-amber {
  background: linear-gradient(180deg, #f59e0b, #d97706);
}
.dash-kpi.is-blue {
  background: linear-gradient(180deg, #38bdf8, #0284c7);
}
.dash-kpi.is-violet {
  background: linear-gradient(180deg, #8b5cf6, #6d28d9);
}
.dash-kpi.is-rose {
  background: linear-gradient(180deg, #fb7185, #e11d48);
}
.dash-kpi.is-orange {
  background: linear-gradient(180deg, #fb923c, #ea580c);
}
.dash-kpi.is-mint {
  background: linear-gradient(180deg, #34d399, #059669);
}
.dash-kpi-label,
.dash-kpi-hint {
  font-size: 10px;
  opacity: 0.88;
}
.dash-kpi-hint {
  display: none;
}
.dash-kpi-value {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  min-block-size: 0;
}
.dash-card {
  display: flex;
  flex-direction: column;
  min-inline-size: 0;
  min-block-size: 0;
  overflow: hidden;
  padding: 8px 10px 6px;
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.dash-card h2 {
  margin: 0 0 4px;
  font-size: 12px;
}
.dash-svg {
  display: block;
  width: 100%;
  min-block-size: 0;
  flex: 1;
}
.dash-grid-line,
.dash-grid {
  stroke: var(--line);
  stroke-width: 1;
}
.dash-axis {
  fill: var(--muted);
  font-size: 10px;
}
.dash-donut {
  display: flex;
  align-items: center;
  gap: 10px;
  min-block-size: 0;
  flex: 1;
}
.dash-donut-svg {
  width: min(120px, 38%);
  height: auto;
}
.dash-donut-total {
  fill: var(--ink);
  font-size: 22px;
  font-weight: 800;
}
.dash-donut-sub {
  fill: var(--muted);
  font-size: 10px;
}
.dash-legend {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
}
.dash-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-legend span {
  inline-size: 10px;
  block-size: 10px;
  border-radius: 999px;
}
.dash-legend strong {
  margin-inline-start: auto;
}
.dash-bar-row {
  margin-bottom: 6px;
}
.dash-bar-copy {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}
.dash-bar-copy em {
  color: var(--muted);
  font-style: normal;
}
.dash-bar-track {
  margin-top: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--bg);
  overflow: hidden;
}
.dash-bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
}
.dash-empty {
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 1200px) {
  .dash-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .dash-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }
  .dash-hero h1 {
    font-size: 16px;
  }
}
@media (max-width: 700px) {
  .crm-page:has(.dash-page),
  .crm-page:has(.cust-page) {
    overflow: auto;
  }
  .dash-page,
  .cust-page {
    block-size: auto;
    overflow: visible;
    grid-template-rows: auto;
  }
  .cust-grid {
    overflow: visible;
  }
  .dash-kpis,
  .dash-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }
  .dash-svg {
    min-block-size: 140px;
  }
}
@property --tw-rotate-x {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-y {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-z {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-x {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-y {
  syntax: "*";
  inherits: false;
}
@property --tw-space-y-reverse {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}
@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-leading {
  syntax: "*";
  inherits: false;
}
@property --tw-font-weight {
  syntax: "*";
  inherits: false;
}
@property --tw-tracking {
  syntax: "*";
  inherits: false;
}
@property --tw-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-inset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-inset-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-inset-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-ring-color {
  syntax: "*";
  inherits: false;
}
@property --tw-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-inset-ring-color {
  syntax: "*";
  inherits: false;
}
@property --tw-inset-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-ring-inset {
  syntax: "*";
  inherits: false;
}
@property --tw-ring-offset-width {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
@property --tw-ring-offset-color {
  syntax: "*";
  inherits: false;
  initial-value: #fff;
}
@property --tw-ring-offset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-blur {
  syntax: "*";
  inherits: false;
}
@property --tw-brightness {
  syntax: "*";
  inherits: false;
}
@property --tw-contrast {
  syntax: "*";
  inherits: false;
}
@property --tw-grayscale {
  syntax: "*";
  inherits: false;
}
@property --tw-hue-rotate {
  syntax: "*";
  inherits: false;
}
@property --tw-invert {
  syntax: "*";
  inherits: false;
}
@property --tw-opacity {
  syntax: "*";
  inherits: false;
}
@property --tw-saturate {
  syntax: "*";
  inherits: false;
}
@property --tw-sepia {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false;
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-space-y-reverse: 0;
      --tw-border-style: solid;
      --tw-leading: initial;
      --tw-font-weight: initial;
      --tw-tracking: initial;
      --tw-shadow: 0 0 #0000;
      --tw-shadow-color: initial;
      --tw-shadow-alpha: 100%;
      --tw-inset-shadow: 0 0 #0000;
      --tw-inset-shadow-color: initial;
      --tw-inset-shadow-alpha: 100%;
      --tw-ring-color: initial;
      --tw-ring-shadow: 0 0 #0000;
      --tw-inset-ring-color: initial;
      --tw-inset-ring-shadow: 0 0 #0000;
      --tw-ring-inset: initial;
      --tw-ring-offset-width: 0px;
      --tw-ring-offset-color: #fff;
      --tw-ring-offset-shadow: 0 0 #0000;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
    }
  }
}

