/* Info content - appears when clicking Подробнее */
/*.info-content {*/
/*    margin-top: 24px;*/
/*    padding: 20px;*/
/*    background: #FFFFFF;*/
/*    border-radius: 12px;*/
/*    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.05);*/
/*    width: 100%;*/
/*    box-sizing: border-box;  !* Important: includes padding in width *!*/
/*}*/

/* Water calculator type container */
.water-calc-type {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 24px;
}

/* Left side - label */
.water-calc-type .left-position {
    flex: 1;
}

.water-calc-type .left-position p {
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #16151C;
    margin: 0;
}

/* Right side - buttons */
.water-calc-type .right-position {
    display: flex;
    gap: 20px;
}

/* Buttons */
.water-calc-type button {
    padding: 10px 20px;
    height: 42px;
    background: transparent;
    border: 1px solid #00859E;
    font-weight: 400;
    font-size: 16px;
    color: #00859E;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.water-left-button {
    margin-right: -10px;
    width: 170px;
}

/* Active button state */
.water-calc-type button.active {
    background: #00859E;
    color: #FFFFFF;
}

/* Hover effect */
.water-calc-type button:hover {
    background: rgba(0, 133, 158, 0.1);
}

.water-calc-type button.active:hover {
    background: #006B8A;
}

.placeholder-option {
    display: none;
}

/* 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;
}

.plot-border {
    border-bottom: 1px solid #E2E8F0;
    margin-bottom: 32px;
    padding-bottom: 24px;
}

/* Plot container */
.plot {
    width: 100%;
    margin-top: 32px;
    margin-bottom: 32px;
    padding-bottom: 24px;
}


/* Plot title */
.plot-title {
    margin-bottom: 24px;
}

.plot-title .left-position p {

    font-weight: 700;
    font-size: 22px;
    line-height: 22px;
    color: #00859E;
    margin: 0;
}

/* Workload value input */
.workload-val {
    width: 100%;
    margin-bottom: 24px;
}

.workload-val label {
    display: block;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #16151C;
    margin-bottom: 8px;
}

.workload-val .number-input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    font-size: 16px;
    color: #16151C;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    box-sizing: border-box;
}

.workload-val .number-input:focus {
    outline: none;
    border-color: #A0C4BC;
}

/* Net group - same as org-group */
.net-group {
    width: 100%;
    margin-top: 24px;
    margin-bottom: 24px;
}

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

.net-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;
}

/* Make selected option bold - same as org-group */
.net-group select:has(option:checked:not([value=""])) {
    font-weight: 600;
}

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

.net-group select:focus {
    outline: none;
    border-color: #A0C4BC;
}

/* Net rate */
.net-rate {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px 0;
}

.net-rate .left-position p {
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #16151C;
    margin: 0;
}

.net-rate .right-position p {
    font-weight: 700;
    font-size: 16px;
    line-height: 40px;
    text-align: right;
    color: #16151C;
    margin: 0;
}

.net-rate .right-position strong {
    font-weight: 700;
}

/* Workload length input - same as workload-val */
.workload-len {
    width: 100%;
    margin-bottom: 24px;
}

.workload-len label {
    display: block;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #16151C;
    margin-bottom: 8px;
}

.workload-len .number-input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    font-size: 16px;
    color: #16151C;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    box-sizing: border-box;
}

.workload-len .number-input:focus {
    outline: none;
    border-color: #A0C4BC;
}

