﻿
body, html {
            padding-left: 10px;
            padding-right: 10px;
            height: 100%;
            background-color: white;
            padding-top: 60px;
            padding-bottom: 60px;
            margin: 0;
            font-family: 'Open Sans', sans-serif;
}

.logo img {
    width: 50px; 
    height: auto; 
}

.logo {
    margin-right: 10px; 
    color: white; 
    font-size: 18px; 
}

.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}

.content-wrap {
    flex: 1;
}

.form-header {
    font-size: 12px;
    color: white;
    text-align: center;
}


.register-input-field {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
    width: 100%;
}


.adminOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-family: 'Arial', sans-serif;
}

/*.adminPopup {
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}*/

.adminPopupHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.coefficient-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1008;
}

.coefficient-popup-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    z-index: 12000;
    width: 600px;
    text-align: center;
}

/* Pelēkais X augšējā kreisajā stūrī */
.coefficient-close-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: none;
    border: none;
    font-size: 20px;
    color: grey;
    cursor: pointer;
}
F
    .coefficient-close-btn:hover {
        color: black; /* Tumšāks X, kad pele virsū */
    }
.coefficient-popup-input-group {
    margin-top: 40px; /* Nodrošina, ka X ir atsevišķi no lauka */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.coefficient-popup-input {
    width: 41%;
    padding: 8px;
    font-size: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.coefficient-popup-confirm-btn {
    padding: 8px 15px;
    font-size: 12px;
    background-color: darkblue;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

    .coefficient-popup-confirm-btn:hover {
        background-color: navy;
    }

.coefficient-popup-content {
    margin-top: 20px;
}

.coefficient-popup-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

    .coefficient-popup-table th,
    .coefficient-popup-table td {
        border: 1px solid grey;
        padding: 10px;
        text-align: center;
    }

    .coefficient-popup-table th {
       
        font-weight: bold;
    }


body .adminTable {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    table-layout: fixed;
    overflow-x: auto;
    display: block;
}

    body .adminTable th,
    body .adminTable td {
        border: 1px solid #ddd;
        padding: 8px;
        text-align: center;
        font-size: 12pt;
        white-space: nowrap;
    }

    body .adminTable th {
        background-color: #007BFF;
        font-weight: bold;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    body .adminTable tr:hover {
        background-color: #007BFF;
    }

    body .adminTable th:first-child,
    body .adminTable td:first-child {
        position: sticky;
        left: 0;
        background: white;
        z-index: 100;
    }


/* Popup izskats */
.unitsizePopup {
    background: white;
    padding: 20px;
    border-radius: 10px;
    z-index: 10000;
    width: 1400px;
    max-height: 90%;
    overflow: auto;
    font-family: Arial, sans-serif;
    position: relative;
}

/* Knaģis pie aizvēršanas pogas */
.adminPopupHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.adminButton {
    padding: 8px 12px;
    border: none;
    background-color: #00008b;
    color: white;
    cursor: pointer;
    border-radius: 5px;
}

    .adminButton:hover {
        background-color: #0056b3;
    }

.form-control {
    font-size: 12px;
}

.register-input-field input {
    width: 80%; 
    max-width: 300px; 
    padding: 3px; 
    box-sizing: border-box; 
}

.modal-content {
    margin: 10% auto;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    padding: 25px 25px;
    box-shadow: 0 0 12px 0 rgba(0,0,0,.1), 0 10px 30px 0 rgba(0,0,0,.2);
    background-color: #333333;
    border-radius: 10px;
}
.error {
    color: red;
    display: none;
}

.invalid {
    border-color: red;
}

.required-star {
    font-size: 18px; /* 2x palielinājums */
    color: white;
    margin-right: 10px;
}

.invalid .required-star {
    color: red;
}

.register-input-field {
    color: white;
}

    .register-input-field textarea {
        width: 295px;
    }


.img-container {
    flex: 1;
}
    .img-container img {
        max-width: 100%;
        height: auto;
    }

#image {
    max-width: 100%;
    height: auto;
}

.input-group {
    display: flex;
    align-items: center;
    width: 430px;
    font-size: 12px;
    height: 55px;
}

.registration-form {
    display: none;
    border-radius: 15px;
    width: 400px;
    background-color: #333;
}

.custom-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.log-window {
    width: 200px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    padding: 20px;
}

.custom-row {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin-left: 240px;
}

.input-label {
    flex: 0 0 100px;
    text-align: left;
    margin-right: 10px;
    color: white;
    font-size: 12px;
    margin-top: 12px;
}
.login-input-label {
    flex: 0 0 100px;
    text-align: right;
    margin-right: 10px;
    color: white;
    margin-top: 12px;
}

.input-field {
    flex: 1;
    display: flex;
    align-items: center;
}

.login-input-field {
    flex: 1;
    display: flex;
    align-items: center;
}
.panel-body-default {
    padding: 30px 20px;
    box-shadow: 0 0 12px 0 rgba(0,0,0,.1), 0 10px 30px 0 rgba(0,0,0,.2);
    background-color: #333333;
    border-radius: 10px;
}

.rememberME {
    display: flex;
    text-align: center;
    color: azure;
    height: 20px;
    align-items: center;
    padding-left: 115px;
    padding-bottom: 40px;
}
        .checkmark {
            position: absolute;
            top: 0;
            left: 0;
            height: 10px;
            width: 10px;
            background: white;
            border-radius: 80%;
            border: 1px solid #000;
        }

        .custom-checkbox {
            display: inline-block;
            position: relative;
            padding-left: 25px;
            cursor: pointer;
            user-select: none;
            line-height: 10px;
            min-height: 18px;
        }

            .custom-checkbox input {
                position: absolute;
                opacity: 0;
                cursor: pointer;
                height: 0;
                width: 0;
            }

.custom-checkbox input[type="checkbox"] {
    display: none;
    
}

.custom-checkbox label:before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 5px solid #FFF;
    background-color: white;
    vertical-align: middle;
    margin-right: 10px;
    box-sizing: border-box;
}

.custom-checkbox input[type="checkbox"]:checked + label:before {
    background-color: black;
}
        .custom-checkbox:hover input ~ .checkmark {
            background: #ccc;
        }

        .custom-checkbox input:checked ~ .checkmark {
            background: white;
        }

            .custom-checkbox input:checked ~ .checkmark:after {
                content: "";
                position: absolute;
                display: block;
                width: 7px;
                height: 7px;
                background: #000;
                border-radius: 50%;
                top: 50%;
                left: 50%;
                transform: translate(-50%,-50%);
            }

.custom-btn {
    background-color: #333;
    color: white;
    border: 1px solid white;
    border-radius: 5px;
    padding: 12px 24px;
    font-weight: bold;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    text-align: center;
}

    .custom-btn:hover {
        background-color: rgba(255, 255, 255, 0.5);
        cursor: pointer;
    }

.Forgot-register {
    display: flex;
    justify-content: center;
    align-items: center;
}

.registration-form {
    padding: 0px;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 12px 0 rgba(0,0,0,.1), 0 10px 30px 0 rgba(0,0,0,.2);
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: #333333;
    border-radius: 10px;
}

.register-container {
    display: flex;
    position: absolute;
    top: 90px;
    left: 180px;
}


footer {
    background-color: #000000;
    padding: 10px; 
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 6px;
    position: fixed;
    bottom: 0;
    left: 0; 
    width: 100%;
    z-index: 100;
    padding-left: 10px;
    color: #6b6b6b;

}

.footer-line {
    height: 8px;
    background-color: #D9D9D9;
    width: 100%;
    left: 0; 
    position: absolute;
    top: 0;
    left: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between; /* Vienmērīgi izkliedē elementus */
    align-items: center;
    padding: 0 10px;
    width: 97%;
    color: #959595;
}

.footer-content a {
    margin-top: 7px;
    color: #959595;
    font-size: 12px;
    text-decoration: none;
}

.footer-content a:hover {
/*    color: #ccc; */
}



.footer-link {
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s;
    font-size: 12px;
    margin-top: 6px;
}

.popup-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    z-index: 11000; /* 🔹 Pārliecinās, ka ir augstāks par citiem popuplogiem */
}

.popup-content {
    text-align: center;
}

.popup-content table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.popup-content th, .popup-content td {
    border: 1px solid grey;
    padding: 15px;
}

#closePopup {
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #00008B;
    color: white;
    border: none;
    cursor: pointer;
}

