/* ========================================================
   ShohojKagoj.com - Professional CV & Resume Maker Styles
   Clean, A4 Print-ready, ATS-friendly Multi-department Design
   ======================================================== */

.cv-customizer-toolbar {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cv-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.cv-lang-switch {
  display: inline-flex;
  background: #e2e8f0;
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
}

.cv-lang-btn {
  padding: 6px 14px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: #475569;
  transition: all 0.15s;
}

.cv-lang-btn.active {
  background: #006a4e;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 106, 78, 0.25);
}

.cv-dept-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.cv-dept-pill {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cv-dept-pill:hover {
  border-color: #006a4e;
  color: #006a4e;
}

.cv-dept-pill.active {
  background: #006a4e;
  color: #ffffff;
  border-color: #006a4e;
  box-shadow: 0 2px 6px rgba(0, 106, 78, 0.25);
}

/* CV Layout & Color Selectors */
.cv-controls-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}

@media (max-width: 768px) {
  .cv-controls-grid {
    grid-template-columns: 1fr;
  }
}

.cv-photo-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
}

/* CV Photo Uploader */
.cv-photo-upload-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1.5px dashed var(--border-color);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.cv-photo-thumb {
  width: 58px;
  height: 68px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  background: var(--bg-main);
}

/* Dynamic Add Row Buttons */
.cv-repeat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid var(--border-color);
  padding-bottom: 6px;
  margin: 18px 0 10px;
}

.cv-repeat-header h4 {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cv-add-item-btn {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  background: #e6f3ef;
  color: #006a4e;
  border: 1px solid #bbf7d0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.cv-add-item-btn:hover {
  background: #006a4e;
  color: #ffffff;
}

.cv-item-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 10px;
  position: relative;
}

.cv-remove-item-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: #dc2626;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  padding: 2px 6px;
}

/* ========================================================
   CV Rendered Paper Sheet Layout (A4 Professional Rendering)
   ======================================================== */
.cv-paper-sheet {
  background: #ffffff;
  color: #1e293b;
  font-family: 'Hind Siliguri', 'Noto Serif Bengali', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  min-height: 297mm;
  padding: 28px 34px;
  box-sizing: border-box;
  position: relative;
  font-size: 13.5px;
  line-height: 1.55;
}

/* 1. Classic Govt Format Sheet */
.cv-govt-layout {
  font-family: 'Noto Serif Bengali', serif;
}

.cv-govt-header {
  text-align: center;
  margin-bottom: 22px;
  border-bottom: 2px solid #000000;
  padding-bottom: 10px;
  position: relative;
}

.cv-govt-header h2 {
  font-size: 20px;
  font-weight: 800;
  text-decoration: underline;
  margin-bottom: 4px;
  color: #000000;
}

.cv-govt-photo-slot {
  position: absolute;
  top: 0;
  right: 0;
  width: 95px;
  height: 115px;
  border: 1px solid #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 10.5px;
  background: #ffffff;
  padding: 2px;
}

.cv-govt-photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cv-govt-field-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.cv-govt-field-table td {
  padding: 5px 4px;
  vertical-align: top;
  font-size: 13.5px;
}

.cv-govt-field-table td.label-col {
  width: 28%;
  font-weight: bold;
}

.cv-govt-field-table td.colon-col {
  width: 2%;
  font-weight: bold;
}

.cv-govt-field-table td.value-col {
  width: 70%;
}

.cv-edu-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 16px;
  font-size: 12.5px;
}

.cv-edu-table th,
.cv-edu-table td {
  border: 1px solid #334155;
  padding: 6px 8px;
  text-align: center;
}

.cv-edu-table th {
  background: #f1f5f9;
  font-weight: bold;
}

