/*
 * enviro.css — Tema verde Enviro Consult
 * Toate paginile includ acest fisier.
 * Override-uri locale doar cu <style> in template.
 */

/* ══════════════════════════════════════════════════════════════
   VARIABILE
   ══════════════════════════════════════════════════════════════ */
:root {
  --green:         #2d6a2d;
  --green-light:   #4a9e4a;
  --green-pale:    #f0f7f0;
  --green-medium:  #e8f5e8;
  --green-dark:    #1a4a1a;
  --white:         #ffffff;
  --gray:          #555555;
  --red:           #c0392b;
  --orange:        #e67e22;
  --red-bg:        #fdecea;
  --orange-bg:     #fff3e0;
  --border:        #c8d8c8;
  --radius:        4px;
  --shadow:        0 1px 4px rgba(0,0,0,0.07);
  --shadow-md:     0 2px 8px rgba(0,0,0,0.1);
}

/* ══════════════════════════════════════════════════════════════
   RESET + BASE
   ══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #222;
  background: var(--green-pale);
  line-height: 1.5;
  min-height: 100vh;
}

a { color: var(--green); }
a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════════
   TOPBAR (header principal pe toate paginile autentificate)
   ══════════════════════════════════════════════════════════════ */
.topbar {
  background: var(--green);
  color: var(--white);
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.topbar-left { display: flex; align-items: center; gap: 18px; }
.topbar-logo {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  white-space: nowrap;
}
.topbar-sep {
  width: 1px; height: 22px;
  background: rgba(255,255,255,0.25);
}
.topbar nav { display: flex; gap: 2px; }
.topbar nav a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
}
.topbar nav a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.12);
  text-decoration: none;
}
.topbar nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.18);
  font-weight: 600;
}
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-user {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
}
.topbar-logout {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  transition: all 0.15s;
}
.topbar-logout:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
  text-decoration: none;
}

/* ══════════════════════════════════════════════════════════════
   LAYOUT
   ══════════════════════════════════════════════════════════════ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--green-medium);
}
.page-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--green-dark);
}
.page-sub {
  font-size: 12px;
  color: var(--gray);
  margin-top: 4px;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   HEADINGS
   ══════════════════════════════════════════════════════════════ */
h1 {
  margin: 0 0 4px;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--green-dark);
}
h2 {
  margin: 24px 0 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-dark);
  border-bottom: 2px solid var(--green);
  padding-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
h2 .count {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  background: var(--green);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
}
h2 .count.urgent { background: var(--red); }
h2 .count.warn   { background: var(--orange); }

h3 {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--gray);
}

/* ══════════════════════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════════════════════ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  overflow: hidden;
}
.card.no-accent {
  border-left-width: 1px;
}
.card.urgent {
  border-left-color: var(--red);
}
.card-header {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--green-medium);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-title {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--green-dark);
}
.card-body {
  padding: 18px;
}
.card.empty {
  color: var(--gray);
  font-style: italic;
  padding: 14px 18px;
}

/* ══════════════════════════════════════════════════════════════
   ROWS (liste in carduri)
   ══════════════════════════════════════════════════════════════ */
.row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid #eef2ee;
  gap: 10px;
}
.row:last-child { border-bottom: none; }
.row a {
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
}
.row a:hover { text-decoration: underline; }
.row .meta {
  color: var(--gray);
  font-size: 12px;
}

/* ══════════════════════════════════════════════════════════════
   STATUS BADGES
   ══════════════════════════════════════════════════════════════ */
.status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.status.nou            { background: var(--green-medium); color: var(--green); border: 1px solid var(--green-light); }
.status.alocat         { background: var(--orange-bg); color: var(--orange); }
.status.oferta_generata { background: var(--green-medium); color: var(--green); }
.status.aprobat        { background: var(--green); color: var(--white); }
.status.comanda_ferma  { background: var(--green); color: var(--white); }
.status.respins        { background: var(--red-bg); color: var(--red); }