/* 🔹 Nodrošina, ka ir fona pārklājums virs visiem citiem elementiem */
#coefficientOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10999; /* Tikai nedaudz zem popup */
}

/* Popup stils unikālajam "changes" logam */
.changes-popup {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 15px;
    width: 300px;
    z-index: 1000;
}

.changes-popup-content {
    display: flex;
    flex-direction: column;
}

    .changes-popup-content h3 {
        margin-bottom: 10px;
    }

    .changes-popup-content textarea {
        margin-bottom: 10px;
        resize: none;
    }

.changes-popup.hidden {
    display: none;
}

/* Fona efekts, ja popup ir atvērts */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 999;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-spinner {
    border: 4px solid rgba(0, 0, 0, .1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #09f;
    animation: spin 1s ease infinite;
}
.navbar-default {
    background-color: white;
    border-radius: 10px;
}

.form-box {
    width: 200px;
    height: 250px;
    border-radius: 10px;
    background-color: #fff;
    margin: 5px;
    padding: 5px;
    /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); */
    border: 1px solid rgb(221, 220, 220);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

    .form-box:hover {
        /* box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); */
    outline-color: #6e6f6f;
    outline-width: 1.0px;
    outline-style: solid;
    transition: 0.1s ease-out;
    background: #e5e5e5
    }

    .form-box img {
        width: 90%;
        height: 90%;
        object-fit: contain; 
        position: relative;
    }

    .form-box h4 {
        position: absolute;
        bottom: 10px;
        width: calc(100% - 20px);
        color: black;
        font-weight: normal;
        text-transform: uppercase;
        font-size: 12px;
        text-align: center;
    }


.toolbar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.start-button {
    position: fixed;
    top: 30%;
    right: 0; 
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(to bottom, #0000, #00008B);
    border-radius: 50px 0 0 50px;
    cursor: pointer;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: width 0.3s;
    display: none;
}

    .start-button:hover {
        width: 250px;
    }

.button-text {
    color: white;
    padding: 5px 10px;
    margin-left: 10px; 
    display: inline-block;
}

.text-button {
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    color: #333333;
}

.hover-text {
    color: #fff;
    display: none;
    white-space: nowrap;
    transition: opacity 0.3s;
}

.start-button:hover .hover-text {
    display: inline-block;
    opacity: 1;
}

.info-popup {
    position: fixed;
    top: 0;
    right: 0;
    width: 33.33%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 9999;
}

.info-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
}

.close-button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #00008B;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}


.container-filter {
    margin-top: 40px;
    margin-left: 5px;
    display: flex;
    flex-direction: row;
    overflow-x: hidden;
}



.vertical-frame {
    display: flex;
    flex-direction: column;
    margin-left: 15px;
}

.result-frame {
    display: flex;
    flex-direction: column;
    max-width: 870px; 
}

.main-vertical-frame {
    display: flex;
    flex-direction: column;
    align-items: start;
    border-right: 1px solid #333333;
    max-width: 400px;
    border-bottom: 1px solid white;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 85vh;
    min-width: 340px;
}

.option-frame {
    display: flex;
    align-items: start;
    border-bottom: 1px solid #333333;
    font-size: 12px;
    max-height: 30vh;
    width: 1060px;
    min-height: 240px;
    padding-bottom: 10px;
    box-sizing: border-box;
}

#components {
    padding-left: 10px;
    overflow-y: auto;
    position: relative;
    max-height: calc(30vh - 10px);
    width: 560px;
}

