/* =========================================================
   CRM_LAYOUT.CSS – REBRANDING EDPO.PL (PEŁNA ZIELEŃ)
   Wszystkie klasy zachowane. Kolorystyka: Teal/Orange/White.
   ========================================================= */

/* =========================
   1. BODY & TYPOGRAFIA 
========================= */
body {
    font-size: .74rem !important;
    line-height: 1.5;
    background-color: #f4f7f6; /* Jasne, świeże tło */
    color: #474747;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

h2, h3 {
    margin-bottom: 16px;
    padding-bottom: 0;
    font-weight: 300;
    color: #000000;
}

h5, h6 {
    font-weight: 300;
}

a {
    color: #0061E0;
}

.font-auth-math {
    font-size: 1.75rem;
}

/* =========================
   2. NAVBAR (GÓRNA BELKA)
========================= */
.bgNavbar {
    background-color: #ffffff;
 
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Wymuszamy kolor dla samej klasy i wszystkiego co jest wewnątrz niej */
.topMenuColorZarzadzanieOrg {
    background-color: #1d5959 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: .80rem !important;
    border: none !important;
    padding: 10px 20px !important;
    display: block;
    border-top-right-radius: 12px !important;
}

/* Wymuszamy kolor dla samej klasy i wszystkiego co jest wewnątrz niej */
.topMenuColor {
    background-color: #1d5959 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: .80rem !important;
    border: none !important;
    padding: 10px 20px !important;
    display: block;
}

/* To jest kluczowe: linki i ikony wewnątrz tego menu muszą też być białe */
.topMenuColor a,
.topMenuColor .nav-link,
.topMenuColor i {
    color: #ffffff !important;
}

/* Efekt najechania dla elementów w górnym menu */
.topMenuColor a:hover {
    color: #ff8b05 !important; /* Pomarańczowy akcent Netixo */
    text-decoration: none !important;
}

/* =========================
   3. SIDEBAR / MENU (EDPO GREEN STYLE)
========================= */
.bgColorMenu, .backgroundColorMenu {
    background-color: #007e8c !important; /* Główny kolor edpo.pl */
    min-height: 700px;
}

/* Podstawowy styl elementu - usunięcie białego tła Bootstrapa */
.list-group-item {
    border-radius: 0 !important;
    background-color: transparent !important; /* Wymuszamy brak tła */
    color: #ffffff !important;
    border-style: solid;
    border-width: 0px 0px 0px 4px; /* Pasek wskaźnika po lewej */
    border-color: transparent;
    padding: 12px 20px;
    font-size: .78rem;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    transition: all 0.2s ease-in-out;
}

/* Hover - lekkie rozjaśnienie zamiast białego koloru */
.list-group-item:hover {
    background-color: rgba(255,255,255,0.1) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    /*    padding-left: 25px !important;  Subtelne wysunięcie tekstu */
}

/* ZAZNACZENIE AKTYWNEGO MODUŁU (Twoja klasa z PHP) */
.list-group-item.list-group-item-action-active,
.list-group-item.active {
    background-color: rgba(0,0,0,0.15) !important; /* Ciemniejszy odcień dla kontrastu */
    /*border-left-color: #ff8b05 !important;  Pomarańczowy wskaźnik */
    color: #ffffff !important;
    font-weight: 600 !important;
    border-right-width: 0px !important;
}

/* Kolor ikony w aktywnym module */
.list-group-item-action-active i {
    color: #ff8b05 !important;
}

/* --- BADGES / COUNTERS (Obwódka ilości użytkowników) --- */
.list-group-item small {
    background-color: rgba(0, 0, 0, 0.2); /* Ciemniejsze tło licznika */
    color: #ffffff !important;
    padding: 2px 8px;
    border-radius: 10px; /* Zaokrąglony kształt badge */
    min-width: 20px;
    text-align: center;
}

.list-group-item.list-group-item-action-active small {
    border-color: #ff8b05 !important; /* Pomarańczowa obwódka dla aktywnego */
    color: #ff8b05 !important;
}

/* =========================
   4. SELECTY I LISTY (KOMUNIKACJA)
========================= */

/* Sam przycisk na pasku - zawsze zielony */
.bgListMenu.form-control {
    border-radius: 4px !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #007e8c !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    font-size: 11.84px !important;
    padding: 4px 8px !important;
}

/* Sam przycisk na pasku - zawsze zielony */
.bgListMenu.form-control:hover {
    border-radius: 4px !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #007e8c !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    font-size: 11.84px !important;
    padding: 4px 8px !important;
}

.bgListMenu.form-control:focus,
.bgListMenu.form-control:active {
    background-color: #007e8c !important;
    color: #ffffff !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Tło samej listy rozwijanej - musi być białe dla czytelności */
.bgListMenu.form-control option {
    background-color: #007e8c !important;
    color: #ffffff !important;
    font-size: 11.84px;
}

/* Kolor zaznaczenia na liście */
.bgListMenu.form-control option:checked,
.bgListMenu.form-control option:hover {
    background-color: #007e8c !important;
    color: #ffffff !important;
}

/* =========================
   4. TOP PAGE INFO (Nagłówki stron - ZIELEŃ)
========================= */
.topPageInfo {
    background-color: #007e8c; /* Zmiana z granatu na zieleń edpo */
    padding: 20px 15px;
    color: #ffffff;
}

.topPageInfoText, .topPageInfoTextNoBred {
    font-size: 1.7rem !important;
    font-weight: 200;
    line-height: 1.2;
    text-transform: uppercase !important;
    display: flex;
    align-items: center;
}

.subTopPageInfoText {
    font-size: 1.0rem !important;
    font-weight: 200;
    color: #ffffff !important;
    text-transform: uppercase !important;
    padding-left: 15px;
}

.topPageInfoTextIcon {
    padding-left: 40px;
    font-size: 1.0rem !important;
    vertical-align: top;
    color: #ffffff;
}

.topPageInfoButton {
    padding: 20px 20px 0px 0px;
    font-size: 1.5rem !important;
    text-align: right;
    color: #ffffff;
}

.tekst-top {
    font-size: 1.3rem;
}
.tekst-top-user {
    font-size: 0.80rem;
}
.kontekst-top {
    color: #000000; /* Pomarańczowy wyróżnik firmy */
    font-weight: 500;
}

.subTopPageInfoText {
    border-bottom: 0px solid rgba(0,0,0,.125);
    color: #000000 !important;
    font-weight: 200;
    font-size: 1.0rem !important;
    text-transform: uppercase !important;
}

/* =========================
   5. BREADCRUMB (Z PIONOWYMI KRESKAMI)
========================= */
.breadcrumb {
    display: flex !important;
    justify-content: flex-end !important;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: -5px 0px 0px 0px !important;
    list-style: none;
    width: 100%;
}

.breadcrumb li {
    background-color: #ffffff;
    border: 1px solid #e3e6f0;
    padding: 6px 15px;
    display: flex;
    align-items: center;
    color: #5a5c69;
    font-size: 0.72rem;
    position: relative;
}

/* KLUCZOWA ZMIANA: Obsługa pojedynczego elementu (np. Strona Główna) */
.breadcrumb li:first-child:last-child {
    border-radius: 20px !important; /* Pełne zaokrąglenie, gdy jest tylko jeden li */
    border-right: 1px solid #e3e6f0 !important;
}

/* Standardowe zachowanie dla wielu elementów */
.breadcrumb li:not(:last-child) {
    border-right: none; /* Ukrywamy prawą kreskę środkowych elementów */
}

/* Zaokrąglenie lewej strony (pierwszy z wielu) */
.breadcrumb li:first-child:not(:last-child) {
    border-radius: 20px 0 0 20px;
    border-right: 1px solid #e3e6f0;
}

/* Środkowe elementy (nie pierwszy i nie ostatni) */
.breadcrumb li:not(:first-child):not(:last-child) {
    border-radius: 0;
    border-right: 1px solid #e3e6f0;
}

/* Zaokrąglenie prawej strony (ostatni z wielu) */
.breadcrumb li:last-child:not(:first-child) {
    border-radius: 0 20px 20px 0;
    border-left: none; /* Zapobiega podwójnej kresce na styku */
}

/* Linki i Hover */
.breadcrumb li a {
    color: #007e8c !important;
    text-decoration: none;
    font-weight: 600;
}

/* =========================
   6. OVERLAY & LOADER
========================= */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#overlay .spinner-border {
    color: #007e8c;
    border-width: 0.25em;
    width: 3rem;
    height: 3rem;
}

#overlay .loading-text {
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #007e8c;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* =========================
   7. SPACING & UTILITIES
========================= */
.marginTop2 {
    margin-top: 2px !important;
}
.marginTop5 {
    margin-top: 5px !important;
}
.marginTop10 {
    margin-top: 10px !important;
}
.marginTop15 {
    margin-top: 15px !important;
}
.marginTop20 {
    margin-top: 20px !important;
}
.marginTop30 {
    margin-top: 30px !important;
}
.marginTop40 {
    margin-top: 40px !important;
}
.marginTop50 {
    margin-top: 50px !important;
}
.marginTop100 {
    margin-top: 100px !important;
}

.marginBottom5 {
    margin-bottom: 5px !important;
}
.marginBottom10 {
    margin-bottom: 10px !important;
}
.marginBottom20 {
    margin-bottom: 20px !important;
}

.marginLeft5 {
    margin-left: 5px !important;
}
.marginLeft10 {
    margin-left: 10px !important;
}
.marginLeft20 {
    margin-left: 20px !important;
}

.marginRight5 {
    margin-right: 5px !important;
}
.marginRight10 {
    margin-right: 10px !important;
}

.paddingTop5 {
    padding-top: 5px !important;
}
.paddingTop10 {
    padding-top: 10px !important;
}
.paddingTop20 {
    padding-top: 20px !important;
}

.paddingBottom5 {
    padding-bottom: 5px !important;
}
.paddingBottom10 {
    padding-bottom: 10px !important;
}
.paddingBottom20 {
    padding-bottom: 20px !important;
}

.paddingLeft10 {
    padding-left: 10px !important;
}
.paddingLeft20 {
    padding-left: 20px !important;
}
.paddingLeft40 {
    padding-left: 40px !important;
}
.padding0 {
    padding: 0px !important;
}
.paddingZero {
    padding: 0px !important;
}
.paddingZeroImportant {
    padding: 0px !important;
}

.noBorder {
    border: 0px !important;
}

/* =========================
   8. ELEMENTY SPECJALNE
========================= */
.cardNoBorder {
    background-color: transparent;
    border: 0px;
    box-shadow: none;
}

.card-subtitle {
    margin-top: 20px;
}

.card-header {
    text-transform: uppercase;
    font-size: .90rem;
    border: 0px !important;
}

.nameKotwica:target {
    padding-top: 200px !important;
}

.nonVisible {
    font-size: 2px;
}

.height20 {
    /*height: 50px !important;*/
}

label {
    font-weight: 700;
}

.normal-label {
    font-weight: normal;
}

/* Stylizacja menu głównego */
.dropdown-menu {
    border: none !important;
    border-radius: 12px !important; /* Pasuje do Twojego dashboardu */
    box-shadow: 0 8px 30px rgba(0,0,0,0.12) !important; /* Efekt unoszenia się */
    padding: 8px 0 !important;
    min-width: 210px;
    margin-top: 8px !important;
    overflow: hidden; /* Gwarantuje, że hover na itemach nie "wystaje" poza radius */
}

/* Stylizacja poszczególnych opcji (itemów) */
.dropdown-item {
    padding: 4px 20px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: #3a3b45 !important;
    transition: all 0.2s ease-in-out;
}

/* Efekt najechania - kolorystyka spójna z Twoim bg-info/primary */
.dropdown-item:hover {
    background-color: #f8f9fc !important; /* Bardzo jasny niebieski/szary */
    color: #4e73df !important; /* Kolor przewodni aplikacji */
    padding-left: 25px !important; /* Subtelna animacja przesunięcia tekstu */
}

/* Linia oddzielająca (divider) */
.dropdown-divider {
    border-top: 1px solid #ebedf2 !important;
    margin: 5px 0 !important;
}

/* Styl dla akcji krytycznych (np. Kasuj) */
.dropdown-item.text-danger,
.dropdown-item[href*="kasuj"] {
    color: #e74a3b !important; /* Bootstrap Danger */
}

.dropdown-item.text-danger:hover,
.dropdown-item[href*="kasuj"]:hover {
    background-color: #fff5f5 !important;
    color: #be2617 !important;
}

#automatyczneWylogowanie {
    display: block;
    min-height: 1.2em; /* Rezerwuje wysokość jednego wiersza tekstu */
    line-height: 1.2em;
    font-size: 0.75rem;
    color: #858796;
    margin-top: 5px;
}

/* Nowoczesny separator sekcji */
.section-header-line {
    border-bottom: 1px solid #cdcdcd !important; /* Twoja zieleń EDPO */
    margin-bottom: 15px;
    padding-bottom: 5px;
    align-items: flex-end; /* Wyrównuje napis i "zaznacz wszystko" do dołu linii */
}

/* Opcjonalnie: Styl dla sekcji "Powiązania" i "Elementy" bez checkboxa */
.h-bottom-border-full {
    width: 100%;
    border-bottom: 1px solid #007e8c;
    margin-top: 25px;
    margin-bottom: 15px;
    padding-bottom: 5px;
}

.pLink {
    color: #0061E0;
    padding: 0px;
    margin: 0px;
    cursor: pointer;
}

.btn-status {
    padding: 4px 10px;
    border-radius: 4px;
    margin: 0px;
}

.praca-kontekst {
    color: red;
    font-size: .80rem;
}

/* =========================================================
   MODERN COOKIE POPUP (EDPO STYLE)
   ========================================================= */

/* Kontener główny - efekt karty */
.eupopup-container.eupopup-color-edpo-style {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 126, 140, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 20px;
    /*max-width: 400px;*/
    color: #474747;
    font-family: inherit;
    transition: all 0.3s ease;
    text-align: center;
    margin: 50px;
}

/* Pozycjonowanie w narożniku */
.eupopup-container-bottomright {
    bottom: 20px !important;
    left: auto !important;
    text-align: center !important;
    padding: 30px 0px 30px 0px;
}

/* Tytuł */
.eupopup-head {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #007e8c !important; /* Twój zielony */
    margin-bottom: 8px !important;
    display: block;
}

/* Treść */
.eupopup-body {
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
    margin-bottom: 15px !important;
}

/* Przyciski - Kontener */
.eupopup-buttons {
    display: block;
    gap: 10px;
}

/* Przycisk Akceptacji (Główny) */
.eupopup-button.eupopup-button_1 {
    background-color: #007e8c !important; /* Zielony EDPO */
    color: #fff !important;
    padding: 8px 18px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    font-size: 0.8rem !important;
    transition: background 0.2s ease !important;
    margin:10px;
}

.eupopup-button.eupopup-button_1:hover {
    background-color: #1d5959 !important;
}

/* Przycisk Więcej (Link) */
.eupopup-button.eupopup-button_2 {
    background-color: transparent !important;
    color: #007e8c !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    font-size: 0.8rem !important;
    border: 1px solid #007e8c !important;
    transition: all 0.2s ease !important;
    margin:10px;
}

.eupopup-button.eupopup-button_2:hover {
    background-color: rgba(0, 126, 140, 0.05) !important;
    color: #ff8b05 !important; /* Pomarańczowy akcent przy hover */
    border-color: #ff8b05 !important;
}

/* Przycisk zamknij (X) */
.eupopup-closebutton {
    position: absolute !important;
    top: 10px !important;
    right: 12px !important;
    color: #ccc !important;
    font-size: 18px !important;
    text-decoration: none !important;
}

.eupopup-closebutton:hover {
    color: #ff8b05 !important;
}

/* Responsywność dla mobile */
@media (max-width: 480px) {
    .eupopup-container.eupopup-color-edpo-style {
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
        max-width: 100% !important;
        border-radius: 15px 15px 0 0 !important;
    }
}

 
.szkolenie-timeline{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:25px;
}

.timeline-step{
    padding:8px 14px;
    background:#e9ecef;
    border-radius:20px;
    font-size:13px;
}

.timeline-active{
    background:#007bff;
    color:white;
    font-weight:bold;
} 

/* Kontener dla linków z ikonami */
.action-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
    transition: all 0.3s ease;
    padding: 8px 15px 8px 8px;
    border-radius: 50px; /* Styl pigułki */
    background: rgba(0, 0, 0, 0.03);
    margin-bottom: 10px;
}

/* Styl samej ikony (kółeczko) */
.action-link i {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 12px;
    font-size: 18px;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Kolory specyficzne dla akcji */
.link-retry i { color: #007e8c; } /* Powtórz */
.link-success i { color: #2fb344; } /* Zakończ / OK */
.link-pdf i { color: #d63939; } /* Certyfikat */
.link-logout i { color: #666; } /* Wyjście */

/* Hover efekty */
.action-link:hover {
    background: rgba(0, 0, 0, 0.07);
    transform: translateY(-2px);
}

.action-link:hover i {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

/* Specyficzny hover dla certyfikatu (czerwony) */
.link-pdf:hover i { background: #d63939; color: #fff; }
.link-success:hover i { background: #2fb344; color: #fff; }