.page-gray-bg-color {
    background-color: #F9FAFB;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-bar {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 10px;
    background: white;
    min-width: 600px;
    margin: 0 auto;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-select {
    background: #EDF3FA;
    color: #104289;
    font-weight: 500;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    outline: none;
}

.search-input {
    flex-grow: 1;
    box-shadow: none;
    border: none;
    outline: none;
    padding: 10px;
    font-size: 16px;
    color: #374151;
}

.search-input:focus {
    box-shadow: none;
    border: none;
    outline: none;
}

.search-input:focus {
    outline: none;
}

.search-bar:focus-within {
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
}

.search-icon {
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 18px;
    padding: 5px 10px;
    cursor: pointer;
    transition: color 0.3s;
}

.search-icon:hover {
    color: #374151;
}

.recent-searches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-badge {
    background: #e9ecef;
    color: #374151;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
}

.newly-added-list {
    list-style: none;
    padding: 0;
}

.new-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    gap: 12px;
}

.new-badge {
    display: inline-block;
    background-color: #ECFDF3;
    color: #027A48;
    font-size: 14px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 16px;
    margin-left: 8px;
}

.new-link {
    text-decoration: none;
    color: #1f2937;
    font-size: 16px;
    flex-grow: 1;
}

.new-icon {
    color: #6b7280;
}


.badge-group span {
    margin-right: 5px;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 12px;
}

.related-results span, .related-results a {
    margin-right: 10px;
}

.supply-chains-list label, .documents-list label, .product-list label {
    display: block;
    margin-bottom: 5px;
}

.sidebar-card {
    background: #f8f9fa;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    padding: 15px;
}

.badge-group .badge {
    background-color: #f3f4f6;
    color: #374151;
    font-weight: 500;
    border-radius: 999px;
}

.related-results .badge {
    cursor: pointer;
}

.related-results a {
    align-self: center;
}

.sidebar-card {
    margin-left: -25px;
    width: 300px;
}

.supply-chains-list label,
.documents-list label,
.product-list label {
    display: block;
    margin-bottom: 8px;
}

.popover-card {
    position: absolute;
    top: 50px;
    left: 100px;
    background-color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    width: 350px;
    padding: 16px;
    z-index: 1000;
}

.popover-card h6 {
    font-weight: bold;
}

.popover-card ul {
    padding-left: 20px;
}

.popover-card .form-control {
    font-size: 14px;
}

.custom-badge {
    background-color: #EDF3FA;
    color: #104289;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
}

.rotate-270 {
    transform: rotate(270deg) !important;
}

.mini-badge {
    background-color: #e8effc;
    color: #0f2e65;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
}

.vr {
    width: 1px;
    background-color: #dee2e6;
    opacity: 1;
}

.popover-card {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 16px;
    width: 350px;
    z-index: 10;
    display: none;
}

.hover-label {
    position: relative;
    display: inline-block;
}

.search-custom-badge {
    background-color: #EDF3FA;
    color: #104289;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
}

.industry-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
    font-weight: 500;
    cursor: pointer;
}

.industry-item.active .badge {
    background-color: #fff !important;
    color: #0d6efd !important;
}

.industry-item.active .bi-chevron-right {
    color: #fff !important;
}

.industry-item {
    transition: background-color 0.2s ease;
}

.industry-item:hover {
    background-color: #f6f9ff;
}

.industry-item.selected {
    background-color: #1B6FE4;
}

.industry-item.selected .industry-name {
    color: white;
}

.industry-item.selected .fa-chevron-right {
    color: white !important;
}

.industry-item.selected .bg-danger {
    background-color: #FEF3F2 !important;
}

.industry-item.selected .bg-warning {
    background-color: #fefcf2 !important;
}

.industry-item.selected .bg-success {
    background-color: #f8fef2 !important;
}

.text-brand {
    color: #104289 !important;
}

.form-control:focus {
    border-color: #b3b3b3;
    box-shadow: none;
}

.modal-dialog-centered-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}

.modal-content.custom-modal {
    width: 400px;
    border-radius: 12px;
    padding: 24px;
}