.options-container {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.horizontal-option {
    display: flex;
    width: 95%;
    margin-bottom: 5px;
}

.option-left {
    flex-basis: 50%;
    display: flex;
    align-items: center;
}

.option-center {
    flex-basis: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-right {
    flex-basis: 25%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin-right: 5px;
}

.icon-container {
    margin-left: 10px;
    display: flex;
    align-items: center;
    width: 40px;
    height: 40px;
}

    .icon-container button {
        display: flex;
        margin-right: 5px;
    }

.label {
    display: flex;
    flex: 0 0 200px;
}

.parameter-names {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
}

.input-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    width: 310px;
}

.radio-label-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.parameter-input {
    font-size: 12px;
    background-color: lightgrey;
    color: black;
    text-align: right;
    width: 144px;
    border: 1px solid #000;
}

.line {
    display: flex;
    margin-bottom: 5px;
    width: 310px;
    height: 1px;
    background-color: #333333;
}

.line-vertical {
    display: flex;
    margin-bottom: 5px;
    width: 1px;
    align-self: stretch;
    background-color: #333333;
    margin-left: 10px;
    margin-right: 10px;
}

.form-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 30px;
    max-height: 400px;
}

.option-input {
    background-color: #3333;
    min-width: 150px;
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    text-align: right; 
    padding-right: 5px;
    width: auto;
    border-radius: 0; 
}

    .option-input:focus {
        text-align: center;
        padding-right: 5px;
    }

    .option-input option {
        font-family: 'Open Sans', sans-serif;
        font-size: 11px;
        color: black;
        text-align: right; 
        padding-right: 5px;
    }


    .parameter-input.disabled {
        color: rgb(109, 109, 109);
        background-color: rgb(224, 224, 224);
        border-color: rgba(118, 118, 118, 0);
        opacity: 0.7;
    }

        .horizontal-line {
            border: none;
            border-top: 1px solid #000;
            margin: 10px 0;
            width: 100%;
        }

        .disabled-label {
            opacity: .5;
            cursor: not-allowed;
        }

