/* gl-panel.php */

body, html {
    font-family: Arial, sans-serif;
    background-color: #323844;
    color: #fff;
}

.fusion-row {
    max-width: 1200px;
    padding: 5px;
}

/* ==============================
   LEWA KOLUMNA - MENU
   ============================== */
.panel-content {
    display: flex;
    gap: 20px;
    
}

.panel-content > div {
    padding: 15px;
    border-radius: 5px;
}

.panel-content h4 {
    color: #fff;
    font-size: 22px;
    margin-bottom: 10px;
    text-align: center;
}

.panel-content p {
    color: #ccc;
    font-size: 14px;
}

.fusion-menu {
    list-style: none;
}

.fusion-menu li {
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.fusion-menu li a {
    display: block;
    padding: 10px;
    background-color: #252a33;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    transition: background 0.3s;
}

.fusion-menu li a:hover {
    background-color: #ec4858;
}

.fusion-menu li:hover > ul {
    display: block !important;
}


/* ==============================
   PRAWA KOLUMNA - SEKCJE
   ============================== */
.panel-content > div:nth-child(2) {
    flex-grow: 1;
    background: #323844;
    color: #fff;
    border-radius: 5px;
}

/* Nagłówki sekcji */
.panel-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    border-bottom: 2px solid #ec4858;
    padding-bottom: 5px;
}

/* ==============================
   SEKCJA: AKTYWNE PROJEKTY
   ============================== */
.project-table {
    width: 100%;
    border-collapse: collapse;
    background: #414854;
    margin-bottom: 20px;
    border-radius: 5px;
    overflow: hidden;
}

.project-table th {
    background: #ec4858;
    color: #fff;
    padding: 8px;
    text-align: left;
}

.project-table td {
    padding: 8px;
    border-bottom: 1px solid #555;
    color: #ddd;
}

.project-table tr:hover {
    background-color: #505865;
}

/* Ikona podglądu */
.project-table .icon-view {
    font-size: 18px;
    color: #ec4858;
    text-decoration: none;
}

.project-table .icon-view:hover {
    color: #c93847;
}

/* ==============================
   SEKCJA: STATYSTYKI ZYSKÓW (WYKRES SŁUPKOWY)
   ============================== */
#profit_chart_div {
    width: 100%;
    height: 350px;
    border: 0px solid #555;
    border-radius: 5px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    
}

.chart-container {
    width: 100%;
    height: 100%;
}

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* dla płynnego scrollowania na urządzeniach iOS */
}

/* ==============================
   RESPONSYWNOŚĆ (dla ekranów mobilnych)
   ============================== */
@media (max-width: 767px) {
    .panel-content {
        flex-direction: column;
    }

    .panel-content > div {
        width: 100%;
    }

    .fusion-row {
        width: 100%;
    }

    .fusion-menu li a {
        text-align: center;
        padding-left: 15px;
    }

    #profit_chart_div {
        width: 100%;
        height: 250px;
        margin-left: 2px;
        margin-right: 2px;
    }

    
    .panel-content h4 {
        font-size: 18px;
    }

    .fusion-menu li a {
        padding: 8px;
    }

    .project-table th, .project-table td {
        padding: 6px;
        font-size: 12px;
    }

    /* Zmniejszenie paddingu oraz font-size dla tabeli wewnątrz kontenera */
    .table-wrapper table,
    .table-wrapper th,
    .table-wrapper td {
        padding: 5px;
        font-size: 12px;
    }
    
    .table-wrapper table {
        min-width: 600px;
    }

    main#main {
        padding: 5px !important;
    }
}


/* gl-view-projekt.php */

body, html {
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
}
.view-project-container-header {
    margin: 15px auto;
    font-size: 14px;
    line-height: 1.4;
    width: 90%;
    max-width: 1200px;
    height: 100px;
    background: #323844;
    padding: 10px;
    color: #fff;
}
.view-project-container-header h5 {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    color: #ddd;
    margin-top: 10px;
    margin-bottom: 0px;
    max-width: 1200px;
    width: 100%;
}
.view-project-container {
    font-size: 14px;
    line-height: 1.4;
    width: 100%;
    
    color: #fff;
    margin-left: auto;
    margin-right: auto;
}
.view-project-container h5 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: #ddd;
}
.view-project-container form {
    margin-top: 0px;
}

.view-project-container label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #fff;
}
.view-project-container input[type="text"],
.view-project-container input[type="date"],
.view-project-container select,
.view-project-container textarea {
    width: 100%;
    padding: 8px;    
    border: 1px solid #ccc;
    border-radius: 0;
    font-size: 14px;
    box-sizing: border-box;
}
.view-project-container select:focus,
.view-project-container input[type="text"]:focus,
.view-project-container input[type="date"]:focus,
.view-project-container textarea:focus {
    border-color: #ec4858;
    outline: none;
}
.view-project-container input[type="submit"] {
    background-color: #ec4858;
    color: #fff;
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 0;
    font-size: 14px;
    margin-bottom: 3.5px;
    height: 41px;
}
.view-project-container input[type="submit"]:hover {
    background-color: #c93847;
}
.view-project-container .back-link {
    background-color: #ec4858;
    color: #fff;
    padding: 12px 20px;
    text-decoration: none;
    border: none;
    transition: background-color 0.3s ease;
    border-radius: 0;
    font-size: 14px;
}
.view-project-container .back-link:hover {
    background-color: #c93847;
}

/* Kafelkowy układ */
.tiles-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    gap: 20px;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
    width: 100%;
}
.tile {
    background-color: #3b414d;
    padding: 15px;
    flex: 1 1 calc(33.333% - 20px);
    box-sizing: border-box;
}

.tile p {
    margin: 5px 0;
    line-height: 1.6;
}
.tile p strong {
    color: #fff;
}

h6{
  margin:0;
  font-size:16px;
  font-weight:800;
  letter-spacing:.2px;
  color:rgba(255, 255, 255, 0.49);
}

.tile h6{
  display: flex;
  align-items: center;
  gap: 10px;
  margin:0 0 10px 0;
  font-size:15px;
  font-weight:800;
  letter-spacing:.2px;
}

.tile h6::after{
  content:"";
  height:2px;
  flex:1;
  background: linear-gradient(90deg, rgba(236,72,88,.8), rgba(236,72,88,0));
  border-radius:99px;
  opacity:.45;
}

/* Stylowanie checkboxów (TAK/NIE) */
/* ===========================================
   Płatności / faktury – checkbox inline
   =========================================== */
.left-column label{
    display:flex;                 /* tekst + checkbox w jednej linii */
    align-items:center;
    gap:8px;                      /* odstęp między tekstem a polem */
    margin-bottom:8px;
    font-weight:500;
}

