﻿:root {
    --guide-color-pole-before: #146e2f;
    --guide-color-pole-after: #4682B4;
    --wire-color-editable: #DC143C;
    --boundary-color: rgba(255, 0, 0, 0.3);
    --grid-color: #e0e0e0;
    --axis-color: #999;
    --text-color: #333;
    --canvas-bg-color: #ffffff;
    --canvas-border-color: #ccc;
    --control-bg-color: #f8f9fa;
    --control-border-color: #ddd;
    /* ---------- V2 ---------- */
    /* Siatka i osie */
    --wa-grid-color: #e0e0e0;
    --wa-axis-color: #999;
    --wa-text-color: #333;
    --wa-text-color-inverted: #fdfdfd;
    --wa-guide-color: #555555;
    --wa-guide-text-color: #111111;
    /* Obiekty edytora */
    --wa-guide-pole-before-color: #146e2f;
    --wa-guide-pole-after-color: #4682B4;
    --wa-guide-pole-before-light-color: #21c967;
    --wa-guide-pole-after-light-color: #62b5ec;
    --wa-insulator-color-1: #4682b4;
    --wa-insulator-color-2: #62b5ec;
    /* Punkty zaczepienia */
    --wa-attachment-lighting-color-1: #146e2f;
    --wa-attachment-lighting-color-2: #21c967;
    --wa-attachment-insulator-color-1: #4682B4;
    --wa-attachment-insulator-color-2: #62b5ec;
    --wa-selected-color: rgba(255, 213, 73, 0.7);
    --wa-boundary-color: rgba(255, 0, 0, 0.3);
    --wa-snap-indicator-color: rgba(255, 0, 0, 0.5);
    /* UI (Canvas, Menu) */
    --wa-canvas-bg-color: #ffffff;
    --wa-canvas-border-color: #ccc;
    --wa-menu-bg-color: #ffffff;
    --wa-menu-border-color: #ccc;
    --wa-menu-hover-bg-color: #f0f0f0;
    --wa-menu-checkmark-color: #333;
    /* PRZEWODY I TORY PRĄDOWE */
    /* Przewody odgromowe - stonowana, "uziemiona" zieleń */
    --wa-wire-lightning-color: #59b632;
    /* Fazy toru 1 - standardowa, energetyczna kolorystyka RGB */
    --wa-wire-phase-l1-color: #d68221;
    --wa-wire-phase-l2-color: #d62121;
    --wa-wire-phase-l3-color: #b221d6;
    /* Kolory kolejnych torów prądowych */
    --wa-wire-circuit-1-color: #c91a1a;
    --wa-wire-circuit-2-color: #d621d6;
    --wa-wire-circuit-3-color: #5721d6;
    --wa-wire-circuit-4-color: #df7a07;
    --wa-wire-circuit-5-color: #2169d6;
    /* Kolory stanu podpięcia przewodu do izolatora */
    --wa-attached-indicator-color: #000080;
    --wa-insulator-attached-color: #000080;
    /* Kolor obwódki dla wiązek/torów */
    --wa-bundle-outline-color: rgba(50, 50, 50, 0.5);
    /* ZMIENNE DLA ZIEMI */
    --wa-ground-color: #8B4513;
    --wa-ground-hatch-color: #A0522D;
}

html {
    scroll-behavior: smooth;
}

body {
    padding-top: 70px;
    background-image: none !important; /* eliminate rdzn flares */
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px; /* Vertically center the text there */
}

.validation-summary-valid {
    display: none;
}

.validation-summary-errors ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

@media print {
    .no-print, .no-print * {
        display: none !important;
    }
}

@page {
    size: auto;
}


.print-only-view {
    display: none !important;
}


.custom-color-1 {
    background-color: rgba(47, 102, 144, 1);
}

.custom-color-2 {
    background-color: rgba(58, 124, 165, 1);
}

.custom-color-3 {
    background-color: rgba(217, 220, 214, 1);
}

.custom-color-4 {
    background-color: rgba(22, 66, 91, 1);
}

.custom-color-5 {
    background-color: rgba(129, 195, 215, 1);
}

.custom-color-6 {
    background-color: rgba(203, 217, 227, 1);
}

.custom-color-7 {
    /*background-color: rgba( 60, 126, 180, 0.5);*/
    background-color: rgba(138, 202, 255, 1.0);
}

.custom-color-7a {
    /*background-color: rgba( 60, 126, 180, 0.1);*/
    background-color: rgba(172, 218, 255, 1.0);
}

.custom-color-8 {
    /* background-color: rgba( 59, 151, 176, 0.5); */
    background-color: rgb(255 179 129);
}

.custom-color-8a {
    /*background-color: rgba(59, 151, 176, 0.1);*/
    background-color: rgba(255, 219, 190, 1.0);
}