.status.draft,
.status.raport_draft   { background: var(--orange-bg); color: var(--orange); }
.status.la_qa          { background: #fff8e1; color: #8a6d00; }
.status.aprobat_qa     { background: var(--green-medium); color: var(--green); }
.status.aprobat_sef    { background: var(--green-medium); color: var(--green-dark); }
.status.stampilat      { background: var(--green); color: var(--white); }
.status.livrat         { background: var(--green); color: var(--white); }
.status.masurare       { background: #e3f2fd; color: #1565c0; }

.status.conform        { background: var(--green); color: var(--white); }
.status.neconform      { background: var(--red); color: var(--white); }

/* pill variant (rounded) */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.pill.nou              { background: var(--green-medium); color: var(--green); }
.pill.alocat           { background: var(--orange-bg); color: var(--orange); }
.pill.oferta_generata  { background: var(--green-medium); color: var(--green); }
.pill.aprobat          { background: var(--green); color: var(--white); }
.pill.respins          { background: var(--red-bg); color: var(--red); }
.pill.comanda_ferma    { background: var(--green); color: var(--white); }

/* ══════════════════════════════════════════════════════════════
   KPIS
   ══════════════════════════════════════════════════════════════ */
.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
@media (max-width: 768px) { .kpis { grid-template-columns: 1fr; } }
.kpi {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.kpi .label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--gray);
}
.kpi .value {
  font-size: 28px;
  font-weight: 700;
  color: var(--green);
  margin-top: 4px;
}
.kpi .sub {
  font-size: 11px;
  color: var(--gray);
}

/* ══════════════════════════════════════════════════════════════
   ALERTS
   ══════════════════════════════════════════════════════════════ */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  border-left: 4px solid;
}
.alert.rosu,
.alert-error   { background: var(--red-bg); border-left-color: var(--red); color: #7a1a1a; }
.alert.galben,
.alert-warn    { background: #fff8e1; border-left-color: var(--orange); color: #6a4d00; }
.alert-info    { background: var(--green-medium); border-left-color: var(--green); color: var(--green-dark); }
.alert-success { background: var(--green-medium); border-left-color: var(--green); color: var(--green-dark); }

.alert a { color: var(--green); text-decoration: none; font-weight: 600; }
.alert .titlu { font-weight: 600; margin-bottom: 2px; }
.alert .mesaj { color: var(--gray); font-size: 12px; }

/* ══════════════════════════════════════════════════════════════
   FORMS
   ══════════════════════════════════════════════════════════════ */
.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 5px;
}
label .req { color: var(--red); margin-left: 2px; }

input[type=text], input[type=date], input[type=number], input[type=email],
input[type=tel], input[type=password],
textarea, select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--green-light);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  color: #222;
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45,106,45,0.1);
}
input[readonly], textarea[readonly] {
  background: var(--green-pale);
  color: var(--gray);
  cursor: default;
  border-color: var(--border);
}
textarea { resize: vertical; min-height: 70px; }

/* ══════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--green-dark);
  box-shadow: 0 3px 10px rgba(45,106,45,0.25);
  text-decoration: none;
  color: var(--white);
}
.btn-primary:disabled {
  background: var(--border);
  color: var(--gray);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--white);
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.btn-secondary:hover {
  background: var(--green);
  color: var(--white);
  text-decoration: none;
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.btn-danger:hover {
  background: #a82315;
  text-decoration: none;
  color: var(--white);
}

/* btn-semneaza — buton mare full-width (Premasurare, oferta) */
.btn-semneaza {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}
.btn-semneaza:hover {
  background: var(--green-dark);
  box-shadow: 0 4px 12px rgba(45,106,45,0.3);
}
.btn-semneaza:disabled {
  background: var(--border);
  color: var(--gray);
  cursor: not-allowed;
  box-shadow: none;
}