.category-item.selected {
    background-color: #0d6efd; /* Bootstrap primary */
    color: white;
}

.category-item.selected .category-name {
    color: white;
}

.category-item.selected i {
    color: white;
}

.product-item.selected {
    background-color: #0d6efd; /* Bootstrap primary */
    color: white;
}

.product-item.selected .product-name {
    color: white;
}

.product-item.selected i {
    color: white;
}

thead th.sorted-active {
    color: #0d6efd;
    font-weight: 500;
}


thead th {
    font-weight: 400;
    color: #475467 !important;
    font-size: 13px;

}

thead tr th {
    padding-top: 1rem;
    padding-bottom: 1rem;
    background: #F9FAFB !important;
}

tbody tr {
    font-weight: 400;
    color: #475467 !important;
    font-size: 13px;
}

.custom-checkbox {
    display: inline-block;
    position: relative;
    cursor: pointer;
    width: 20px;
    height: 20px;
}

.custom-checkbox input {
    opacity: 0;
    width: 0;
    height: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: white;
    border: 2px solid #cbd5e1; /* echivalent Tailwind: border-slate-300 */
    border-radius: 6px; /* colțuri rotunjite */
    transition: all 0.2s;
}

.custom-checkbox input:checked + .checkmark {
    background-color: #3b82f6; /* albastru sau ce vrei tu */
    border-color: #3b82f6;
}

.custom-checkbox input:checked + .checkmark::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

#productPartSuggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    z-index: 1050;
    margin-top: 4px;
    overflow: hidden;
}

#componentSuggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    z-index: 1050;
    margin-top: 4px;
    overflow: hidden;
}

#supplyChainSuggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    z-index: 1050;
    margin-top: 4px;
    overflow: hidden;
}

.component-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    z-index: 1050;
    margin-top: 4px;
    overflow: hidden;
}


.supply-chain-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    z-index: 1050;
    margin-top: 4px;
    overflow: hidden;
}


.autocomplete-result-item {
    padding: 10px 16px;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.autocomplete-result-item:hover,
.autocomplete-result-item.selected {
    background-color: #f0f4ff;
}

.autocomplete-add-new {
    padding: 16px;
    background-color: #fafbfc;
    border-top: 1px solid #eee;
    text-align: center;
}

.autocomplete-add-new button {
    background-color: #1a73e8;
    color: white;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    width: 100%;
}

.autocomplete-add-new button:hover {
    background-color: #125dc0;
}

.toggle-children {
    transition: transform 0.2s ease;
    cursor: pointer;
}

.cursor-pointer {
    cursor: pointer;
}

tbody tr.child-row td {
    background-color: #E4E7EC !important
}

tbody tr.selected td{
    background-color: #e3e3e4 !important;
}

tbody tr.child-row.selected td{
    background-color: #e3e3e4 !important;
}

#product-parts-table-body tr.selected td{
    background-color: #e3e3e4 !important;
}

#document-table-body tr.group-row.selected td{
    background-color: #e3e3e4 !important;
}

#document-table-body tr.document-row.selected td{
    background-color: #e3e3e4 !important;
}


#document-table-body tr.group-row.indeterminate td{
    background-color: #e3e3e4 !important;
}

tbody tr.selected td{
    background-color: #e3e3e4 !important;
}

.btn-loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 35px;
    width: 2px;
    height: 100%;
    background: #0052cc;
    z-index: 0;
}

.timeline-step {
    position: relative;
    margin-bottom: 40px;
}

