#input-output-info th, #input-output-info td {
    text-align: center;
    vertical-align: middle;
}
#input-output-info input {
    text-align: center;
}

#waste_input_sum {
    background-color: #f8f9fa;
    color: #495057;
    cursor: not-allowed;
}

#products-table,
#stakeholders-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}


#products-table th, #products-table td,
#stakeholders-table th, #stakeholders-table td {
    border: 1px solid #ced4da;
    padding: 8px;
    text-align: left;
}

#products-table th,
#stakeholders-table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

#products-table input, #products-table select {
    width: 100%;
    padding: 5px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

#add-byproduct {
    background-color: #47b2e4;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    font-family: 'Cabin', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#add-byproduct:hover {
    background-color: #3498db;
}

.remove-byproduct {
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
}

.remove-byproduct:hover {
    background-color: #d32f2f;
}

#main-product-row {
    background-color: #e9ecef;
}

/* Adjust column widths */
#products-table td:nth-child(1) { width: 30%; }
#products-table td:nth-child(2) { width: 20%; }
#products-table td:nth-child(3) { width: 20%; }
#products-table td:nth-child(4) { width: 20%; }
#products-table td:nth-child(5) { width: 10%; }



#byproducts-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

#byproducts-table th, #byproducts-table td {
    border: 1px solid #ced4da;
    padding: 8px;
    text-align: left;
}

#byproducts-table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

#byproducts-table input, #byproducts-table select {
    width: 100%;
    padding: 5px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

#add-byproduct {
    background-color: #47b2e4;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    font-family: 'Cabin', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#add-byproduct:hover {
    background-color: #3498db;
}

.remove-byproduct {
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
}

.remove-byproduct:hover {
    background-color: #d32f2f;
}

/* Adjust column widths */
#byproducts-table td:nth-child(1) { width: 30%; }
#byproducts-table td:nth-child(2) { width: 20%; }
#byproducts-table td:nth-child(3) { width: 20%; }
#byproducts-table td:nth-child(4) { width: 20%; }
#byproducts-table td:nth-child(5) { width: 10%; }

body {
    font-family: 'Cabin', sans-serif;
    background-color: #f8f9fa;
}

form#project-stage1 {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 30px;
    width: 1100px;
    margin: 0 auto;
    font-size: 16px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

form#project-stage1 fieldset {
    border: 1px solid #ced4da;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #f8f9fa;
}

form#project-stage1 legend {
    color: #47b2e4;
    font-size: 20px;
    font-weight: bold;
    padding: 0 10px;
    margin-bottom: 10px;
}

form#project-stage1 ol {
    padding-left: 0;
}

form#project-stage1 ol li {
    background: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 5px;
    list-style: none;
    padding: 15px;
    margin-bottom: 10px;
}

form#project-stage1 label {
    color: #212529;
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

form#project-stage1 input:not([type=radio]),
form#project-stage1 textarea,
form#project-stage1 select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Cabin', sans-serif;
}

form#project-stage1 button {
    background: #47b2e4;
    border: none;
    border-radius: 20px;
    color: #ffffff;
    display: inline-block;
    font: 14px 'Cabin', sans-serif;
    letter-spacing: 1px;
    margin: 10px 5px;
    padding: 8px 20px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: auto;
    max-width: 100%;
}

form#project-stage1 button:hover {
    background-color: #3498db;
}

form-group.row .col-sm-12.text-center {
    text-align: center;
}

@media (max-width: 768px) {
    form#project-stage1 button {
        font-size: 12px;
        padding: 6px 15px;
        margin: 8px 3px;
        width: 100%;
    }
}

.by-product,
.partner {
    background: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 10px;
}

.by-product input,
.by-product select,
.partner input {
    width: calc(33% - 10px);
    margin-right: 10px;
    margin-bottom: 10px;
}

#add_by_product,
#add_partner,
.remove_partner {
    background-color: #47b2e4;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    font-family: 'Cabin', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#add_by_product:hover,
#add_partner:hover,
.remove_partner:hover {
    background-color: #3498db;
}

.remove_partner {
    background-color: #f44336;
}

#unfc_classification {
    width: 100%;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #ffffff;
    font-size: 14px;
    font-family: 'Cabin', sans-serif;
    color: #212529;
    appearance: none;
    /* background-image: url('data:image/svg+xml;utf8,<svg fill="black" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>'); */
    background-repeat: no-repeat;
    background-position: right 8px center;
}

#unfc_classification:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-title {
    font-family: 'Cabin', sans-serif;
    font-size: 28px;
    font-weight: bold;
    color: #47b2e4;
    text-align: center;
    margin-top: 150px;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #47b2e4;
}

@media (max-width: 850px) {
    form#project-stage1 {
        width: 90%;
        padding: 20px;
    }

    .by-product input,
    .by-product select,
    .partner input {
        width: 100%;
        margin-right: 0;
    }
}