.left-column label input[type="checkbox"]{
    /* bazowe wymiary - pasują do 16-18 px tekstu */
    width:15px;
    height:15px;
    cursor:pointer;    

    /* nowoczesny sposób kolorowania - obsługa większości przeglądarek */
    accent-color:#0085ba;         /* brand-owy niebieski */
}

/* po najechaniu lekko przyciemniamy */
.left-column label input[type="checkbox"]:hover{
    accent-color:#006fa0;
}


/* Stylowanie selecta dla Statusu projektu */
.status-select {
    background-color: #3b414d;
    color: #fff;
    border: 1px solid #ccc;
    padding: 8px;
    border-radius: 0;
    outline: none;
    font-size: 14px;
}
.status-select option {
    background: #fff;
    color: #000;
}

/* Dodajemy kursor typu pointer dla elementów edytowalnych */
.editable {
    cursor: pointer;
}

/* Styl dla sekcji "projekt-footer" */
.projekt-footer {
    display: flex;
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    background-color: #323844; /* lub inny kolor tła */
    border-radius: 5px;        /* lekko zaokrąglone rogi */
}

/* Opcjonalnie stylujemy <form> wewnątrz projekt-footer */
.projekt-footer form {
    /* dopasuj marginesy/padding wg potrzeb */
    margin: 0 auto;
    width: 100%;
}

/* Kontener na dwie kolumny (status + płatności i uwagi) */
.projekt-footer-columns {
    display: flex;
    gap: 30px;
    padding: 15px;
    justify-content: space-between;
    margin-bottom: 20px; /* odstęp od przycisków na dole */
}

/* Lewa i prawa kolumna */
.projekt-footer .left-column,
.projekt-footer .right-column {
    flex: 1;               /* obie kolumny elastyczne */
    min-width: 0;         /* ważne dla responsywności i zapobiega nadmiernym rozszerzeniom */
}

/* Styl etykiet, selectów i textarea, jeśli chcesz spójności z innymi panelami */
.projekt-footer label {
    display: block;
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 5px;
    color: #fff;           /* tekst etykiety na ciemnym tle */
}

.projekt-footer input[type="checkbox"],
.projekt-footer select,
.projekt-footer textarea {
    margin-bottom: 15px;
}

/* Przyciski na dole */
.projekt-footer .projekt-footer-buttons {
    text-align: center;
    margin-top: 20px;
}

#generatePreviewBtn {    
    background-color: #ec4858;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 0px;
    font-size: 14px;
    height: 40px;
    width: 100%;
}

#generatePreviewBtn:hover {
    background-color: #c93847;
}

.docs-issued-section {
    background-color: #414854;
    color: #fff;
    padding-left: 25px;
    padding-right: 25px;
    padding-top: 5px;
    padding-bottom: 30px;
    border-radius: 2px;
    margin-bottom: 20px;
    margin-top: 20px;
}

.docs-issued-section h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #ec4858;
}

.docs-issued-section h6 {
    font-size: 16px;
    margin-bottom: 5px;
    margin-top: 15px;
    color: #ec4858;
    text-align: left;
}

.projekt-footer-table {
    width: 100%;    
    border-collapse: collapse;    
}

.projekt-footer-table label input[type="checkbox"]{
    /* bazowe wymiary - pasują do 16-18 px tekstu */
    width:15px;
    height:15px;
    cursor:pointer;
    margin-top: 13px;    

    /* nowoczesny sposób kolorowania - obsługa większości przeglądarek */
    accent-color:#0085ba;         /* brand-owy niebieski */
}

/* Responsywność: poniżej 768px przełączamy się w 1 kolumnę */
@media (max-width: 768px) {
    
    .view-project-container {         
        font-size: 12px;        
        padding: 5px;
    }

    .projekt-footer {        
        margin-top: 10px;
        padding: 15px;
        background-color: #323844; /* lub inny kolor tła */
        border-radius: 5px;        /* lekko zaokrąglone rogi */
    }

    .projekt-footer-columns {
        display: block;        
        gap: 30px;
        padding: 15px;
        justify-content: space-between;
        margin-bottom: 20px; /* odstęp od przycisków na dole */
    }

    .tiles-container {        
        width: auto;
        font-size: 13px;
        margin-bottom: -20px;
    }

    .view-project-container h5 {
        font-size: 18px;
        text-align: center;
    }

    .tile {
        width: auto;
        margin-bottom: 20px;
    }

    .view-project-container input[type="submit"],
    .view-project-container .back-link {
        
        margin-top: 10px;
        font-size: 12px;
        box-sizing: border-box;
    }

    #generatePreviewBtn {
        background-color: #ec4858;
        height: 40px;
        width: 100%;
        color: #fff;
        border: none;
        cursor: pointer;
        transition: background-color 0.3s ease;
        border-radius: 2px;
        font-size: 12px;
        margin: 5px 0;
    }

    #generatePreviewBtn:hover {
        background-color: #c93847;
    }

    .docs-issued-section {
        background-color: #414854;
        color: #fff;
        padding: 10px;
        border-radius: 2px;
        margin-bottom: 30px;
    }

    .docs-issued-section h6 {
        font-size: 16px;
        margin-bottom: 5px;
        color: #ec4858;
        text-align: center;
    }

    .docs-issued-section p {
        font-size: 14px;
        color: #ccc;
        line-height: 1.6;
    }

    input[type="submit"][value="ZAPISZ"] {
        background-color: #ec4858;
        color: #fff;
        padding: 10px 15px;
        border: none;
        cursor: pointer;
        transition: background-color 0.3s ease;
        border-radius: 0;
        font-size: 12px;        
        width: auto;
        height: 39px;
        margin-left: 2px;
        margin-bottom: 12px;
    }

    input[type="submit"][value="ZAPISZ"]:hover {
        background-color: #c93847;
    }
}


/* gl-docs-client-preview.php */


.docs-preview-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

.docs-preview-container .doc-section {
    border: 0px solid #ccc;
    padding: 20px;
    margin-bottom: 30px;
    margin: 0 auto;
}

.docs-preview-container .doc-section h3 {
    margin-top: 0;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}
.docs-preview-container table {
    width: 100%;
    border-collapse: collapse;
}

.btn-container {
    text-align: center;
    margin-bottom: 40px;
}
.fusion-button {
    background-color: #ec4858;
    width: 150px;
    height: 40px;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    margin-top: 0px;
    margin-right: 5px;
    transition: background-color 0.3s ease;
    font-size: 14px;
    display: inline-block;
}
.fusion-button:hover {
    background-color: #c93847;
}