.supply-chain-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.supply-chain-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.supply-chain-header-title h1 {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.supply-chain-header-actions {
    display: flex;
    gap: 10px;
}

/* Timeline styling */
.timeline {
    position: relative;
    padding-left: 67px;
}

.timeline-number {
    position: absolute;
    left: -51px;
    top: 0;
    width: 40px;
    height: 40px;
    background-color: #EDF3FA;
    color: #0052cc;
    border-radius: 30%;
    text-align: center;
    line-height: 40px;
    font-size: 16px;
    z-index: 2;

}

.step-content {
    margin-left: 10px;
}

.document-section {
    margin-bottom: 20px;
}

.document-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.document-count {
    font-weight: normal;
    color: #344054;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.document-count::after {
    content: none; /* sau șterge complet acest bloc */
}

.documents-list {
    display: block;
    transition: all 0.3s ease;
}

.documents-list.collapsed {
    display: none;
}

.documents-list.collapsed {
    display: none !important;
}

.document-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.document-table th {
    font-weight: 600;
    text-align: left;
    color: #6c757d;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

tbody tr.supply-chain-documents td {
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
    background-color: #F9FAFB !important
}

.document-link {
    color: #104289;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.add-document-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0052cc;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
    width: 100%;
}

.paste-btn {
    background-color: #f0f4f8;
    color: #0052cc;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.trash-icon {
    color: #6c757d;
    cursor: pointer;
}

/* După primul step - poziționare în timeline */
.add-step-timeline {
    position: absolute;
    align-items: center;
    gap: 8px;
    margin-top: -35px;
    margin-left: 28px;
    cursor: pointer;
}


.autocomplete-result-item:hover {
    background-color: #f8f9fa;
}
.autocomplete-results {
    z-index: 999;
    max-height: 300px;
    overflow-y: auto;
    position: absolute;
    width: 100%;
}

.document-error-message {
    font-size: 0.875rem;
    color: #dc3545; /* Bootstrap danger red */
}

.custom-columns-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
}

.custom-checkbox input[type="checkbox"]:disabled + .checkmark {
    background-color: #f1f3f5;
    border-color: #dee2e6;
    cursor: not-allowed;
    opacity: 0.6;
}

.custom-checkbox input[type="checkbox"]:disabled:checked + .checkmark::after {
    border-color: #adb5bd; /* culoare mai pală pt bifa */
}

.custom-checkbox input[type="checkbox"]:disabled ~ .label-text {
    color: #6c757d;
    opacity: 0.8;
    cursor: not-allowed;
}

.btn-paste {
    background-color: #f0f6ff;
    color: #1d4a89;
    border: none;
    padding: 6px 16px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s ease;
}

.btn-paste:hover {
    background-color: #e2efff;
    text-decoration: none;
    color: #1a3971;
}

.btn-paste i {
    font-size: 14px;
}




.custom-file-upload {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-weight: 500;
    color: #1e3a8a;
    background-color: white;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.custom-file-upload:hover {
    background-color: #f9fafb;
}

.custom-file-upload svg {
    width: 16px;
    height: 16px;
}

#edit_sample_document {
    display: none;
}

.custom-file-delete {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-weight: 500;
    color: #F04438;
    background-color: white;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.custom-file-delete:hover {
    background-color: #f9fafb;
}

.custom-file-delete svg {
    width: 16px;
    height: 16px;
}

.results-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 24px;
    border: 1px solid #e0e0e0;
    max-width: 600px;
}

.results-title {
    font-weight: 700;
    font-size: 20px;
    color: #000;
}

.product-badge {
    display: inline-block;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 15px;
    font-size: 15px;
    color: #333;
}



.add-section h5 {
    font-weight: 700;
    font-size: 18px;
}

.add-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.add-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.add-buttons-grid .btn-primary {
    background-color: #EDF3FA;
    border: 1px solid #EDF3FA;
    color: #104289;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: none;
}

.add-buttons-grid .btn-primary:hover:not(.disabled) {
    background-color: #e2eaf2;
    border-color: #d2dde8;
}

.add-buttons-grid .btn-primary.disabled {
    background-color: #f0f5fa;
    color: #10375c;
    opacity: 0.6;
    cursor: not-allowed;
    border-color: #e2eaf2;
}

.rotate-45{
    transform: rotate(-45deg);
}

.card-product-details {
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
}
.card-body-product-details{
    padding: 24px;
}

.product-title {
    font-size: 26px;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.product-category {
    font-size: 14px;
    color: #6c757d;
}

.btn-icon {
    background: none;
    border: none;
    color: #6c757d;
}

.btn-icon:hover {
    color: #0d6efd;
}
.supply-table-header {
    margin-bottom: 0 !important;
    padding-bottom: 12px;
}

.supply-header, .documents-header {
    font-size: 16px;
    font-weight: 500;
    color: #4b5563;
}

.supply-name {
    font-size: 16px;
    font-weight: 500;
    color: #4b5563;
}

.doc-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.doc-tag {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f1f3f5;
    border-radius: 24px;
    padding: 4px 16px;
    font-size: 15px;
    color: #4b5563;
    width: fit-content;
    max-width: 100%;
}

.doc-tag i, .doc-tag svg {
    margin-left: 10px;
    cursor: pointer;
    color: #9ca3af;
}

.doc-tag-error {
    background-color: #fee2e2 !important;
    color: #f27a72 !important;
}

.doc-tag-error span {
    text-decoration: line-through;
}

.doc-tag-error i,
.doc-tag-error svg {
    color: #f27a72 !important;
    text-decoration: none !important;
}

.supply-chain-modal {
    position: fixed;
    z-index: 10000;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    width: 100%;
    pointer-events: auto;
}

.modal-content {
    padding: 20px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    color: #212529;
}

.view-details-link {
    color: #1B6FE4;
    text-decoration: none;
    font-weight: 500;
}

.view-details-link:hover {
    text-decoration: underline;
}

.supply-chain-steps-section h4,
.tasks-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #212529;
}

.steps-list {
    margin-bottom: 20px;
    position: relative;
}

/* Linia care conectează step-urile */
.steps-list::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background-color: #6c757d;
    z-index: 1;
}

