/* Elzem Online V17.1.0 - Premium CRM + Large Readable Text */
:root {
  --elzem-red: #e5093b;
  --elzem-red-strong: #b9052f;
  --elzem-red-soft: #fff1f4;
  --elzem-ink: #14151b;
  --elzem-muted: #667085;
  --elzem-line: #e6e8ee;
  --elzem-panel: #ffffff;
  --elzem-canvas: #f5f6fa;
  --elzem-success: #17a673;
  --elzem-warning: #f59e0b;
  --elzem-danger: #dc3545;
  --elzem-info: #2563eb;
  --elzem-radius-sm: 12px;
  --elzem-radius: 18px;
  --elzem-radius-lg: 26px;
  --elzem-shadow: 0 14px 36px rgba(18, 20, 30, .09), 0 2px 8px rgba(18, 20, 30, .04);
  --elzem-shadow-hover: 0 24px 54px rgba(18, 20, 30, .14), 0 4px 12px rgba(18, 20, 30, .06);
  --elzem-font: Inter, Manrope, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* V17.1.2: no global html/body/card/font overrides. */

/* Injected main menu buttons */
.elzem-nav-entry {
  width: 100%; border: 0; background: transparent; color: inherit; cursor: pointer;
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; margin: 4px 0;
  border-radius: 12px; font: 700 14px/1.2 var(--elzem-font); text-align: left;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.elzem-nav-entry:hover { background: rgba(229,9,59,.09); color: var(--elzem-red); transform: translateX(2px); }
.elzem-nav-entry svg { width: 20px; height: 20px; flex: none; }
.elzem-floating-launcher {
  position: fixed; z-index: 2147483000; right: 22px; bottom: 22px; display: flex; gap: 10px;
  padding: 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 18px;
  background: rgba(20,21,27,.92); box-shadow: 0 22px 50px rgba(0,0,0,.28); backdrop-filter: blur(18px);
}
.elzem-floating-launcher button {
  border: 0; border-radius: 12px; padding: 11px 14px; background: #fff; color: #17181e;
  font: 800 13px var(--elzem-font); cursor: pointer;
}
.elzem-floating-launcher button:first-child { background: var(--elzem-red); color: #fff; }

/* Application shell */
#elzem-premium-root {
  position: fixed; inset: 0; z-index: 2147483500; background: var(--elzem-canvas); color: var(--elzem-ink);
  overflow: auto; font-family: var(--elzem-font); font-size: 16px; line-height: 1.5;
}
#elzem-premium-root * { box-sizing: border-box; }
.elzem-shell { min-height: 100%; }
.elzem-topbar {
  position: sticky; top: 0; z-index: 20; min-height: 78px; padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  color: #fff; background:
    radial-gradient(circle at 82% -30%, rgba(229,9,59,.55), transparent 36%),
    linear-gradient(120deg, #101117 0%, #1e1319 56%, #560b20 100%);
  box-shadow: 0 8px 26px rgba(12,13,18,.22);
}
.elzem-brand { display: flex; align-items: center; gap: 14px; }
.elzem-brand-mark {
  width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center;
  background: linear-gradient(145deg, #ff2a5b, #b8002a); box-shadow: 0 10px 24px rgba(229,9,59,.35);
  font-size: 23px; font-weight: 900;
}
.elzem-brand h1 { margin: 0; font-size: 19px; line-height: 1.15; font-weight: 850; letter-spacing: -.03em; }
.elzem-brand p { margin: 4px 0 0; color: rgba(255,255,255,.68); font-size: 12px; }
.elzem-top-actions { display: flex; align-items: center; gap: 10px; }
.elzem-org-chip {
  display: flex; align-items: center; gap: 8px; max-width: 320px; padding: 9px 13px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); color: #fff;
  font-size: 13px; font-weight: 750;
}
.elzem-close {
  width: 42px; height: 42px; border-radius: 13px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08); color: #fff; cursor: pointer; font-size: 22px;
}
.elzem-close:hover { background: rgba(255,255,255,.16); }
.elzem-content { width: min(1680px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 60px; }
.elzem-page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.elzem-page-heading h2 { margin: 0; font-size: clamp(25px, 2vw, 34px); line-height: 1.15; font-weight: 880; letter-spacing: -.04em; }
.elzem-page-heading p { margin: 8px 0 0; color: var(--elzem-muted); font-size: 15px; }
.elzem-heading-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.elzem-btn {
  min-height: 44px; padding: 10px 16px; border-radius: 12px; border: 1px solid transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  font: 800 14px/1 var(--elzem-font); transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.elzem-btn:hover { transform: translateY(-1px); }
.elzem-btn-primary { background: linear-gradient(145deg, #f01849, #bd062f); color: #fff; box-shadow: 0 9px 20px rgba(229,9,59,.25); }
.elzem-btn-primary:hover { box-shadow: 0 12px 28px rgba(229,9,59,.32); }
.elzem-btn-secondary { background: #fff; border-color: var(--elzem-line); color: var(--elzem-ink); }
.elzem-btn-soft { background: var(--elzem-red-soft); color: var(--elzem-red-strong); border-color: rgba(229,9,59,.14); }
.elzem-btn-success { background: #e8f8f2; color: #087d56; border-color: #bfead9; }
.elzem-btn-danger { background: #fff0f2; color: #c9273f; border-color: #ffd0d7; }
.elzem-btn-sm { min-height: 36px; padding: 8px 12px; font-size: 13px; }
.elzem-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.elzem-card {
  background: var(--elzem-panel); border: 1px solid rgba(20,21,27,.075); border-radius: var(--elzem-radius);
  box-shadow: var(--elzem-shadow); overflow: hidden;
}
.elzem-card-header { padding: 20px 22px; border-bottom: 1px solid var(--elzem-line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.elzem-card-title { margin: 0; font-size: 18px; font-weight: 850; letter-spacing: -.025em; }
.elzem-card-subtitle { margin: 5px 0 0; color: var(--elzem-muted); font-size: 13px; }
.elzem-card-body { padding: 22px; }
.elzem-grid { display: grid; gap: 18px; }
.elzem-grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.elzem-grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.elzem-grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.elzem-mt { margin-top: 18px; }

.elzem-stat {
  position: relative; min-height: 142px; padding: 22px; overflow: hidden;
  background: linear-gradient(145deg, #fff, #fbfbfd); border: 1px solid rgba(20,21,27,.07);
  border-radius: 20px; box-shadow: var(--elzem-shadow);
}
.elzem-stat::after { content:""; position:absolute; width:130px; height:130px; right:-58px; top:-60px; border-radius:50%; background:rgba(229,9,59,.07); }
.elzem-stat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; z-index: 1; }
.elzem-stat-label { color: var(--elzem-muted); font-size: 14px; font-weight: 750; }
.elzem-stat-icon { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: var(--elzem-red); background: var(--elzem-red-soft); font-size: 20px; }
.elzem-stat-value { position: relative; z-index:1; margin-top: 12px; font-size: 34px; line-height: 1; font-weight: 900; letter-spacing: -.05em; }
.elzem-stat-foot { position: relative; z-index:1; margin-top: 10px; color: var(--elzem-muted); font-size: 12px; }

.elzem-tabs-wrap { margin-bottom: 20px; padding: 7px; overflow-x: auto; border-radius: 16px; background: #eceef3; scrollbar-width: thin; }
.elzem-tabs { display: flex; gap: 5px; min-width: max-content; }
.elzem-tab {
  min-height: 42px; padding: 10px 14px; border: 0; border-radius: 11px; background: transparent; color: #565a68;
  font: 780 13px var(--elzem-font); cursor: pointer; white-space: nowrap;
}
.elzem-tab:hover { color: var(--elzem-ink); background: rgba(255,255,255,.56); }
.elzem-tab.active { color: var(--elzem-red-strong); background: #fff; box-shadow: 0 4px 14px rgba(18,20,30,.09); }

.elzem-alert { padding: 16px 18px; border-radius: 15px; display: flex; gap: 13px; border: 1px solid; font-size: 14px; }
.elzem-alert strong { display: block; margin-bottom: 3px; font-size: 15px; }
.elzem-alert-info { color: #17508f; background: #edf7ff; border-color: #cfeaff; }
.elzem-alert-success { color: #087452; background: #eaf9f2; border-color: #c8eddd; }
.elzem-alert-warning { color: #805400; background: #fff8e6; border-color: #f8e1a8; }

.elzem-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.elzem-form-grid-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.elzem-field { min-width: 0; }
.elzem-field-full { grid-column: 1 / -1; }
.elzem-label { display: block; margin: 0 0 7px; color: #313440; font-size: 13px; font-weight: 800; }
.elzem-label .required { color: var(--elzem-red); }
.elzem-help { margin-top: 6px; color: #8a8f9f; font-size: 12px; line-height: 1.45; }
.elzem-input,
.elzem-select,
.elzem-textarea {
  width: 100%; min-height: 48px; border: 1px solid #d9dce5; border-radius: 12px; padding: 11px 13px;
  outline: 0; background: #fff; color: var(--elzem-ink); font: 600 14px/1.35 var(--elzem-font);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.elzem-textarea { min-height: 100px; resize: vertical; }
.elzem-input:focus, .elzem-select:focus, .elzem-textarea:focus { border-color: rgba(229,9,59,.62); box-shadow: 0 0 0 4px rgba(229,9,59,.09); }
.elzem-input[readonly] { background: #f6f7f9; color: #687083; }
.elzem-secret-wrap { position: relative; }
.elzem-secret-wrap .elzem-input { padding-right: 48px; }
.elzem-secret-toggle { position: absolute; right: 8px; top: 7px; width: 34px; height: 34px; border: 0; border-radius: 9px; background: #f2f3f6; cursor: pointer; }
.elzem-switch-row { display: flex; align-items: flex-start; gap: 12px; }
.elzem-switch { position: relative; width: 48px; height: 27px; flex: none; }
.elzem-switch input { opacity: 0; width: 0; height: 0; }
.elzem-slider { position: absolute; inset: 0; border-radius: 999px; background: #d5d8e1; cursor: pointer; transition: .2s; }
.elzem-slider::before { content:""; position:absolute; width:21px; height:21px; left:3px; top:3px; border-radius:50%; background:#fff; box-shadow:0 2px 6px rgba(0,0,0,.2); transition:.2s; }
.elzem-switch input:checked + .elzem-slider { background: var(--elzem-red); }
.elzem-switch input:checked + .elzem-slider::before { transform: translateX(21px); }
.elzem-switch-text strong { display:block; font-size:14px; }
.elzem-switch-text span { display:block; margin-top:3px; color:var(--elzem-muted); font-size:12px; }

.elzem-toolbar { padding: 16px 18px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; border-bottom:1px solid var(--elzem-line); background:#fbfbfc; }
.elzem-search { position: relative; min-width: 260px; flex: 1; max-width: 440px; }
.elzem-search .elzem-input { padding-left: 42px; }
.elzem-search-icon { position:absolute; left:14px; top:13px; color:#858a98; }
.elzem-spacer { flex: 1; }
.elzem-table-wrap { width:100%; overflow:auto; }
.elzem-table { width:100%; border-collapse:collapse; min-width: 900px; }
.elzem-table th { padding:14px 18px; background:#f4f5f8; color:#686d7c; border-bottom:1px solid var(--elzem-line); font-size:12px; text-transform:uppercase; letter-spacing:.035em; text-align:left; white-space:nowrap; }
.elzem-table td { padding:16px 18px; border-bottom:1px solid #eceef2; color:#343641; font-size:14px; vertical-align:middle; }
.elzem-table tr:hover td { background:#fffafb; }
.elzem-table tr:last-child td { border-bottom:0; }
.elzem-guest { display:flex; align-items:center; gap:11px; min-width:190px; }
.elzem-avatar { width:40px; height:40px; border-radius:13px; display:grid; place-items:center; flex:none; background:linear-gradient(145deg,#ffe4eb,#ffd3df); color:var(--elzem-red-strong); font-weight:900; }
.elzem-guest strong { display:block; font-size:14px; }
.elzem-guest small { display:block; color:var(--elzem-muted); margin-top:2px; }
.elzem-badge { display:inline-flex; align-items:center; gap:6px; min-height:26px; padding:5px 9px; border-radius:999px; font-size:11px; font-weight:850; white-space:nowrap; }
.elzem-badge-success { background:#e6f8ef; color:#087754; }
.elzem-badge-warning { background:#fff5db; color:#936100; }
.elzem-badge-danger { background:#ffeaee; color:#bd1734; }
.elzem-badge-info { background:#e8f1ff; color:#245aa7; }
.elzem-badge-neutral { background:#eef0f4; color:#5f6574; }
.elzem-score { display:flex; align-items:center; gap:8px; }
.elzem-score-number { min-width:42px; font-weight:900; font-size:17px; }
.elzem-stars { color:#f1ad16; letter-spacing:1px; }
.elzem-empty { padding:52px 24px; text-align:center; color:var(--elzem-muted); }
.elzem-empty-icon { width:66px; height:66px; margin:0 auto 15px; border-radius:22px; display:grid; place-items:center; background:var(--elzem-red-soft); color:var(--elzem-red); font-size:29px; }
.elzem-empty h3 { margin:0; color:var(--elzem-ink); font-size:18px; }
.elzem-empty p { max-width:520px; margin:7px auto 0; font-size:14px; }

.elzem-section { margin-top:18px; }
.elzem-section-title { margin:0 0 14px; font-size:16px; font-weight:850; letter-spacing:-.02em; }
.elzem-divider { height:1px; background:var(--elzem-line); margin:22px 0; }
.elzem-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:20px; }
.elzem-connection-card { border:1px solid var(--elzem-line); border-radius:16px; padding:18px; background:linear-gradient(145deg,#fff,#fcfcfd); }
.elzem-connection-top { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:16px; }
.elzem-connection-name { display:flex; align-items:center; gap:12px; }
.elzem-connection-icon { width:42px; height:42px; border-radius:13px; display:grid; place-items:center; color:var(--elzem-red); background:var(--elzem-red-soft); }
.elzem-mapping-list { display:grid; gap:10px; }
.elzem-mapping-row { display:grid; grid-template-columns:minmax(0,1.2fr) 44px minmax(0,.72fr) minmax(0,1.2fr) 38px; gap:8px; align-items:center; }
.elzem-mapping-arrow { text-align:center; color:#858a97; font-weight:900; }
.elzem-icon-btn { width:36px; height:36px; display:grid; place-items:center; border:0; border-radius:10px; background:#fff0f2; color:#d82c45; cursor:pointer; }

.elzem-drawer-backdrop { position:fixed; inset:0; z-index:2147483600; background:rgba(12,13,18,.48); backdrop-filter:blur(3px); }
.elzem-drawer { position:absolute; right:0; top:0; bottom:0; width:min(640px,100%); background:#f7f8fa; overflow:auto; box-shadow:-20px 0 60px rgba(0,0,0,.22); }
.elzem-drawer-header { position:sticky; top:0; z-index:2; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:20px 22px; color:#fff; background:linear-gradient(120deg,#14151b,#5a0a22); }
.elzem-drawer-header h3 { margin:0; font-size:20px; }
.elzem-drawer-body { padding:20px; }
.elzem-answer { padding:15px 16px; border:1px solid var(--elzem-line); border-radius:14px; background:#fff; margin-bottom:10px; }
.elzem-answer-label { color:var(--elzem-muted); font-size:12px; font-weight:800; text-transform:uppercase; }
.elzem-answer-value { margin-top:5px; font-size:15px; font-weight:700; }
.elzem-timeline { position:relative; padding-left:22px; }
.elzem-timeline::before { content:""; position:absolute; left:7px; top:7px; bottom:7px; width:2px; background:#e0e2e8; }
.elzem-timeline-item { position:relative; padding:0 0 18px 8px; }
.elzem-timeline-item::before { content:""; position:absolute; left:-20px; top:5px; width:12px; height:12px; border:3px solid #fff; border-radius:50%; background:var(--elzem-red); box-shadow:0 0 0 1px #d7d9e0; }
.elzem-timeline-item strong { display:block; font-size:13px; }
.elzem-timeline-item span { display:block; margin-top:3px; color:var(--elzem-muted); font-size:12px; }

.elzem-toast-stack { position:fixed; z-index:2147483900; right:22px; top:94px; display:grid; gap:10px; width:min(380px,calc(100% - 32px)); }
.elzem-toast { padding:14px 16px; border-radius:14px; color:#fff; background:#17181e; box-shadow:0 16px 38px rgba(0,0,0,.25); animation:elzemToast .22s ease; font-size:13px; font-weight:700; }
.elzem-toast.success { background:#0d7f5a; }
.elzem-toast.error { background:#bb1733; }
@keyframes elzemToast { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:none} }
.elzem-loading { display:inline-block; width:16px; height:16px; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; animation:elzemSpin .7s linear infinite; }
@keyframes elzemSpin { to{transform:rotate(360deg)} }

/* Public survey */
.elzem-survey-public { min-height:100vh; display:grid; place-items:center; padding:24px; background:radial-gradient(circle at 15% 5%,rgba(229,9,59,.18),transparent 32%),linear-gradient(145deg,#111218,#2b111a 62%,#6c0a27); }
.elzem-survey-box { width:min(760px,100%); background:#fff; border-radius:28px; overflow:hidden; box-shadow:0 34px 90px rgba(0,0,0,.34); }
.elzem-survey-hero { padding:28px 30px; color:#fff; background:linear-gradient(125deg,#17181e,#720c2b); }
.elzem-survey-hero h1 { margin:0; font-size:27px; font-weight:900; letter-spacing:-.04em; }
.elzem-survey-hero p { margin:7px 0 0; color:rgba(255,255,255,.74); font-size:14px; }
.elzem-survey-body { padding:28px 30px 34px; }
.elzem-question { padding:18px 0; border-bottom:1px solid var(--elzem-line); }
.elzem-question:last-child { border-bottom:0; }
.elzem-question-label { margin:0 0 12px; font-size:16px; font-weight:850; }
.elzem-rating { display:flex; flex-direction:row-reverse; justify-content:flex-end; gap:7px; }
.elzem-rating input { display:none; }
.elzem-rating label { width:42px; height:42px; border-radius:12px; display:grid; place-items:center; cursor:pointer; color:#c7cad3; background:#f1f2f5; font-size:23px; transition:.15s; }
.elzem-rating label:hover, .elzem-rating label:hover ~ label, .elzem-rating input:checked ~ label { color:#f2ad15; background:#fff4d6; transform:translateY(-1px); }

@media (max-width: 1100px) {
  .elzem-grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .elzem-grid-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .elzem-content { width:min(100% - 24px,1680px); padding-top:18px; }
  .elzem-topbar { padding:12px 14px; min-height:68px; }
  .elzem-brand p, .elzem-org-chip span { display:none; }
  .elzem-page-heading { flex-direction:column; }
  .elzem-grid-2,.elzem-grid-3,.elzem-grid-4,.elzem-form-grid,.elzem-form-grid-3 { grid-template-columns:1fr; }
  .elzem-mapping-row { grid-template-columns:1fr 30px 1fr; padding:12px; border:1px solid var(--elzem-line); border-radius:14px; }
  .elzem-mapping-row .elzem-select:nth-of-type(2) { grid-column:1/2; }
  .elzem-mapping-row .elzem-select:nth-of-type(3) { grid-column:3/4; }
  .elzem-mapping-row .elzem-icon-btn { grid-column:3/4; justify-self:end; }
  .elzem-stat { min-height:126px; }
  .elzem-floating-launcher { right:12px; bottom:12px; }
  .elzem-survey-body,.elzem-survey-hero { padding-left:20px; padding-right:20px; }
}
@media print { #elzem-premium-root .elzem-topbar,.elzem-heading-actions,.elzem-toolbar { display:none!important; } #elzem-premium-root{position:static;} }

/* V17.1.2 — HYDRATION / FOUC GUARD
   premium.css is intentionally isolated to .elzem-* / #elzem-premium-root.
   Existing Review, Workspace, GIATA and core dashboard components keep their own CSS. */