.hidden {
    display: none;
}

.product-code {
    padding-right: 10px;
    margin-right: 10px;
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    padding: 20px;
    background-color: #f9f9f9;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font-family: Arial, sans-serif;
    z-index: 1000;
}

    .popup h2 {
        font-size: 20px;
        color: #333;
        margin-bottom: 10px;
        text-align: center;
    }

    .popup p {
        font-size: 14px;
        color: #555;
        margin-bottom: 8px;
        text-align: center;
    }

    .popup button {
        display: inline-block;
        margin: 5px;
        padding: 8px 16px;
        font-size: 12px;
        border: none;
        background-color: #007BFF;
        color: white;
        cursor: pointer;
        border-radius: 4px;
        transition: background-color 0.3s ease;
    }

        .popup button:hover {
            background-color: #0056b3;
        }

    .popup #UserDiscount {
        margin-top: 10px;
        display: inline-block;
    }

    .popup label {
        font-size: 12px;
        color: #555;
    }


.popupManageClient {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    border: 1px solid #000000;
    padding: 5px;
    z-index: 9999;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

.emailItem {
    display: flex;
    align-items: center;
    margin-bottom: 1px;
}

.emailLabel {
    margin-right: 5px;
}

.searchResults {
    margin-right: 1px;
}

.navbar {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 97%;
    z-index: 100;
    margin-left: 25px;
    font-family: 'Open Sans', sans-serif;
}

    .navbar::after, .navbar::before {
        content: "";
        display: block;
        width: 100%;
        height: 4px;
    }

    .navbar::before {
        background-color: #333333;
        position: absolute;
        left: 0;
        right: 0;
        bottom: 1px;
    }

    .navbar::after {
        background-color: #00008B;
        position: absolute;
        left: 0;
        right: 0;
        bottom: -4px;
    }

.navbar-center-buttons {
    display: flex;
    justify-content: flex-start;
    padding-left: 100px;
    flex-grow: 1;
    /*        justify-content: center; */
    align-items: center;
    gap: 10px;
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s ease;
    flex-shrink: 0;
}
    .navbar-center-buttons.show {
        visibility: visible;
        opacity: 1;
    }

.navbar-buttons {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
    flex-wrap: nowrap;
    gap: 20px;
}

/* Hamburger toggle button: hidden on desktop, shown on mobile via media query below */
.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.navbar-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333333;
}

/* On desktop this wrapper is transparent to layout, so .navbar-center-buttons
   and .navbar-buttons keep behaving exactly as they did before (direct flex
   children of .container-fluid). Only on mobile does it become a real block
   that can be shown/hidden as a dropdown menu. */
.navbar-collapse {
    display: contents;
}

.navbar-collapse-close {
    display: none;
}


.button-triangle {
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    color: #333333;
    border: none;
    background: none;
    padding: 5px 10px;
    position: relative;
}

    .button-triangle:after {
        content: '';
        position: absolute;
        right: -5px;
        top: 50%;
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-bottom: 5px solid #000; 
        transform: translateY(-50%);
    }

.navbar-buttons button {
    border: none;
    background: none;
    cursor: pointer;
    outline: none;
    flex-shrink: 0;    
}

.container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 97%;
}

.container-fluid > * {
        flex-shrink: 0;
    }

    .navbar-header {
    height: 80px;
    display: flex;
    align-items: center;
}

.navbar-logo {
    width: 180px;
    height: 50px;
    object-fit: contain;
}

.container-fluid::after {
    content: "";
    display: table;
    clear: both;
}

.dropdown {
    color: red;
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #d9d9d9;
    min-width: 115px;
    z-index: 1;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}

    .dropdown-content a {
        color: black;
        padding: 8px 12px;
        text-decoration: none;
        display: block;
    }

        .dropdown-content a:hover {
            background-color: #ddd;
        }