/* 2. Modern Corporate & ATS Layout */
.cv-corp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2.5px solid var(--cv-theme, #006a4e);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.cv-corp-name h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--cv-theme, #006a4e);
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.cv-corp-name h3 {
  font-size: 14.5px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

.cv-corp-contacts {
  font-size: 12px;
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cv-corp-contacts span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cv-corp-photo {
  width: 85px;
  height: 98px;
  border-radius: 6px;
  object-fit: cover;
  border: 2px solid var(--cv-theme, #006a4e);
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.cv-corp-section {
  margin-bottom: 18px;
}

.cv-corp-sec-title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--cv-theme, #006a4e);
  border-bottom: 1.5px solid #e2e8f0;
  padding-bottom: 4px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
}

.cv-corp-item {
  margin-bottom: 12px;
}

.cv-corp-item-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3px;
}

.cv-corp-item-top strong {
  font-size: 13.5px;
  color: #0f172a;
}

.cv-corp-item-top span.period {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.cv-corp-item-sub {
  font-size: 12.5px;
  color: #475569;
  font-style: italic;
  margin-bottom: 4px;
}

.cv-skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.cv-skill-pill {
  background: #f1f5f9;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 600;
}

.cv-signature-row {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 10px;
  font-size: 12.5px;
}

.cv-sig-slot {
  text-align: center;
  border-top: 1px dashed #64748b;
  padding-top: 4px;
  min-width: 140px;
}

/* ========================================================
   Department-Specific ATS Components & Micro-Layouts
   ======================================================== */

/* 1. Scorecard Banner (Sales & Corporate) */
.cv-scorecard-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 12px 0 16px;
}

.cv-scorecard-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3.5px solid var(--cv-theme, #006a4e);
  padding: 8px 10px;
  border-radius: 4px;
  text-align: left;
}

.cv-scorecard-num {
  font-size: 15px;
  font-weight: 800;
  color: var(--cv-theme, #006a4e);
  margin-bottom: 2px;
  line-height: 1.2;
}

.cv-scorecard-lbl {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  line-height: 1.3;
}

/* 2. Categorized Tech Matrix (IT & Tech) */
.cv-tech-matrix {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
  padding: 8px 12px;
  margin-top: 6px;
}

.cv-matrix-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 12px;
  align-items: baseline;
}

.cv-matrix-row:last-child {
  border-bottom: none;
}

.cv-matrix-label {
  font-weight: 700;
  color: #0f172a;
}

.cv-matrix-tags {
  color: #334155;
  line-height: 1.45;
}

/* 3. Project Showcase & Bullet Lists (Tech & Fresher) */
.cv-project-item {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.cv-project-item:last-child {
  border-bottom: none;
}

.cv-project-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3px;
  flex-wrap: wrap;
  gap: 6px;
}

.cv-project-title {
  font-weight: 700;
  font-size: 13px;
  color: #0f172a;
}

.cv-project-links {
  font-size: 11px;
  color: var(--cv-theme, #006a4e);
  font-weight: 600;
}

.cv-project-tech {
  font-size: 11.5px;
  color: #64748b;
  font-style: italic;
  margin-bottom: 4px;
}

.cv-bullet-list {
  margin: 4px 0 6px 18px;
  padding: 0;
  font-size: 12.5px;
  color: #334155;
  line-height: 1.5;
}

.cv-bullet-list li {
  margin-bottom: 3px;
}

/* 4. Professional Certifications & Diplomas Grid */
.cv-cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}

.cv-cert-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.cv-cert-card strong {
  color: #0f172a;
  display: block;
}

.cv-cert-card span {
  color: #64748b;
  font-size: 11px;
}

/* 5. Scholarly Publications (Teaching & Academia) */
.cv-pub-list {
  margin-top: 6px;
}

.cv-pub-item {
  font-size: 12px;
  line-height: 1.55;
  margin-bottom: 8px;
  padding-left: 14px;
  position: relative;
  color: #334155;
}

.cv-pub-item::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--cv-theme, #006a4e);
  font-size: 16px;
  line-height: 1;
}

/* 6. Thematic Area Badges (NGO & Social Development) */
.cv-thematic-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.cv-thematic-pill {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
}

/* 7. Academic Honors & Leadership Box (Fresher) */
.cv-honors-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3.5px solid var(--cv-theme, #4f46e5);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #334155;
  line-height: 1.5;
}

.cv-bullet-list li::marker {
  color: var(--cv-theme, #006a4e);
}

/* ========================================================
   Theme Color Palette & Custom Picker UI
   ======================================================== */
.cv-theme-palette-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: #f8fafc;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
}

.cv-theme-label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cv-color-swatches {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.cv-color-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  outline: 2px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 10px;
  font-weight: bold;
  transition: transform 0.15s, outline-color 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
  padding: 0;
}

.cv-color-swatch:hover {
  transform: scale(1.18);
}

.cv-color-swatch.active {
  outline-color: #0f172a;
  transform: scale(1.12);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.cv-custom-color-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  padding: 1px 6px 1px 3px;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
}

.cv-custom-color-wrap input[type="color"] {
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  background: none;
  vertical-align: middle;
}

.cv-color-hex {
  font-size: 10.5px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #334155;
  text-transform: uppercase;
}

/* ========================================================
   Sub-Technology Selector & Specialized Sections
   ======================================================== */
.cv-subtech-selector-wrap {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-left: 4px solid var(--cv-theme, #006a4e);
  border-radius: 6px;
  padding: 10px 14px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cv-subtech-selector-wrap label {
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cv-subtech-select {
  padding: 6px 12px;
  border: 1.5px solid var(--cv-theme, #006a4e);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  background: #f8fafc;
  cursor: pointer;
  outline: none;
  min-width: 260px;
  max-width: 100%;
}

.cv-subtech-select:focus {
  border-color: #0f172a;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(0, 106, 78, 0.2);
}

/* Registration & License Badge */
.cv-reg-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
  padding: 3px 10px;
  border-radius: 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.cv-reg-badge.bmdc {
  background: #ecfeff;
  border-color: #67e8f9;
  color: #0e7490;
}

.cv-reg-badge.bteb {
  background: #fff7ed;
  border-color: #fdba74;
  color: #c2410c;
}

/* Specialized Info Boxes (Attachment, Rotations, Compliance) */
.cv-spec-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3.5px solid var(--cv-theme, #006a4e);
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 12px;
}

.cv-spec-box-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--cv-theme, #006a4e);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.cv-spec-box-sub {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 4px;
}

.cv-spec-box-desc {
  font-size: 12px;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

/* Grid for Tools, CAD, Workshop Skills */
.cv-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.cv-tool-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  padding: 6px 10px;
  font-size: 11.5px;
  color: #334155;
  display: flex;
  flex-direction: column;
}

.cv-tool-card strong {
  color: var(--cv-theme, #006a4e);
  font-size: 12px;
}

/* ========================================================

/* ========================================================
   Collapsible Accordion / Expand-Collapse Form Sections
   ======================================================== */
.cv-accordion-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 6px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.cv-accordion-actions-hint {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cv-accordion-btns {
  display: flex;
  gap: 6px;
}

.cv-acc-toggle-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

.cv-acc-toggle-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.cv-accordion-pane {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.cv-accordion-pane:hover {
  border-color: #cbd5e1;
}

.cv-accordion-pane[open] {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cv-accordion-header {
  padding: 10px 14px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  border-bottom: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.cv-accordion-pane[open] > .cv-accordion-header {
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  color: var(--cv-theme, #006a4e);
}

.cv-acc-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cv-acc-icon {
  font-size: 14px;
}

.cv-acc-title {
  font-size: 13px;
  font-weight: 700;
}

.cv-acc-badge {
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 10px;
  background: #e2e8f0;
  color: #475569;
}

.cv-accordion-pane[open] .cv-acc-badge {
  background: var(--cv-theme, #006a4e);
  color: #ffffff;
}

.cv-acc-arrow {
  font-size: 10px;
  color: #64748b;
  transition: transform 0.2s ease;
}

.cv-accordion-pane[open] > .cv-accordion-header .cv-acc-arrow {
  transform: rotate(180deg);
}

/* Remove native browser disclosure triangle */
.cv-accordion-header::-webkit-details-marker {
  display: none;
}
.cv-accordion-header::marker {
  display: none;
}

.cv-accordion-body {
  padding: 12px 14px;
  background: #ffffff;
}

/* ========================================================
   Worker, Garments & Domestic Layout Specifics
   ======================================================== */
.cv-reg-badge.brta {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.cv-reg-badge.guard {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #b45309;
}

.cv-reg-badge.rmg {
  background: #fdf2f8;
  border-color: #fbcfe8;
  color: #be185d;
}

/* Reassuring Guarantor Box for Domestic, Driver & Security CV */
.cv-guarantor-box {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-left: 4px solid var(--cv-theme, #006a4e);
  border-radius: 6px;
  padding: 10px 14px;
  margin-top: 10px;
  margin-bottom: 12px;
}

.cv-guarantor-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.cv-guarantor-desc {
  font-size: 11.5px;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

/* Menu Grid for Cook / Chef */
.cv-menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 6px;
}

.cv-menu-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 12px;
  color: #1e293b;
  line-height: 1.45;
}

.cv-menu-item strong {
  color: var(--cv-theme, #006a4e);
}

/* Multi-page Print Perfection */
@media print {
  .cv-accordion-pane,
  .cv-corp-section,
  .cv-spec-box,
  .cv-corp-item,
  .cv-project-card,
  .cv-cert-card,
  .cv-worker-card,
  .cv-table-wrap,
  .cv-guarantor-box,
  .cv-pub-item,
  .cv-edu-table tr,
  .cv-govt-field-table tr {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .cv-corp-sec-title,
  .cv-govt-header,
  .cv-worker-header,
  h1, h2, h3, h4 {
    page-break-after: avoid !important;
    break-after: avoid !important;
  }
}

/* Compact Sector & Technology Dropdown Toolbar */
.cv-compact-sector-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 10px;
}

@media (max-width: 640px) {
  .cv-compact-sector-bar {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.cv-sector-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cv-control-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 5px;
}

.cv-select-wrap {
  position: relative;
}

.cv-modern-select {
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.cv-modern-select:hover {
  border-color: #94a3b8;
}

.cv-modern-select:focus {
  border-color: var(--cv-theme, #006a4e);
  box-shadow: 0 0 0 3px rgba(0, 106, 78, 0.12);
}

.cv-modern-select optgroup {
  font-weight: 800;
  color: #1e293b;
  background: #f1f5f9;
}

.cv-modern-select option {
  font-weight: 500;
  color: #0f172a;
  background: #ffffff;
  padding: 6px;
}

.cv-sector-info-badge {
  justify-content: flex-end;
}

.cv-sector-badge-content {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 11.5px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 6px;
  height: 38px;
  box-sizing: border-box;
}

/* Bottom "+ Add Item" Button for Repeating Sections */
.cv-add-item-bottom-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  margin-top: 10px;
  background: #f8fafc;
  border: 1.5px dashed var(--cv-theme, #006a4e);
  border-radius: 6px;
  color: var(--cv-theme, #006a4e);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.cv-add-item-bottom-btn:hover {
  background: var(--cv-theme, #006a4e);
  color: #ffffff;
  border-style: solid;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Section Exclusion & Inclusion Controls */
.cv-acc-toggle-sec-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  margin-left: 8px;
  transition: all 0.15s;
}

.cv-acc-toggle-sec-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.cv-acc-toggle-sec-btn.enable-btn {
  color: #15803d;
  border-color: #86efac;
}

.cv-acc-toggle-sec-btn.enable-btn:hover {
  background: #dcfce7;
  border-color: #4ade80;
  color: #166534;
}

.cv-acc-badge.disabled {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border: 1px solid #fca5a5;
}

.cv-section-disabled-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff1f2;
  border: 1px dashed #fca5a5;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  color: #9f1239;
  margin-bottom: 12px;
}
