/* Główne style */
.display-off{
	display: none !important;
}

#results_estimated {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 30px;
    background: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	min-height: 0px;
	margin: 20px;
}

/* Wspólne style dla wszystkich tabel */
#results_estimated table {
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: white;
    width: 280px;
}

#results_estimated th, #results_estimated td {
    padding: 12px 15px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

#results_estimated th {
    background-color: #2c3e50;
    color: white;
    font-weight: 600;
    font-size: 18px;
}

#results_estimated td:first-child {
    text-align: left;
    font-weight: 500;
    background-color: #f8f9fa;
}

/* Tabela po lewej (podstawowa) */
#results_estimated table:first-child {
    transform: scale(0.95);
    opacity: 0.9;
    margin-top: 20px;
}

#results_estimated table:first-child th {
    background-color: #000000;
}

/* Tabela środkowa (premium - wyróżniona) */
#results_estimated table:nth-child(2) {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 2px solid #3498db;
    z-index: 1;
}

#results_estimated table:nth-child(2) th {
    background-color: #267837;
    padding: 18px 15px;
    font-size: 20px;
}

/* Tabela po prawej (rozszerzona) */
#results_estimated table:last-child {
    transform: scale(0.95);
    opacity: 0.9;
    margin-top: 20px;
}

#results_estimated table:last-child th {
    background-color: #c70000;
}

/* Efekty hover */
#results_estimated table:hover {
    transform: scale(1.02);
    opacity: 1;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Nagłówki cen */
.price-header {
    font-size: 24px;
    font-weight: bold;
    display: block;
    margin-top: 5px;
}

/* Stopka tabeli */
#results_estimated tbody tr:last-child td {
    border-bottom: none;
}

/* Responsywność */
@media (max-width: 900px) {
    #results_estimated {
        flex-direction: column;
        align-items: center;
    }
    
    #results_estimated table {
        width: 80%;
        margin-bottom: 20px;
    }
}

/* Główne style formularza */
#calculatorForm {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Kontenery dla grup formularza */
.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

.form-row {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    align-items: flex-end;
}

.form-group {
    flex: 1;
    min-width: 0;
}

/* Style dla etykiet */
#calculatorForm label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Style dla radio buttonów w linii */
.radio-group {
    display: flex;
    gap: 20px;
    align-items: center;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #3498db;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    position: relative;
}

.radio-option input[type="radio"]:checked::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 10px;
    height: 10px;
    background: #3498db;
    border-radius: 50%;
}

/* Style dla selectów */
#calculatorForm select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d6d6d6;
    border-radius: 6px;
    background-color: #fff;
    font-size: 15px;
    color: #333;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

#calculatorForm select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Data (miesiąc i rok) w jednej linii */
.date-row {
    display: flex;
    gap: 15px;
}

.date-row .form-group {
    flex: 1;
}

/* Style dla checkboxów */
#columnSelection, .columnSelection {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin: 25px 0;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #eaeaea;
}

.columnSelectionRows {
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin: 25px 0;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #eaeaea;
}

.columnsAgregatorTitle{
    position: absolute;
    margin: -38px -3px;
    padding: 0px 15px;
    border: 1px solid #eaeaea;
    background-color: white;
    border-radius: 5px;
}

.columnsAgregator {
    background: #f8fafc;
    padding: 0px 13px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
}
/*
    padding: 0px;
     background: #f8fafc; 
    border-radius: 8px;
    border: 1px solid #eaeaea;*/
    
.checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3498db;
    cursor: pointer;
}

/* Style dla inputów */
#calculatorForm input[type="number"], #calculatorForm input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d6d6d6;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
}

#calculatorForm input[type="number"]:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Style dla przycisków */
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

#calculatorForm button {
    padding: 14px 28px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

#calculatorForm button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#estimateValueButton {
    background-color: #2ecc71;
}

#estimateValueButton:hover {
    background-color: #27ae60;
}

/* Responsywność */
@media (max-width: 1024px) {
    #columnSelection {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .form-row, .date-row {
        flex-direction: column;
        gap: 15px;
    }
    
    #columnSelection {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    #columnSelection {
        grid-template-columns: 1fr;
    }
}

/* Główne style tabeli */
.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0; /* Margines górny i dolny */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    border-radius: 12px; /* Zaokrąglenie rogów tabeli */
    overflow: hidden; /* Ukrywa wystające elementy przy zaokrąglonych rogach */
}