.paragraph {
    text-align: center;
}

.signature-table {
    width: 100%;
    margin-top: 100px;
    margin-bottom: 50px;
}

.invoice-table th, .invoice-table td {
    padding: 8px;
    border: 1px solid #323844;
    text-align: left;
}

.invoice-table th {
    background-color: #323844;
    color: #fff;
}

.invoice-table td {
    background-color: #414854;
    color: #ddd;
}

.invoice-table-header {
    margin-top: 20px;
    margin-bottom: 20px;
}

.invoice-table-summary {
    width: 50%;
    margin-top: 30px;
    margin-bottom: 30px;
    float: right;
}

.invoice-table-summary tbody {
    float: right;
}

/* =========================================================
   gl-docs-client-preview.php — dopracowany podgląd (RWD + UX)
   ========================================================= */

/* „Papierowy” wygląd + czytelność */
.docs-preview-container{
    max-width: 980px;
    margin: 20px auto;
    padding: 0 14px;
    font-family: Arial, sans-serif;
    color: #1b1f24;
    line-height: 1.6;
    overflow-wrap: anywhere;   /* łamie długie ciągi, maile, nr */
    word-break: break-word;
}

.docs-preview-container h2{
    font-size: 20px;
    margin: 10px 0 18px;
    text-align: center;
    letter-spacing: 0.2px;
}

.docs-preview-container .doc-section{
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 50px;
    margin: 0 auto 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Nagłówki wewnątrz dokumentu */
.docs-preview-container .doc-section h3{
    font-size: 15px;
    margin: 0 0 12px;
    text-align: center;
    font-weight: 700;
    color: #111;
}

/* Tabele — desktop OK, mobile scroll */
.docs-preview-container table{
    width: 100%;
    border-collapse: collapse;
}

/* Faktura: zachowaj estetykę, ale nie rozwal mobile */
.docs-preview-container .invoice-table{
    width: 100%;
}

.docs-preview-container .invoice-table th,
.docs-preview-container .invoice-table td{
    vertical-align: top;
}

/* Podpisy — mniej „pustej” przestrzeni */
.docs-preview-container .signature-table{
    margin-top: 60px;
    margin-bottom: 20px;
}

/* Przyciski na dole — tylko w obrębie podglądu */
.docs-preview-container .btn-container{
    text-align: center;
    margin: 14px auto 30px;
}

/* Podbij UX przycisków: większy „touch target” */
.docs-preview-container .btn-container .fusion-button{
    min-width: 170px;
    height: 42px;
    line-height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

/* =========================
   MOBILE / MAŁE EKRANY
   ========================= */
@media (max-width: 767px){

    .docs-preview-container {
	max-width: 100%;
	margin: 20px auto;
	padding: 0 14px;
	font-family: Arial, sans-serif;
	color: #1b1f24;
	line-height: 1.6;
	overflow-wrap: anywhere;
	word-break: break-word;
}

    .docs-preview-container h2{
        font-size: 16px;
        margin: 8px 0 12px;
    }

    .docs-preview-container .doc-section{
        padding: 14px;
        border-radius: 12px;
        margin-bottom: 12px;
        box-shadow: 0 8px 18px rgba(0,0,0,0.10);
    }

    .docs-preview-container .doc-section h3{
        font-size: 13px;
        margin-bottom: 10px;
    }

    /* Tabele: przewijanie poziome, ale bez „rozsypywania” layoutu */
    .docs-preview-container .invoice-table,
    .docs-preview-container .signature-table{
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Minimalne szerokości kolumn, żeby nie robiły się „po jednej literze” */
    .docs-preview-container .invoice-table th,
    .docs-preview-container .invoice-table td{
        min-width: 90px;
        padding: 6px;
        font-size: 12px;
        white-space: nowrap;
    }

    /* Podsumowanie faktury: pełna szerokość na mobile */
    .docs-preview-container .invoice-table-summary{
        width: 100% !important;
        float: none !important;
        margin: 16px 0 0;
    }

    .docs-preview-container .invoice-table-summary tbody{
        float: none !important;
    }

    /* Sticky pasek przycisków na dole (wygodniej na telefonie) */
    .docs-preview-container .btn-container{
        position: sticky;
        bottom: 0;
        margin: 10px -10px 0;
        padding: 10px 10px 12px;
        backdrop-filter: blur(6px);
        border-top: 1px solid rgba(0,0,0,0.08);
        z-index: 20;
    }

    .docs-preview-container .btn-container .fusion-button{
        width: 100%;
        box-sizing: border-box;
        margin: 8px 0 !important;
        height: 44px;
        line-height: 44px;
        font-size: 13px;
        border-radius: 12px;
    }
}


/* --- STYLIZACJA dla gl-add-projekt.php --- */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
    color: #fff;
}

.add-project-container {
    margin: 30px;
    font-size: 14px;
    line-height: 1.4;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}

.add-project-container h5 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: #dddddd;
}

.add-project-container form {
    background: #323844;
    padding: 20px;
    border-radius: 0;
}

.add-project-container label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #fff;
}

.add-project-container input[type="text"],
.add-project-container input[type="date"],
.add-project-container textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #252a33;
    border-radius: 0;
    font-size: 14px;
    color: #aaa9a9; /* Placeholder font color */
}

.add-project-container input[type="text"]:focus,
.add-project-container input[type="date"]:focus,
.add-project-container select:focus,
.add-project-container textarea:focus {
    border-color: #ec4858;
    outline: none;
}

.add-project-container input[type="submit"] {
    background-color: #ec4858;
    color: #fff;
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 0;
    font-size: 14px;
}

.add-project-container input[type="submit"]:hover {
    background-color: #c93847;
}

.add-project-container .back-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: #ec4858;
    color: #fff;
    padding: 12px 20px;
    text-decoration: none;
    border: none;
    margin-top: 0;
    transition: background-color 0.3s ease;
    border-radius: 0;
    margin-right: 10px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    height: 40px;
}

.add-project-container .back-link:hover {
    background-color: #c93847;
}

.add-project-container .error {
    background: #c93847;
    color: #fff;
    padding: 10px;
    margin-bottom: 15px;
    text-align: center;
}

.add-project-container select {
    width: 100%;
    margin-bottom: 15px;
    border: 1px solid #252a33;
    font-size: 14px;
    border-radius: 0;
    padding: 8px;
    background-color: #252a33;
    color: #aaa9a9;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}


/* Minimalistyczny styl "searchable select" */
.searchable-select {
    position: relative;
    background-color: #252a33;
    margin-bottom: 15px;
    border: 1px solid #252a33;
    border-radius: 11px;
    cursor: pointer;
    width: 100%;
}

.searchable-select .selected {
    padding: 8px;
    font-size: 14px;
    color: #747474;
}

.searchable-select .dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: 38px;
    max-height: 200px;
    overflow-y: auto;
    background-color: #252a33;
    border: 0;
    z-index: 9999;
    display: none;
}