.striped {
    background: repeating-linear-gradient( 45deg, transparent, transparent 3px, transparent 3px, gray 6px ), linear-gradient( to bottom, transparent, transparent )
}

.section-striped {
    background: repeating-linear-gradient( 45deg, transparent, transparent 3px, transparent 3px, gray 6px ), linear-gradient( to bottom, transparent, transparent )
}

input[type="text"].section-striped {
    color: transparent;
}

    input[type="text"].section-striped:focus {
        outline: none;
        color: transparent;
        box-shadow: none;
    }

input[type="number"].section-striped {
    color: transparent;
}

    input[type="number"].section-striped:focus {
        outline: none;
        color: transparent;
        box-shadow: none;
    }

.shadow-box {
    /*box-shadow: 0px 0px 5px 1px rgba(0,0,0,0.54);*/
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}

button {
    /*box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);*/
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}

    button:hover {
        box-shadow: 0 7px 10px rgba(0,0,0,0.25), 0 5px 5px rgba(0,0,0,0.22);
    }

.navbar-custom {
    background-color: rgba(47, 102, 144, 1);
}

    .navbar-custom .navbar-brand,
    .navbar-custom .navbar-text {
        color: rgba(255,255,255,.8);
    }

    /* change the brand and text color */
    .navbar-custom .navbar-brand,
    .navbar-custom .navbar-text {
        color: rgba(255,255,255, 1);
    }
    /* change the link color */
    .navbar-custom .navbar-nav .nav-link {
        color: rgba(255,255,255, .8);
    }
    /* change the color of active or hovered links */
    .navbar-custom .nav-item.active .nav-link,
    .navbar-custom .nav-item:hover .nav-link {
        color: #ffffff;
    }

    .navbar-custom .navbar-toggler-icon {
        color: white;
    }


.table-sekcja thead {
    background-color: aliceblue;
}

.fs16 {
    font-size: 16px;
}

.fs15 {
    font-size: 15px;
}

.fs14 {
    font-size: 14px;
}

.fs13 {
    font-size: 13px;
}

.fs12 {
    font-size: 12px;
}

.fs11 {
    font-size: 11px;
}

.fs10 {
    font-size: 10px;
}

.table-sekcja th {
    text-align: center;
}

.table-sekcja tr {
    text-align: center;
}

.table-sekcja-cell {
    min-width: 50px;
}

.table-sekcja-cell-30 {
    min-width: 30px;
}

.table-sekcja-cell-40 {
    min-width: 40px;
}

.table-sekcja-cell-50 {
    min-width: 50px;
}

.table-sekcja-cell-75 {
    min-width: 75px;
}

.table-sekcja-cell-100 {
    min-width: 100px;
}

.button-compute {
    min-width: 150px;
}

.button-submit {
    min-width: 100px;
}

.btn-circle-20 {
    width: 20px;
    height: 20px;
    padding: 0px 0px;
    border-radius: 10px;
    text-align: center;
    font-size: 10px;
    line-height: 1.42857;
}

.btn-circle-26 {
    width: 26px;
    height: 26px;
    padding: 0px 0px;
    border-radius: 12px;
    text-align: center;
    font-size: 10px;
    line-height: 1.42857;
}

.btn-circle-28 {
    width: 28px;
    height: 28px;
    padding: 0px 0px;
    border-radius: 14px;
    text-align: center;
    font-size: 1.0em;
    line-height: 0.8em;
    margin: 0;
}

/* ADDRESS CSS STYLING
-------------------------------------------------- */

address {
    font-size: 1.5rem;
}

    address > .org, .fn {
        font-size: 1.5rem;
        font-weight: 700;
    }

    address > .adr {
        font-size: 1.4rem;
    }

    address > .tel {
        font-size: 0.8rem;
    }

