:root {
  --b19-blue: #2457ff;
  --b19-lime: #b9ff1a;
  --b19-ink: #10131a;
  --b19-muted: #687080;
  --b19-line: #e6e9ef;
  --b19-bg: #f5f7fb;
  --b19-white: #fff;
}
.b19-pc { color: var(--b19-ink); font-family: inherit; max-width: 1440px; margin: 0 auto; }
.b19-pc * { box-sizing: border-box; }
.b19-pc__header { background: var(--b19-blue); color: #fff; border-radius: 24px; padding: 28px; display:flex; gap:24px; align-items:center; justify-content:space-between; }
.b19-pc__header h2 { margin: 2px 0 4px; font-size: clamp(28px,4vw,46px); line-height:1; color:#fff; }
.b19-pc__header p { margin:0; opacity:.82; }
.b19-pc__eyebrow { font-size:12px; letter-spacing:.14em; font-weight:900; }
.b19-pc__header-actions,.b19-summary-actions { display:flex; gap:10px; flex-wrap:wrap; }
.b19-btn { appearance:none; border:0; border-radius:999px; min-height:44px; padding:0 18px; font-weight:800; cursor:pointer; }
.b19-btn--primary { background:var(--b19-lime); color:var(--b19-ink); }
.b19-btn--ghost { background:#fff; color:var(--b19-ink); }
.b19-pc__tabs { display:flex; gap:8px; margin:24px 0 14px; }
.b19-pc__tabs button { border:0; border-radius:999px; background:#e9edf5; padding:10px 18px; font-weight:800; cursor:pointer; }
.b19-pc__tabs button.is-active { background:var(--b19-ink); color:#fff; }
.b19-pc__panel { display:none; }
.b19-pc__panel.is-active { display:block; }
.b19-pc__layout { display:grid; grid-template-columns:minmax(0,1fr) 360px; gap:20px; align-items:start; }
.b19-card { background:#fff; border:1px solid var(--b19-line); border-radius:20px; padding:22px; margin-bottom:18px; box-shadow:0 10px 32px rgba(16,19,26,.045); }
.b19-card h3 { margin:0 0 18px; font-size:20px; }
.b19-card p { color:var(--b19-muted); }
.b19-card--sticky { position:sticky; top:120px; }
.b19-grid { display:grid; gap:16px; }
.b19-grid--2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
.b19-grid--3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
.b19-span-2 { grid-column:span 2; }
.b19-pc label { display:grid; gap:7px; font-size:13px; font-weight:800; color:#394052; }
.b19-pc input,.b19-pc select,.b19-pc textarea { width:100%; border:1px solid #d8dde8; border-radius:12px; background:#fff; color:var(--b19-ink); padding:11px 12px; font:inherit; }
.b19-pc input:focus,.b19-pc select:focus,.b19-pc textarea:focus { outline:2px solid rgba(36,87,255,.18); border-color:var(--b19-blue); }
.b19-check { grid-template-columns:auto 1fr; display:flex!important; align-items:center; min-height:44px; border:1px solid #d8dde8; border-radius:12px; padding:0 12px; }
.b19-check input { width:auto; }
.b19-total { background:var(--b19-ink); color:#fff; border-radius:18px; padding:20px; margin:10px 0 14px; }
.b19-total span,.b19-total small { display:block; opacity:.65; }
.b19-total strong { font-size:42px; line-height:1.1; }
.b19-breakdown { margin:0 0 18px; }
.b19-breakdown div { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:10px 0; border-bottom:1px solid var(--b19-line); }
.b19-breakdown dt { color:var(--b19-muted); }
.b19-breakdown dd { margin:0; font-weight:850; }
.b19-profit dd { color:#2d7b00; }
.b19-pc__message { min-height:20px; font-size:13px; margin:12px 0 0; }
.b19-pc__message.is-error { color:#b42318; }
.b19-table-wrap { overflow:auto; }
.b19-table { width:100%; border-collapse:collapse; min-width:760px; }
.b19-table th,.b19-table td { padding:13px 12px; text-align:left; border-bottom:1px solid var(--b19-line); }
.b19-table th { font-size:12px; color:var(--b19-muted); text-transform:uppercase; letter-spacing:.06em; }
.b19-link { border:0; background:none; color:var(--b19-blue); font-weight:850; cursor:pointer; }
.b19-status { display:inline-flex; border-radius:999px; padding:5px 9px; background:#edf0f5; font-size:12px; font-weight:800; text-transform:capitalize; }
.b19-status--approved,.b19-status--completed { background:#e6f8d9; color:#2b6f00; }
.b19-status--cancelled { background:#fee9e7; color:#a11b13; }
.b19-pc-notice { padding:18px; border-radius:12px; background:#fff4d6; border:1px solid #f4d16b; }
.b19-print { display:none; }

@media (max-width: 960px) {
  .b19-pc__layout { grid-template-columns:1fr; }
  .b19-card--sticky { position:static; }
}
@media (max-width: 640px) {
  .b19-pc__header { align-items:flex-start; flex-direction:column; border-radius:18px; padding:20px; }
  .b19-grid--2,.b19-grid--3 { grid-template-columns:1fr; }
  .b19-span-2 { grid-column:auto; }
  .b19-card { border-radius:16px; padding:17px; }
}

@media print {
  body * { visibility:hidden!important; }
  #b19-print-area,#b19-print-area * { visibility:visible!important; }
  #b19-print-area { display:block!important; position:absolute; inset:0; width:100%; background:#fff; color:#111; font-family:Arial,sans-serif; }
  .b19-print-sheet { max-width:800px; margin:0 auto; padding:34px; }
  .b19-print-sheet header { display:flex; justify-content:space-between; gap:30px; border-bottom:3px solid #111; padding-bottom:22px; }
  .b19-print-logo { font-size:40px; font-weight:900; }
  .b19-print-company { margin-top:8px; font-size:12px; line-height:1.5; }
  .b19-print-meta { text-align:right; }
  .b19-print-meta h1 { margin:0 0 10px; }
  .b19-print-meta p { margin:4px 0; }
  .b19-print-customer { padding:24px 0 10px; }
  .b19-print-sheet table { width:100%; border-collapse:collapse; }
  .b19-print-sheet th,.b19-print-sheet td { border-bottom:1px solid #bbb; padding:12px 8px; text-align:left; vertical-align:top; }
  .b19-print-sheet th:last-child,.b19-print-sheet td:last-child { text-align:right; }
  .b19-print-totals { width:320px; margin:20px 0 20px auto; }
  .b19-print-totals p { display:flex; justify-content:space-between; padding:7px 0; margin:0; }
  .b19-print-totals .grand { border-top:2px solid #111; font-size:20px; }
  .b19-print-notes { border-top:1px solid #bbb; padding-top:14px; }
  .b19-print-sheet footer { margin-top:40px; color:#555; font-size:11px; }
}
#b19-price-calculator .b19-pc__header h2{margin:2px 0 6px!important;padding:0!important;font-family:inherit!important;font-size:clamp(30px,4vw,48px)!important;line-height:1!important;font-weight:900!important;letter-spacing:-.035em!important;color:#fff!important;position:static!important;transform:none!important}
#b19-price-calculator .b19-pc__header p{margin:0!important;line-height:1.35!important;color:#fff!important}
#b19-price-calculator .b19-pc-config{display:none!important}

/* v0.3.0 — spațiere și lizibilitate */
#b19-price-calculator {
  line-height: 1.45;
}
#b19-price-calculator .b19-card {
  padding: 26px;
}
#b19-price-calculator .b19-card h3 {
  margin-bottom: 22px;
  line-height: 1.2;
}
#b19-price-calculator .b19-grid {
  gap: 20px 18px;
}
#b19-price-calculator label {
  gap: 9px;
  line-height: 1.35;
}
#b19-price-calculator input,
#b19-price-calculator select,
#b19-price-calculator textarea {
  min-height: 46px;
  line-height: 1.4;
}
#b19-price-calculator textarea {
  min-height: 96px;
}
#b19-price-calculator .b19-breakdown div {
  padding: 12px 0;
  line-height: 1.35;
}
#b19-price-calculator .b19-total {
  padding: 24px;
}
#b19-price-calculator .b19-total strong {
  display: block;
  margin: 5px 0 2px;
  line-height: 1;
}

/* Oferta tipărită */
@media print {
  .b19-print-sheet {
    padding: 42px 38px !important;
    line-height: 1.5 !important;
  }
  .b19-print-sheet header {
    padding-bottom: 28px !important;
    align-items: flex-start !important;
  }
  .b19-print-meta h1 {
    line-height: 1.05 !important;
    margin-bottom: 14px !important;
  }
  .b19-print-meta p,
  .b19-print-customer p,
  .b19-print-notes p {
    line-height: 1.55 !important;
  }
  .b19-print-customer {
    padding: 30px 0 18px !important;
  }
  .b19-print-customer h3,
  .b19-print-notes h3 {
    margin: 0 0 10px !important;
    line-height: 1.2 !important;
  }
  .b19-print-sheet th,
  .b19-print-sheet td {
    padding: 15px 10px !important;
    line-height: 1.5 !important;
  }
  .b19-print-totals {
    margin-top: 28px !important;
  }
  .b19-print-totals p {
    padding: 9px 0 !important;
    line-height: 1.35 !important;
  }
  .b19-print-notes {
    margin-top: 26px !important;
    padding-top: 20px !important;
  }
  .b19-print-sheet footer {
    margin-top: 50px !important;
    line-height: 1.45 !important;
  }
}

/* v0.3.1 */
#b19-price-calculator .b19-field-help {
  display: block;
  margin-top: -2px;
  color: var(--b19-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

/* v0.4.0 */
#b19-price-calculator .b19-manual-discount-field {
  transition: opacity .18s ease;
}
#b19-price-calculator .b19-manual-discount-field.is-disabled {
  opacity: .48;
}
#b19-price-calculator .b19-manual-discount-field.is-disabled input {
  cursor: not-allowed;
  background: #f1f3f7;
}

/* v0.4.1 */
#b19-price-calculator .b19-field-help {
  max-width: 42ch;
}

/* v0.4.3 */
#b19-price-calculator .b19-quote-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
#b19-price-calculator .b19-delete-quote {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid #f0b4b4;
  border-radius: 10px;
  background: #fff;
  color: #b42318;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
#b19-price-calculator .b19-delete-quote:hover {
  background: #fff0ef;
  border-color: #e4827c;
}

/* v0.4.4 — butoane permanent rotunjite */
#b19-price-calculator .b19-btn,
#b19-price-calculator .b19-link,
#b19-price-calculator .b19-delete-quote,
#b19-price-calculator button[data-action],
#b19-price-calculator button[data-open-quote],
#b19-price-calculator button[data-delete-quote] {
  border-radius: 999px !important;
}

#b19-price-calculator .b19-btn:hover,
#b19-price-calculator .b19-link:hover,
#b19-price-calculator .b19-delete-quote:hover,
#b19-price-calculator button[data-action]:hover,
#b19-price-calculator button[data-open-quote]:hover,
#b19-price-calculator button[data-delete-quote]:hover {
  border-radius: 999px !important;
}

#b19-price-calculator .b19-link {
  min-height: 38px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--b19-lime);
  color: var(--b19-ink);
  border: 1px solid transparent;
  text-decoration: none;
}

#b19-price-calculator .b19-delete-quote {
  border-radius: 999px !important;
}

/* v0.4.5 — buton condiționat pentru header */
.b19-header-calculator-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px !important;
  background: var(--b19-blue, #2457ff);
  color: #fff !important;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease;
}

.b19-header-calculator-button:hover,
.b19-header-calculator-button:focus {
  border-radius: 999px !important;
  color: #fff !important;
  transform: translateY(-1px);
  opacity: .94;
  box-shadow: 0 8px 20px rgba(36, 87, 255, .18);
}

@media (max-width: 1024px) {
  .b19-header-calculator-button {
    min-height: 46px;
    padding: 0 20px;
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  .b19-header-calculator-button {
    width: 100%;
    min-height: 44px;
    padding: 0 16px;
  }
}

/* v0.4.8 — autentificare angajați */
.b19-login-shell{max-width:520px;margin:70px auto;padding:0 20px}
.b19-login-card{background:#fff;border:1px solid #e6e9ef;border-radius:24px;padding:34px;box-shadow:0 18px 50px rgba(16,19,26,.08)}
.b19-login-eyebrow{display:block;margin-bottom:8px;color:#2457ff;font-size:12px;font-weight:900;letter-spacing:.14em}
.b19-login-card h1{margin:0 0 10px;color:#10131a;font-size:clamp(32px,5vw,48px);line-height:1}
.b19-login-card>p{margin:0 0 26px;color:#687080;line-height:1.5}
.b19-login-form{display:grid;gap:18px}
.b19-login-form label{display:grid;gap:8px;color:#394052;font-size:13px;font-weight:800}
.b19-login-form input[type="text"],.b19-login-form input[type="password"]{width:100%;min-height:50px;padding:12px 14px;border:1px solid #d8dde8;border-radius:14px;background:#fff;color:#10131a;font:inherit;box-sizing:border-box}
.b19-login-form input:focus{outline:2px solid rgba(36,87,255,.18);border-color:#2457ff}
.b19-login-remember{display:flex!important;align-items:center;gap:10px!important}
.b19-login-remember input{width:auto}
.b19-login-submit,.b19-employee-logout{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 22px;border:0;border-radius:999px!important;background:#b9ff1a;color:#10131a!important;font-weight:850;text-decoration:none!important;cursor:pointer}
.b19-login-reset{display:inline-block;margin-top:18px;color:#2457ff;font-weight:750;text-decoration:none}
.b19-login-error{margin-bottom:18px;padding:12px 14px;border:1px solid #f2b8b5;border-radius:12px;background:#fff1f0;color:#a11b13;font-size:13px;font-weight:700}
@media(max-width:640px){.b19-login-shell{margin:36px auto}.b19-login-card{padding:24px 20px;border-radius:18px}}

/* v0.4.10 — login page cleanup */
body.b19-employee-login-page .entry-title,
body.b19-employee-login-page .page-header,
body.b19-employee-login-page .page-title {
  display: none !important;
}
body.b19-employee-login-page .site-main,
body.b19-employee-login-page main {
  min-height: calc(100vh - 180px);
}

/* v0.4.11 — calculator page cleanup */
body.b19-calculator-page .entry-title,
body.b19-calculator-page .page-header,
body.b19-calculator-page .page-title {
  display: none !important;
}

/* v0.4.12 — buton rotund login/logout */
.b19-auth-circle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px !important;
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.b19-auth-circle svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}
.b19-auth-circle--login {
  background: #f0f3f8;
  color: #10131a !important;
}
.b19-auth-circle--logout {
  background: #10131a;
  color: #fff !important;
}
.b19-auth-circle:hover,
.b19-auth-circle:focus {
  border-radius: 999px !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(16,19,26,.14);
  opacity: .94;
}
@media (max-width: 767px) {
  .b19-auth-circle {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }
}

/* v0.4.15 — butoane fără bordură roșie */
#b19-price-calculator button,
#b19-price-calculator .b19-btn,
#b19-price-calculator .b19-link,
#b19-price-calculator .b19-delete-quote,
.b19-header-calculator-button,
.b19-auth-circle,
.b19-login-submit,
.b19-employee-logout {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none;
}

#b19-price-calculator button:hover,
#b19-price-calculator button:focus,
#b19-price-calculator .b19-btn:hover,
#b19-price-calculator .b19-btn:focus,
#b19-price-calculator .b19-link:hover,
#b19-price-calculator .b19-link:focus,
.b19-header-calculator-button:hover,
.b19-header-calculator-button:focus,
.b19-auth-circle:hover,
.b19-auth-circle:focus {
  border: 0 !important;
  outline: 0 !important;
}

#b19-price-calculator .b19-quote-description {
  max-width: 320px;
  white-space: normal;
  line-height: 1.4;
  color: var(--b19-muted);
}

/* Tipărire izolată: doar oferta ocupă pagina */
@media print {
  @page {
    size: A4 portrait;
    margin: 12mm;
  }

  html,
  body {
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #fff !important;
  }

  body.b19-printing > *:not(#b19-print-area) {
    display: none !important;
  }

  body.b19-printing #b19-print-area {
    display: block !important;
    position: static !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    visibility: visible !important;
  }

  body.b19-printing #b19-print-area *,
  body.b19-printing #b19-print-area *::before,
  body.b19-printing #b19-print-area *::after {
    visibility: visible !important;
  }

  body.b19-printing .b19-print-sheet {
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    page-break-after: auto !important;
    break-after: auto !important;
  }

  body.b19-printing .b19-print-sheet header,
  body.b19-printing .b19-print-customer,
  body.b19-printing .b19-print-totals,
  body.b19-printing .b19-print-notes,
  body.b19-printing .b19-print-sheet footer {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  body.b19-printing .b19-print-sheet table {
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  body.b19-printing .b19-print-sheet tr {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
}

/* v0.4.17 — mobile cards for saved quotations */
@media (max-width: 767px) {
  #b19-price-calculator .b19-table-wrap {
    overflow: visible;
  }

  #b19-price-calculator .b19-table {
    min-width: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 14px;
  }

  #b19-price-calculator .b19-table thead {
    display: none;
  }

  #b19-price-calculator .b19-table,
  #b19-price-calculator .b19-table tbody,
  #b19-price-calculator .b19-table tr,
  #b19-price-calculator .b19-table td {
    display: block;
    width: 100%;
  }

  #b19-price-calculator .b19-table tr {
    overflow: hidden;
    border: 1px solid var(--b19-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(16,19,26,.045);
  }

  #b19-price-calculator .b19-table td {
    display: grid;
    grid-template-columns: minmax(105px, 38%) minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--b19-line);
    text-align: left;
    overflow-wrap: anywhere;
  }

  #b19-price-calculator .b19-table td:last-child {
    border-bottom: 0;
  }

  #b19-price-calculator .b19-table td::before {
    content: attr(data-label);
    color: var(--b19-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em;
    line-height: 1.35;
    text-transform: uppercase;
  }

  #b19-price-calculator .b19-quote-description {
    max-width: none;
  }

  #b19-price-calculator .b19-quote-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  #b19-price-calculator .b19-status {
    width: fit-content;
  }
}

@media (max-width: 430px) {
  #b19-price-calculator .b19-table td {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  #b19-price-calculator .b19-table td::before {
    margin-bottom: 1px;
  }
}

/* v0.4.18 — prevent logout icon overlap in Elementor header */
.b19-auth-circle-wrap {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  margin-left: 10px !important;
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  z-index: 2;
  vertical-align: middle;
}

.b19-auth-circle-wrap .b19-auth-circle {
  position: static !important;
  inset: auto !important;
  margin: 0 !important;
  transform: none;
}

.b19-auth-circle-wrap .b19-auth-circle:hover,
.b19-auth-circle-wrap .b19-auth-circle:focus {
  transform: translateY(-1px);
}

.elementor-widget-shortcode:has(.b19-auth-circle-wrap),
.elementor-shortcode:has(.b19-auth-circle-wrap) {
  width: auto !important;
  min-width: 44px !important;
  flex: 0 0 auto !important;
  overflow: visible !important;
}

@media (max-width: 767px) {
  .b19-auth-circle-wrap {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    margin-left: 8px !important;
  }
}

/* v0.4.19 — Calculator and logout rendered inside one shortcode */
.b19-header-employee-actions {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  width: auto !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  position: static !important;
  transform: none !important;
}

.b19-header-employee-actions .b19-header-calculator-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 52px !important;
  padding: 0 28px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #2457ff !important;
  color: #fff !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  position: static !important;
  transform: none !important;
}

.b19-header-integrated-logout {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #10131a !important;
  color: #fff !important;
  text-decoration: none !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
}

.b19-header-integrated-logout svg {
  width: 21px !important;
  height: 21px !important;
  display: block !important;
  fill: currentColor !important;
}

.b19-header-integrated-logout:hover,
.b19-header-integrated-logout:focus {
  transform: translateY(-1px) !important;
}

.elementor-widget-shortcode:has(.b19-header-employee-actions),
.elementor-shortcode:has(.b19-header-employee-actions) {
  width: auto !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
  overflow: visible !important;
}

@media (max-width: 767px) {
  .b19-header-employee-actions {
    gap: 8px !important;
  }

  .b19-header-employee-actions .b19-header-calculator-button {
    min-height: 44px !important;
    padding: 0 18px !important;
  }

  .b19-header-integrated-logout {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    flex-basis: 42px !important;
  }
}