.searchable-select .dropdown input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    border: 2px solid #252a33;
    padding: 10px;
    margin: 0;
    outline: none;
    font-size: 14px;
    color: #aaa9a9; /* Placeholder font color */
}

.searchable-select .dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.searchable-select .dropdown ul li {
    padding: 8px;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 0;
    color: #aaa9a9; /* Font color */
}
.searchable-select .dropdown ul li:hover {
    background-color: #aaa9a9;
    color: #fff;
}

#lektorsContainer {
    margin-top: 15px;
    padding: 10px;
    border: 0px solid #ccc;
    border-radius: 0;
}

#addLektorBtn {
    height: 40px;
    width: 35%;
    margin-top: 15px;
    margin-bottom: 15px;
    background-color: #ec4858;
    color: #fff;
    transition: background-color 0.3s ease;
    border-radius: 10px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    cursor: pointer;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#addLektorBtn:hover {
    background-color: #c93847;
}

.remove-lektor-btn {
    background-color: #c93847;
    color: #fff;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 3px;
    display: block;
    margin-top: 5px;
    width: 35px;
    height: 30px;
}

.remove-lektor-btn:hover {
    background-color: #a82e3a;
}

.add-project-container input[name="lecturer_fee_individual[]"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #252a33;
    border-radius: 0;
    font-size: 14px;
    color: #aaa9a9; /* Placeholder font color */
}

.add-project-container input[name="lecturer_fee_individual[]"]:focus {
    border-color: #ec4858;
    outline: none;
}

@media (max-width: 767px) {
    .add-project-container {
        margin: 15px;
        font-size: 12px;
        width: 100%;
    }

    .add-project-container h5 {
        font-size: 20px;
    }

    .add-project-container input[type="text"],
    .add-project-container input[type="date"],
    .add-project-container textarea {
        padding: 6px;
        font-size: 12px;
        color: #aaa9a9; /* Placeholder font color */
    }

    .add-project-container .searchable-select .selected {
        font-size: 12px;
    }
    .add-project-container .searchable-select .dropdown input[type="text"] {
        font-size: 12px;
    }
    .add-project-container .searchable-select .dropdown ul li {
        font-size: 12px;
    }

    .add-project-container input[type="submit"],
    .add-project-container .back-link {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        margin-top: 10px;
        font-size: 12px;
    }

    #addLektorBtn {
    height: 40px;
    width: 60%;
    margin-bottom: 45px;
    background-color: #ec4858;
    color: #fff;
    padding: 12px 20px;
    transition: background-color 0.3s ease;
    border-radius: 0;
    font-size: 14px;
    font-family: Arial, sans-serif;
    cursor: pointer;
    display: block;
    margin-left: auto;
    margin-right: auto;
    }

    #addLektorBtn:hover {
        background-color: #c93847;
    }
}

/* STYLOWANIE DLA pliku gl-projekty.php */

*, *::before, *::after {
    box-sizing: border-box;
}
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
}
.fusion-row {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    overflow-x: auto;
    justify-content: center;
}
.projects-list {
    max-width: auto;
    line-height: 1.4;
    font-size: 14px;
}
.projects-list h5 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: #dddddd;
    position: relative;
}
.projects-list .top-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    margin-bottom: 15px;
    justify-content: center;
}
.projects-list .top-buttons > * {
    display: flex;
    align-items: center;
    justify-content: center;
}
.projects-list .filters {
    display: flex;
    align-items: center;
    gap: 10px;
}
.projects-list .filters input[type="text"] {
    padding: 6px 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    border-radius: 0px;
    width: 200px;
    height: 40px;
}
.projects-list .filters select {
    padding: 6px 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    border-radius: 10px;
    height: 40px;
}
.projects-list .add-project-button {
    background-color: #28a745;
    color: #fff;
    padding: 0 15px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 0px;
    font-size: 14px;
}
.projects-list .add-project-button:hover {
    background-color: #ec4858;
}
.projects-list .powrot-button {
    display: inline-block;
    height: 40px;
    background-color: #ec4858;
    color: #fff;
    padding: 10px 15px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 0px;
    font-size: 14px;
}
.projects-list .powrot-button:hover {
    background-color: #ec4858;
}
.projects-list .small-btn {
    background: #ffffff;
    color: #333;
    border: 0px solid #ccc;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 40px; 
    height: 40px;
    align-items: center;
    margin-bottom: 8px;
}
.projects-list .small-btn:hover {
    background-color: #eee;
    color: #000;
}
.projects-list .project-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    padding-bottom: 10px;
}
.projects-list table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: auto;
    word-wrap: break-word;
}
.projects-list th, .projects-list td {
    border: 0px solid #ccc;
    padding: 10px;
    text-align: left;
    vertical-align: top;
    white-space: nowrap;
}
.projects-list th {
    background-color: #4148549c;
    color: #fff;
}

@media (max-width: 767px) {
    .projects-list {
        
        font-size: 12px;
    }
    .projects-list h5 {
        font-size: 20px;
    }
    .projects-list table {
        font-size: 12px;
        min-width: auto;
        width: 100%;
    }
    .projects-list th, .projects-list td {
        padding: 8px;
    }
    .projects-list th {
        background-color: #414854;
        color: #fff;
    }
    .projects-list .top-buttons {
        flex-direction: column;
        height: auto;
    }
    .projects-list .top-buttons > * {
        width: 100%;
        margin-bottom: 10px;
    }
    .projects-list .filters input[type="text"],
    .projects-list .filters select {
        width: 100%;
        margin-bottom: 10px;
    }
    .fusion-row {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
}

/* STYLOWANIE DLA pliku gl-lektors.php */

*, *::before, *::after {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
}

.fusion-row {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    overflow-x: auto; /* Pozwala przewijać tabelę poziomo */
}

.lektors-list {
    font-family: Arial, sans-serif;
    line-height: 1.4;
    font-size: 14px;
}

.lektors-list h5 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: #dddddd;
    position: relative;
}

/* Pasek z przyciskami i filtrami */
.lektors-list .top-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    margin-bottom: 15px;
    justify-content: center;
    align-items: center;
    height: 40px; /* Ustalona wysokość dla wszystkich elementów */
}

