/* Org group container */
.org-group {
    width: 100%;
    margin-top: 40px;
    margin-bottom: 24px;
}

/* Label styling */
.org-group label {
    display: block;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #16151C;
    margin-bottom: 8px;
}

.org-group select {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    font-weight: 400;
    font-size: 16px;
    color: #16151C;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    cursor: pointer;
}

.org-group select:has(option:checked:not([value=""])) {
    font-weight: 600;
}

/* Focus state - green border */
.org-group select:focus {
    outline: none;
    border-color: #A0C4BC;  /* Even lighter */
    box-shadow: none;  /* Remove shadow completely */
}

/* Optional hover effect */
.org-group select:hover {
    border-color: #A0C4BC;
}

.no-orgs-message {
    padding: 16px;
    background: #F8F9FA;
    border-radius: 10px;
    color: #9f1515;
    font-size: 14px;
    text-align: left;
}

/* Selected option text styling (when option is selected) */
.org-group select option {
    font-weight: 500;
    font-size: 15px;
    line-height: 20px;
    letter-spacing: 0.02em;
    color: #007085;
    padding: 8px;
}

/* Responsive for mobile */
@media (max-width: 768px) {
    .org-group {
        margin-top: 24px;
    }

    .org-group select {
        height: 48px;
        font-size: 14px;
    }

    .org-group label {
        font-size: 14px;
    }
}



/* Calculated fields container - from Figma */
.calculated-fields {
    width: 100%;
    background: #FFFFFF;  /* White background */
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    box-sizing: border-box;
}

/* Left side text */
.calculated-fields .position-left {
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #16151C;
}

.calculated-fields .position-left p {
    margin: 0;
}

/* Right side value - bold */
.calculated-fields .position-right {
    font-weight: 700;
    font-size: 16px;
    line-height: 22px;
    color: #16151C;
}

.calculated-fields .position-right p {
    margin: 0;
}

/* Responsive for mobile */
@media (max-width: 768px) {
    .calculated-fields {
        padding: 16px 20px;
        margin-bottom: 12px;
    }

    .calculated-fields .position-left,
    .calculated-fields .position-right {
        font-size: 14px;
        line-height: 20px;
    }
}