.dropdown:hover .dropdown-content {
    display: block;
}

    .footer-link:hover {
        color: #ddd;
    }

.bottom-line {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    height: 30px;
    margin-top: 10px;
    border-bottom: 2px solid #00008B;
}

.line-behind {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #d9d9d9;
    z-index: -1;
}

.tab-button {
    margin: 0px 15px;
    background-color: transparent;
    border: none;
    border-top: 1px solid #cccccc;
    border-left: 1px solid #cccccc;
    border-right: 1px solid #cccccc;
    border-bottom: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
    bottom: -7px;
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
}

    .tab-button.active {
        border-right: 2px solid #00008B;
        border-left: 2px solid #00008B;
        border-top: 2px solid #00008B;
        border-bottom: 1px solid #ffffff;
        background: white;
        bottom: -7px;
    }

    .tab-button:hover {
        background-color: #e6e6e6;
    }

    .tab-button:focus {
        outline: none;
    }

/* ✅ Rezultātu tabula (#resultContent) ir VIENS kopīgs CSS Grid.
   #parameterNames un .columnParameters (3x: selected-unitsizes-list,
   resultQ, resultP) ir "display:contents" - tas liek to bērnu elementiem
   (katrs <p>/<div> ar savu explicit grid-row, sk. SelectionShared.js
   RESULT_ROW_INDEX un LiquidToLiquid.js/LiquidToAir.js) kļūt par grid
   elementiem tieši #resultContent iekšienē. Katra atlasītā izmēra kolonna
   (.unitsize-row) savukārt ir subgrid, kas manto TĀS PAŠAS rindu pozīcijas -
   tā nosaukums un vērtība VIENMĒR ir tajā pašā rindā, neatkarīgi no fonta,
   atstarpēm vai tā, kuras cooling/heating rindas šobrīd ir redzamas. */
#resultContent {
    display: grid;
    grid-template-columns: minmax(180px, max-content) repeat(3, minmax(80px, 1fr));
    grid-template-rows: repeat(20, minmax(0, auto));
    column-gap: 15px;
    align-items: center;
    padding: 0;
    margin: 10px 0 0 0;
}

.option-label {
    font-size: 12px;
    
}



.blue-button {
    background-color: darkblue;
    color: white;
    border: none;
    padding: 5px 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
    width: 100px;
    height: 40px;
    margin-right: 25px;
    margin-top: 10px;

}

    .blue-button:last-child {
        margin-right: 0;
    }

.blue-button-small {
    font-size: 12px;
}

.blue-button-medium {
    font-size: 12px;
}

.blue-button-large {
    font-size: 12px;
}

#parameterNames {
    display: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
}

    #parameterNames.active {
        display: contents;
    }

    #parameterNames p {
        grid-column: 1;
        margin: 0 0 4px 0;
        white-space: nowrap;
    }

.columnParameters {
    display: contents;
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
}

.unitsize-row {
    /* grid-template-rows: subgrid / grid-row / grid-column tiek iestatīti
       ar JS (LiquidToLiquid.js / LiquidToAir.js), jo grid-column atkarīgs
       no tā, kura pēc kārtas atlasītā vienība (0/1/2) šī kolonna ir. */
    font-size: 11px;
}

    .unitsize-row > *,
    .cooling-section > div,
    .heating-section > div {
        margin-bottom: 4px;
    }

.highlight {
    text-decoration: underline;
}

#resultContent hr {
    width: 100%;
    border: none;
    border-top: 1px solid #000;
    margin: 0;
}

.automaticResults {
    font-size: 12px;
    margin-right: 18px;
}

#pixi-container {
    
    margin-top: 15px;
}

.options-container {
    display: none;
}

.heating-section:not(.show) {
    display: none;
}

@media (max-width: 1768px) {
    .responsive-scroll {
        overflow-x: auto;
    }
}