.lektors-list .top-buttons > * {
    height: 40px; /* Wysokość 40px dla każdego elementu */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Wyszukiwarka */
.lektors-list .filters input[type="text"],
.lektors-list .filters select {
    padding: 6px 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    border-radius: 0px;
    width: 200px; /* Ustalona szerokość dla wyszukiwarki */
    height: 40px; /* Wysokość 40px dla każdego elementu */
}

/* Przycisk: Dodaj Lektora */
.lektors-list .add-lector-button {
    background-color: #28a745;
    color: #fff;
    padding: 0 15px; /* Wysokość przycisku dopasowana do reszty */
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 0px;
    font-size: 14px;
}

.lektors-list .add-lector-button:hover {
    background-color: #218838;
}

/* Przycisk: GENERUJ DOKUMENTY */
.lektors-list .fusion-button {
    background-color: #ec4858;
    color: #fff;
    padding: 0 20px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 0px;
    font-size: 14px;
    min-height: 40px; /* Wysokość przycisku */
}

.lektors-list .fusion-button:hover {
    background-color: #c93847;
}

/* Kompaktowe przyciski Edytuj/Usuń */
.small-btn {
    background: #ffffff;
    color: #333;
    border: 0px solid #ccc;
    border-radius: 0px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 40px; /* Przyciski "EDYTUJ" i "USUŃ" nie będą zajmować całej szerokości */
    height: 40px; /* Wysokość przycisków */
    align-items: center;
    margin-bottom: 8px; /* Dodanie dolnego marginesu */
    margin-left: 2px;
    margin-right: 2px;
}

.small-btn:hover {
    background-color: #eee;
    color: #000;
}

/* Filtry (wyszukiwanie, selecty) */
.lektors-list .filters {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Tabela */
.lektor-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.lektors-list table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: auto;
    word-wrap: break-word;
}

.lektors-list th, .lektors-list td {
    border: 0px solid #ccc;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

.lektors-list th {
    background-color: #414854;
    color: #fff;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Kontener z przyciskami paginacji */
#pagination-controls {
    /* Wyśrodkowanie w poziomie i odstęp od góry */
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Wygląd poszczególnych przycisków paginacji */
#pagination-controls button {
    display: inline-block;
    width: auto;          /* Szerokość - tworzymy kwadrat */
    height: auto;         /* Wysokość - ten sam rozmiar, by był kwadrat */
    margin: 0 4px;        /* Niewielkie marginesy między przyciskami */
    text-align: center;   /* Tekst wewnątrz na środku */
    cursor: pointer;
    background-color: transparent;
    
}

/* Efekt hover - lekko ciemniejsze tło */
#pagination-controls button:hover {
    background-color: #c93847;
}

/* Przyciski disabled (dla aktualnej strony) - np. ciemniejsze tło i wyłączony kursor */
#pagination-controls button:disabled {
    background-color: #bbb;
    cursor: default;
}

@media (max-width: 767px) {
    .lektors-list {
        font-size: 12px;
    }

    .lektors-list h5 {
        font-size: 20px;
    }

    .lektors-list table {
        font-size: 12px;
        width: 100%;
    }

    .lektors-list th, .lektors-list td {
        padding: 8px;
        word-wrap: break-word;
    }

    /* Wspólna wysokość w mobile może zachować się, ale 
       elementy będą skompresowane w kolumnie */
    .lektors-list .top-buttons {
        flex-direction: column;
        height: auto;
    }

    .lektors-list .top-buttons > * {
        width: 100%;
        margin-bottom: 10px; /* lekkie odstępy */
    }

    /* Wyszukiwarka, filtry oraz przyciski */
    .lektors-list .filters input[type="text"],
    .lektors-list .filters select {
        width: 100%; /* Szerokość 100% dla wszystkich filtrów */
        margin-bottom: 10px; /* Odstęp między filtrami */
    }

    #pagination-controls button {
        width: auto;
        height: auto;
        margin: 0 2px;
    }

    /* Kontener przycisków – ustawiamy flex, aby przyciski były obok siebie */
    .small-btn-container {
            display: flex;
            gap: 10px;
            justify-content: center;
            /* Opcjonalnie: jeśli chcesz, by przyciski nie rozciągały się */
            flex-wrap: nowrap;
    }
    /* Upewnij się, że przyciski mają stałą szerokość */
    .small-btn-container .small-btn {
            flex: 0 0 auto;
            width: 40px;
    }

    
}

/* STYLOWANIE DLA pliku gl-clients.php */

*, *::before, *::after {
    box-sizing: border-box;
}
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
}
.fusion-row {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    overflow-x: auto; /* umożliwia przewijanie poziome w razie potrzeby */
}
.clients-list {
    font-family: Arial, sans-serif;
    line-height: 1.4;
    font-size: 14px;
}
.clients-list h5 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: #dddddd;
    position: relative;
}

/* Pasek z przyciskami i filtrami */
.clients-list .top-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    margin-bottom: 15px;
    justify-content: center;
    align-items: center;
    height: 40px; /* Ustalona wysokość dla wszystkich elementów */
}

.clients-list .top-buttons > * {
    height: 40px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Wyszukiwarka */
.clients-list .filters input[type="text"],
.clients-list .filters select {
    padding: 6px 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    border-radius: 0px;
    width: 200px; /* Ustalona szerokość dla wyszukiwarki */
    height: 40px; /* Wysokość 40px dla każdego elementu */
}

/* Przykład: kompaktowe przyciski "edytuj"/"usuń" */
.small-btn {
    background: #ffffff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 0px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 40px;
    height: 40px;
    align-items: center;
    margin-bottom: 8px;
}
.small-btn:hover {
    background-color: #eee;
    color: #000;
}

/* Styl przycisku "Dodaj klienta" */
.clients-list .add-client-button {
    background-color: #28a745;
    color: #fff;
    padding: 0 15px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 0px;
    font-size: 14px;
}
.clients-list .add-client-button:hover {
    background-color: #218838;
}

/* Styl przycisków generowania dokumentów itp. */
.clients-list .fusion-button {
    background-color: #ec4858;
    color: #fff;
    padding: 0 20px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 0px;
    font-size: 14px;
    min-height: 40px;
    width: auto;
}
.clients-list .fusion-button:hover {
    background-color: #c93847;
}

/* Sekcja tabeli */
.clients-list .client-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    padding-bottom: 10px;
}
.clients-list table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: auto;
    word-wrap: break-word;
}
.clients-list th, .clients-list td {
    border: 0px solid #ccc;
    padding: 10px;
    text-align: left;
    vertical-align: top;
    white-space: nowrap;
}
.clients-list th {
    background-color: #414854;
    color: #fff;
    font-weight: bold;
}