/* Plot price result */
.plot-price {
    width: 100%;
    margin-top: 32px;
    padding: 16px 0;
    /*border-top: 1px solid rgba(162, 161, 168, 0.2);*/
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.plot-price .left-position {
    flex: 1;
}

.plot-price .left-position p {
    font-weight: 600;
    font-size: 20px;
    line-height: 30px;
    color: #00859E;
    margin: 0;
}

.plot-price .right-position {
    flex-shrink: 0;
    text-align: right;
}

.plot-price .right-position p {
    font-weight: 600;
    font-size: 20px;
    line-height: 30px;
    color: #00859E;
    margin: 0;
    white-space: nowrap;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .plot-title .left-position p {
        font-size: 18px;
    }

    .net-rate {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .net-rate .right-position p {
        text-align: left;
    }

    .plot-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .plot-price .right-position {
        text-align: left;
    }
}

/* Buttons container */
.main-buttons {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    margin-bottom: 40px;
}

/* Left group of buttons */
.button-group-left {
    display: flex;
    gap: 20px;
}

/* Right button (calc) */
.button-group-right {
    display: flex;
}

/* Add button */
.add-icon {
    width: 16px;
    height: 16px;
    margin-right: 18px;
    vertical-align: middle;
}

.add {
    width: 201px;
    margin-right: -10px;
    height: 42px;
    background: #00859E;
    border: none;
    font-weight: 400;
    font-size: 16px;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

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

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

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

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

/* Mobile responsive */
@media (max-width: 768px) {
    .main-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .button-group-left {
        width: 100%;
        justify-content: center;
    }

    .button-group-right {
        width: 100%;
        justify-content: center;
    }

    .add,
    .reset,
    .calc {
        flex: 1;
        min-width: 120px;
    }
}

/* Footer container */
.footer {
    width: 100%;
    margin-top: 40px;
    margin-bottom: 40px;
    padding-top: 20px;
}

/* Footer value row */
.footer-value {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px 0;
    /*border-top: 1px solid rgba(162, 161, 168, 0.2);*/
}

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

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

/* Footer sentence */
.footer-sentense p {
    font-weight: 300;
    font-size: 14px;
    line-height: 20px;
    text-align: justify;
    color: #16151C;
    margin: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .footer-value {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

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

    .footer-sentense p {
        font-size: 12px;
        line-height: 18px;
    }
}

/* Error message styling - same as heat calc */
.org-error p {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    margin-bottom: 0;
}

/* Error border for select */
.org-list.error {
    border-color: #dc3545 !important;
}

.error-message p {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    margin-bottom: 0;
}

.number-input.error {
    border-color: #dc3545 !important;
}

.plot-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.plot-title .left-position strong {
    font-weight: 700;
    font-size: 22px;
    line-height: 22px;
    color: #00859E;
}

.plot-toolbox {
    display: flex;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.plot-toolbox li {
    cursor: pointer;
}

.plot-toolbox a {
    font-size: 18px;
    color: #00859E;
    text-decoration: none;
}

.plot-toolbox a:hover {
    color: #006B8A;
}

/* Hide default browser tooltip */
.info-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.info-icon[title] {
    font-size: 0;
    color: transparent;
}

.tooltip-icon {
    width: 16px;
    height: 20px;
    vertical-align: middle;
    margin-left: -1px;
    padding-bottom: 7px;
}

/* Custom tooltip - works on hover (desktop) and click (mobile) */
/* Base tooltip - hidden by default */
.info-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    margin-bottom: 30px;
    left: 100%;
    transform: translateY(-50%);
    background: #FFFFFF;
    color: #454449;
    font-weight: 400;
    font-size: 12px;
    font-style: normal;
    width: 190px;
    white-space: normal;
    word-wrap: break-word;
    padding: 6px 6px;
    border-radius: 8px;
    line-height: 1.3;
    letter-spacing: -0.2px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}

/* Show tooltip on hover - NO content here! */
.info-icon:hover::after {
    opacity: 1;
    visibility: visible;
}

.info-icon:hover::before,
.info-icon:active::before {
    display: none !important;
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
    z-index: 100;
}

@media (max-width: 768px) {
    .info-icon {
        display: none !important;
    }
}

.collapse-icon {
    width: 16px;
    height: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-icon {
    width: 16px;
    height: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* ---------- WATER CALC TYPE - MOBILE ---------- */
@media (max-width: 768px) {
    .water-calc-type {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-top: 24px;
        margin-bottom: 16px;
    }

    .water-calc-type .left-position {
        width: 100%;
    }

    .water-calc-type .left-position p {
        font-size: 14px;
        margin: 0;
    }

    .water-calc-type .right-position {
        display: flex;
        flex-direction: row;
        width: 100%;
        gap: 10px;
    }

    .water-calc-type button {
        flex: 1;
        padding: 10px 16px;
        height: 42px;
        font-size: 14px;
        white-space: nowrap;
        text-align: center;
        border-radius: 10px;
    }

    .water-left-button {
        width: auto;
        margin-right: 0;
    }

    .net-group select option {
        font-size: 12px;
        padding: 6px 10px;
    }

    .net-group select {
        font-size: 12px;
        height: 44px;
    }

}