@media (max-width: 768px) {
    /* 6) Vispārējā .container-filter horizontālā ritjosla vairs nav vajadzīga
       mobilajā - .main-vertical-frame min-width ir 0 (skat. zemāk), tāpēc tā
       pati nekad neprasa platāku ekrānu. Platās apakšvienības (Results,
       Options) tagad ritina PAŠAS, atsevišķi (skat. .result-frame/#components
       zemāk), lai vilkšana tajās nekustina visu ekrānu. */
    .responsive-scroll {
        overflow-x: visible;
    }

    /* 4) automaticResults - Desktop margin-right kompensē main-vertical-frame
       vertikālo scrollbar platumu; mobilajā tāda scrollbar nav (skat.
       max-height: none augstāk), tāpēc šī nobīde vairs nav vajadzīga. */
    .automaticResults {
        margin-right: 0;
    }

    /* ✅ 1) "Options" (option-frame/#components) un "Results" (result-frame)
       vienmēr zem "Selections" (main-vertical-frame) - explicit full width,
       lai iekšējais saturs nevarētu izstumt bloku sāņus. */
    .container-filter {
        flex-direction: column;
        margin-top: 15px;
        margin-left: 0;
        width: 100%;
    }

    /* 8) main-vertical-frame - simetrisks polsterējums abās pusēs, lai
       .input-container (fiksēts 310px uz Desktop) vairs neliekas piespiests
       pie kreisās malas ar visu brīvo vietu pa labi. */
    .main-vertical-frame {
        max-width: 100%;
        min-width: 0;
        width: 100%;
        border-right: none;
        max-height: none;
        order: 1;
        /*box-sizing: border-box;
        padding: 0 10px;*/
    }

    .input-container,
    .line,
    .cooling-box,
    .heating-box {
        width: 100%;
        box-sizing: border-box;
    }

    .vertical-frame {
        width: 100%;
        margin-left: 0;
        order: 2;
    }

    /* Options (option-frame) tagad vizuāli ZEM Results (result-frame) */
    .option-frame {
        flex-direction: column;
        width: 100%;
        max-height: none;
        order: 2;
    }

    /* 5) #components ritina PATS (nevis vilkot visu ekrānu), un
       .horizontal-option nekad neplīst 2 rindās (piem. "Ask Factory"). */
    #components {
        width: 100%;
        max-height: none;
        overflow-y: visible;
        overflow-x: auto;
    }

    .horizontal-option {
        min-width: 340px;
    }

    .option-right {
        white-space: nowrap;
    }

    /* 4) .result-frame ritina PATS - platums paliek ekrāna platumā, bet
       #resultContent iekšpusē var būt platāks, un tieši šis bloks (nevis
       viss ekrāns) tad ritinās horizontāli. Kolonnām platāks minimums, lai
       "Sizes, mm" u.c. vērtības neplīst 2 rindās. */
    .result-frame {
        max-width: 100%;
        width: 100%;
        overflow-x: auto;
        order: 1;
    }

    #resultContent {
        grid-template-columns: minmax(150px, max-content) repeat(3, minmax(110px, 1fr));
    }

    .unitsize-row > *,
    .cooling-section > div,
    .heating-section > div {
        white-space: nowrap;
    }

    .line-vertical {
        display: none;
    }

    /* Body no longer needs to reserve space for a fixed header/footer,
       since both become part of the normal page flow on mobile. This is
       what lets the page scroll normally instead of relying on internal
       max-height/overflow boxes. */
    body, html {
        padding-top: 0;
        padding-bottom: 0;
    }

    /* ✅ HEADER -> hamburger */
    .navbar {
        position: static;
        width: 100%;
        margin-left: 0;
    }

        /* 6) melnā/zilā svītra zem header - tikai Desktop */
        .navbar::before,
        .navbar::after {
            display: none;
        }

    .navbar-header {
        width: 100%;
        height: auto;
        margin-left: 0;
        padding: 10px 0;
        justify-content: space-between;
    }

    /* 3) logo bez papildu atkāpes - sakrīt ar pamatteksta kreiso malu */
    .navbar-logo {
        margin-left: 0;
    }

    .container-fluid {
        width: 100%;
        flex-wrap: wrap;
    }

    .navbar-toggle {
        display: flex;
    }

    /* 2) SELECT/PRINT - vienmēr redzami tieši zem logo, nevis hamburgerī;
       7) PRINT izlīdzināts pie labās malas, tāpat kā CALCULATE pie kreisās. */
    .navbar-center-buttons {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        padding-left: 0;
        margin-top: 4px;
    }

    /* 4) Hamburgera izvēlne kā panelis virs ekrāna (overlay), nevis satura
       pabīdīšana uz leju - puscaurspīdīgs pelēks fons aiz paneļa. */
    .navbar-collapse {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.45);
        z-index: 1500;
        align-items: stretch;
        justify-content: flex-end;
    }

        .navbar-collapse.show {
            display: flex;
        }

    .navbar-buttons {
        position: relative;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        width: 78%;
        max-width: 300px;
        height: 100%;
        background-color: #ffffff;
        padding: 44px 20px 20px;
        margin-top: 0;
        gap: 4px;
        box-shadow: -4px 0 16px rgba(0, 0, 0, 0.25);
        overflow-y: auto;
    }

    .navbar-collapse-close {
        display: block;
        position: absolute;
        top: 12px;
        right: 14px;
        width: 32px;
        height: 32px;
        border: none;
        background: none;
        font-size: 20px;
        line-height: 1;
        color: #333333;
        cursor: pointer;
    }

    /* 5) "Administration" un "Language" - vizuāli izcelti kā apakšsadaļu virsraksti */
    .navbar-buttons .dropdown {
        width: 100%;
        border-top: 1px solid #e5e5e5;
        margin-top: 8px;
        padding-top: 8px;
    }

    .navbar-buttons .button-triangle {
        width: 100%;
        text-align: left;
        font-weight: 700;
        text-transform: uppercase;
        font-size: 11px;
        letter-spacing: .06em;
        color: #00008B;
        padding: 4px 0;
    }

    .navbar-buttons .dropdown-content {
        padding-left: 10px;
    }

        .navbar-buttons .dropdown-content a {
            padding: 8px 4px;
            font-size: 13px;
        }

    /* Sub-menus (Administration / Language) are just listed inline once the
       hamburger menu is open, instead of relying on :hover which doesn't
       work on touch devices. */
    .dropdown-content {
        position: static;
        display: block;
        box-shadow: none;
        min-width: 0;
    }

    .button-triangle::after {
        display: none;
    }

    /* 7) Results tabula - kolonnu izkārtojums tagad definēts vienā vietā:
       #resultContent CSS Grid (skat. augstāk), kas darbojas vienādi gan
       Desktop, gan mobilajā - nekādi papildu flex/align-items labojumi
       šeit vairs nav vajadzīgi. */

    /* ✅ FOOTER -> stacked list, no longer pinned to the bottom of the
       viewport so it doesn't overlap content or block scrolling. */
    footer {
        position: static;
        height: auto;
        background-color: transparent;
        border-top: 1px solid #e2e2e2;
        margin-top: 24px;
        padding: 16px 15px 22px;
    }

    /* 8) pelēkā footer-line - tikai Desktop (mobilajā atdalīšanai izmanto
       kārtīgu footer border-top augstāk, nevis šo absolūti pozicionēto joslu) */
    .footer-line {
        display: none;
    }

    /* 5) mobilajā footer - kārtīgi atdalīts ar līniju, saites savā rindā,
       autortiesību teksts vizuāli mazāk uzsvērts. */
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 10px;
    }

        .footer-content a {
            font-size: 13px;
            color: #666666;
            padding: 2px 0;
        }

            .footer-content a:last-child {
                color: #9a9a9a;
                font-size: 11px;
                margin-top: 2px;
            }

    /* 4) /Selection/Selection - form-box kartītes pilnā ekrāna platumā */
    .form-container {
        flex-direction: column;
        flex-wrap: nowrap;
        margin-top: 15px;
        max-height: none;
    }

    .form-box {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 0 0 12px 0;
        padding: 15px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

        .form-box img {
            width: 100%;
            height: auto;
            max-height: 220px;
        }

        .form-box h4 {
            position: static;
            width: 100%;
            margin-top: 10px;
        }

    /* 5) ja opcijas nosaukums pārnesas uz 2 rindām, starp tām ir 3px atstarpe
       (2 rindas x 11.5px = 23px), viena rinda paliek praktiski tāda pati (~11.5px). */
    .custom-checkbox {
        line-height: 11.5px;
    }

    /* 6) Login ekrāns (Views/Home/Index.cshtml) - login logs un logo zem tā,
       abi gandrīz pilnā platumā, centrēti. */
    .custom-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        padding: 30px 0;
        gap: 24px;
    }

    .custom-row {
        margin-left: 0;
        width: 92%;
        max-width: 420px;
        flex-direction: column;
    }

    .panel-body-default {
        width: 100%;
        box-sizing: border-box;
    }

    .input-group,
    .login-input-field,
    .registration-form {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .img-container {
        width: 92%;
        max-width: 420px;
        margin: 0 auto;
        flex: none;
    }
}