/* Responsywność */
@media (max-width: 767px) {
    .clients-list {
        font-size: 12px;
    }
    .clients-list h5 {
        font-size: 20px;
    }
    .clients-list .top-buttons {
        flex-direction: column;
        height: auto;
    }
    .clients-list .top-buttons > * {
        width: 100%;
        margin-bottom: 10px;
    }
    /* Tabela może mieć minimalną szerokość, aby wymusić poziomy scroll */
    .clients-list table {
        font-size: 12px;
        min-width: 400px;
    }
    .clients-list th, .clients-list td {
        padding: 8px;
    }
    .clients-list .fusion-button {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        margin-top: 10px;
    }

    /* Wyszukiwarka, filtry oraz przyciski */
    .clients-list .filters input[type="text"],
    .clients-list .filters select {
        width: 100%; /* Szerokość 100% dla wszystkich filtrów */
        margin-bottom: 10px; /* Odstęp między filtrami */
    }

    .clients-list table {
        min-width: 400px; /* Tabela może być nieco węższa, bo mamy tylko 3 kolumny */
    }
}


/* STYLOWANIE DLA pliku gl-realizatorzy.php */

*, *::before, *::after {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
}

.fusion-row {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    overflow-x: auto; /* Pozwala przewijać tabelę poziomo */
}

.realizators-list {
    font-family: Arial, sans-serif;
    line-height: 1.4;
    font-size: 14px;
}

.realizators-list h5 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: #dddddd;
    position: relative;
}

/* Pasek z przyciskami i wyszukiwarką */
.realizators-list .top-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    margin-bottom: 15px;
    justify-content: center;
    align-items: center;
    height: 40px; /* Ustalona wysokość dla wszystkich elementów */
}

.realizators-list .top-buttons > * {
    height: 40px; /* Wysokość 40px dla każdego elementu */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Wyszukiwarka */
.realizators-list .search-bar input[type="text"] {
    padding: 6px 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    border-radius: 0px;
    width: 250px;
    height: 40px;
}

/* Przycisk: Dodaj Realizatora */
.realizators-list .add-realizator-button {
    background-color: #28a745;
    color: #fff;
    padding: 0 15px; /* Wysokość przycisku dopasowana do reszty */
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 0px;
    font-size: 14px;
}

.realizators-list .add-realizator-button:hover {
    background-color: #218838;
}

/* Przycisk: GENERUJ DOKUMENTY */
.realizators-list .fusion-button {
    background-color: #ec4858;
    color: #fff;
    padding: 0 20px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 0px;
    font-size: 14px;
    min-height: 40px; /* Wysokość przycisku */
}

.realizators-list .fusion-button:hover {
    background-color: #c93847;
}

/* Kompaktowe przyciski Edytuj/Usuń */
.small-btn {
    background: #ffffff;
    color: #333;
    border: 0px solid #ccc;
    border-radius: 0px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 40px; 
    height: 40px; 
    align-items: center;
    margin-bottom: 8px;
}

.small-btn:hover {
    background-color: #eee;
    color: #000;
}

/* Tabela */
.realizator-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.realizators-list table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: auto;
    word-wrap: break-word;
}

.realizators-list th, .realizators-list td {
    border: 0px solid #ccc;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

.realizators-list th {
    background-color: #414854;
    color: #fff;
    font-weight: bold;
}

@media (max-width: 767px) {
    .realizators-list {
        font-size: 12px;
    }

    .realizators-list h5 {
        font-size: 20px;
    }

    .realizators-list table {
        font-size: 12px;
        min-width: 0;
        width: 100%;
    }

    .realizators-list th, .realizators-list td {
        padding: 8px;
        word-wrap: break-word;
    }

    .realizators-list .top-buttons {
        flex-direction: column;
        height: auto;
    }

    .realizators-list .top-buttons > * {
        width: 100%;
        margin-bottom: 10px;
    }

    .realizators-list .search-bar input[type="text"] {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* STYLOWANIE DLA pliku gl-add-client.php */


body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
}

.add-client-container {
    margin: 30px;
    font-size: 14px;
    line-height: 1.4;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}

.add-client-container form {
    background: #323844;
    padding: 20px;
    border-radius: 0;
}

.add-client-container label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #fff;
}

.add-client-container input[type="text"],
.add-client-container input[type="number"],
.add-client-container select {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 0;
    font-size: 14px;
}

.add-client-container input[type="text"]:focus,
.add-client-container input[type="number"]:focus,
.add-client-container select:focus {
    border-color: #ec4858;
    outline: none;
}

.add-client-container input[type="submit"] {
    background-color: #ec4858;
    color: #fff;
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 0;
    font-size: 14px;
}

.add-client-container input[type="submit"]:hover {
    background-color: #c93847;
}

.add-client-container .error {
    background: #c93847;
    color: #fff;
    padding: 10px;
    margin-bottom: 15px;
    text-align: center;
}


/* Dla przycisku "ZAPISZ" */
.add-client-container input[type="submit"] {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: #ec4858;
    color: #fff;
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 0;
    font-size: 12px;
    font-family: Arial, sans-serif;
    height: 40px;
}

.add-client-container input[type="submit"]:hover {
    background-color: #c93847;
}


/* Responsywność */
@media (max-width: 767px) {
    .add-client-container {
        margin: 15px;
        font-size: 12px;
        width: 100%;
    }

    .add-client-container h5 {
        font-size: 20px;
    }

    .add-client-container input[type="text"],
    .add-client-container input[type="number"],
    .add-client-container select {
        padding: 6px;
        font-size: 12px;
    }

    .add-client-container input[type="submit"],
    .add-client-container .back-link {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        margin-top: 10px;
        font-size: 12px;
        font-family: Arial, sans-serif;
    }
}

/* STYLOWANIE DLA pliku gl-edit-client.php */


body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
}

.edit-client-container {
    margin: 30px;
    font-size: 14px;
    line-height: 1.4;
}

.edit-client-container h5 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: #dddddd;
}

.edit-client-container form {
    background: #323844;
    padding: 20px;
    border-radius: 0;
}

.edit-client-container label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #fff;
}

.edit-client-container input[type="text"],
.edit-client-container input[type="number"],
.edit-client-container input[type="email"],
.edit-client-container input[type="tel"],
.edit-client-container select {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 0;
    font-size: 14px;
    box-sizing: border-box;
}

.edit-client-container input[type="text"]:focus,
.edit-client-container input[type="number"]:focus,
.edit-client-container input[type="email"]:focus,
.edit-client-container input[type="tel"]:focus,
.edit-client-container select:focus {
    border-color: #ec4858;
    outline: none;
}