/* Toggle switch container */
.calculated-fields-switch {
    width: 100%;
    margin-top: 24px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Toggle switch container */
.calculated-fields-switch {
    width: 100%;
    margin-top: 36px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Toggle switch wrapper */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 37px;
    height: 17px;
    cursor: pointer;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Visual slider (background) */
.toggle-switch .toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Light gray for OFF state */
    background: linear-gradient(180deg, #AAAAAA 0%, #777777 100%);
    border-radius: 16px;
    transition: 0.3s;
}

/* When checkbox is checked - ON state (green gradient) */
.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(180deg, rgba(0, 112, 133, 0.5) 0%, #007085 100%);
}

/* Circle inside slider */
.toggle-switch .toggle-slider:before {
    position: absolute;
    content: "";
    height: 13px;
    width: 13px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

/* When checked - circle moves right */
.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* Text label */
.toggle-label {
    font-weight: 400;
    font-size: 14px;
    line-height: 19px;
    color: #16151C;
}

.toggle-label:hover {
    color: #007085;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .calculated-fields-switch {
        margin-top: 20px;
        margin-bottom: 10px;
        gap: 8px;
    }

    .toggle-label {
        font-size: 14px;
        line-height: 20px;
    }
}

/* net-points container */
.net-points {
    width: 100%;
    margin-top: 48px;
    margin-bottom: 32px;
}

/* net-points-title */
.net-points-title {
    width: 100%;
}

.net-points-title p {
    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
    color: #16151C;
    margin: 0 0 4px 0;
}

.net-points-title span {
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: rgba(22, 21, 28, 0.4);
    display: block;
}

/* net-points-checkboxes */
.net-points-checkboxes {
    width: 100%;
    margin-top: 24px;
}

/* head-checkbox */
.head-checkbox {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
}

.head-checkbox .left-position {
    width: 80%;
    display: flex;
    align-items: center;
    gap: 12px;
}

.head-checkbox .left-position span {
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    color: #16151C;
    padding-left: 10px;
}

.head-checkbox .right-position {
    width: 20%;
    text-align: right;
}

.head-checkbox .right-position span {
    font-weight: 500;
    font-size: 16px;
    line-height: 40px;
    color: #16151C;
}

/* checkbox-list */
.checkbox-list {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    padding: 4px 0;
}

.checkbox-list .left-position {
    width: 80%;
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkbox-list .left-position span {
    font-weight: 400;
    font-size: 16px;
    line-height: 18px;
    color: #45464E;
    white-space: nowrap;
    vertical-align: middle;
    display: inline-block;
    padding-left: 10px;
}

.checkbox-list .right-position {
    width: 20%;
    text-align: right;
}

.checkbox-list .right-position span {
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    color: #45464E;
}

/* Custom checkbox styling */
.checkbox-list input[type="checkbox"],
.head-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #00859E;
    margin: 0;
    flex-shrink: 0;
    vertical-align: middle;
}

.no-net-points-message {
    padding: 20px;
    background: #F8F9FA;
    border-radius: 10px;
    color: #666;
    font-size: 14px;
    text-align: left !important;
    margin-top: 16px;
}

/* Responsive for mobile */
/* Mobile version only */
@media (max-width: 768px) {
    /* Container spacing */
    .net-points-checkboxes {
        margin-top: 8px !important;
    }

    /* Header row */
    .head-checkbox {
        margin-bottom: 8px !important;
    }

    .head-checkbox .left-position {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin-bottom: 0 !important;
    }

    .head-checkbox .left-position span {
        font-size: 14px !important;
        line-height: 1.2 !important;
    }

    .head-checkbox .right-position {
        padding-left: 26px !important;
    }

    .head-checkbox .right-position span {
        font-size: 14px !important;
        line-height: 1.2 !important;
        display: inline-block !important;
    }

    /* Checkbox list rows */
    .checkbox-list {
        margin-bottom: 8px !important;
    }

    .checkbox-list .left-position {
        display: flex !important;
        align-items: flex-start !important;
        gap: 8px !important;
        margin-bottom: 2px !important;
    }

    .checkbox-list input[type="checkbox"] {
        width: 16px !important;
        height: 16px !important;
        margin-top: 2px !important;
    }

    .checkbox-list .left-position span {
        font-size: 14px !important;
        line-height: 1.3 !important;
        flex: 1 !important;
    }

    .checkbox-list .right-position {
        padding-left: 24px !important;
    }

    .checkbox-list .right-position span {
        font-size: 14px !important;
        line-height: 1.3 !important;
    }
}

/* Main footer container */
.main-footer {
    width: 100%;
    margin-top: 50px;
    margin-bottom: 10px;
    position: relative;
}

/* Buttons container */
.main-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-bottom: 30px;
}

/* Reset button */
.reset {
    width: 168px;
    height: 42px;
    background: transparent;
    border: 1px solid #00859E;
    font-size: 16px;
    font-weight: 500;
    color: #00859E;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset:hover {
    background: rgba(0, 133, 158, 0.05);
}

/* Calculate button */
.calc {
    width: 133px;
    height: 42px;
    background: #00859E;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calc:hover {
    background: #006B8A;
}

/* Result section */
.main-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 0 0;
    border-top: 1px solid rgba(162, 161, 168, 0.2);
}

.main-result .left-position {
    flex: 1;
}

.main-result .left-position p {
    font-weight: 700;
    font-size: 20px;
    line-height: 30px;
    color: #16151C;
    margin: 0;
}

.main-result .right-position {
    text-align: right;
}

.main-result .right-position p {
    font-weight: 700;
    font-size: 20px;
    line-height: 30px;
    color: #16151C;
    margin: 0;
}

/* Info text */
.main-cts p {
    font-weight: 300;
    font-size: 14px;
    line-height: 20px;
    text-align: justify;
    color: #16151C;
    margin: 0;
    padding-top: 10px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .main-buttons {
        justify-content: center;
        gap: 15px;
        margin-bottom: 30px;
    }

    .reset,
    .calc {
        width: auto;
        padding: 0 20px;
    }

    .main-result {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        text-align: left;
    }

    .main-result .right-position {
        text-align: left;
    }

    .main-result .left-position p,
    .main-result .right-position p {
        font-size: 16px;
        line-height: 24px;
    }

    .main-cts p {
        font-size: 12px;
        line-height: 18px;
    }
}

/* Error border */
.org-list.error,
.number-input.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 1px rgba(220, 53, 69, 0.2) !important;
}

/* Error messages */
.org-error p,
.power-error p {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    margin-bottom: 0;
}