::-webkit-scrollbar {
    width: 10px; /* Biezums horizontālajai ritjoslai */
    height: 10px; /* Biezums vertikālajai ritjoslai */
}

/* Ritjoslas "trakam" */
::-webkit-scrollbar-track {
    background: #f1f1f1; /* Fons */
}

/* Pašai ritjoslas "thumb" jeb velkamajai daļai */
::-webkit-scrollbar-thumb {
    background: #cccccc;
    border-radius: 10px;
    width: 6px;
    /* Fons kad nav virsū */
}

    /* Kad pele virsū "thumb" */
    ::-webkit-scrollbar-thumb:hover {
        background: #00008B; /* Fons kad pele virsū */
    }

input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    height: 12px; /* Augstums pielāgots, lai labāk saskanētu ar ::after elementu */
    width: 12px; /* Platums pielāgots */
    border: 1px solid black;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    background-color: white;
    transition: background-color 0.2s ease;
    position: relative; /* Pievienots, lai atļautu absolūto pozicionēšanu */
    display: inline-block; /* Nodrošina, ka var piemērot position */
}

    input[type="radio"]:checked {
        background-color: white;
    }

        input[type="radio"]:checked::after {
            content: "";
            display: block;
            margin: auto; /* Centrēšana nav nepieciešama ar absolūto pozicionēšanu */
            height: 7px; /* Izmērs pielāgots */
            width: 7px; /* Izmērs pielāgots */
            border-radius: 50%;
            background: black;
            position: absolute; /* Pievienots, lai absolūti pozicionētu */
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%); /* Nodrošina centru */
        }