.edit-client-container input[type="submit"] {
    background-color: #ec4858;
    color: #fff;
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 0;
    font-size: 14px;
    height: 40px;
}

.edit-client-container input[type="submit"]:hover {
    background-color: #c93847;
}

.edit-client-container .back-link {
    display: inline-block;
    background-color: #ec4858;
    color: #fff;
    padding: 0px 20px;
    text-decoration: none;
    border: none;
    transition: background-color 0.3s ease;
    border-radius: 0px;
    margin-right: 10px;
    font-size: 14px;
    height: 40px;
    text-align: center;
    line-height: 40px;
}

.edit-client-container .back-link:hover {
    background-color: #c93847;
}

.contract-person {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    position: relative; /* aby przycisk usuń można było łatwo wyrównać */
    padding: 10px;
    background: #3e4550;
    border-radius: 4px;
}

#add-contract-person {
    background-color: #ec4858;
    color: #fff;
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 0;
    font-size: 12px;
    margin-bottom: 15px;
}

#add-contract-person:hover {
    background-color: #c93847;
}

.placeholder {
    color: #7d7b8d;
    opacity: 1; /* Override default opacity */
}

input:-ms-input-placeholder {
    color: #7d7b8d;
}

input::-ms-input-placeholder {
    color: #7d7b8d;
}

/* Chrome, Firefox, Safari */
input::placeholder {
    color: #7d7b8d;
}

@media (max-width: 767px) {
    .edit-client-container {
        margin: 15px;
        font-size: 12px;
    }

    .edit-client-container h5 {
        font-size: 20px;
    }

    .edit-client-container input[type="text"],
    .edit-client-container input[type="number"],
    .edit-client-container input[type="email"],
    .edit-client-container input[type="tel"],
    .edit-client-container select {
        padding: 6px;
        font-size: 12px;
    }

    .edit-client-container input[type="submit"],
    .edit-client-container .back-link,
    #add-contract-person {
        width: 100%;
        box-sizing: border-box;
        margin-top: 10px;
        font-size: 12px;
        text-align: center;
        line-height: normal;
        height: auto;
        padding: 10px 0;
    }

    .contract-person {
        margin-bottom: 15px;
        padding: 10px 5px; /* Mniejsze paddingi na węższych ekranach */
    }

    /* Dostosywanie pozycji przycisku usuń na mobile */
    .contract-person .remove-person {
        top: 5px;
        right: 5px;
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* ====================================================================== */
/*  STYLOWANIE  –  gl‑view‑realizator.php                                 */
/* ====================================================================== */

html,body{overflow-x:hidden;}

/* --------------------  wrapper Avady  --------------------------------- */
.fusion-row {
    width: 100%;
    overflow-x: auto;
}

.view-project-container-header {    
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
    justify-content: center;
    align-items: center;
}

/* --------------------  kafelki ---------------------------------------- */
.tiles-container {    
    display: flex;    
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:15px;
    padding: 15px;
    max-width: 1200px;
    width: 100%;
    justify-content: center;
}

.tile{
    background:#3e4550;
    color:#fff;
    padding:15px;
    box-sizing:border-box;
    overflow-wrap:break-word;          /* łamanie długich słów / maili     */
}

.realizator-docs {
        display: grid;     
        justify-content: center;
        align-items: center;
    }

/* --------------------  przyciski -------------------------------------- */
#addWhBtn,#whSaveBtn,#whCancelBtn,#backBtn{
    height:40px;width:20%;
    margin:20px 10px 25px;
    background:#ec4858;color:#fff;
    padding:12px 20px;border-radius:0;
    font:14px/1 Arial,sans-serif;cursor:pointer;
    transition:background-color .3s;
    display:inline-block;
}
#addWhBtn:hover,#whSaveBtn:hover,#backBtn:hover{background:#d63e4b;}
.wh-button-container{text-align:center;}

/* --------------------  tabela godzin ---------------------------------- */
/*  kontener przewijający  */
.whTable-scroll {
    width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    margin:0 0 25px;
    padding: 25px;
}

/*  sama tabela  */
#whTable{
    width:100%;                /*  pełna szerokość na desktopie  */
    min-width:740px;           /*  nigdy węższa – scroll na mobile */
    border-collapse:collapse;
}
#whTable thead{background:#3e4550;color:#fff;}
#whTable tbody tr.wh-subtotal{background:#3e4550;color:#fff;height:15px;}

#whTable th,
#whTable td{
    text-align:center;
    vertical-align:middle!important;
    white-space:nowrap;
    padding:6px 8px;
}

#genDocsBtn{
        display: flex;
        width: auto;
        height: 40px;
        margin-top: 20px;
        align-items: center;
        justify-content: center;
        font-size: 14px;
    }

/* --------------------  MEDIA‑QUERY  ≤ 640 px --------------------------- */
@media(max-width:640px){

    .view-project-container-header {
        width: 90%;        
        justify-content: center;
        align-items: center;
    }

    .tiles-container{
        display: grid;        
    }

    .realizator-docs {
        display: grid;            
        justify-content: center;
        align-items: center;
    }

    /* wrapper tabeli – dodajemy niewielki padding, by slider nie „przyklejał” się do krawędzi */
    .whTable-scroll {padding:10px;margin-bottom:20px;}

    .docs-preview-container {
        display: block;    
        font-family: Arial, sans-serif;
        font-size: 14px;
        line-height: 1.6;
    }    

    /* przyciski – 100 % szerokości */
    #addWhBtn,#whSaveBtn,#whCancelBtn,#backBtn{
        width:90%;max-width:none;margin:12px 0;
    }
        

    /* formularz – pełna szerokość */
    #whForm {
        width: 90%;
        margin:10px 0;
        padding:10 10px;
    }

    #whTable{
        width:90%;                /*  pełna szerokość na desktopie  */
        min-width:740px;           /*  nigdy węższa – scroll na mobile */
        border-collapse:collapse;
    }
}
/* ====================================================================== */

