:root {
  --tplex-black: #0b0d0e;
  --tplex-ink: #191d20;
  --tplex-muted: #6f777c;
  --tplex-line: #e5e8ea;
  --tplex-soft: #f3f5f5;
  --tplex-white: #fff;
  --tplex-orange: #ff5c00;
  --tplex-orange-dark: #df4900;
  --tplex-green: #15995b;
  --tplex-red: #d84242;
  --tplex-shadow: 0 24px 70px rgba(10, 14, 16, .12);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.tplex-demo-body { background: #dfe3e5; }
body { font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--tplex-ink); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.tplex-root { min-height: 100vh; background: #eef1f2; color: var(--tplex-ink); }
.tplex-root a { color: inherit; }
.tplex-root button { border: 0; }
.tplex-root input, .tplex-root select, .tplex-root textarea {
  width: 100%; border: 1px solid #d7dcdf; border-radius: 10px; background: #fff; color: #181c1f;
  outline: none; min-height: 44px; padding: 10px 12px; transition: border-color .2s, box-shadow .2s;
}
.tplex-root textarea { min-height: 78px; resize: vertical; }
.tplex-root input:focus, .tplex-root select:focus, .tplex-root textarea:focus { border-color: var(--tplex-orange); box-shadow: 0 0 0 3px rgba(255, 92, 0, .11); }
.tplex-root label > span, .tplex-field-label { display: block; margin-bottom: 6px; color: #4a5155; font-size: 12px; font-weight: 750; }
.tplex-required::after { content: " *"; color: var(--tplex-orange); }
.tplex-muted { color: var(--tplex-muted); }
.tplex-empty { padding: 42px 20px; border: 1px dashed #d4d9dc; border-radius: 14px; color: #7a8287; text-align: center; background: #fafbfb; }
.tplex-loading { min-height: 100vh; display: grid; place-items: center; background: #0c0e0f; color: #fff; }
.tplex-loading span { width: 42px; height: 42px; border: 3px solid rgba(255,255,255,.18); border-top-color: var(--tplex-orange); border-radius: 50%; animation: tplex-spin .8s linear infinite; }
@keyframes tplex-spin { to { transform: rotate(360deg); } }

.tplex-logo { display: inline-flex; align-items: baseline; font-weight: 950; font-style: italic; letter-spacing: -3px; font-size: 30px; line-height: 1; }
.tplex-logo b { color: currentColor; }
.tplex-logo i { color: var(--tplex-orange); font-style: inherit; }
.tplex-logo.large { font-size: 48px; }
.tplex-eyebrow { color: var(--tplex-orange); font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.tplex-primary, .tplex-secondary, .tplex-danger, .tplex-success, .tplex-ghost {
  min-height: 42px; padding: 10px 16px; border-radius: 10px; font-weight: 850; transition: transform .16s, filter .16s;
}
.tplex-primary:hover, .tplex-secondary:hover, .tplex-danger:hover, .tplex-success:hover, .tplex-ghost:hover { transform: translateY(-1px); }
.tplex-primary { background: var(--tplex-orange); color: #fff; }
.tplex-primary:hover { background: var(--tplex-orange-dark); }
.tplex-secondary { background: #15191b; color: #fff; }
.tplex-success { background: var(--tplex-green); color: #fff; }
.tplex-danger { background: #fff1f1; color: #b52929; border: 1px solid #f0cccc !important; }
.tplex-ghost { background: #fff; color: #303639; border: 1px solid #d8dddf !important; }
.tplex-primary:disabled, .tplex-secondary:disabled, .tplex-success:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* Abrir a demonstração */
.tplex-launcher { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; background: #0b0d0e; color: #fff; }
.tplex-launch-brand { padding: clamp(34px, 6vw, 90px); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.tplex-launch-brand::before { content: ""; position: absolute; width: 560px; height: 560px; right: -220px; bottom: -250px; border: 90px solid rgba(255,92,0,.08); border-radius: 50%; }
.tplex-launch-brand > * { position: relative; z-index: 1; }
.tplex-launch-brand h1 { margin: 28px 0 16px; font-size: clamp(40px, 5vw, 72px); line-height: .98; letter-spacing: -.055em; max-width: 720px; }
.tplex-launch-brand h1 em { color: var(--tplex-orange); font-style: normal; }
.tplex-launch-brand p { max-width: 560px; color: #aeb5b8; line-height: 1.65; font-size: 17px; }
.tplex-launch-brand footer { color: #697176; font-size: 12px; }
.tplex-launch-actions { background: #f5f6f6; color: #161a1d; padding: clamp(28px, 5vw, 70px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.tplex-launch-actions > small { font-size: 11px; font-weight: 900; letter-spacing: .16em; color: var(--tplex-orange); }
.tplex-launch-actions h2 { margin: 0 0 10px; font-size: clamp(30px, 3vw, 44px); letter-spacing: -.04em; }
.tplex-launch-card { width: 100%; text-align: left; padding: 24px; border-radius: 16px; background: #fff; border: 1px solid #e1e5e7 !important; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 16px; box-shadow: 0 10px 30px rgba(14,19,22,.05); }
.tplex-launch-card > span { width: 48px; height: 48px; border-radius: 13px; background: #131719; color: #fff; display: grid; place-items: center; font-weight: 900; }
.tplex-launch-card:nth-of-type(2) > span { background: var(--tplex-orange); }
.tplex-launch-card strong { display: block; font-size: 17px; }
.tplex-launch-card small { display: block; margin-top: 5px; color: #747c80; }
.tplex-launch-card i { color: var(--tplex-orange); font-size: 22px; font-style: normal; }
.tplex-launch-reset { align-self: flex-start; background: transparent; color: #747c80; padding: 8px 0; text-decoration: underline; }

/* Painel central */
.tplex-admin { min-height: 100vh; display: grid; grid-template-columns: 238px 1fr; }
.tplex-sidebar { position: sticky; top: 0; height: 100vh; background: #0c0f10; color: #fff; padding: 26px 18px; display: flex; flex-direction: column; }
.tplex-sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 2px 8px 24px; border-bottom: 1px solid rgba(255,255,255,.08); }
.tplex-sidebar-brand div { display: grid; }
.tplex-sidebar-brand strong { font-size: 12px; letter-spacing: .08em; }
.tplex-sidebar-brand small { color: #767f83; font-size: 9px; margin-top: 3px; }
.tplex-sidebar nav { display: grid; gap: 5px; margin-top: 20px; }
.tplex-sidebar nav button { min-height: 46px; border-radius: 10px; background: transparent; color: #9aa2a6; text-align: left; padding: 0 12px; display: grid; grid-template-columns: 25px 1fr; align-items: center; gap: 7px; font-size: 13px; font-weight: 760; }
.tplex-sidebar nav button span { font-size: 16px; opacity: .8; }
.tplex-sidebar nav button.active { background: #1a1f21; color: #fff; box-shadow: inset 3px 0 var(--tplex-orange); }
.tplex-sidebar-bottom { margin-top: auto; display: grid; gap: 8px; }
.tplex-sidebar-bottom button { width: 100%; }
.tplex-admin-stage { min-width: 0; background: #f1f3f4; }
.tplex-topbar { height: 72px; background: #fff; border-bottom: 1px solid #e2e6e8; display: flex; align-items: center; justify-content: space-between; padding: 0 30px; position: sticky; top: 0; z-index: 15; }
.tplex-topbar-title small { display: block; color: #90979b; font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.tplex-topbar-title strong { font-size: 17px; }
.tplex-topbar-actions { display: flex; align-items: center; gap: 10px; }
.tplex-user-chip { display: flex; align-items: center; gap: 10px; padding: 6px 10px; background: #f5f6f6; color: #202427; border-radius: 11px; }
.tplex-user-chip > b { width: 32px; height: 32px; border-radius: 9px; background: #171b1d; color: #fff; display: grid; place-items: center; font-size: 11px; }
.tplex-user-chip span { display: grid; }
.tplex-user-chip strong { font-size: 12px; }
.tplex-user-chip small { font-size: 9px; color: #7b8387; }
.tplex-content { padding: 30px; max-width: 1500px; margin: 0 auto; }
.tplex-page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.tplex-page-heading h1 { margin: 5px 0 6px; font-size: clamp(28px, 3vw, 42px); letter-spacing: -.045em; }
.tplex-page-heading p { margin: 0; color: #737b80; max-width: 690px; }
.tplex-metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.tplex-metric { position: relative; padding: 20px; min-height: 142px; background: #fff; border: 1px solid #e1e5e7 !important; border-radius: 14px; text-align: left; }
.tplex-metric span { display: block; color: #737b80; font-size: 11px; font-weight: 800; }
.tplex-metric strong { display: block; margin: 12px 0 6px; font-size: 35px; letter-spacing: -.05em; }
.tplex-metric small { color: #92999d; }
.tplex-metric i { position: absolute; right: 16px; top: 15px; font-style: normal; color: var(--tplex-orange); }
.tplex-dashboard-grid { display: grid; grid-template-columns: 1.55fr .85fr; gap: 16px; margin-top: 16px; }
.tplex-card { background: #fff; border: 1px solid #e1e5e7; border-radius: 15px; padding: 20px; box-shadow: 0 8px 24px rgba(15,20,22,.035); }
.tplex-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 17px; }
.tplex-card-head h2, .tplex-card-head h3 { margin: 0; font-size: 18px; }
.tplex-card-head small { color: var(--tplex-orange); font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.tplex-activity { display: grid; }
.tplex-activity-row { display: grid; grid-template-columns: 10px 1fr auto auto; gap: 12px; align-items: center; padding: 13px 0; border-top: 1px solid #eef0f1; }
.tplex-dot { width: 8px; height: 8px; border-radius: 50%; background: #d7dbdd; }
.tplex-dot.quote { background: var(--tplex-orange); }
.tplex-dot.approved, .tplex-dot.done { background: var(--tplex-green); }
.tplex-dot.cancelled { background: var(--tplex-red); }
.tplex-activity-row p { margin: 0; display: grid; }
.tplex-activity-row p strong { font-size: 13px; }
.tplex-activity-row p small { color: #8a9296; font-size: 10px; margin-top: 3px; }
.tplex-status { display: inline-flex; align-items: center; justify-content: center; min-height: 25px; padding: 4px 9px; border-radius: 999px; background: #f0f2f3; color: #5e666a; font-size: 10px; font-weight: 850; }
.tplex-status.approved, .tplex-status.done { background: #e8f7ef; color: #08743f; }
.tplex-status.quote { background: #fff0e8; color: #bd4500; }
.tplex-status.cancelled { background: #fff0f0; color: #a72b2b; }
.tplex-quick { display: grid; gap: 9px; }
.tplex-quick button { padding: 14px; border-radius: 11px; background: #f6f7f7; text-align: left; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; }
.tplex-quick button > span { width: 34px; height: 34px; border-radius: 9px; background: #161a1c; color: #fff; display: grid; place-items: center; font-weight: 900; }
.tplex-quick button p { display: grid; margin: 0; }
.tplex-quick button strong { font-size: 12px; }
.tplex-quick button small { color: #8c9498; font-size: 9px; margin-top: 3px; }
.tplex-quick button i { color: var(--tplex-orange); font-style: normal; }

.tplex-grid-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.tplex-rep-card { overflow: hidden; padding: 0; }
.tplex-rep-visual { height: 150px; background: #171b1d; display: grid; place-items: center; overflow: hidden; color: #fff; }
.tplex-rep-visual img { width: 100%; height: 100%; object-fit: cover; }
.tplex-rep-visual span { width: 70px; height: 70px; border-radius: 22px; background: var(--tplex-orange); display: grid; place-items: center; font-size: 25px; font-weight: 900; }
.tplex-rep-info { padding: 17px; }
.tplex-rep-info header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tplex-rep-info h3 { margin: 0; font-size: 17px; }
.tplex-rep-info p { margin: 7px 0 0; color: #70787c; font-size: 12px; }
.tplex-rep-info footer { display: flex; gap: 8px; margin-top: 15px; }
.tplex-rep-info footer button { flex: 1; font-size: 11px; min-height: 37px; }

/* Equipe comercial: cartões e editor premium */
.tplex-representatives-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tplex-representative-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid #dfe4e6; border-radius: 18px; box-shadow: 0 16px 42px rgba(14, 19, 22, .055); }
.tplex-representative-cover { --tplex-rep-image: none; position: relative; min-height: 184px; padding: 24px; overflow: hidden; color: #fff; background: linear-gradient(118deg, rgba(10, 13, 14, .96), rgba(22, 27, 29, .88)), var(--tplex-rep-image) center/cover no-repeat; display: flex; align-items: flex-end; }
.tplex-representative-cover::before { content: ""; position: absolute; width: 210px; height: 210px; right: -112px; top: -112px; border: 42px solid rgba(255, 92, 0, .12); border-radius: 50%; }
.tplex-representative-cover::after { content: ""; position: absolute; left: 24px; bottom: 0; width: 52px; height: 4px; background: var(--tplex-orange); border-radius: 4px 4px 0 0; }
.tplex-representative-cover-content { position: relative; z-index: 1; min-width: 0; max-width: 82%; }
.tplex-representative-cover-content span { display: block; margin-bottom: 9px; color: var(--tplex-orange); font-size: 9px; font-weight: 900; letter-spacing: .17em; }
.tplex-representative-cover-content h2 { margin: 0; overflow: hidden; color: #fff; font-size: clamp(21px, 2vw, 29px); line-height: 1.05; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.tplex-representative-cover-content p { margin: 8px 0 0; color: #9fa7aa; font-size: 10px; }
.tplex-representative-status { position: absolute; z-index: 2; right: 18px; top: 18px; display: inline-flex; align-items: center; gap: 6px; min-height: 27px; padding: 5px 9px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; font-size: 9px; font-weight: 850; backdrop-filter: blur(10px); }
.tplex-representative-status i { width: 6px; height: 6px; border-radius: 50%; background: #46cf82; box-shadow: 0 0 0 3px rgba(70,207,130,.13); }
.tplex-representative-status.blocked i { background: #ff6b6b; box-shadow: 0 0 0 3px rgba(255,107,107,.13); }
.tplex-representative-details { padding: 20px 22px 22px; }
.tplex-representative-details dl { margin: 0; display: grid; gap: 0; }
.tplex-representative-details dl > div { min-width: 0; padding: 12px 0; border-bottom: 1px solid #edf0f1; display: grid; grid-template-columns: 122px minmax(0, 1fr); align-items: center; gap: 12px; }
.tplex-representative-details dl > div:first-child { padding-top: 2px; }
.tplex-representative-details dt { color: #8b9397; font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.tplex-representative-details dd { min-width: 0; margin: 0; overflow: hidden; color: #22272a; font-size: 12px; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
.tplex-representative-details footer { display: grid; grid-template-columns: 1.15fr .85fr; gap: 9px; margin-top: 18px; }
.tplex-representative-details footer button { min-height: 42px; border-radius: 10px; font-size: 10px; font-weight: 850; }
.tplex-representative-edit { padding: 0 14px; background: #15191b; color: #fff; display: flex; align-items: center; justify-content: space-between; }
.tplex-representative-edit i { color: var(--tplex-orange); font-size: 15px; font-style: normal; }
.tplex-representative-toggle { padding: 0 12px; background: #fff; border: 1px solid #e1e5e7 !important; color: #6b7377; }
.tplex-representative-toggle.block:hover { border-color: #efcaca !important; background: #fff4f4; color: #ad3030; }
.tplex-representative-toggle.release { border-color: #cfe8da !important; background: #edf9f2; color: #087442; }

.tplex-representative-editor-modal { width: min(1120px, 100%) !important; overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.tplex-representative-editor-modal > header { padding: 22px 26px; background: linear-gradient(110deg, #0c0f10, #1a1f21); }
.tplex-representative-editor-modal > header h2 { font-size: 24px; letter-spacing: -.025em; }
.tplex-representative-editor-modal .tplex-modal-content { min-height: 0; overflow: auto; padding: 0; }
.tplex-rep-editor-layout { display: grid; grid-template-columns: 350px minmax(0, 1fr); min-height: 515px; }
.tplex-rep-editor-visual { padding: 26px; background: #f1f3f4; border-right: 1px solid #e0e4e6; display: flex; flex-direction: column; gap: 16px; }
.tplex-rep-editor-preview { --tplex-rep-editor-image: none; position: relative; min-height: 290px; overflow: hidden; padding: 24px; border-radius: 16px; color: #fff; background: linear-gradient(145deg, rgba(10,13,14,.94), rgba(19,24,26,.75)), var(--tplex-rep-editor-image) center/cover no-repeat; display: flex; flex-direction: column; justify-content: flex-end; box-shadow: 0 18px 35px rgba(12,16,18,.14); }
.tplex-rep-editor-preview::before { content: ""; position: absolute; width: 210px; height: 210px; right: -115px; top: -105px; border: 38px solid rgba(255,92,0,.14); border-radius: 50%; }
.tplex-rep-editor-preview::after { content: ""; position: absolute; left: 24px; bottom: 0; width: 54px; height: 4px; border-radius: 4px 4px 0 0; background: var(--tplex-orange); }
.tplex-rep-editor-preview > * { position: relative; z-index: 1; }
.tplex-rep-editor-preview span { color: var(--tplex-orange); font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.tplex-rep-editor-preview strong { margin-top: 10px; font-size: 27px; line-height: 1.06; letter-spacing: -.035em; overflow-wrap: anywhere; }
.tplex-rep-editor-preview small { margin-top: 9px; color: #9da5a9; font-size: 10px; }
.tplex-rep-editor-upload { padding: 16px; border: 1px solid #dce1e3; border-radius: 13px; background: #fff; }
.tplex-rep-editor-upload strong { font-size: 12px; }
.tplex-rep-editor-upload p { margin: 5px 0 13px; color: #7a8286; font-size: 10px; line-height: 1.45; }
.tplex-rep-editor-upload label { min-height: 46px; padding: 9px 12px; border: 1px dashed #cbd2d5; border-radius: 10px; background: #f8f9f9; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tplex-rep-editor-upload label:hover { border-color: var(--tplex-orange); background: #fff8f4; }
.tplex-rep-editor-upload input { position: absolute; width: 1px !important; height: 1px; min-height: 0 !important; padding: 0 !important; opacity: 0; pointer-events: none; }
.tplex-rep-editor-upload label span { margin: 0; color: #252a2d; font-size: 10px; font-weight: 850; }
.tplex-rep-editor-upload label small { color: #929a9e; font-size: 8px; }
.tplex-rep-editor-fields { padding: 28px 30px 20px; display: grid; align-content: start; gap: 22px; }
.tplex-rep-editor-fields > section { padding-bottom: 22px; border-bottom: 1px solid #e5e8ea; }
.tplex-rep-editor-fields > section:last-of-type { padding-bottom: 0; border-bottom: 0; }
.tplex-rep-editor-fields section > header { margin-bottom: 17px; display: flex; align-items: center; gap: 12px; }
.tplex-rep-editor-fields section > header > b { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; background: #171b1d; color: var(--tplex-orange); display: grid; place-items: center; font-size: 9px; letter-spacing: .05em; }
.tplex-rep-editor-fields section > header h3 { margin: 0; font-size: 16px; letter-spacing: -.015em; }
.tplex-rep-editor-fields section > header p { margin: 4px 0 0; color: #899195; font-size: 10px; }
.tplex-rep-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tplex-rep-editor-grid label.full { grid-column: 1 / -1; }
.tplex-rep-editor-grid label > span { margin-bottom: 7px; color: #40474a; font-size: 11px; font-weight: 820; }
.tplex-rep-editor-grid label > span em { margin-left: 5px; color: #969da1; font-size: 9px; font-style: normal; font-weight: 650; }
.tplex-rep-editor-grid input { min-height: 48px; border-radius: 11px; background: #fafbfb; }
.tplex-rep-editor-grid label > small { display: block; margin-top: 6px; color: #8a9296; font-size: 9px; }
.tplex-representative-editor-modal .tplex-rep-editor-actions { position: sticky; bottom: 0; z-index: 3; min-height: 76px; padding: 14px 24px; border-top: 1px solid #e1e5e7; background: rgba(255,255,255,.97); display: flex; align-items: center; justify-content: space-between; gap: 16px; backdrop-filter: blur(12px); }
.tplex-rep-editor-actions > div { display: flex; align-items: center; gap: 10px; }
.tplex-rep-editor-actions > div:first-child > i { width: 30px; height: 30px; border-radius: 50%; background: #e9f7ef; color: #078047; display: grid; place-items: center; font-size: 12px; font-style: normal; }
.tplex-rep-editor-actions p { margin: 0; display: grid; }
.tplex-rep-editor-actions p strong { font-size: 10px; }
.tplex-rep-editor-actions p small { margin-top: 2px; color: #899195; font-size: 8px; }
.tplex-rep-editor-actions button { min-height: 44px; padding: 10px 17px; border-radius: 10px; font-size: 10px; font-weight: 850; }
.tplex-rep-editor-cancel { background: #fff; border: 1px solid #d9dee0 !important; color: #555d61; }
.tplex-rep-editor-save { min-width: 190px; background: var(--tplex-orange); color: #fff; }
.tplex-rep-editor-save span { margin-left: 10px; }
.tplex-rep-editor-save:disabled { opacity: .55; cursor: wait; }

/* Editor de representante aprovado: dados + duas comunicações */
.tplex-representative-editor-backdrop { padding: 22px clamp(22px, 4vw, 64px); background: rgba(7, 10, 11, .76); }
.tplex-representative-editor-app { width: min(1260px, 100%); max-height: calc(100vh - 44px); overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 18px; background: #fff; box-shadow: 0 32px 100px rgba(4, 8, 10, .3); display: grid; grid-template-rows: auto minmax(0, 1fr); }
.tplex-representative-editor-head { min-height: 86px; padding: 18px 26px 17px 30px; border-bottom: 1px solid #e3e7e9; background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.tplex-representative-editor-head > div > div { margin-top: 5px; display: flex; align-items: center; gap: 13px; }
.tplex-representative-editor-head h2 { margin: 0; color: #171b1d; font-size: 27px; line-height: 1; letter-spacing: -.035em; }
.tplex-representative-editor-head > div > div > b { min-height: 27px; padding: 5px 10px; border: 1px solid #bde1ca; border-radius: 8px; background: #edf9f2; color: #08713e; display: inline-flex; align-items: center; gap: 7px; font-size: 9px; font-weight: 850; }
.tplex-representative-editor-head > div > div > b i { width: 7px; height: 7px; border-radius: 50%; background: #20a760; }
.tplex-representative-editor-head > button { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; background: #f2f4f4; color: #343a3d; font-size: 22px; line-height: 1; }
.tplex-representative-editor-head > button:hover { background: #171b1d; color: #fff; }
.tplex-representative-editor-form { min-height: 0; overflow: hidden; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.tplex-representative-editor-body { min-height: 0; overflow: auto; display: grid; grid-template-columns: minmax(420px, .95fr) minmax(540px, 1.2fr); }
.tplex-representative-data-column { padding: 27px 34px 24px; border-right: 1px solid #e1e5e7; background: #fff; }
.tplex-representative-form-section { padding-bottom: 26px; }
.tplex-representative-form-section + .tplex-representative-form-section { padding-top: 25px; border-top: 1px solid #e2e6e8; }
.tplex-representative-form-section h3 { margin: 0 0 18px; color: #1a1e21; display: flex; align-items: center; gap: 11px; font-size: 18px; letter-spacing: -.025em; }
.tplex-representative-form-section h3::before { content: "01"; width: 31px; height: 31px; flex: 0 0 31px; border-radius: 9px; background: #171b1d; color: var(--tplex-orange); display: grid; place-items: center; font-size: 8px; font-weight: 900; letter-spacing: 0; }
.tplex-representative-form-section.access h3::before { content: "02"; }
.tplex-representative-communication > header h3 { margin: 0 0 5px; color: #1a1e21; font-size: 18px; letter-spacing: -.025em; }
.tplex-representative-form-fields { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tplex-representative-form-section:not(.access) .tplex-representative-form-fields > label:first-child,
.tplex-representative-form-section.access .tplex-representative-form-fields > label { grid-column: 1 / -1; }
.tplex-representative-editor-app .tplex-representative-form-fields > label { position: relative; width: 100%; min-width: 0; margin: 0; display: block; }
.tplex-representative-editor-app .tplex-representative-form-fields > label > span { position: absolute; z-index: 2; left: 16px; top: 10px; max-width: calc(100% - 32px); margin: 0; display: block; overflow: hidden; color: #687176; font-size: 10px; font-weight: 850; line-height: 1.15; white-space: nowrap; text-overflow: ellipsis; pointer-events: none; }
.tplex-representative-editor-app .tplex-representative-form-fields > label > span em { margin-left: 5px; color: #969da1; font-size: 8px; font-style: normal; font-weight: 680; }
.tplex-representative-editor-app .tplex-representative-form-fields > label > input { width: 100%; height: 58px; min-height: 58px; margin: 0; padding: 26px 16px 8px; display: block; border: 0; border-radius: 11px; background: #f1f3f4; color: #1d2225; font-size: 13px; font-weight: 680; line-height: 1.2; box-shadow: inset 0 0 0 1px transparent; transition: background .18s ease, box-shadow .18s ease; }
.tplex-representative-editor-app .tplex-representative-form-fields > label > input::placeholder { color: #9ca4a8; font-weight: 520; opacity: 1; }
.tplex-representative-editor-app .tplex-representative-form-fields > label > input:hover { border: 0; background: #eceff0; }
.tplex-representative-editor-app .tplex-representative-form-fields > label > input:focus { border: 0; background: #fff; box-shadow: inset 0 0 0 2px var(--tplex-orange), 0 0 0 4px rgba(255, 92, 0, .08); }
.tplex-representative-editor-app .tplex-representative-form-fields > label > small { margin: 7px 3px 0; display: block; color: #7e878b; font-size: 9px; font-weight: 650; line-height: 1.35; }
.tplex-representative-communication { padding: 27px 31px 24px; background: #fafbfb; }
.tplex-representative-communication > header { margin-bottom: 16px; }
.tplex-representative-communication > header h3 { margin-bottom: 5px; }
.tplex-representative-communication > header p { margin: 0; color: #7f878b; font-size: 9px; }
.tplex-representative-image-card { padding: 15px; border: 1px solid #dce1e3; border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(16, 21, 23, .025); }
.tplex-representative-image-card + .tplex-representative-image-card { margin-top: 14px; }
.tplex-representative-image-copy { margin-bottom: 11px; }
.tplex-representative-image-copy > div { display: flex; align-items: center; gap: 8px; }
.tplex-representative-image-copy > div > span { width: 25px; height: 25px; border-radius: 7px; background: #171b1d; color: var(--tplex-orange); display: grid; place-items: center; font-size: 8px; font-weight: 900; }
.tplex-representative-image-copy h4 { margin: 0; color: #1c2023; font-size: 14px; letter-spacing: -.015em; }
.tplex-representative-image-copy p { margin: 5px 0 0 33px; color: #7e868a; font-size: 9px; }
.tplex-representative-image-preview { --tplex-editor-image: none; position: relative; min-height: 126px; overflow: hidden; padding: 20px; border-radius: 11px; background: linear-gradient(120deg, rgba(10,13,14,.97), rgba(23,28,30,.9)), var(--tplex-editor-image) center/cover no-repeat; color: #fff; display: flex; align-items: flex-end; }
.tplex-representative-image-preview::before { content: ""; position: absolute; width: 190px; height: 190px; right: -72px; top: -115px; border: 30px solid rgba(255,92,0,.18); border-radius: 50%; transform: rotate(-12deg); }
.tplex-representative-image-preview::after { content: ""; position: absolute; left: 20px; bottom: 0; width: 52px; height: 4px; border-radius: 4px 4px 0 0; background: var(--tplex-orange); }
.tplex-representative-image-preview > div { position: relative; z-index: 1; display: grid; }
.tplex-representative-image-preview.message small { color: var(--tplex-orange); font-size: 7px; font-weight: 900; letter-spacing: .15em; }
.tplex-representative-image-preview.message strong { margin-top: 5px; font-size: 23px; line-height: 1; letter-spacing: -.04em; }
.tplex-representative-image-preview.message p { margin: 6px 0 0; color: #a8afb2; font-size: 8px; }
.tplex-representative-image-preview.dashboard { align-items: center; justify-content: center; text-align: center; }
.tplex-representative-image-preview.dashboard .tplex-logo { font-size: 32px; }
.tplex-representative-image-preview.dashboard small { margin-top: 9px; color: #9da5a9; font-size: 8px; letter-spacing: .05em; }
.tplex-representative-image-preview.has-image { background: var(--tplex-editor-image) center/cover no-repeat; }
.tplex-representative-image-preview.has-image::before, .tplex-representative-image-preview.has-image::after, .tplex-representative-image-preview.has-image > div { display: none; }
.tplex-representative-image-button { min-height: 40px; margin-top: 10px; padding: 8px 11px; border: 1px dashed #cfd5d8; border-radius: 9px; background: #f8f9f9; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tplex-representative-image-button:hover { border-color: var(--tplex-orange); background: #fff8f4; }
.tplex-representative-image-button input { position: absolute; width: 1px !important; height: 1px; min-height: 0 !important; padding: 0 !important; opacity: 0; pointer-events: none; }
.tplex-representative-image-button > span { margin: 0 !important; color: #282d30 !important; font-size: 9px !important; font-weight: 850 !important; }
.tplex-representative-image-button > small { color: #939a9e; font-size: 7px; }
.tplex-representative-editor-body > .tplex-error { grid-column: 1 / -1; margin: 0 30px 20px; }
.tplex-representative-editor-footer { min-height: 72px; padding: 12px 24px; border-top: 1px solid #e0e4e6; background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tplex-representative-editor-footer > div { display: flex; align-items: center; gap: 10px; }
.tplex-representative-editor-footer > div:first-child > i { width: 29px; height: 29px; border-radius: 50%; background: #e9f7ef; color: #078047; display: grid; place-items: center; font-size: 11px; font-style: normal; }
.tplex-representative-editor-footer p { margin: 0; display: grid; }
.tplex-representative-editor-footer p strong { font-size: 9px; }
.tplex-representative-editor-footer p small { margin-top: 2px; color: #8a9296; font-size: 8px; }
.tplex-representative-editor-footer button { min-height: 43px; padding: 10px 17px; border-radius: 9px; font-size: 10px; font-weight: 850; }
.tplex-representative-editor-cancel { min-width: 100px; border: 1px solid #d8dddf !important; background: #fff; color: #545c60; }
.tplex-representative-editor-save { min-width: 185px; background: var(--tplex-orange); color: #fff; }
.tplex-representative-editor-save span { margin-left: 10px; }
.tplex-representative-editor-save:disabled { opacity: .55; cursor: wait; }

@media (max-width: 980px) {
  .tplex-representative-editor-body { grid-template-columns: minmax(350px, .88fr) minmax(430px, 1.12fr); }
  .tplex-representative-data-column, .tplex-representative-communication { padding: 23px; }
}

@media (max-width: 760px) {
  .tplex-representative-editor-backdrop { padding: 0; align-items: end; }
  .tplex-representative-editor-app { width: 100%; max-height: 96vh; border-radius: 18px 18px 0 0; }
  .tplex-representative-editor-head { min-height: 74px; padding: 15px 18px; }
  .tplex-representative-editor-head h2 { font-size: 22px; }
  .tplex-representative-editor-head > div > div > b { display: none; }
  .tplex-representative-editor-body { grid-template-columns: 1fr; }
  .tplex-representative-data-column { border-right: 0; border-bottom: 1px solid #e1e5e7; }
  .tplex-representative-form-fields { grid-template-columns: 1fr; }
  .tplex-representative-form-section:not(.access) .tplex-representative-form-fields > label { grid-column: 1 / -1; }
  .tplex-representative-editor-app .tplex-representative-form-fields > label > input { height: 54px; min-height: 54px; padding: 23px 13px 7px; font-size: 12px; }
  .tplex-representative-editor-app .tplex-representative-form-fields > label > span { left: 13px; top: 8px; font-size: 8px; }
  .tplex-representative-editor-footer { align-items: stretch; flex-direction: column; }
  .tplex-representative-editor-footer > div:first-child { display: none; }
  .tplex-representative-editor-footer > div:last-child { display: grid; grid-template-columns: .8fr 1.2fr; }
  .tplex-representative-editor-footer button { min-width: 0; }
}

/* Editor premium de produto: mesmo padrão visual do cadastro de representante */
.tplex-product-editor-backdrop { padding: 22px clamp(22px, 4vw, 64px); background: rgba(7, 10, 11, .76); }
.tplex-product-editor-app { width: min(1180px, 100%); max-height: calc(100vh - 44px); overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 18px; background: #fff; box-shadow: 0 32px 100px rgba(4, 8, 10, .3); display: grid; grid-template-rows: auto minmax(0, 1fr); }
.tplex-product-editor-head { min-height: 86px; padding: 18px 26px 17px 30px; border-bottom: 1px solid #e3e7e9; background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.tplex-product-editor-head > div > div { margin-top: 5px; display: flex; align-items: center; gap: 13px; }
.tplex-product-editor-head h2 { margin: 0; color: #171b1d; font-size: 27px; line-height: 1; letter-spacing: -.035em; }
.tplex-product-editor-head > div > div > b { min-height: 27px; padding: 5px 10px; border: 1px solid #bde1ca; border-radius: 8px; background: #edf9f2; color: #08713e; display: inline-flex; align-items: center; gap: 7px; font-size: 9px; font-weight: 850; }
.tplex-product-editor-head > div > div > b i { width: 7px; height: 7px; border-radius: 50%; background: #20a760; }
.tplex-product-editor-head > div > div > b.blocked { border-color: #edcaca; background: #fff1f1; color: #9a2b2b; }
.tplex-product-editor-head > div > div > b.blocked i { background: #e94e4e; }
.tplex-product-editor-head > button { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; background: #f2f4f4; color: #343a3d; font-size: 22px; line-height: 1; }
.tplex-product-editor-head > button:hover { background: #171b1d; color: #fff; }
.tplex-product-editor-form { min-height: 0; overflow: hidden; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.tplex-product-editor-body { min-height: 0; overflow: auto; display: grid; grid-template-columns: minmax(590px, 1.42fr) minmax(320px, .72fr); }
.tplex-product-editor-data { min-width: 0; padding: 28px 34px 25px; border-right: 1px solid #e1e5e7; background: #fff; }
.tplex-product-editor-section { padding-bottom: 27px; }
.tplex-product-editor-section + .tplex-product-editor-section { padding-top: 25px; border-top: 1px solid #e2e6e8; }
.tplex-product-editor-section h3 { margin: 0 0 18px; color: #1a1e21; display: flex; align-items: center; gap: 11px; font-size: 18px; letter-spacing: -.025em; }
.tplex-product-editor-section h3::before { content: "01"; width: 31px; height: 31px; flex: 0 0 31px; border-radius: 9px; background: #171b1d; color: var(--tplex-orange); display: grid; place-items: center; font-size: 8px; font-weight: 900; letter-spacing: 0; }
.tplex-product-editor-section.commercial h3::before { content: "02"; }
.tplex-product-editor-fields { width: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px 16px; }
.tplex-product-editor-fields .span-12 { grid-column: span 12; }
.tplex-product-editor-fields .span-6 { grid-column: span 6; }
.tplex-product-editor-fields .span-4 { grid-column: span 4; }
.tplex-product-editor-fields .span-3 { grid-column: span 3; }
.tplex-product-editor-app .tplex-product-editor-fields > label { position: relative; width: 100%; min-width: 0; margin: 0; display: block; }
.tplex-product-editor-app .tplex-product-editor-fields > label > span { position: absolute; z-index: 2; left: 16px; top: 10px; max-width: calc(100% - 32px); margin: 0; display: block; overflow: hidden; color: #687176; font-size: 10px; font-weight: 850; line-height: 1.15; white-space: nowrap; text-overflow: ellipsis; pointer-events: none; }
.tplex-product-editor-app .tplex-product-editor-fields > label > input,
.tplex-product-editor-app .tplex-product-editor-fields > label > select { width: 100%; height: 58px; min-height: 58px; margin: 0; padding: 26px 16px 8px; display: block; border: 0; border-radius: 11px; background: #f1f3f4; color: #1d2225; font-size: 13px; font-weight: 680; line-height: 1.2; box-shadow: inset 0 0 0 1px transparent; transition: background .18s ease, box-shadow .18s ease; }
.tplex-product-editor-app .tplex-product-editor-fields > label > select { padding-right: 35px; cursor: pointer; }
.tplex-product-editor-app .tplex-product-editor-fields > label > input::placeholder { color: #9ca4a8; font-weight: 520; opacity: 1; }
.tplex-product-editor-app .tplex-product-editor-fields > label > input:hover,
.tplex-product-editor-app .tplex-product-editor-fields > label > select:hover { border: 0; background: #eceff0; }
.tplex-product-editor-app .tplex-product-editor-fields > label > input:focus,
.tplex-product-editor-app .tplex-product-editor-fields > label > select:focus { border: 0; background: #fff; box-shadow: inset 0 0 0 2px var(--tplex-orange), 0 0 0 4px rgba(255, 92, 0, .08); }
.tplex-product-editor-data > .tplex-error { margin: 18px 0 0; }
.tplex-product-editor-visual { min-width: 0; padding: 27px 29px 24px; background: #fafbfb; }
.tplex-product-editor-visual > header { margin-bottom: 16px; }
.tplex-product-editor-visual > header h3 { margin: 0 0 5px; color: #1a1e21; font-size: 18px; letter-spacing: -.025em; }
.tplex-product-editor-visual > header p { margin: 0; color: #7f878b; font-size: 9px; line-height: 1.45; }
.tplex-product-editor-photo { position: relative; min-height: 245px; overflow: hidden; padding: 24px; border-radius: 14px; background: linear-gradient(145deg, #0d1112, #252b2e); color: #fff; display: flex; align-items: flex-end; box-shadow: 0 16px 34px rgba(12, 16, 18, .12); }
.tplex-product-editor-photo::before { content: ""; position: absolute; width: 220px; height: 220px; right: -110px; top: -112px; border: 39px solid rgba(255,92,0,.15); border-radius: 50%; }
.tplex-product-editor-photo::after { content: ""; position: absolute; left: 24px; bottom: 0; width: 55px; height: 4px; border-radius: 4px 4px 0 0; background: var(--tplex-orange); }
.tplex-product-editor-photo > div { position: relative; z-index: 1; display: grid; }
.tplex-product-editor-photo > div small { color: var(--tplex-orange); font-size: 8px; font-weight: 900; letter-spacing: .16em; }
.tplex-product-editor-photo > div strong { margin-top: 8px; font-size: 29px; line-height: 1; letter-spacing: -.035em; }
.tplex-product-editor-photo > div span { margin-top: 8px; color: #a2aaae; font-size: 10px; }
.tplex-product-editor-photo.has-image { padding: 0; align-items: stretch; justify-content: stretch; background: #eef1f2; }
.tplex-product-editor-photo.has-image::before, .tplex-product-editor-photo.has-image::after { display: none; }
.tplex-product-editor-photo img { width: 100%; height: 245px; object-fit: contain; display: block; }
.tplex-product-editor-summary { margin-top: 14px; display: grid; gap: 4px; }
.tplex-product-editor-summary > small { color: var(--tplex-orange); font-size: 8px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.tplex-product-editor-summary > strong { overflow: hidden; color: #202527; font-size: 15px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.tplex-product-editor-summary > span { color: #858d91; font-size: 9px; }
.tplex-product-editor-summary > span b { color: #525a5e; }
.tplex-product-editor-upload { min-height: 42px; margin-top: 13px; padding: 8px 11px; border: 1px dashed #cfd5d8; border-radius: 9px; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tplex-product-editor-upload:hover { border-color: var(--tplex-orange); background: #fff8f4; }
.tplex-product-editor-upload input { position: absolute; width: 1px !important; height: 1px; min-height: 0 !important; padding: 0 !important; opacity: 0; pointer-events: none; }
.tplex-product-editor-upload > span { position: static !important; max-width: none !important; margin: 0 !important; color: #282d30 !important; font-size: 9px !important; font-weight: 850 !important; pointer-events: auto !important; }
.tplex-product-editor-upload > small { color: #939a9e; font-size: 7px; }
.tplex-product-editor-note { margin-top: 13px; padding: 12px; border: 1px solid #e1e5e7; border-radius: 10px; background: #fff; display: flex; align-items: center; gap: 10px; }
.tplex-product-editor-note > i { width: 27px; height: 27px; flex: 0 0 27px; border-radius: 50%; background: #e9f7ef; color: #078047; display: grid; place-items: center; font-size: 10px; font-style: normal; }
.tplex-product-editor-note p { margin: 0; display: grid; }
.tplex-product-editor-note strong { color: #303639; font-size: 9px; }
.tplex-product-editor-note small { margin-top: 2px; color: #8a9296; font-size: 8px; line-height: 1.3; }
.tplex-product-editor-footer { min-height: 72px; padding: 12px 24px; border-top: 1px solid #e0e4e6; background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tplex-product-editor-footer > div { display: flex; align-items: center; gap: 10px; }
.tplex-product-editor-footer > div:first-child > i { width: 29px; height: 29px; border-radius: 50%; background: #e9f7ef; color: #078047; display: grid; place-items: center; font-size: 11px; font-style: normal; }
.tplex-product-editor-footer p { margin: 0; display: grid; }
.tplex-product-editor-footer p strong { font-size: 9px; }
.tplex-product-editor-footer p small { margin-top: 2px; color: #8a9296; font-size: 8px; }
.tplex-product-editor-footer button { min-height: 43px; padding: 10px 17px; border-radius: 9px; font-size: 10px; font-weight: 850; }
.tplex-product-editor-cancel { min-width: 100px; border: 1px solid #d8dddf !important; background: #fff; color: #545c60; }
.tplex-product-editor-save { min-width: 175px; background: var(--tplex-orange); color: #fff; }
.tplex-product-editor-save span { margin-left: 10px; }
.tplex-product-editor-save:disabled { opacity: .55; cursor: wait; }

@media (max-width: 980px) {
  .tplex-product-editor-body { grid-template-columns: minmax(530px, 1.35fr) minmax(285px, .7fr); }
  .tplex-product-editor-data { padding: 24px; }
  .tplex-product-editor-visual { padding: 24px; }
}

@media (max-width: 820px) {
  .tplex-product-editor-body { grid-template-columns: 1fr; }
  .tplex-product-editor-data { border-right: 0; border-bottom: 1px solid #e1e5e7; }
  .tplex-product-editor-visual { display: grid; grid-template-columns: minmax(200px, .8fr) minmax(240px, 1fr); gap: 14px 18px; }
  .tplex-product-editor-visual > header { grid-column: 1 / -1; margin-bottom: 0; }
  .tplex-product-editor-photo { grid-row: span 3; min-height: 220px; }
  .tplex-product-editor-photo img { height: 220px; }
  .tplex-product-editor-summary { margin-top: 0; align-content: end; }
  .tplex-product-editor-upload, .tplex-product-editor-note { margin-top: 0; }
}

@media (max-width: 600px) {
  .tplex-product-editor-backdrop { padding: 0; align-items: end; }
  .tplex-product-editor-app { width: 100%; max-height: 96vh; border-radius: 18px 18px 0 0; }
  .tplex-product-editor-head { min-height: 74px; padding: 15px 18px; }
  .tplex-product-editor-head h2 { font-size: 22px; }
  .tplex-product-editor-head > div > div > b { display: none; }
  .tplex-product-editor-data, .tplex-product-editor-visual { padding: 21px 18px; }
  .tplex-product-editor-fields { grid-template-columns: 1fr; gap: 11px; }
  .tplex-product-editor-fields .span-12, .tplex-product-editor-fields .span-6, .tplex-product-editor-fields .span-4, .tplex-product-editor-fields .span-3 { grid-column: 1 / -1; }
  .tplex-product-editor-app .tplex-product-editor-fields > label > input,
  .tplex-product-editor-app .tplex-product-editor-fields > label > select { height: 54px; min-height: 54px; padding: 23px 13px 7px; font-size: 12px; }
  .tplex-product-editor-app .tplex-product-editor-fields > label > span { left: 13px; top: 8px; font-size: 8px; }
  .tplex-product-editor-visual { display: block; }
  .tplex-product-editor-photo { min-height: 210px; }
  .tplex-product-editor-photo img { height: 210px; }
  .tplex-product-editor-summary, .tplex-product-editor-upload, .tplex-product-editor-note { margin-top: 12px; }
  .tplex-product-editor-footer { align-items: stretch; flex-direction: column; }
  .tplex-product-editor-footer > div:first-child { display: none; }
  .tplex-product-editor-footer > div:last-child { display: grid; grid-template-columns: .8fr 1.2fr; }
  .tplex-product-editor-footer button { min-width: 0; }
}

/* Editor premium de estoque */
.tplex-stock-editor-backdrop { padding: 22px clamp(22px, 4vw, 64px); background: rgba(7, 10, 11, .76); }
.tplex-stock-editor-app { width: min(1100px, 100%); max-height: calc(100vh - 44px); overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 18px; background: #fff; box-shadow: 0 32px 100px rgba(4, 8, 10, .3); display: grid; grid-template-rows: auto minmax(0, 1fr); }
.tplex-stock-editor-head { min-height: 86px; padding: 18px 26px 17px 30px; border-bottom: 1px solid #e3e7e9; background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.tplex-stock-editor-head > div > div { margin-top: 5px; display: flex; align-items: center; gap: 13px; }
.tplex-stock-editor-head h2 { margin: 0; color: #171b1d; font-size: 27px; line-height: 1; letter-spacing: -.035em; }
.tplex-stock-editor-head > div > div > b { min-height: 27px; padding: 5px 10px; border: 1px solid #bde1ca; border-radius: 8px; background: #edf9f2; color: #08713e; display: inline-flex; align-items: center; gap: 7px; font-size: 9px; font-weight: 850; }
.tplex-stock-editor-head > div > div > b i { width: 7px; height: 7px; border-radius: 50%; background: #20a760; }
.tplex-stock-editor-head > div > div > b.empty { border-color: #edcaca; background: #fff1f1; color: #9a2b2b; }
.tplex-stock-editor-head > div > div > b.empty i { background: #e94e4e; }
.tplex-stock-editor-head > button { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; background: #f2f4f4; color: #343a3d; font-size: 22px; line-height: 1; }
.tplex-stock-editor-head > button:hover { background: #171b1d; color: #fff; }
.tplex-stock-editor-form { min-height: 0; overflow: hidden; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.tplex-stock-editor-body { min-height: 0; overflow: auto; display: grid; grid-template-columns: minmax(330px, .78fr) minmax(560px, 1.22fr); }
.tplex-stock-editor-product { min-width: 0; padding: 27px 29px 24px; border-right: 1px solid #e1e5e7; background: #fafbfb; }
.tplex-stock-editor-product > header { margin-bottom: 16px; }
.tplex-stock-editor-product > header h3 { margin: 0 0 5px; color: #1a1e21; font-size: 18px; letter-spacing: -.025em; }
.tplex-stock-editor-product > header p { margin: 0; color: #7f878b; font-size: 9px; line-height: 1.45; }
.tplex-stock-editor-photo { position: relative; min-height: 218px; overflow: hidden; padding: 23px; border-radius: 14px; background: linear-gradient(145deg, #0d1112, #252b2e); color: #fff; display: flex; align-items: flex-end; box-shadow: 0 16px 34px rgba(12,16,18,.1); }
.tplex-stock-editor-photo::before { content: ""; position: absolute; width: 205px; height: 205px; right: -103px; top: -105px; border: 36px solid rgba(255,92,0,.15); border-radius: 50%; }
.tplex-stock-editor-photo::after { content: ""; position: absolute; left: 23px; bottom: 0; width: 54px; height: 4px; border-radius: 4px 4px 0 0; background: var(--tplex-orange); }
.tplex-stock-editor-photo > div { position: relative; z-index: 1; display: grid; }
.tplex-stock-editor-photo > div small { color: var(--tplex-orange); font-size: 8px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.tplex-stock-editor-photo > div strong { margin-top: 8px; font-size: 29px; line-height: 1; letter-spacing: -.035em; }
.tplex-stock-editor-photo > div span { margin-top: 8px; color: #a2aaae; font-size: 10px; }
.tplex-stock-editor-photo.has-image { padding: 0; align-items: stretch; justify-content: stretch; background: #eef1f2; }
.tplex-stock-editor-photo.has-image::before, .tplex-stock-editor-photo.has-image::after { display: none; }
.tplex-stock-editor-photo img { width: 100%; height: 218px; object-fit: contain; display: block; }
.tplex-stock-editor-product-copy { margin-top: 15px; display: grid; gap: 5px; }
.tplex-stock-editor-product-copy small { color: var(--tplex-orange); font-size: 8px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.tplex-stock-editor-product-copy strong { overflow: hidden; color: #202527; font-size: 15px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.tplex-stock-editor-product-copy span { overflow: hidden; color: #858d91; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.tplex-stock-editor-product dl { margin: 17px 0 0; padding: 14px 0 0; border-top: 1px solid #e1e5e7; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tplex-stock-editor-product dl div { min-width: 0; }
.tplex-stock-editor-product dt { color: #8b9397; font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.tplex-stock-editor-product dd { margin: 6px 0 0; overflow: hidden; color: #252a2d; font-size: 11px; font-weight: 760; text-overflow: ellipsis; white-space: nowrap; }
.tplex-stock-editor-data { min-width: 0; padding: 29px 34px 26px; background: #fff; }
.tplex-stock-editor-section > h3 { margin: 0; color: #1a1e21; display: flex; align-items: center; gap: 11px; font-size: 18px; letter-spacing: -.025em; }
.tplex-stock-editor-section > h3::before { content: "01"; width: 31px; height: 31px; flex: 0 0 31px; border-radius: 9px; background: #171b1d; color: var(--tplex-orange); display: grid; place-items: center; font-size: 8px; font-weight: 900; letter-spacing: 0; }
.tplex-stock-editor-section > p { margin: 9px 0 18px 42px; color: #7f878b; font-size: 9px; line-height: 1.45; }
.tplex-stock-editor-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tplex-stock-editor-modes > label { position: relative; min-width: 0; margin: 0; cursor: pointer; }
.tplex-stock-editor-modes input { position: absolute; width: 1px !important; height: 1px; min-height: 0 !important; opacity: 0; pointer-events: none; }
.tplex-stock-editor-modes label > span { min-height: 75px; margin: 0; padding: 15px 16px 14px 45px; border: 1px solid #dfe4e6; border-radius: 12px; background: #fafbfb; display: grid; align-content: center; gap: 5px; transition: border .18s ease, background .18s ease, box-shadow .18s ease; }
.tplex-stock-editor-modes label > span::before { content: ""; position: absolute; left: 17px; top: 27px; width: 15px; height: 15px; border: 2px solid #bbc3c7; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 3px #fff; }
.tplex-stock-editor-modes label > span b { color: #262b2e; font-size: 11px; }
.tplex-stock-editor-modes label > span small { color: #838b8f; font-size: 8px; line-height: 1.35; }
.tplex-stock-editor-modes input:checked + span { border-color: var(--tplex-orange); background: #fff8f4; box-shadow: 0 0 0 3px rgba(255,92,0,.07); }
.tplex-stock-editor-modes input:checked + span::before { border-color: var(--tplex-orange); background: var(--tplex-orange); }
.tplex-stock-editor-fields { margin-top: 15px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tplex-stock-editor-fields > label { position: relative; min-width: 0; margin: 0; display: block; }
.tplex-stock-editor-fields label > span { position: absolute; z-index: 2; left: 16px; top: 10px; max-width: calc(100% - 32px); margin: 0; overflow: hidden; color: #687176; font-size: 10px; font-weight: 850; line-height: 1.15; white-space: nowrap; text-overflow: ellipsis; pointer-events: none; }
.tplex-stock-editor-fields input { width: 100%; height: 58px; min-height: 58px; margin: 0; padding: 26px 16px 8px; border: 0; border-radius: 11px; background: #f1f3f4; color: #1d2225; font-size: 13px; font-weight: 720; box-shadow: inset 0 0 0 1px transparent; }
.tplex-stock-editor-fields input[readonly] { background: #eceff0; color: #737b7f; cursor: not-allowed; }
.tplex-stock-editor-fields input:not([readonly]):hover { background: #eceff0; }
.tplex-stock-editor-fields input:not([readonly]):focus { background: #fff; box-shadow: inset 0 0 0 2px var(--tplex-orange), 0 0 0 4px rgba(255,92,0,.08); }
.tplex-stock-projection { margin-top: 16px; padding: 18px; border: 1px solid #e0e4e6; border-radius: 13px; background: #f7f8f8; display: grid; grid-template-columns: 1fr auto 1fr auto 1.1fr; align-items: center; gap: 13px; }
.tplex-stock-projection > div { min-width: 0; text-align: center; display: grid; }
.tplex-stock-projection > div > span { color: #899195; font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.tplex-stock-projection > div > strong { margin-top: 6px; color: #252a2d; font-size: 24px; line-height: 1; }
.tplex-stock-projection > div > small { margin-top: 4px; color: #969da1; font-size: 7px; }
.tplex-stock-projection > b { color: #9aa1a5; font-size: 20px; }
.tplex-stock-projection > .total { min-height: 72px; padding: 11px; border-radius: 10px; background: #171b1d; }
.tplex-stock-projection > .total > span { color: #aab1b4; }
.tplex-stock-projection > .total > strong { color: #fff; }
.tplex-stock-projection > .total > small { color: var(--tplex-orange); }
.tplex-stock-editor-guidance { margin-top: 15px; padding: 13px 14px; border: 1px solid #dce8e1; border-radius: 11px; background: #f3faf6; display: flex; align-items: center; gap: 11px; }
.tplex-stock-editor-guidance > i { width: 29px; height: 29px; flex: 0 0 29px; border-radius: 50%; background: #def2e6; color: #16804d; display: grid; place-items: center; font-size: 11px; font-style: normal; }
.tplex-stock-editor-guidance p { margin: 0; display: grid; }
.tplex-stock-editor-guidance strong { color: #286242; font-size: 9px; }
.tplex-stock-editor-guidance small { margin-top: 3px; color: #6e8276; font-size: 8px; line-height: 1.35; }
.tplex-stock-editor-data .tplex-error { margin: 15px 0 0; }
.tplex-stock-editor-footer { min-height: 72px; padding: 12px 24px; border-top: 1px solid #e0e4e6; background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tplex-stock-editor-footer > div { display: flex; align-items: center; gap: 10px; }
.tplex-stock-editor-footer > div:first-child > i { width: 29px; height: 29px; border-radius: 50%; background: #e9f7ef; color: #078047; display: grid; place-items: center; font-size: 11px; font-style: normal; }
.tplex-stock-editor-footer p { margin: 0; display: grid; }
.tplex-stock-editor-footer p strong { font-size: 9px; }
.tplex-stock-editor-footer p small { margin-top: 2px; color: #8a9296; font-size: 8px; }
.tplex-stock-editor-footer button { min-height: 43px; padding: 10px 17px; border-radius: 9px; font-size: 10px; font-weight: 850; }
.tplex-stock-editor-cancel { min-width: 100px; border: 1px solid #d8dddf !important; background: #fff; color: #545c60; }
.tplex-stock-editor-save { min-width: 165px; background: var(--tplex-orange); color: #fff; }
.tplex-stock-editor-save span { margin-left: 10px; }
.tplex-stock-editor-save:disabled { opacity: .55; cursor: wait; }

@media (max-width: 900px) {
  .tplex-stock-editor-body { grid-template-columns: minmax(290px, .72fr) minmax(470px, 1.28fr); }
  .tplex-stock-editor-product, .tplex-stock-editor-data { padding: 23px; }
}

@media (max-width: 760px) {
  .tplex-stock-editor-backdrop { padding: 0; align-items: end; }
  .tplex-stock-editor-app { width: 100%; max-height: 96vh; border-radius: 18px 18px 0 0; }
  .tplex-stock-editor-head { min-height: 74px; padding: 15px 18px; }
  .tplex-stock-editor-head h2 { font-size: 22px; }
  .tplex-stock-editor-head > div > div > b { display: none; }
  .tplex-stock-editor-body { grid-template-columns: 1fr; }
  .tplex-stock-editor-product { border-right: 0; border-bottom: 1px solid #e1e5e7; }
  .tplex-stock-editor-photo { min-height: 190px; }
  .tplex-stock-editor-photo img { height: 190px; }
  .tplex-stock-editor-footer { align-items: stretch; flex-direction: column; }
  .tplex-stock-editor-footer > div:first-child { display: none; }
  .tplex-stock-editor-footer > div:last-child { display: grid; grid-template-columns: .8fr 1.2fr; }
  .tplex-stock-editor-footer button { min-width: 0; }
}

@media (max-width: 540px) {
  .tplex-stock-editor-product, .tplex-stock-editor-data { padding: 20px 17px; }
  .tplex-stock-editor-modes, .tplex-stock-editor-fields { grid-template-columns: 1fr; }
  .tplex-stock-editor-modes label > span { min-height: 65px; }
  .tplex-stock-projection { padding: 14px 10px; gap: 7px; }
  .tplex-stock-projection > div > strong { font-size: 18px; }
  .tplex-stock-projection > b { font-size: 15px; }
  .tplex-stock-projection > .total { min-height: 65px; padding: 10px 6px; }
}

@media (max-width: 1180px) {
  .tplex-representatives-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .tplex-representatives-grid { grid-template-columns: 1fr; }
  .tplex-rep-editor-layout { grid-template-columns: 1fr; }
  .tplex-rep-editor-visual { border-right: 0; border-bottom: 1px solid #e0e4e6; display: grid; grid-template-columns: 1fr 1fr; }
  .tplex-rep-editor-preview { min-height: 220px; }
}

.tplex-table-card { overflow: hidden; background: #fff; border: 1px solid #e0e4e6; border-radius: 14px; }
.tplex-table-row { display: grid; align-items: center; min-height: 66px; padding: 10px 16px; border-top: 1px solid #edf0f1; gap: 14px; font-size: 12px; }
.tplex-table-row:first-child { border-top: 0; }
.tplex-table-row.header { min-height: 40px; background: #161a1c; color: #fff; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.tplex-product-row { grid-template-columns: 2.1fr .7fr .7fr .5fr .65fr auto; }
.tplex-product-main { display: flex; align-items: center; gap: 11px; min-width: 0; }
.tplex-product-thumb { width: 43px; height: 43px; border-radius: 9px; background: #f0f2f3; object-fit: cover; display: grid; place-items: center; flex: 0 0 auto; font-weight: 900; color: var(--tplex-orange); }
.tplex-product-main p { margin: 0; min-width: 0; display: grid; }
.tplex-product-main b { color: var(--tplex-orange); font-size: 9px; }
.tplex-product-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tplex-product-main small { color: #8c9497; font-size: 9px; }
.tplex-stock-list { display: grid; gap: 10px; }
.tplex-stock-item { display: grid; grid-template-columns: minmax(280px, 1.5fr) minmax(120px, .45fr) minmax(105px, .38fr) auto; gap: 18px; align-items: center; background: #fff; border: 1px solid #e0e4e6; border-radius: 13px; padding: 14px; }
.tplex-stock-current span, .tplex-stock-current small { display: block; color: #838b8f; font-size: 9px; }
.tplex-stock-current strong { font-size: 25px; }
.tplex-stock-availability { min-height: 32px; padding: 6px 10px; border: 1px solid #dce3df; border-radius: 999px; background: #f5f8f6; color: #47705a; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 9px; font-weight: 850; white-space: nowrap; }
.tplex-stock-availability i { width: 7px; height: 7px; border-radius: 50%; background: #24aa66; box-shadow: 0 0 0 3px rgba(36,170,102,.11); }
.tplex-stock-availability.empty { border-color: #ead7d7; background: #fff6f6; color: #9b4b4b; }
.tplex-stock-availability.empty i { background: #e45959; box-shadow: 0 0 0 3px rgba(228,89,89,.1); }
.tplex-stock-edit { min-width: 145px; min-height: 42px; padding: 9px 13px; border-radius: 10px; background: #171b1d; color: #fff; display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 10px; font-weight: 850; }
.tplex-stock-edit i { color: var(--tplex-orange); font-size: 15px; font-style: normal; }
.tplex-stock-edit:hover { background: #242a2d; }
.tplex-filterbar { display: grid; grid-template-columns: 240px 1fr auto; gap: 12px; align-items: end; margin-bottom: 14px; }
.tplex-commercial-filterbar { padding: 13px 15px; border: 1px solid #e0e4e6; border-radius: 13px; background: #f7f8f8; }
.tplex-commercial-count { min-width: 88px; min-height: 43px; display: flex; align-items: baseline; justify-content: center; gap: 6px; padding: 9px 13px; border-radius: 10px; background: #171b1d; color: #fff; }
.tplex-commercial-count strong { color: var(--tplex-orange); font-size: 19px; }
.tplex-commercial-count span { color: #aab1b4; font-size: 9px; font-weight: 800; }
.tplex-commercial-register { overflow: hidden; border: 1px solid #dde2e4; border-radius: 16px; background: #fff; box-shadow: 0 12px 34px rgba(15,20,22,.045); }
.tplex-commercial-register-head,
.tplex-commercial-register-row { display: grid; grid-template-columns: minmax(215px,1.25fr) minmax(125px,.68fr) minmax(130px,.72fr) minmax(108px,.58fr) minmax(190px,.94fr) minmax(235px,1.15fr); gap: 12px; align-items: center; }
.tplex-commercial-register-head { min-height: 42px; padding: 0 16px; background: #121617; color: #aab1b4; font-size: 9px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.tplex-commercial-register-body { display: grid; }
.tplex-commercial-register-row { min-height: 100px; padding: 13px 16px; border-top: 1px solid #e8ebec; background: #fff; }
.tplex-commercial-register-row:first-child { border-top: 0; }
.tplex-commercial-register-row:hover { background: #fbfcfc; }
.tplex-commercial-document em,
.tplex-commercial-value em { margin-top: 2px; color: #a0472c; font-size: 8px; font-style: normal; font-weight: 900; }
.tplex-commercial-value em { color: #151a1c; font-size: 11px; }
.tplex-commercial-status { min-width: 0; display: grid; gap: 7px; }
.tplex-commercial-status > .tplex-status { justify-self: start; }
.tplex-commercial-status-readonly { align-content: center; }
.tplex-commercial-status-readonly > small { color: #8a9194; font-size: 8px; font-weight: 750; line-height: 1.35; }
.tplex-commercial-status > div { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 4px; align-items: center; }
.tplex-commercial-status select { min-width: 0; min-height: 31px; padding: 4px 23px 4px 7px; border-radius: 7px; background: #fff; font-size: 8px; font-weight: 800; }
.tplex-commercial-save,
.tplex-commercial-delete { min-height: 31px; border-radius: 7px; font-size: 8px; font-weight: 900; }
.tplex-commercial-save { padding: 0 8px; background: #171b1d; color: #fff; }
.tplex-commercial-save:hover { background: #2b3133; }
.tplex-commercial-delete { width: 31px; background: #fff1ee; color: #c94322; font-size: 15px; }
.tplex-commercial-delete:hover { background: #fbded7; }
.tplex-commercial-pdf { min-height: 68px; }
.tplex-media-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.tplex-media-card { display: grid; grid-template-columns: 180px 1fr; gap: 18px; align-items: center; }
.tplex-media-preview { height: 135px; border-radius: 12px; background: #131719; overflow: hidden; display: grid; place-items: center; color: #fff; }
.tplex-media-preview img { width: 100%; height: 100%; object-fit: cover; }
.tplex-auto-greeting-card { margin-top: 16px; display: grid; grid-template-columns: minmax(320px,.8fr) minmax(0,1.2fr); gap: 28px; align-items: center; overflow: hidden; }
.tplex-auto-greeting-preview { min-height: 180px; padding: 28px; border-radius: 14px; background: radial-gradient(circle at 88% 18%, rgba(246,80,13,.24) 0 15%, transparent 16%), #111516; color: #fff; display: flex; flex-direction: column; justify-content: center; }
.tplex-auto-greeting-preview small { color: #f66a31; font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.tplex-auto-greeting-preview strong { margin-top: 15px; font-size: clamp(24px,2.6vw,38px); letter-spacing: -.05em; }
.tplex-auto-greeting-preview em { margin-top: 3px; color: var(--tplex-orange); font-size: 19px; font-weight: 800; font-style: normal; }
.tplex-auto-greeting-title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.tplex-auto-greeting-title span { padding: 6px 9px; border-radius: 99px; background: #edf8f0; color: #287b42; font-size: 8px; font-weight: 900; }
.tplex-auto-greeting-title span b { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: #39ad60; }
.tplex-auto-greeting-title small { color: #9aa1a4; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.tplex-auto-greeting-card h3 { margin: 0 0 7px; font-size: 23px; letter-spacing: -.035em; }
.tplex-auto-greeting-card p { max-width: 650px; line-height: 1.6; }
.tplex-auto-greeting-note { display: inline-block; margin-top: 8px; color: #303638; font-size: 10px; }
.tplex-message-library { margin-top: 16px; padding: 0; overflow: hidden; }
.tplex-message-library-head { padding: 25px 27px 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; border-bottom: 1px solid #e5e8e9; }
.tplex-message-library-head h2 { margin: 7px 0 6px; font-size: 25px; letter-spacing: -.04em; }
.tplex-message-library-head p { max-width: 690px; margin: 0; color: #737b7f; font-size: 11px; line-height: 1.55; }
.tplex-message-library-tools { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.tplex-message-library-tools > span { height: 34px; padding: 0 11px; display: inline-flex; align-items: center; gap: 5px; border-radius: 8px; background: #f1f3f3; color: #70777a; font-size: 8px; font-weight: 850; white-space: nowrap; }
.tplex-message-library-tools > span b { color: #15191b; font-size: 11px; }
.tplex-message-library-tools button { height: 34px; padding: 0 11px; border: 1px solid #dde1e2; border-radius: 8px; background: #fff; color: #545b5e; font-size: 8px; font-weight: 850; }
.tplex-message-library-tools button:hover { border-color: #c8cdcf; background: #f7f8f8; }
.tplex-greetings-form { padding: 20px 27px 0; }
.tplex-greeting-list { margin-top: 12px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; align-items: start; }
.tplex-greeting-item { min-width: 0; overflow: hidden; border: 1px solid #e0e4e5; border-radius: 12px; background: #fff; transition: border-color .18s, box-shadow .18s; }
.tplex-greeting-item[open] { border-color: #f0b38f; box-shadow: 0 8px 24px rgba(55,35,24,.06); }
.tplex-greeting-item.birthday { border-color: #f3c4a9; background: linear-gradient(135deg,#fff 0%,#fff9f5 100%); }
.tplex-greeting-item > summary { min-height: 62px; padding: 10px 12px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 11px; align-items: center; list-style: none; cursor: pointer; user-select: none; }
.tplex-greeting-item > summary::-webkit-details-marker { display: none; }
.tplex-greeting-number { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: #171b1c; color: var(--tplex-orange); font-size: 9px; font-weight: 950; }
.tplex-greeting-item.birthday .tplex-greeting-number { background: var(--tplex-orange); color: #fff; font-size: 13px; }
.tplex-greeting-summary-copy { min-width: 0; display: grid; gap: 4px; }
.tplex-greeting-summary-copy small { color: #9a704f; font-size: 7px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.tplex-greeting-summary-copy strong { overflow: hidden; color: #24292b; font-size: 11px; font-weight: 850; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.tplex-greeting-edit-label { display: inline-flex; align-items: center; gap: 6px; color: #777e81; font-size: 8px; font-weight: 850; }
.tplex-greeting-edit-label i { font-size: 12px; font-style: normal; transition: transform .18s; }
.tplex-greeting-item[open] .tplex-greeting-edit-label i { transform: rotate(180deg); }
.tplex-greeting-editor { padding: 15px; display: grid; grid-template-columns: 1fr; gap: 11px; border-top: 1px solid #e8ebec; background: #fafbfb; }
.tplex-greeting-editor.birthday-fields { grid-template-columns: 1fr 1fr; }
.tplex-greeting-editor.birthday-fields .full { grid-column: 1 / -1; }
.tplex-greeting-editor label { min-width: 0; display: grid; gap: 6px; color: #60686c; font-size: 8px; font-weight: 850; }
.tplex-greeting-editor input,
.tplex-greeting-editor textarea { width: 100%; border: 0; border-radius: 9px; background: #eef1f1; color: #202527; outline: none; box-shadow: inset 0 0 0 1px transparent; font-family: inherit; font-size: 11px; transition: background .18s, box-shadow .18s; }
.tplex-greeting-editor input { height: 48px; padding: 0 13px; }
.tplex-greeting-editor textarea { min-height: 92px; padding: 12px 13px; resize: vertical; line-height: 1.5; }
.tplex-greeting-editor input:focus,
.tplex-greeting-editor textarea:focus { background: #fff; box-shadow: inset 0 0 0 2px var(--tplex-orange),0 0 0 3px rgba(246,80,13,.08); }
.tplex-greeting-editor label > small { color: #92999c; font-size: 7px; font-weight: 650; }
.tplex-greeting-editor label > small b { color: #d45316; }
.tplex-greetings-error { margin: 14px 0 0; }
.tplex-greetings-footer { min-height: 82px; margin: 20px -27px 0; padding: 14px 27px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #e4e7e8; background: #fafbfb; }
.tplex-greetings-footer > div { display: flex; align-items: center; gap: 11px; }
.tplex-greetings-footer > div > i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #eaf7ef; color: #228a50; font-size: 11px; font-style: normal; font-weight: 950; }
.tplex-greetings-footer p,
.tplex-greetings-footer strong,
.tplex-greetings-footer small { display: block; margin: 0; }
.tplex-greetings-footer strong { font-size: 9px; }
.tplex-greetings-footer small { margin-top: 4px; color: #8b9295; font-size: 7px; }
.tplex-save-greetings { min-width: 205px; height: 46px; }
.tplex-promo-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.tplex-promo-card img { height: 180px; width: 100%; object-fit: cover; border-radius: 11px; background: #eceff0; }

/* Portal do representante */
.tplex-rep { min-height: 100vh; background: #f0f2f3; padding-bottom: 80px; }
.tplex-rep-header { min-height: 88px; background: #0b0e0f; color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(18px,4vw,58px); }
.tplex-rep-brand { display: flex; align-items: center; gap: 17px; }
.tplex-rep-brand div { display: grid; }
.tplex-rep-brand strong { font-size: 16px; }
.tplex-rep-brand small { color: #7f888c; font-size: 9px; margin-top: 3px; }
.tplex-rep-header-actions { display: flex; align-items: center; gap: 10px; }
.tplex-rep-main { max-width: 1320px; margin: 0 auto; padding: 32px clamp(16px,4vw,46px); }
.tplex-home-grid { display: grid; grid-template-columns: 1fr .65fr; gap: 18px; align-items: stretch; }
.tplex-home-intro { background: #fff; border-radius: 18px; padding: clamp(28px,5vw,60px); border: 1px solid #e0e4e6; }
.tplex-home-intro.birthday { border-color: #f7c8b5; background: radial-gradient(circle at 91% 12%, rgba(246,80,13,.12) 0 15%, transparent 16%), linear-gradient(135deg,#fff 0%,#fff8f4 100%); }
.tplex-home-intro h1 { font-size: clamp(38px,5vw,65px); line-height: .98; letter-spacing: -.06em; margin: 16px 0; }
.tplex-home-intro h1 em { font-style: normal; color: var(--tplex-orange); }
.tplex-home-intro p { color: #747c80; max-width: 520px; }
.tplex-home-intro .tplex-home-motivation { min-height: 52px; margin: 0; color: #5f686c; font-size: 14px; line-height: 1.65; }
.tplex-home-message-signature { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; color: #9aa1a4; font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.tplex-home-message-signature::before { content: ""; width: 28px; height: 2px; background: var(--tplex-orange); }
.tplex-campaign { border-radius: 18px; overflow: hidden; background: #161a1c; color: #fff; position: relative; min-height: 300px; }
.tplex-campaign img { width: 100%; height: 100%; object-fit: cover; }
.tplex-campaign-empty { height: 100%; min-height: 300px; display: grid; place-items: center; text-align: center; padding: 24px; color: #899195; }
.tplex-catalog-card { position: relative; min-width: 0; overflow: hidden; display: grid; grid-template-rows: auto minmax(250px,1fr) auto auto auto; gap: 11px; padding: 17px; border: 1px solid rgba(255,255,255,.08); border-radius: 20px; background: radial-gradient(circle at 92% 7%,rgba(246,80,13,.28),transparent 29%),radial-gradient(circle at 10% 98%,rgba(246,80,13,.12),transparent 27%),linear-gradient(145deg,#0b0e0f 0%,#171b1d 100%); color: #fff; box-shadow: 0 18px 44px rgba(7,10,11,.14); }
.tplex-catalog-card::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: repeating-linear-gradient(118deg,transparent 0 22px,rgba(255,255,255,.012) 23px 24px); }
.tplex-catalog-card > * { position: relative; z-index: 2; }
.tplex-catalog-backdrop { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; opacity: .08; filter: saturate(.6) contrast(1.12); pointer-events: none; }
.tplex-catalog-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tplex-catalog-card-head .tplex-logo { color: #fff; font-size: 22px; }
.tplex-catalog-card-head > span { display: inline-flex; align-items: center; gap: 7px; min-height: 25px; padding: 0 10px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; color: #ccd1d3; background: rgba(255,255,255,.04); font-size: 7px; font-weight: 900; letter-spacing: .1em; white-space: nowrap; }
.tplex-catalog-card-head > span i { width: 6px; height: 6px; border-radius: 50%; background: #59d584; box-shadow: 0 0 0 3px rgba(89,213,132,.12); }
.tplex-catalog-preview { position: relative; min-width: 0; min-height: 250px; overflow: hidden; display: grid; place-items: center; padding: 19px 20px 14px; border: 1px solid rgba(255,255,255,.09) !important; border-radius: 15px; background: linear-gradient(150deg,rgba(255,255,255,.06),rgba(255,255,255,.018)) !important; color: inherit; cursor: pointer; isolation: isolate; }
.tplex-catalog-preview::before { content: ""; position: absolute; width: 210px; height: 210px; right: -108px; top: -108px; border: 20px solid rgba(246,80,13,.13); border-radius: 50%; }
.tplex-catalog-preview:hover .tplex-catalog-paper { transform: translateY(-3px) scale(1.015); box-shadow: 0 22px 42px rgba(0,0,0,.34); }
.tplex-catalog-preview-label { position: absolute; top: 12px; left: 13px; color: #9fa7aa; font-size: 6px; font-weight: 900; letter-spacing: .12em; }
.tplex-catalog-preview-zoom { position: absolute; right: 13px; bottom: 11px; padding: 5px 8px; border-radius: 999px; color: #fff; background: rgba(10,12,13,.74); font-size: 6px; font-weight: 900; letter-spacing: .05em; backdrop-filter: blur(5px); }
.tplex-catalog-paper { width: min(158px,58%); aspect-ratio: 210 / 297; overflow: hidden; display: grid; grid-template-rows: 13% 31% 1fr 9%; border-radius: 3px; background: #fff; color: #171b1d; box-shadow: 0 17px 35px rgba(0,0,0,.3); text-align: left; transform-origin: center; transition: transform .2s ease,box-shadow .2s ease; }
.tplex-catalog-paper > header { min-width: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; background: #0d0f10; }
.tplex-catalog-paper-logo { display: inline-flex; align-items: baseline; font-size: 10px; font-weight: 950; letter-spacing: -.08em; }
.tplex-catalog-paper-logo b { color: #fff; }
.tplex-catalog-paper-logo i { color: var(--tplex-orange); font-style: italic; }
.tplex-catalog-paper > header small { color: #aeb4b6; font-size: 3.5px; font-weight: 900; letter-spacing: .08em; }
.tplex-catalog-paper-hero { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 9px 10px; background: linear-gradient(135deg,#171b1d,#090b0c); color: #fff; }
.tplex-catalog-paper-hero::after { content: ""; position: absolute; right: -18px; top: -19px; width: 58px; height: 58px; border: 9px solid var(--tplex-orange); border-radius: 50%; opacity: .92; }
.tplex-catalog-paper-hero span { position: relative; z-index: 1; color: var(--tplex-orange); font-size: 3.4px; font-weight: 900; letter-spacing: .11em; }
.tplex-catalog-paper-hero strong { position: relative; z-index: 1; margin-top: 5px; color: #fff; font-size: 9px; line-height: 1.03; letter-spacing: -.045em; }
.tplex-catalog-paper-hero p { position: relative; z-index: 1; max-width: 104px; margin: 5px 0 0; color: #aeb4b6; font-size: 3.8px; line-height: 1.35; }
.tplex-catalog-paper-list { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 4px; padding: 6px; background: #fff; }
.tplex-catalog-paper-list article { min-width: 0; display: grid; grid-template-columns: 16px minmax(0,1fr); gap: 4px; align-items: start; padding: 4px; border: 1px solid #e5e7e8; border-radius: 3px; background: #fafbfb; }
.tplex-catalog-paper-list article > i { width: 16px; height: 16px; display: grid; place-items: center; border-radius: 3px; background: #15191b; color: #fff; font-size: 4px; font-style: normal; font-weight: 900; }
.tplex-catalog-paper-list article:nth-child(even) > i { background: var(--tplex-orange); }
.tplex-catalog-paper-list article div { min-width: 0; display: grid; align-content: start; }
.tplex-catalog-paper-list article small { color: var(--tplex-orange); font-size: 3px; font-weight: 900; }
.tplex-catalog-paper-list article strong { overflow: hidden; color: #202426; font-size: 4.5px; line-height: 1.15; max-height: 11px; }
.tplex-catalog-paper-list article span { overflow: hidden; margin-top: 2px; color: #8b9295; font-size: 3.2px; line-height: 1.2; max-height: 8px; }
.tplex-catalog-paper > footer { display: flex; align-items: center; justify-content: space-between; padding: 0 8px; border-top: 1px solid #eceeef; color: #7f878a; font-size: 3.5px; }
.tplex-catalog-paper > footer b { color: #202426; font-size: 4px; }
.tplex-catalog-document { display: grid; grid-template-columns: 45px minmax(0,1fr); gap: 12px; align-items: center; }
.tplex-catalog-file { position: relative; width: 43px; height: 52px; display: grid; place-items: end center; padding-bottom: 8px; border-radius: 6px 6px 7px 7px; background: #f5f6f6; color: #24292b; font-style: normal; box-shadow: 0 4px 13px rgba(0,0,0,.18); }
.tplex-catalog-file::after { content: ""; position: absolute; right: 0; top: 0; border-left: 11px solid transparent; border-bottom: 11px solid #ffd7c5; }
.tplex-catalog-file::before { content: ""; position: absolute; left: 10px; right: 10px; bottom: 21px; height: 2px; background: var(--tplex-orange); box-shadow: 0 5px #d7dcde; }
.tplex-catalog-file b { font-size: 9px; letter-spacing: .12em; }
.tplex-catalog-document div { min-width: 0; }
.tplex-catalog-document small,.tplex-catalog-document strong,.tplex-catalog-document p { display: block; }
.tplex-catalog-document small { color: var(--tplex-orange); font-size: 6px; font-weight: 900; letter-spacing: .11em; }
.tplex-catalog-document strong { margin-top: 2px; color: #fff; font-size: 17px; letter-spacing: -.03em; }
.tplex-catalog-document p { margin: 3px 0 0; color: #aeb4b6; font-size: 8px; line-height: 1.35; }
.tplex-catalog-fileline { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #8e9699; font-size: 6px; }
.tplex-catalog-fileline span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tplex-catalog-fileline b { color: #bfc5c7; font-size: 5.5px; letter-spacing: .05em; white-space: nowrap; }
.tplex-catalog-actions { display: grid; grid-template-columns: .78fr 1.22fr; gap: 9px; }
.tplex-catalog-actions button { min-height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 13px; border: 1px solid rgba(255,255,255,.14) !important; border-radius: 9px; background: transparent !important; color: #fff; font-size: 7px; font-weight: 900; letter-spacing: .05em; }
.tplex-catalog-actions button:last-child { border-color: var(--tplex-orange) !important; background: var(--tplex-orange) !important; }
.tplex-catalog-actions button:hover { filter: brightness(1.08); }
.tplex-action-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 16px; }
.tplex-action-card { text-align: left; background: #fff; border: 1px solid #dfe3e5 !important; border-radius: 16px; padding: 22px; min-height: 220px; display: flex; flex-direction: column; }
.tplex-action-card.dark { background: #15191b; color: #fff; border-color: #15191b !important; }
.tplex-action-card.orange { background: var(--tplex-orange); color: #fff; border-color: var(--tplex-orange) !important; }
.tplex-action-card > span { color: #939a9e; font-size: 10px; font-weight: 900; }
.tplex-action-card h2 { margin: auto 0 8px; font-size: 27px; letter-spacing: -.04em; }
.tplex-action-card p { margin: 0 0 18px; color: inherit; opacity: .68; font-size: 12px; line-height: 1.5; }
.tplex-action-card b { font-size: 10px; letter-spacing: .06em; }
.tplex-screen { background: #fff; border: 1px solid #dfe3e5; border-radius: 17px; overflow: hidden; min-height: calc(100vh - 180px); }
.tplex-screen-head { background: #121618; color: #fff; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.tplex-screen-head h1 { margin: 2px 0 0; font-size: 22px; }
.tplex-screen-head small { color: #929a9e; }
.tplex-screen-body { padding: 24px; }
.tplex-stepbar { display: grid; grid-template-columns: repeat(4,1fr); background: #0f1314; color: #8f979b; }
.tplex-stepbar button { min-height: 58px; background: transparent; color: inherit; border-right: 1px solid rgba(255,255,255,.08); font-size: 11px; font-weight: 800; }
.tplex-stepbar button.active { color: #fff; box-shadow: inset 0 -3px var(--tplex-orange); }
.tplex-form-section { border: 1px solid #e2e6e8; border-radius: 14px; padding: 20px; margin-bottom: 14px; }
.tplex-form-section h2 { margin: 0 0 18px; font-size: 19px; }
.tplex-form-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 13px; }
.tplex-col-12 { grid-column: span 12; }
.tplex-col-8 { grid-column: span 8; }
.tplex-col-6 { grid-column: span 6; }
.tplex-col-4 { grid-column: span 4; }
.tplex-col-3 { grid-column: span 3; }
.tplex-col-2 { grid-column: span 2; }
.tplex-form-actions { display: flex; justify-content: space-between; gap: 10px; padding-top: 8px; }
.tplex-form-actions > div { display: flex; gap: 8px; }
.tplex-choice { display: flex; gap: 8px; flex-wrap: wrap; }
.tplex-choice label { display: flex; align-items: center; gap: 7px; background: #f5f6f6; border: 1px solid #dfe3e5; border-radius: 10px; min-height: 44px; padding: 8px 12px; }
.tplex-choice input { width: auto; min-height: 0; padding: 0; }
.tplex-contact-row, .tplex-reference-row { display: grid; grid-template-columns: 115px 1fr 1fr 1fr 1.2fr; gap: 10px; align-items: end; padding: 12px; border-radius: 12px; background: #f7f8f8; margin-bottom: 9px; }
.tplex-contact-row > strong, .tplex-reference-row > strong { align-self: center; font-size: 11px; color: #555d61; }
.tplex-quote-layout { display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 15px; }
.tplex-quote-client { background: #111516; color: #fff; border-radius: 14px; padding: 16px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.tplex-quote-client label > span { color: #aab1b5; }
.tplex-quote-add { display: grid; grid-template-columns: 130px 1fr 100px 110px; gap: 10px; align-items: end; padding: 15px; background: #f5f6f6; border-radius: 13px; margin-top: 12px; }
.tplex-quote-items { margin-top: 12px; border: 1px solid #e0e4e6; border-radius: 13px; overflow: hidden; }
.tplex-quote-row { display: grid; grid-template-columns: 85px 1fr 70px 75px 90px 90px 36px; gap: 8px; align-items: center; padding: 11px 12px; border-top: 1px solid #eef0f1; font-size: 11px; }
.tplex-quote-row.header { background: #15191b; color: #fff; border: 0; min-height: 36px; font-size: 9px; font-weight: 900; }
.tplex-quote-aside { display: grid; gap: 12px; align-content: start; }
.tplex-product-photo, .tplex-folder-photo { background: #fff; border: 1px solid #e0e4e6; border-radius: 14px; padding: 13px; }
.tplex-product-photo figure, .tplex-folder-photo figure { height: 210px; margin: 0 0 12px; border-radius: 10px; background: #f1f3f4; overflow: hidden; display: grid; place-items: center; color: #8b9397; text-align: center; }
.tplex-product-photo img, .tplex-folder-photo img { width: 100%; height: 100%; object-fit: cover; }
.tplex-totals { position: sticky; bottom: 0; background: #fff; border-top: 1px solid #dfe3e5; padding: 12px 22px; display: flex; align-items: center; justify-content: flex-end; gap: 13px; }
.tplex-total-box { min-width: 150px; display: grid; }
.tplex-total-box span { color: #8b9296; font-size: 9px; font-weight: 850; }
.tplex-total-box strong { font-size: 19px; }
.tplex-order-list { display: grid; gap: 9px; }
.tplex-order-row { display: grid; grid-template-columns: 1.4fr .75fr .65fr auto; gap: 14px; align-items: center; padding: 14px; border: 1px solid #e0e4e6; border-radius: 13px; background: #fff; }
.tplex-order-row p { margin: 0; display: grid; }
.tplex-order-row small { color: #868e92; margin-top: 3px; }
.tplex-order-actions { display: flex; gap: 7px; }

/* Fichas cadastrais e carteira do representante */
.tplex-customer-register { overflow: hidden; background: #fff; border: 1px solid #dde2e4; border-radius: 16px; box-shadow: 0 12px 34px rgba(15,20,22,.045); }
.tplex-customer-register-head, .tplex-customer-register-row { display: grid; grid-template-columns: minmax(215px,1.45fr) minmax(125px,.78fr) minmax(135px,.8fr) minmax(92px,.55fr) minmax(235px,1.25fr); gap: 12px; align-items: center; }
.tplex-customer-register-head { min-height: 42px; padding: 0 16px; background: #121617; color: #aab1b4; font-size: 9px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.tplex-customer-register-body { display: grid; }
.tplex-customer-register-row { min-height: 92px; padding: 13px 16px; border-top: 1px solid #e8ebec; background: #fff; }
.tplex-customer-register-row:first-child { border-top: 0; }
.tplex-customer-register-row:hover { background: #fbfcfc; }
.tplex-customer-identity { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 0; text-align: left; background: transparent; }
.tplex-customer-identity:hover strong { color: var(--tplex-orange); }
.tplex-customer-identity > span:last-child { min-width: 0; display: grid; }
.tplex-customer-identity strong { overflow: hidden; color: #171b1d; font-size: 13px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; transition: color .18s ease; }
.tplex-customer-identity small { overflow: hidden; margin-top: 3px; color: #737c80; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.tplex-customer-identity em { margin-top: 4px; color: #a0472c; font-size: 8px; font-style: normal; font-weight: 900; letter-spacing: .04em; }
.tplex-customer-initial { width: 42px; height: 42px; flex: 0 0 42px; display: grid !important; place-items: center; overflow: visible !important; border-radius: 11px; background: #171b1d; color: #fff; font-size: 11px; font-weight: 900; }
.tplex-customer-register-meta { min-width: 0; display: grid; gap: 3px; }
.tplex-customer-register-meta small { color: #92999c; font-size: 8px; font-weight: 850; letter-spacing: .045em; text-transform: uppercase; }
.tplex-customer-register-meta strong { overflow: hidden; color: #343a3d; font-size: 10px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.tplex-customer-pdf { min-width: 0; min-height: 66px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 11px; align-items: center; padding: 8px 10px; border: 1px solid #e2e6e8 !important; border-radius: 11px; background: #f7f8f8; text-align: left; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.tplex-customer-pdf:hover { transform: translateY(-1px); border-color: #ff5a2b !important; background: #fff8f5; }
.tplex-customer-pdf > span { min-width: 0; display: grid; gap: 2px; }
.tplex-customer-pdf > span small { color: #ef4c21; font-size: 7px; font-weight: 950; letter-spacing: .08em; }
.tplex-customer-pdf > span strong { overflow: hidden; color: #202527; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.tplex-customer-pdf > span em { color: #7d8589; font-size: 8px; font-style: normal; }
.tplex-customer-pdf > b { color: #c43d1a; font-size: 8px; white-space: nowrap; }
.tplex-admin-customer-register .tplex-customer-pdf { min-height: 72px; border-color: #f1c5b8 !important; background: linear-gradient(135deg,#fff 0%,#fff8f5 100%); box-shadow: 0 7px 18px rgba(91,43,27,.07); }
.tplex-admin-customer-register .tplex-customer-pdf:hover { border-color: #ef4d21 !important; box-shadow: 0 10px 24px rgba(239,77,33,.13); }
.tplex-admin-customer-register .tplex-customer-pdf > span small { font-size: 7.5px; }
.tplex-admin-customer-register .tplex-customer-pdf > span strong { font-size: 9.5px; }
.tplex-admin-customer-register .tplex-customer-pdf > b { padding: 6px 7px; border-radius: 6px; background: #ef4d21; color: #fff; font-size: 7.5px; }
.tplex-pdf-sheet { position: relative; width: 38px; height: 50px; display: block; flex: 0 0 38px; overflow: hidden; border: 1px solid #ccd2d5; border-radius: 5px; background: #fff; box-shadow: 0 5px 12px rgba(20,26,28,.1); }
.tplex-pdf-sheet::before { content: ""; position: absolute; top: -1px; right: -1px; width: 11px; height: 11px; border-left: 1px solid #ccd2d5; border-bottom: 1px solid #ccd2d5; background: linear-gradient(225deg,#f3f5f5 48%,#fff 50%); }
.tplex-pdf-sheet::after { content: "PDF"; position: absolute; left: 6px; bottom: 5px; color: #d83d1a; font-size: 6px; font-weight: 950; letter-spacing: .06em; }
.tplex-pdf-sheet span { position: absolute; left: 7px; right: 7px; height: 2px; border-radius: 2px; background: #ed4a24; }
.tplex-pdf-sheet span:nth-child(1) { top: 15px; }
.tplex-pdf-sheet span:nth-child(2) { top: 21px; right: 11px; }
.tplex-pdf-sheet span:nth-child(3) { top: 27px; }
.tplex-customer-register-empty { min-height: 160px; display: flex; align-items: center; justify-content: center; gap: 17px; padding: 30px; text-align: left; }
.tplex-customer-register-empty[hidden] { display: none; }
.tplex-customer-register-empty strong { display: block; color: #24292b; font-size: 15px; }
.tplex-customer-register-empty p { max-width: 440px; margin: 5px 0 0; color: #7b8387; font-size: 11px; line-height: 1.5; }
.tplex-action-card-clients > div { display: grid; grid-template-columns: 1.2fr .8fr; gap: 7px; }
.tplex-action-card-clients > div button { min-height: 38px; border-radius: 9px; background: var(--tplex-orange); color: #fff; font-size: 9px; font-weight: 900; }
.tplex-action-card-clients > div button:last-child { border: 1px solid #495054; background: transparent; }
.tplex-my-customers { min-height: calc(100vh - 180px); }
.tplex-my-customers-head { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 26px; background: #121617; color: #fff; }
.tplex-my-customers-head h1 { margin: 4px 0 3px; font-size: 25px; letter-spacing: -.035em; }
.tplex-my-customers-head p { margin: 0; color: #939b9f; font-size: 11px; }
.tplex-my-customers-head > div:last-child { display: flex; gap: 8px; }
.tplex-my-customers-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 18px 22px; border-bottom: 1px solid #e1e5e7; background: #f6f7f7; }
.tplex-my-customers-toolbar label { width: min(560px,70%); display: grid; gap: 6px; }
.tplex-my-customers-toolbar label span { color: #626a6e; font-size: 9px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.tplex-my-customers-toolbar input { min-height: 44px; background: #fff; }
.tplex-my-customers-toolbar > div { display: flex; align-items: baseline; gap: 7px; color: #7d8589; }
.tplex-my-customers-toolbar > div strong { color: #ef4d21; font-size: 22px; }
.tplex-my-customers-toolbar > div span { font-size: 10px; }
.tplex-customer-register.representative { border: 0; border-radius: 0; box-shadow: none; }
.tplex-customer-register.representative .tplex-customer-register-head,
.tplex-customer-register.representative .tplex-customer-register-row { grid-template-columns: minmax(205px,1.3fr) minmax(115px,.68fr) minmax(115px,.68fr) minmax(86px,.46fr) minmax(205px,1.1fr) minmax(118px,.62fr); }
.tplex-customer-pdf.compact { min-height: 62px; }
.tplex-use-customer { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px; border: 1px solid #d9dddf !important; border-radius: 9px; background: #fff; color: #202426; font-size: 9px; font-weight: 850; }
.tplex-use-customer span { color: #ef4d21; font-size: 14px; }
.tplex-use-customer:hover { border-color: #ef4d21 !important; color: #c53a16; }
.classic-sales-field input[type="hidden"] { display: none; }

/* Modais e mensagens */
.tplex-modal-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(8,11,13,.72); display: grid; place-items: center; padding: 20px; overflow: auto; }
.tplex-modal { width: min(780px,100%); max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: 17px; box-shadow: var(--tplex-shadow); }
.tplex-modal.wide { width: min(1040px,100%); }
.tplex-modal > header { position: sticky; top: 0; z-index: 2; background: #121617; color: #fff; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; }
.tplex-modal > header h2 { margin: 3px 0 0; font-size: 20px; }
.tplex-modal > header button { width: 36px; height: 36px; border-radius: 50%; background: #292e30; color: #fff; font-size: 20px; }
.tplex-modal-content { padding: 20px; }
.tplex-modal footer { padding: 15px 20px; border-top: 1px solid #e4e7e9; display: flex; justify-content: flex-end; gap: 9px; }
.tplex-toast { position: fixed; z-index: 1500; right: 20px; bottom: 20px; max-width: 390px; background: #111516; color: #fff; border-radius: 12px; padding: 14px 17px; box-shadow: var(--tplex-shadow); display: flex; gap: 10px; align-items: center; }
.tplex-toast b { color: var(--tplex-orange); }
.tplex-error { padding: 11px 13px; border-radius: 9px; background: #fff0f0; color: #9f2929; font-size: 12px; margin: 10px 0; }
.tplex-review { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tplex-review-card { padding: 16px; border: 1px solid #e0e4e6; border-radius: 13px; }
.tplex-review-card h3 { margin: 0 0 12px; }
.tplex-review-card p { display: grid; margin: 9px 0; }
.tplex-review-card span { color: #858d91; font-size: 9px; font-weight: 850; }
.tplex-review-card strong { font-size: 12px; margin-top: 2px; }
.tplex-login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; background: #0c0f10; color: #fff; }
.tplex-login-art { padding: clamp(35px,6vw,80px); display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(145deg,rgba(10,13,14,.92),rgba(10,13,14,.8)), var(--tplex-login-image, none) center/cover; }
.tplex-login-art h1 { font-size: clamp(40px,5vw,68px); line-height: 1; letter-spacing: -.055em; }
.tplex-login-art p { color: #a7afb2; max-width: 520px; line-height: 1.6; }
.tplex-login-form { background: #f5f6f6; color: #171b1d; display: grid; place-items: center; padding: 30px; }
.tplex-login-card { width: min(430px,100%); background: #fff; border: 1px solid #e0e4e6; border-radius: 17px; padding: 30px; box-shadow: var(--tplex-shadow); }
.tplex-login-card h2 { font-size: 29px; letter-spacing: -.04em; margin: 8px 0; }
.tplex-login-card form p { margin: 14px 0; }
.tplex-login-card form label { font-weight: 750; font-size: 12px; }
.tplex-login-card form input { margin-top: 6px; }
.tplex-login-card .button-primary { width: 100%; min-height: 46px; background: var(--tplex-orange); border: 0; color: #fff; border-radius: 10px; font-weight: 850; }

@media (max-width: 1180px) {
  .tplex-admin { grid-template-columns: 200px 1fr; }
  .tplex-content { padding: 22px; }
  .tplex-metrics { grid-template-columns: repeat(2,1fr); }
  .tplex-grid-cards, .tplex-promo-grid { grid-template-columns: repeat(2,1fr); }
  .tplex-product-row { grid-template-columns: 1.8fr .65fr .65fr .5fr auto; }
  .tplex-product-row > :nth-child(2) { display: none; }
  .tplex-commercial-register-head,
  .tplex-commercial-register-row { grid-template-columns: minmax(210px,1.2fr) minmax(122px,.67fr) minmax(102px,.55fr) minmax(185px,.92fr) minmax(225px,1.1fr); }
  .tplex-commercial-register-head > :nth-child(3),
  .tplex-commercial-register-row > :nth-child(3) { display: none; }
  .tplex-customer-register:not(.representative) .tplex-customer-register-head,
  .tplex-customer-register:not(.representative) .tplex-customer-register-row { grid-template-columns: minmax(210px,1.4fr) minmax(120px,.75fr) minmax(130px,.8fr) minmax(225px,1.2fr); }
  .tplex-customer-register:not(.representative) .tplex-customer-register-head > :nth-child(4),
  .tplex-customer-register:not(.representative) .tplex-customer-register-row > :nth-child(4) { display: none; }
}

@media (max-width: 820px) {
  .tplex-launcher, .tplex-login-shell { grid-template-columns: 1fr; }
  .tplex-launch-brand, .tplex-login-art { min-height: 42vh; }
  .tplex-admin { display: block; }
  .tplex-sidebar { position: sticky; z-index: 30; height: auto; padding: 12px 14px; flex-direction: row; align-items: center; overflow-x: auto; }
  .tplex-sidebar-brand { border: 0; padding: 0 14px 0 0; flex: 0 0 auto; }
  .tplex-sidebar-brand div, .tplex-sidebar-bottom { display: none; }
  .tplex-sidebar nav { display: flex; margin: 0; gap: 4px; }
  .tplex-sidebar nav button { min-height: 40px; min-width: max-content; padding: 0 11px; grid-template-columns: auto 1fr; }
  .tplex-sidebar nav button.active { box-shadow: inset 0 -3px var(--tplex-orange); }
  .tplex-topbar { top: 64px; padding: 0 16px; }
  .tplex-topbar .tplex-ghost { display: none; }
  .tplex-dashboard-grid, .tplex-home-grid, .tplex-media-grid, .tplex-auto-greeting-card { grid-template-columns: 1fr; }
  .tplex-catalog-card { grid-template-rows: auto minmax(275px,1fr) auto auto auto; }
  .tplex-catalog-paper { width: min(178px,50%); }
  .tplex-message-library-head { align-items: flex-start; flex-direction: column; }
  .tplex-message-library-tools { justify-content: flex-start; }
  .tplex-greeting-list { grid-template-columns: 1fr; }
  .tplex-grid-cards, .tplex-promo-grid { grid-template-columns: 1fr 1fr; }
  .tplex-stock-item { grid-template-columns: minmax(240px, 1fr) minmax(105px, .35fr) auto; }
  .tplex-stock-availability { display: none; }
  .tplex-stock-item > button { grid-column: auto; }
  .tplex-commercial-register-head { display: none; }
  .tplex-commercial-register-row { grid-template-columns: minmax(0,1fr) minmax(235px,280px); gap: 11px 18px; }
  .tplex-commercial-register-row > .tplex-customer-identity { grid-column: 1; grid-row: 1; }
  .tplex-commercial-register-row > .tplex-customer-register-meta:nth-child(2) { grid-column: 1; grid-row: 2; padding-left: 54px; }
  .tplex-commercial-register-row > .tplex-customer-register-meta:nth-child(3) { display: none; }
  .tplex-commercial-register-row > .tplex-customer-register-meta:nth-child(4) { grid-column: 2; grid-row: 2; }
  .tplex-commercial-status { grid-column: 1 / -1; grid-row: 3; grid-template-columns: auto minmax(0,1fr); align-items: center; }
  .tplex-commercial-status > div { grid-template-columns: minmax(150px,1fr) auto auto; }
  .tplex-commercial-pdf { grid-column: 2; grid-row: 1; }
  .tplex-action-grid { grid-template-columns: 1fr; }
  .tplex-action-card { min-height: 170px; }
  .tplex-quote-layout { grid-template-columns: 1fr; }
  .tplex-quote-aside { grid-template-columns: 1fr 1fr; }
  .tplex-contact-row, .tplex-reference-row { grid-template-columns: 1fr 1fr; }
  .tplex-contact-row > strong, .tplex-reference-row > strong { grid-column: 1 / -1; }
  .tplex-order-row { grid-template-columns: 1fr auto; }
  .tplex-order-row > :nth-child(2) { display: none; }
  .tplex-my-customers-head { align-items: flex-start; }
  .tplex-customer-register.representative .tplex-customer-register-head { display: none; }
  .tplex-customer-register.representative .tplex-customer-register-row { grid-template-columns: minmax(0,1fr) minmax(210px,240px); }
  .tplex-customer-register.representative .tplex-customer-register-row > .tplex-customer-register-meta { display: none; }
  .tplex-customer-register.representative .tplex-customer-pdf { grid-column: 2; grid-row: 1; }
  .tplex-customer-register.representative .tplex-use-customer { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .tplex-launch-brand, .tplex-launch-actions { padding: 28px 20px; }
  .tplex-launch-brand { min-height: 46vh; }
  .tplex-launch-brand h1 { font-size: 43px; }
  .tplex-launch-card { grid-template-columns: 43px 1fr; padding: 17px; }
  .tplex-launch-card i { display: none; }
  .tplex-rep-main { padding: 18px 12px 70px; }
  .tplex-home-intro { padding: 28px 22px; }
  .tplex-home-intro h1 { font-size: 41px; }
  .tplex-catalog-card { grid-template-rows: auto minmax(255px,1fr) auto auto auto; padding: 14px; border-radius: 16px; }
  .tplex-catalog-preview { min-height: 255px; padding: 20px 10px 13px; }
  .tplex-catalog-paper { width: min(154px,58%); }
  .tplex-catalog-document { grid-template-columns: 39px minmax(0,1fr); gap: 10px; }
  .tplex-catalog-file { width: 38px; height: 47px; }
  .tplex-catalog-document strong { font-size: 15px; }
  .tplex-catalog-fileline { align-items: flex-start; flex-direction: column; gap: 3px; }
  .tplex-catalog-actions { grid-template-columns: 1fr; }
  .tplex-content { padding: 16px 12px 88px; }
  .tplex-topbar { height: 60px; top: 58px; }
  .tplex-topbar-title small, .tplex-user-chip span { display: none; }
  .tplex-page-heading { align-items: stretch; flex-direction: column; }
  .tplex-page-heading h1 { font-size: 31px; }
  .tplex-metrics, .tplex-grid-cards, .tplex-promo-grid { grid-template-columns: 1fr; }
  .tplex-metric { min-height: 120px; }
  .tplex-activity-row { grid-template-columns: 10px 1fr auto; }
  .tplex-activity-row > .tplex-status { display: none; }
  .tplex-table-card { overflow-x: auto; }
  .tplex-table-row { min-width: 760px; }
  .tplex-stock-item { grid-template-columns: 1fr auto; gap: 12px; }
  .tplex-stock-current { text-align: right; }
  .tplex-stock-item > button { grid-column: 1 / -1; width: 100%; }
  .tplex-filterbar { grid-template-columns: 1fr; }
  .tplex-commercial-filterbar { padding: 12px; }
  .tplex-commercial-count { justify-content: flex-start; }
  .tplex-commercial-register-row { grid-template-columns: 1fr; gap: 11px; padding: 15px; }
  .tplex-commercial-register-row > .tplex-customer-identity,
  .tplex-commercial-register-row > .tplex-customer-register-meta:nth-child(2),
  .tplex-commercial-register-row > .tplex-customer-register-meta:nth-child(3),
  .tplex-commercial-register-row > .tplex-customer-register-meta:nth-child(4),
  .tplex-commercial-status,
  .tplex-commercial-pdf { grid-column: auto; grid-row: auto; }
  .tplex-commercial-register-row > .tplex-customer-register-meta:nth-child(2),
  .tplex-commercial-register-row > .tplex-customer-register-meta:nth-child(3),
  .tplex-commercial-register-row > .tplex-customer-register-meta:nth-child(4) { display: grid; padding-left: 54px; }
  .tplex-commercial-status { grid-template-columns: 1fr; padding-left: 54px; }
  .tplex-commercial-status > div { grid-template-columns: minmax(0,1fr) auto auto; }
  .tplex-media-card { grid-template-columns: 1fr; }
  .tplex-message-library-head { padding: 21px 18px 18px; gap: 16px; }
  .tplex-message-library-tools > span { width: 100%; justify-content: center; }
  .tplex-greetings-form { padding: 14px 18px 0; }
  .tplex-greeting-editor.birthday-fields { grid-template-columns: 1fr; }
  .tplex-greeting-editor.birthday-fields .full { grid-column: auto; }
  .tplex-greetings-footer { margin: 18px -18px 0; padding: 14px 18px; align-items: stretch; flex-direction: column; }
  .tplex-save-greetings { width: 100%; }
  .tplex-rep-header { min-height: 70px; padding: 0 14px; }
  .tplex-rep-brand div, .tplex-rep-header .tplex-user-chip { display: none; }
  .tplex-rep-main { padding: 15px 10px; }
  .tplex-home-intro { padding: 30px 22px; }
  .tplex-home-intro h1 { font-size: clamp(34px,10vw,43px); letter-spacing: -.055em; }
  .tplex-home-intro .tplex-home-motivation { font-size: 13px; }
  .tplex-auto-greeting-preview { min-height: 150px; padding: 22px; }
  .tplex-screen-body { padding: 14px; }
  .tplex-stepbar { overflow-x: auto; }
  .tplex-stepbar button { min-width: 135px; }
  .tplex-col-8, .tplex-col-6, .tplex-col-4, .tplex-col-3, .tplex-col-2 { grid-column: span 12; }
  .tplex-contact-row, .tplex-reference-row { grid-template-columns: 1fr; }
  .tplex-quote-client, .tplex-quote-add { grid-template-columns: 1fr; }
  .tplex-quote-items { overflow-x: auto; }
  .tplex-quote-row { min-width: 680px; }
  .tplex-quote-aside { grid-template-columns: 1fr; }
  .tplex-totals { flex-wrap: wrap; justify-content: stretch; }
  .tplex-total-box { min-width: calc(33% - 10px); flex: 1; }
  .tplex-totals > button { flex: 1; }
  .tplex-order-row { grid-template-columns: 1fr; }
  .tplex-order-actions { flex-wrap: wrap; }
  .tplex-action-card-clients > div { grid-template-columns: 1fr; }
  .tplex-my-customers-head { min-height: 0; flex-direction: column; padding: 20px 18px; }
  .tplex-my-customers-head > div:last-child { width: 100%; display: grid; grid-template-columns: .75fr 1.25fr; }
  .tplex-my-customers-toolbar { align-items: stretch; flex-direction: column; padding: 15px; }
  .tplex-my-customers-toolbar label { width: 100%; }
  .tplex-customer-register-head { display: none; }
  .tplex-customer-register-row,
  .tplex-customer-register:not(.representative) .tplex-customer-register-row,
  .tplex-customer-register.representative .tplex-customer-register-row { grid-template-columns: 1fr; gap: 11px; padding: 15px; }
  .tplex-customer-register-row > .tplex-customer-register-meta,
  .tplex-customer-register.representative .tplex-customer-register-row > .tplex-customer-register-meta { display: grid !important; padding-left: 54px; }
  .tplex-customer-register-row > :nth-child(4) { display: grid !important; }
  .tplex-customer-pdf,
  .tplex-customer-register.representative .tplex-customer-pdf { grid-column: auto; grid-row: auto; }
  .tplex-customer-register.representative .tplex-use-customer { grid-column: auto; }
  .tplex-customer-register-empty { min-height: 190px; align-items: center; flex-direction: column; text-align: center; }
  .tplex-review { grid-template-columns: 1fr; }
  .tplex-modal-backdrop { padding: 0; align-items: end; }
  .tplex-modal, .tplex-modal.wide { width: 100%; max-height: 94vh; border-radius: 17px 17px 0 0; }
  .tplex-form-actions { flex-direction: column; }
  .tplex-form-actions > div, .tplex-form-actions button { width: 100%; }
  .tplex-representative-cover { min-height: 164px; padding: 20px; }
  .tplex-representative-details { padding: 18px; }
  .tplex-representative-details dl > div { grid-template-columns: 1fr; gap: 4px; }
  .tplex-representative-details footer { grid-template-columns: 1fr; }
  .tplex-representative-editor-modal > header { padding: 17px 18px; }
  .tplex-representative-editor-modal > header h2 { font-size: 20px; }
  .tplex-rep-editor-visual { padding: 18px; grid-template-columns: 1fr; }
  .tplex-rep-editor-preview { min-height: 190px; }
  .tplex-rep-editor-fields { padding: 22px 18px 14px; }
  .tplex-rep-editor-grid { grid-template-columns: 1fr; }
  .tplex-rep-editor-grid label.full { grid-column: auto; }
  .tplex-representative-editor-modal .tplex-rep-editor-actions { padding: 12px 16px; align-items: stretch; flex-direction: column; }
  .tplex-rep-editor-actions > div:first-child { display: none; }
  .tplex-rep-editor-actions > div:last-child { display: grid; grid-template-columns: .75fr 1.25fr; }
  .tplex-rep-editor-save { min-width: 0; }
}

@media print {
  .tplex-root { display: none !important; }
}

/* V50: aligned, touch-friendly password fields in the portal dialog. */
#tplex-password-form > label{display:grid;gap:8px;margin:0 0 16px!important}
#tplex-password-form > label > span{font-size:14px;font-weight:700;color:#202427}
#tplex-password-form input[type="password"]{display:block;width:100%;min-height:44px;padding:12px 14px;box-sizing:border-box;border:1px solid #d7dcdf;border-radius:8px;background:#fff;color:#202427;font:inherit;font-size:16px}
#tplex-password-form input[type="password"]:focus{outline:2px solid #ff6a00;outline-offset:1px}
#tplex-password-form small{font-size:12px;line-height:1.5;color:#626b70}
#tplex-password-form .tplex-muted{font-size:13px;line-height:1.5;margin:0 0 16px}