.step-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #6c757d;
    position: relative;
    z-index: 2;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-bullet {
    width: 10px;
    height: 10px;
    border: 2px solid #6c757d;
    border-radius: 50%;
    background: white;
    margin-right: 12px;
    flex-shrink: 0;
    position: relative;
    z-index: 3;
}

.step-name {
    font-size: 0.95rem;
}

.documents-summary {
    margin-bottom: 20px;
}

.documents-summary p {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #212529;
}

.tasks-section {
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
}

.tasks-list {
    margin-bottom: 15px;
}

.task-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #212529;
}

.task-checkbox {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    accent-color: #28a745;
}

.task-text {
    font-size: 0.95rem;
}

.add-task-section {
    margin-top: 15px;
}

.add-task-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.add-task-input:focus {
    outline: none;
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.task-description {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
}

.supply-chain-hover-trigger {
    cursor: pointer;
    position: relative;
}

.supply-chain-hover-trigger:hover {
    color: #0d6efd;
}

.upload-btn {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.4rem 1rem;
    text-align: center;
    background-color: #ffffff;
    cursor: pointer;
    display: table;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.upload-btn:hover {
    border-color: #104289;
    background-color: #f8faff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.upload-btn i {
    color: #104289;
    margin-right: 0.75rem;
    font-size: 1.5rem;
}

.upload-btn span {
    color: #104289;
    font-weight: 600;
    font-size: 1.1rem;
}

.group-row td {
    border-top: 2px solid #dee2e6;
    background-color: #F2F4F7;
}
.group-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.role-item {
    cursor: pointer;
    transition: background-color 0.2s;
}

.role-item:hover {
    background-color: #f8f9fa;
}

.role-item.active {
    background-color: #E4E7EC;
}


.permission-item {
    transition: opacity 0.2s;
}

.permission-item[style*="display: none"] {
    opacity: 0;
}


.table .dropdown-menu {
    position: fixed !important;
    z-index: 9999 !important;
    min-width: 300px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.table-responsive {
    overflow: visible !important;
}

.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #e9ecef;
}

.dropdown-item {
    border: none;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item:focus {
    background-color: #e9ecef;
}


.task-item-current {
    padding: 10px 0;
    border-top: 1.5px solid #e5e7eb;
    width: 100%;
}

.task-item-current:hover {
    background-color: #f9fafb;
}

.task-item-completed {
    padding: 10px 0;
    background-color: #ECFDF3;
    border-top: 1.5px solid #e5e7eb;
    width: 100%;
}

.check-icon-completed {
    width: 20px;
    height: 20px;
    background-color: #ECFDF3;
    border: 1px solid #027A48;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.check-icon-completed .fa-check {
    color: #027A48;
    font-size: 11px;
    font-weight: bold;
}

.task-description {
    line-height: 1.5;
    color: #374151;
    font-size: 14px;
}

.tasks-container {
    max-height: 400px;
    overflow-y: auto;
    background-color: white;
}

.tasks-content {
    padding: 0;
    width: 100%;
}

.btn-check:checked + .btn-outline-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

.position-relative input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.fa-circle {
    font-size: 18px;
    color: #9ca3af;
}

.fa-circle:hover {
    color: #9ca3af !important;
}

/*.check-icon-completed:hover {*/
/*    background-color: #D9F6E7FF;*/
/*}*/

/* Container styling to match the design */
.tasks-search-history-equal-height {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

/* Remove any default padding from the parent container */
.tasks-search-history-equal-height .tasks-container {
    margin-left: -12px;
    margin-right: -12px;
}



.selected-chains-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.component-flow-container {
    position: relative;
    padding-left: 20px;
}

.vertical-line {
    position: absolute;
    left: 8px;
    top: -20px;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
    border-radius: 1px;
}

.supply-chain-container-clean {
    border: 2px dashed #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    position: relative;
    background: white; /* Nu gri! */
}

.component-flow-container {
    position: relative;
    padding-left: 20px;
}

.vertical-line {
    position: absolute;
    left: 8px;
    top: -17px;
    bottom: 20px;
    width: 0;
    border-left: 1.5px dashed #e5e7eb;
}

.vertical-line::before,
.vertical-line::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #9ca3af;
    border-radius: 50%;
    left: -5px; /* Centrează punctul pe linie */
}

.vertical-line::before {
    top: 70px; /* Punctul la supply chains container */
}

.vertical-line::after {
    bottom: 0px; /* Punctul la butonul Add component */
}

.sub-sub-component .component-flow-container {
    margin-bottom: 1rem; /* sau whatever margin are .sub-component-section */
}

.sub-sub-component .vertical-line {
    /* same styles as .sub-component-section .vertical-line */
    height: 100%;
    width: 1px;
    background-color: #dee2e6;
    /* etc */
}

.supply-chain-container-clean {
    border: 1px solid #e5e7eb; /* Solid, nu dashed */
    border-radius: 8px;
    padding: 16px;
    position: relative;
    background: white;
}

.supply-chain-search-clean {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 40px 8px 12px; /* Space for icon on right */
    width: 100%;
    font-size: 14px;
    outline: none;
}

.supply-chain-search-clean:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-icon-clean {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 16px;
    pointer-events: none;
}

.supply-chain-container-clean {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    position: relative;
    background: white;
}

/* Pentru ca tot containerul să fie clickabil */
.supply-chain-container-clean {
    cursor: text;
}

.supply-chain-container-clean:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Șterge focus-ul de la input */
.supply-chain-search-input:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Adaugă focus pe container în schimb */
.supply-chain-container-clean:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Sau poți folosi o clasă activă prin JavaScript */
.supply-chain-container-clean.focused {
    pointer-events: auto;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.supply-chain-container-clean.focused .remove-icon {
    pointer-events: auto; /* Permite click-uri pe iconițe */
    z-index: 10; /* Pune iconițele deasupra */
}



.new-component-section {
    position: relative;
    margin-bottom: 20px;
}

.new-component-section::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 20px;
    width: 8px;
    height: 8px;
    background: #9ca3af;
    border-radius: 50%;
}

.main-vertical-line {
    position: absolute;
    left: 8px;
    top: -17px;
    bottom: -50px; /* Merge prin toată înălțimea */
    width: 0;
    border-left: 1.5px dashed #e5e7eb;
}

.horizontal-connector {
    position: absolute;
    left: -20px;
    top: 20px;
    width: 20px;
    height: 0;
    border-top: 1.5px dashed #e5e7eb;
}

.component-item {
    position: relative;
    margin-bottom: 20px;
}