/*  kolorowanie statusów na liście projektów  */
.status-w-trakcie   { color:#e74c3c; }  /* czerwony  */
.status-dostarczone { color:#3498db; }  /* niebieski */
.status-zakonczone  { color:#27ae60; }  /* zielony   */



/*  gl-wycena  */

.kosztorysy-list {            
    font-family: Arial, sans-serif;
    line-height: 1.4;    
    width: 100%;
    text-align: left;
}

.wycena-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    margin-top: 0px;
    margin-bottom: 25px;
    justify-content: center;
    align-items: center;
    height: 40px;
}

.wycena-search {    
    height: 40px;
}

.wycena-search input[type="text"],
#searchInput{
    height:40px;            /* wymagana wysokość */
    padding:0 12px;
    border:1px solid #fff;
    border-radius: 10px;        
    color:#fff;
    width: 300px; /* Ustalona szerokość dla wyszukiwarki */
    font-size:15px;    
}

.wycena-search input[type="text"]::placeholder{
    color:#aaa;
}

.wycena-btn {
    height: 40px;
    background-color: #ec4858;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 10px;
    padding-right: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 15px;
    font-size: 14px;
}

.wycena-btn:hover {
    background-color: #fff;
}

@media(max-width:640px){

.kosztorysy-list {
    display: grid;
    margin-left: -45px;
    font-family: Arial, sans-serif;
    line-height: 1.4;
    font-size: 12px;
    width: 100%;
    text-align: left;
}

.wycena-buttons {
    display: grid;
    width: 100%;
    gap: 15px;
    margin-bottom: 85px;
}

.wycena-search input[type="text"],
#searchInput{
    height:40px;            /* wymagana wysokość */
    padding:0 12px;
    border:1px solid #fff;        
    color:#fff;
    font-size:15px;    
}

.wycena-search input[type="text"]::placeholder{
    color:#aaa;
}

.wycena-btn {
    background-color: #ec4858;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 10px;
    padding-right: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 0px;
    font-size: 14px;
}

.wycena-btn:hover {
    background-color: #fff;
}

}

/* =========================================
   gl-docs-client-preview — extra small fix
   (iPhone / bardzo wąskie ekrany)
   ========================================= */
@media (max-width: 430px){

  /* Tabela ma przewijać się w poziomie, ale nie może rozpychać strony */
  .docs-preview-container .doc-section{
    max-width: 100%;
    overflow: hidden; /* zabezpiecza „wypychanie” przez tabelę */
  }

    .docs-preview-container table{
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Na bardzo małym ekranie: tabela ma się przewijać, nie zgniatać */
  .docs-preview-container .invoice-table{
    min-width: 820px;                  /* klucz: koniec łamania nagłówków */
  }

  .docs-preview-container .invoice-table th,
  .docs-preview-container .invoice-table td{
    white-space: nowrap !important;    /* liczby i nagłówki w jednej linii */
  }

  /* Tylko opis usługi może się zawijać */
  .docs-preview-container .invoice-table td:nth-child(2){
    white-space: normal !important;
  }


  /* Usuwamy „dziwne tło / pasek” pod przyciskami na mobile */
  .docs-preview-container .btn-container{
    position: static !important;
    background: transparent !important;
    backdrop-filter: none !important;
    border-top: 0 !important;
    margin: 16px 0 30px !important;
    padding: 0 !important;
  }
}

/* =========================================
   FAKTURA VAT — tabela (idealny wygląd)
   ========================================= */

/* Podgląd dokumentu — tabela faktury */
.docs-preview-container .invoice-table{
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;                 /* klucz: stabilne kolumny */
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  overflow: hidden;
}

/* Nagłówki */
.docs-preview-container .invoice-table thead th{
  background: #f6f7f9;                 /* elegancki „grafit” */
  color: #000;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2px;
  padding: 10px 10px;
  border: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;                 /* KONIEC z literkami w pionie */
}

/* Komórki */
.docs-preview-container .invoice-table tbody td{
  background: #ffffff;                 /* jasne tło */
  color: #111827;
  font-size: 11px;
  line-height: 1.4;
  padding: 10px 10px;
  border: 1px solid rgba(0,0,0,0.10);
  vertical-align: top;
}

/* Zebra dla czytelności */
.docs-preview-container .invoice-table tbody tr:nth-child(even) td{
  background: #f6f7f9;
}

/* Wyrównania: liczby w prawo, Lp i Ilość na środku */
.docs-preview-container .invoice-table th:nth-child(1),
.docs-preview-container .invoice-table td:nth-child(1){
  width: 52px;
  text-align: center;
}

.docs-preview-container .invoice-table th:nth-child(2),
.docs-preview-container .invoice-table td:nth-child(2){
  width: 100%;                         /* „Nazwa usługi” bierze resztę */
  text-align: left;
  white-space: normal;                 /* opis ma się ładnie zawijać */
}

.docs-preview-container .invoice-table th:nth-child(3),
.docs-preview-container .invoice-table td:nth-child(3){
  width: 50px;
  text-align: center;
  white-space: nowrap;
}

.docs-preview-container .invoice-table th:nth-child(4),
.docs-preview-container .invoice-table td:nth-child(4),
.docs-preview-container .invoice-table th:nth-child(5),
.docs-preview-container .invoice-table td:nth-child(5),
.docs-preview-container .invoice-table th:nth-child(6),
.docs-preview-container .invoice-table td:nth-child(6),
.docs-preview-container .invoice-table th:nth-child(7),
.docs-preview-container .invoice-table td:nth-child(7),
.docs-preview-container .invoice-table th:nth-child(8),
.docs-preview-container .invoice-table td:nth-child(8){
  width: 90px;
  text-align: right;
  white-space: nowrap;                 /* kwoty zawsze w jednej linii */
  font-variant-numeric: tabular-nums;  /* równe „kolumny cyfr” */
}

/* Mobile: trochę ciaśniej, ale nadal czytelnie */
@media (max-width: 767px){
  .docs-preview-container .invoice-table thead th{
    font-size: 12px;
    padding: 9px 8px;
  }
  .docs-preview-container .invoice-table tbody td{
    font-size: 13px;
    padding: 9px 8px;
  }
  .docs-preview-container .invoice-table th:nth-child(4),
  .docs-preview-container .invoice-table td:nth-child(4),
  .docs-preview-container .invoice-table th:nth-child(5),
  .docs-preview-container .invoice-table td:nth-child(5),
  .docs-preview-container .invoice-table th:nth-child(6),
  .docs-preview-container .invoice-table td:nth-child(6),
  .docs-preview-container .invoice-table th:nth-child(7),
  .docs-preview-container .invoice-table td:nth-child(7),
  .docs-preview-container .invoice-table th:nth-child(8),
  .docs-preview-container .invoice-table td:nth-child(8){
    width: 96px;
  }
}

.gl-breadcrumbs{
  margin: 0px 0px 0px 1px;
  font-size: 12px;
  color: rgba(255,255,255,.55);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.gl-breadcrumbs a{
  color: rgba(255,255,255,.75);
  text-decoration: none;
}

.gl-breadcrumbs a:hover{
  text-decoration: underline;
  color: rgba(255,255,255,.95);
}