.inputfile {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

    .inputfile + label {
        border: 1px solid rgba(2, 117, 216, 1);
        padding: 6px 12px;
        margin: 0px;
        color: white;
        background-color: rgba(2, 117, 216, 1);
        display: inline-block;
        cursor: pointer;
        border-radius: 5px;
        min-width: 250px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
        transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
    }

        .inputfile:focus + label,
        .inputfile + label:hover {
            box-shadow: 0 7px 10px rgba(0, 0, 0, 0.25), 0 5px 5px rgba(0, 0, 0, 0.22);
        }

.zoom {
    transition: transform .2s; /* Animation */
    margin: 0 auto;
}

    .zoom:hover {
        transform: scale(1.02); /* (150% zoom - Note: if the zoom is too large, it will go outside of the viewport) */
        z-index: 0;
        box-shadow: 0 7px 10px rgba(0,0,0,0.25), 0 5px 5px rgba(0,0,0,0.22);
    }



.editable-click,
a.editable-click,
a.editable-click:hover {
    text-decoration: none;
    border-bottom: none;
}

.contact-info-navbar {
    display: block;
}

.logout-navitem-text-long {
}

.logout-navitem-text-short {
    display: none;
}

.identity-navitem-text {
}

@media (max-width: 1120px) {
    .contact-info-navbar {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .logout-navitem-text-long {
        display: none;
    }

    .logout-navitem-text-short {
        display: inline-block;
    }
}

@media (max-width: 992px) {
    .logout-navitem-text-long {
        display: none;
    }

    .logout-navitem-text-short {
        display: inline-block;
    }
}

fieldset:disabled {
    color: gray;
}


/*Blazor*/
.custom-reconnect-modal > div {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 4200;
    overflow: hidden;
    background-color: #fff;
    opacity: 0.68;
    text-align: center;
    font-weight: bold;
}

    .custom-reconnect-modal > div > p {
        margin-top: 50px;
        font-family: "Segoe UI Light", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
        font-size: 18px;
        text-align: center;
        color: black;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.custom-reconnect-modal .wait-spinner {
    display: inline-flex;
    content: "";
    border: 4px solid rgb(15, 122, 184);
    border-radius: 50%;
    border-bottom-color: transparent;
    width: 20px;
    height: 20px;
    margin: 0;
    animation: wait-spinner 2s linear infinite;
}

@keyframes wait-spinner {
    to {
        transform: rotate(2turn);
    }
}

.components-reconnect-hide > div {
    display: none;
}

.components-reconnect-show > div {
    display: none;
}

.components-reconnect-show > .show {
    display: block;
}

.components-reconnect-failed > div {
    display: none;
}

.components-reconnect-failed > .failed {
    display: block;
}

.components-reconnect-rejected > div {
    display: none;
}

.components-reconnect-rejected > .rejected {
    display: block;
}

/* combo, select zablokowanie możliwości wyboru, gdy w trybie readonly */
select[readonly] {
    pointer-events: none;
}


/* 
 * Modyfikacje stylów Radzen - Walidacja
 * Usunięcie ramki (box-shadow) dla poprawnie zwalidowanych pól
 */

/* Ogólne nadpisanie dla wszystkich poprawnych kontrolek Radzen */
/*.rz-inputtext.rz-valid,
.rz-dropdown.rz-valid .rz-dropdown-label,
.rz-numeric.rz-valid .rz-inputtext,
.rz-password.rz-valid .rz-inputtext,
.rz-textarea.rz-valid,
.rz-autocomplete.rz-valid .rz-autocomplete-input {
    border-color: var(--rz-border-color);
    box-shadow: none !important;
}*/

/* 
 * Zachowanie czerwonej ramki dla błędnych pól. Zazwyczaj domyślnie włączony w motywach Radzen.
 * dodane dla pewności, że nasze zmiany nie wpłyną na walidację błędów
 */
/*.rz-inputtext.rz-invalid,
.rz-dropdown.rz-invalid .rz-dropdown-label,
.rz-numeric.rz-invalid .rz-inputtext,
.rz-password.rz-invalid .rz-inputtext,
.rz-textarea.rz-invalid,
.rz-autocomplete.rz-invalid .rz-autocomplete-input {
    border-color: var(--rz-danger);
}*/


/**
    EDYTOR WIRE ARRANGEMENT
*/
.editor-container {
    width: 100%;
    /* Ustawmy wysokość na 70% wysokości okna przeglądarki */
    height: 70vh;
    border: 1px solid var(--wa-canvas-border-color);
    /* Ukryj ewentualne paski przewijania canvasu */
    overflow: hidden;
    /* Potrzebne dla przyszłych elementów UI wewnątrz */
    position: relative;
}

#wire-arrangement-editor {
    width: 100%;
    height: 100%;
    display: block;
    cursor: default;
    background-color: var(--wa-canvas-bg-color);
}

/* Menu kontekstowe ------------------------ */


.wa-context-menu {
    position: fixed;
    background-color: var(--wa-menu-bg-color);
    border: 1px solid var(--wa-menu-border-color);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    padding: 2px 0;
    min-width: 160px;
    color: var(--wa-text-color);
}

    .wa-context-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .wa-context-menu li {
        padding: 4px 10px 4px 25px;
        cursor: pointer;
        font-size: 0.85em;
        position: relative;
    }

        .wa-context-menu li:hover {
            background-color: var(--wa-menu-hover-bg-color);
        }

        .wa-context-menu li.checked::before {
            content: '✔';
            position: absolute;
            left: 5px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--wa-menu-checkmark-color);
            font-weight: normal;
            font-size: x-small;
        }

.wa-context-menu-separator {
    border: 0;
    border-top: 1px solid var(--wa-grid-color);
    /* Użyjmy koloru siatki dla spójności */
    margin: 4px 0;
}