.compressor-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 10px;
}

.compressor-column {
    flex: 1;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

    .compressor-column h4 {
        text-align: center;
        margin-bottom: 10px;
    }

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

th {
    background: #007BFF;
    color: white;
}

/*.adminOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);*/ /* Caurspīdīgs pelēkais fons */
    /*display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}*/

.PrintOutPopup {
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 800px;
    width: 100%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    /* ✅ Centrē popup ekrāna vidū */
    position: fixed; /* Fiksē popup uz ekrāna, lai neritinās līdzi */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Nobīda popup, lai tas būtu precīzi pa vidu */

    z-index: 10000; /* Lielāks nekā overlay */
}

.access-info {
    margin-bottom: 15px;
    font-family: Arial, sans-serif;
}

.access-level {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 8px;
    border: 2px solid #000;
    display: inline-block;
}

.red {
    background-color: red;
}

.orange {
    background-color: orange;
}

.yellow {
    background-color: yellow;
}

.white {
    background-color: white;
}

.role-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.felzer-cookie-banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #333333;
    color: white;
    padding: 20px 15px;
    display: none;
    z-index: 10000;
    text-align: center;
    font-size: 13px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
}

.felzer-cookie-link {
    color: #add8e6;
    text-decoration: underline;
}

.felzer-cookie-buttons {
    margin-top: 10px;
}

.felzer-btn {
    border: 1px solid white;
    background-color: transparent;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    margin: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
}

    .felzer-btn:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }

    .felzer-btn.blue {
        background-color: darkblue;
        border: none;
    }

        .felzer-btn.blue:hover {
            background-color: navy;
        }

.felzer-cookie-popup {
    display: none;
    position: fixed;
    bottom: 30%;
    left: 50%;
    transform: translate(-50%, 50%);
    background-color: white;
    border: 1px solid #ccc;
    padding: 30px;
    z-index: 12000;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    width: 320px;
}

.felzer-popup-inner h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #00008B;
    text-align: center;
}
.formula-panel {
    width: calc(10% - 1.5cm);
    max-width: 1100px; /* lai uz lieliem ekrāniem būtu saprātīgs platums */
    margin: 1210px auto;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,.05);
}

.formula-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.formula-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.formula-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.formula-btn {
    border: 1px solid #c9d8ff;
    background: #eef3ff;
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    transition: background .15s ease, transform .05s ease;
    user-select: none;
}

    .formula-btn:hover {
        background: #e2ebff;
    }

    .formula-btn:active {
        transform: translateY(1px);
    }

    .formula-btn.active {
        background: #dbe6ff;
        border-color: #b9cbff;
        font-weight: 600;
    }

.formula-body {
    margin-top: 12px;
}

.formula-preview {
    border: 1px dashed #cfcfcf;
    border-radius: 8px;
    padding: 16px;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: auto;
}

.formula-caption {
    color: #666;
    font-size: 12px;
    margin: 6px 2px 12px 2px;
}

#konva-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}