/* btn-salveaza — buton outline premasurare */
.btn-salveaza {
  padding: 9px 20px;
  background: var(--white);
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  display: inline-block;
}
.btn-salveaza:hover {
  background: var(--green);
  color: var(--white);
  text-decoration: none;
}

/* ══════════════════════════════════════════════════════════════
   TABLES
   ══════════════════════════════════════════════════════════════ */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table th {
  background: var(--green);
  color: var(--white);
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
}
table tr:nth-child(even) td {
  background: var(--green-medium);
}
table tr:hover td {
  background: #ddf0dd;
}

/* ══════════════════════════════════════════════════════════════
   CHECKBOXES + RADIO (vizuale, premasurare/oferta)
   ══════════════════════════════════════════════════════════════ */
.check-group { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.check-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.15s;
  user-select: none;
}
.check-item:hover { border-color: var(--green); }
.check-item input[type=checkbox] { display: none; }
.check-item.checked {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.check-item .checkmark { font-size: 11px; }

.radio-group { display: flex; gap: 8px; margin-top: 4px; }
.radio-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}
.radio-item input { display: none; }
.radio-item.selected {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

/* DA/NU buttons */
.da-nu-group { display: flex; gap: 8px; align-items: center; }
.da-nu-btn {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--white);
}
.da-nu-btn.da.active { background: var(--green); color: var(--white); border-color: var(--green); }
.da-nu-btn.nu.active { background: var(--red); color: var(--white); border-color: var(--red); }

/* Pills toggle */
.personal-pill, .metoda-pill {
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-block;
}
.personal-pill.active, .metoda-pill.active {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

/* ══════════════════════════════════════════════════════════════
   FISA CAPABILITATE (premasurare / oferta)
   ══════════════════════════════════════════════════════════════ */
.fisa-capabilitate {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px 16px;
  align-items: center;
  font-size: 13px;
}
.fisa-capabilitate label {
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: #222;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   UPLOAD ZONE
   ══════════════════════════════════════════════════════════════ */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: all 0.15s;
  cursor: pointer;
  position: relative;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--green);
  background: rgba(45,106,45,0.03);
}
.upload-zone input[type=file] {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer;
  width: 100%; height: 100%;
}
.upload-icon { font-size: 28px; margin-bottom: 8px; }
.upload-text { font-size: 13px; color: var(--gray); }
.upload-text strong { color: var(--green); }
.upload-preview {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--green-medium);
  border: 1px solid var(--green-light);
  border-radius: var(--radius);
  margin-top: 10px;
  font-size: 13px;
}
.upload-preview.visible { display: flex; }
.upload-preview-name { font-weight: 500; color: var(--green); }

/* ══════════════════════════════════════════════════════════════
   SEMNAT BADGE
   ══════════════════════════════════════════════════════════════ */
.semnat-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-medium);
  border: 1px solid var(--green-light);
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 13px;
  color: var(--green);
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════════════
   NR BADGE
   ══════════════════════════════════════════════════════════════ */
.nr-badge {
  background: var(--green);
  color: var(--white);
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* ══════════════════════════════════════════════════════════════
   BADGE RETURN (rapoarte returnate)
   ══════════════════════════════════════════════════════════════ */
.badge-return {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--red-bg);
  color: var(--red);
  font-size: 11px;
  font-weight: 600;
  margin-left: 6px;
}
.note-qa {
  color: var(--gray);
  font-size: 12px;
  font-style: italic;
  padding: 4px 10px;
  background: #fffdf0;
  border-left: 2px solid var(--orange);
  margin-top: 6px;
}

/* ══════════════════════════════════════════════════════════════
   EMPTY STATE
   ══════════════════════════════════════════════════════════════ */
.empty-state {
  color: var(--gray);
  font-style: italic;
  padding: 10px 0;
  font-size: 13px;
}