/* Updates from Bhagya 17/9/2024 */

form#project-stage3 {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 30px;
    width: 1100px;
    margin: 0 auto;
    font-size: 16px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

form#project-stage3 fieldset {
    border: 1px solid #ced4da;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #f8f9fa;
}

form#project-stage3 label {
    color: #fff;
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

form#project-stage3 button {
    background: #47b2e4;
    border: none;
    border-radius: 20px;
    color: #ffffff;
    display: inline-block;
    font: 14px 'Cabin', sans-serif;
    letter-spacing: 1px;
    margin: 10px 5px;
    padding: 8px 20px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: auto;
    max-width: 100%;
}

form#project-stage3 button:hover {
    background-color: #3498db;
}

form-group.row .col-sm-12.text-center {
    text-align: center;
}

@media (max-width: 768px) {
    form#project-stage3 button {
        font-size: 12px;
        padding: 6px 15px;
        margin: 8px 3px;
        width: 100%;
    }
}

@media (max-width: 850px) {
    form#project-stage3 {
        width: 90%;
        padding: 20px;
    }

    .by-product input,
    .by-product select,
    .partner input {
        width: 100%;
        margin-right: 0;
    }
}

.stage3-table {
    position: relative;
    width: 100%;
    border-collapse:collapse;
    border: 1px solid #CCCCCC;
    outline: none;
}

.stage3-table th {
    background-color: lightgray;
    text-align: left;
    padding: 8px;
}

.stage3-accordion {
    overflow: hidden;

}

.stage3-contentBox {
    position: relative;
    margin: 10px 20px;

} 

.stage3-contentBox-label, 
.stage3-content-label {
    position: relative;
    padding: 10px;
    background:  #000066;
    cursor: pointer;
    transition: background 0.1s;
}

.stage3-content-label {
    background: #009578;
}

.stage3-contentBox-label:hover {
    background: #3498db;
}

.stage3-content-label:hover {
    background: darkblue;
}

.stage3-contentBox-label::after, 
.stage3-content-label::after
{
    content: "+";
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    font-size: 1.5em;
    transition: transform 0.4s;
}

.stage3-contentBox-input:checked ~ .stage3-contentBox-label::after,
.stage3-content-input:checked ~ .stage3-content-label::after
{
    content: "-";
}

.stage3-contentBox-input,
.stage3-content-input {
    display: none;
}

.stage3-content,
.sub-content {
    position: relative;
    background: #FFF;
    padding: 10px;
    display: none;
}

.stage3-contentBox-input:checked ~ .stage3-content {
    display: block;
}

.stage3-content-input:checked ~ .stage3-sub-content {
    display: block;
}

.input-container {
    display: flex;
    align-items: center;
    width: 100%;
}

.input-column {
    flex: 1;
}

.button-column {
    margin-left: 10px; /* Add space between the input and the button */
}

.autofill-btn {
    padding: 5px 10px;
    cursor: pointer;
}                   

.footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer p {
    margin: 0;
    color: #6c757d;
}

.footer a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #0056b3;
}

.tooltip-header {
    position: relative;
    cursor: help;
}

.tooltip-header::after {
    content: "Type of product:\A\A• Intermediate products (i.e., they undergo further processes before becoming available in the market as 2RMs)\A\A• Final products (i.e., they are sent to the market as 2RMs)";
    position: absolute;
    background: #333;
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    width: 300px;
    left: 0;
    top: 100%;
    white-space: pre-wrap;
    z-index: 100;
    display: none;
    font-weight: normal;
    line-height: 1.4;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.tooltip-header:hover::after {
    display: block;
}

#products-table th:nth-child(3), /* Criticality column header */
#products-table td:nth-child(3) {
    width: 100px;
}

#products-table th:nth-child(4), /* Amount column header */
#products-table td:nth-child(4) {
    width: 100px;
}

#products-table th:nth-child(5), /* Unit column header */
#products-table td:nth-child(5) {
    width: 150px !important;
}

#products-table th:nth-child(6), /* Action column header */
#products-table td:nth-child(6) {
    width: 120px;
}

#products-table input[type="number"] {
    width: 100%;
    box-sizing: border-box;
}

#products-table select {
    width: 100%;
    box-sizing: border-box;
}

#products-table {
    table-layout: fixed;
}

 /* Styling for tables */
 .table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.table-bordered th, .table-bordered td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

.table-striped tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

.table-striped tbody tr:nth-child(even) {
    background-color: #ffffff;
}

th {
    background-color: #007bff;
    color: #fff;
}

td {
    font-size: 14px;
}

td[colspan="6"], td[colspan="7"] {
    font-style: italic;
    padding: 10px 12px;
    background-color: #f7f7f7;
}

h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #333;
}