/* Zaokrąglenie górnych rogów nagłówka */
.stats-table thead tr:first-child th:first-child {
    border-top-left-radius: 12px;
}

.stats-table thead tr:first-child th:last-child {
    border-top-right-radius: 12px;
}

/* Zaokrąglenie dolnych rogów ostatniego wiersza */
.stats-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.stats-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

/* Pozostałe style pozostają bez zmian */
.stats-table th {
    background-color: #003beb;
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: 600;
}

.stats-table td {
    padding: 10px 12px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.first-col {
    background-color: #003beb30;
    color: #004715;
    font-weight: 500;
    width: 140px;
}

.align-right {
    text-align: right !important;
    padding-right: 20px !important;
}

.month-summary {
    background-color: #82bdf66e;
    font-weight: 600;
}

.month-summary:hover {
    background-color: #8bc1f5;
}

.month-details {
    background-color: #f8fafc;
    transition: all 0.2s ease;
}

.month-details:nth-child(odd) {
    background-color: #f1f8fe;
}

.toggle-details {
    background-color: #1e7e3b;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.toggle-details:hover {
    background-color: #740404;
    transform: translateY(-1px);
}

#results table button {
    width: 100%;
}

#results table tr:nth-last-child(4) {
	font-weight: bold;
    background-color: #82bdf6a6;
}

#results table span.under-data{
	font-size: small;
	color: #207b41;
    font-weight: 600;
}

#results .table-legend {
    font-size: 0.9em;
    color: #666;
    margin-top: -10px; /* zmniejsza odstęp od tabeli */
    text-align: left;
}

.hidden{
	display: none;
}

.home-form-inputs-group {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.home-form-inputs-group strong {
    display: block;
    margin-bottom: 12px;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.home-form-inputs-group select {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
    background-color: #f9f9f9;
}

.home-form-inputs-group select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    background-color: #fff;
}

/* Stylowanie inputa typu file */
.home-form-inputs-group .form-file[type="file"] {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.home-form-inputs-group .file-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.home-form-inputs-group .file-input-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 15px;
    background-color: #f9f9f9;
    border: 1px dashed #ccc;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.home-form-inputs-group .file-input-label:hover {
    background-color: #f0f0f0;
    border-color: #999;
}

.home-form-inputs-group .file-input-label span {
    color: #555;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-form-inputs-group .file-input-label .browse-btn {
    background-color: #3498db;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    margin-left: 10px;
    flex-shrink: 0;
}

/* Stylowanie checkboxa */
.home-form-inputs-group .checkbox {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    cursor: pointer;
}

.home-form-inputs-group .checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.home-form-inputs-group .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s;
}

.home-form-inputs-group .checkbox:hover input ~ .checkmark {
    background-color: #f0f0f0;
}

.home-form-inputs-group .checkbox input:checked ~ .checkmark {
    background-color: #3498db;
    border-color: #3498db;
}

.home-form-inputs-group .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.home-form-inputs-group .checkbox input:checked ~ .checkmark:after {
    display: block;
}

.home-form-inputs-group .checkbox .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Stylowanie radio buttonów */
.home-form-inputs-group input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.home-form-inputs-group input[type="radio"] + label {
    position: relative;
    padding-left: 28px;
    margin-right: 20px;
    margin-bottom: 12px;
    cursor: pointer;
	display: inline-grid;
}

.home-form-inputs-group input[type="radio"] + label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #f9f9f9;
    transition: all 0.3s;
}

.home-form-inputs-group input[type="radio"]:checked + label:before {
    background: #3498db;
    border-color: #3498db;
    box-shadow: inset 0 0 0 3px #f9f9f9;
}

/* Przycisk submit */
.home-form-inputs-group input[type="submit"] {
    background-color: #3498db;
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    width: 200px;
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.home-form-inputs-group input[type="submit"]:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsywność */
@media (max-width: 768px) {
    .home-form-inputs-group {
        padding: 20px;
    }
    
    .home-form-inputs-group input[type="submit"] {
        width: 100%;
    }
    
    .home-form-inputs-group input[type="radio"] + label {
        display: block;
        margin-bottom: 15px;
    }
}

.scrolling-wrapper{
	overflow: overlay;
}

.ac-col-actions{
    width: max-content;
    float: right;
}

.planner-th-source:nth-child(odd) {
    background-color: #286a33 !important;
}

.planner-th-source.meta{
    background-color: blue !important;
}