/* ══════════════════════════════════════════════════════════════
   DESCRIPTION LIST (aprobare_cerere, detalii)
   ══════════════════════════════════════════════════════════════ */
dl.detalii {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px 18px;
  font-size: 13px;
  line-height: 1.55;
}
dl.detalii dt { font-weight: 600; color: var(--gray); }
dl.detalii dd { color: #222; }

/* ══════════════════════════════════════════════════════════════
   TOAST (feedback non-intruziv)
   ══════════════════════════════════════════════════════════════ */
#toast {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  transition: opacity 0.3s;
}
#toast.ok {
  display: block;
  background: var(--green-medium);
  color: var(--green);
  border: 1px solid var(--green-light);
}
#toast.err {
  display: block;
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid #ef9a9a;
}

/* ══════════════════════════════════════════════════════════════
   SECTION (generic — aprobare_cerere, qa_view, etc)
   ══════════════════════════════════════════════════════════════ */
.section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.section-header {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--green-medium);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-title {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--green-dark);
}
.section-body { padding: 18px; }

/* ══════════════════════════════════════════════════════════════
   COMANDA NR (premasurare header)
   ══════════════════════════════════════════════════════════════ */
.comanda-nr {
  font-size: 28px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: -1px;
}
.comanda-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 6px;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ══════════════════════════════════════════════════════════════
   STATUS COLORS for comanda-status
   ══════════════════════════════════════════════════════════════ */
.status-noua    { background: var(--green-medium); color: var(--green); }
.status-alocat  { background: var(--orange-bg); color: var(--orange); }
.status-oferta  { background: var(--orange-bg); color: var(--orange); }
.status-astept  { background: var(--orange-bg); color: var(--orange); }
.status-lansata { background: var(--green-medium); color: var(--green); }

/* ══════════════════════════════════════════════════════════════
   DASHBOARD GRID (sef laborator 2fr 1fr layout)
   ══════════════════════════════════════════════════════════════ */
.grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } }

/* S-LOT8C (G-DEAD4): blocul paginii de autentificare (card, titlu, insignă, erori) scos —
   pagina nu mai există din S-LOT8A (autentificarea = Cloudflare Access). */

/* ══════════════════════════════════════════════════════════════
   HERO (cerere_client public)
   ══════════════════════════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: var(--white);
  text-align: center;
  padding: 40px 24px 32px;
}
.hero h1 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--white);
}
.hero p {
  font-size: 15px;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════════
   ROLE TABS (dashboard legacy, premasurare)
   ══════════════════════════════════════════════════════════════ */
.role-tabs {
  background: var(--green);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 0 32px;
  display: flex;
  gap: 0;
}
.role-tab {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  padding: 10px 18px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.role-tab:hover { color: rgba(255,255,255,0.85); }
.role-tab.active {
  color: var(--white);
  border-bottom-color: #f0a830;
}

/* ══════════════════════════════════════════════════════════════
   HEADER (premasurare, dashboard legacy, oferta — compat)
   ══════════════════════════════════════════════════════════════ */
.header {
  background: var(--green);
  color: var(--white);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.header-left { display: flex; align-items: center; gap: 16px; }
.header-logo {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
}
.header-sep { width: 1px; height: 20px; background: rgba(255,255,255,0.2); }
.header-title { font-size: 14px; font-weight: 500; }
.header-right { display: flex; align-items: center; gap: 16px; }
.user-badge {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  gap: 8px;
}
.user-avatar {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
}
.btn-logout {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  transition: all 0.15s;
}
.btn-logout:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
  text-decoration: none;
}

/* ══════════════════════════════════════════════════════════════
   MISC COMPAT
   ══════════════════════════════════════════════════════════════ */
.section-gap { margin-top: 20px; }
.col-span-2 { grid-column: span 2; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.descriere {
  background: var(--green-pale);
  border-left: 3px solid var(--green);
  padding: 12px 14px;
  font-size: 13px;
  color: #333;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 4px;
}
