.credit-calculator-block .b_title h3 {
    color: var(--head);
    margin-bottom: 10px;
}

.credit-calculator-block .b_description {
    color: var(--main-text);
    margin-bottom: 20px;
}

.kk-form-wrapper {
    padding: 25px 20px;
    background-color: var(--primary-1);
    border-radius: 12px;
    color: var(--card);
    display: flex;
    flex-direction: column;
    gap: 16px;
	max-width: 60%;
}

.kk-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kk-field-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--card);
}

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


.kk-form-wrapper input,
.kk-form-wrapper select {
    padding: 8px 10px;
    border: 1px solid var(--grey-2);
    height: 40px;
    font-size: 15px;
    color: var(--head);
    background: var(--background);
    border-radius: 6px;
    outline: none;
	flex: 1;
}

.kk-form-wrapper input[type="submit"] {
    margin-top: 4px;
    background-color: var(--card) !important;
    color: var(--head) !important;
    border: 1px solid var(--head);
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    height: 44px;
    font-size: 15px;
}

.kk-form-wrapper input[type="submit"]:hover {
    background-color: var(--grey-4) !important;
}

.kk-settings {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--background);
}

.kk-cursor-help {
    cursor: help;
}

.kk-result {
    padding: 18px 20px;
    background-color: var(--primary);
    border-radius: 12px;
    /* margin-top: 20px; */
    display: flex;
    flex-direction: column;
    gap: 10px;
		max-width: 50%;
		margin-left: auto;
}

.kk-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.kk-title {
    font-size: 15px;
    color: var(--card);
    font-weight: 600;
}

.kk-value {
    font-size: 15px;
    font-weight: bold;
    color: var(--card);
}

.kk-graph-croll {
    overflow-x: auto;
    max-width: 100%;
    margin-top: 20px;
}

table,
.kk-graph {
    border-color: var(--card);
    font-size: small;
    width: 100%;
    text-align: center;
    border: 0;
    overflow: hidden;
    border-radius: 12px;
    color: var(--main-text);
}

.kk-graph th {
    background-color: var(--primary-1);
    color: var(--card);
    padding: 8px 6px;
}

.kk-graph td {
    padding: 6px;
}

.kk-graph tbody tr:nth-child(even) {
    background-color: var(--grey-4);
}

.kk-graph tbody tr:nth-child(odd) {
    background-color: var(--card);
}

@media (max-width: 900px){
	.kk-result{
		max-width: unset;
		margin-top: 20px;
		margin-left: unset;
	}

	.kk-form-wrapper{
		max-width: unset;
	}
}


@media (max-width: 768px) {
    .kk-line {
        flex-direction: column;
        align-items: flex-start;
    }
}

.kk-charts {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 30px;
	margin-bottom: 20px;
}

.kk-chart-pie,
.kk-chart-bar {
    width: 100%;
}

.kk-chart-pie h3,
.kk-chart-bar h3 {
    text-align: center;
    margin-bottom: 16px;
    color: var(--head);
}

.kk-chart-pie canvas {
    max-width: 500px;
    margin: 0 auto;
}

.kk-chart-bar canvas {
    max-height: 400px;
}

.credit-calculator-block h3{
	text-align: center;
}

@media (max-width: 768px) {
    .kk-chart-pie canvas {
        max-width: 100%;
    }
}

.kk-print-btn {
    margin-top: 16px;
    text-align: center;
}

.kk-print-btn button {
    padding: 10px 28px;
    background-color: var(--card);
    color: var(--head);
    border: 1px solid var(--head);
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    height: 44px;
    font-size: 15px;
}

.kk-print-btn button:hover {
    background-color: var(--grey-4);
}

.kk-print-only {
    display: none;
}

@media print {
    @page {
        margin: 10mm;
    }

    body * {
        visibility: hidden;
    }

    .credit-calculator-block,
    .credit-calculator-block * {
        visibility: visible;
    }

    .credit-calculator-block {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }

    .no-print {
        display: none !important;
    }

    .kk-print-only {
        display: block;
        margin-bottom: 20px;
    }

    .kk-print-params,
    .kk-print-summary {
        margin-bottom: 15px;
        font-size: 12px;
    }

    .kk-print-params div,
    .kk-print-summary div {
        padding: 2px 0;
    }

    .kk-result {
        background: none !important;
        color: #000 !important;
        padding: 0;
        margin-bottom: 15px;
    }

    .kk-title,
    .kk-value {
        color: #000 !important;
    }

    .kk-graph-croll {
        overflow: visible !important;
    }

    .kk-graph {
        border-radius: 0;
        font-size: 10px;
    }

    .kk-graph th {
        background-color: #eee !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .kk-graph tbody tr:nth-child(even) {
        background-color: #f5f5f5 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .kk-graph tbody tr:nth-child(odd) {
        background-color: #fff !important;
    }

    .kk-graph-color-credit-rus {
        background-color: #eee !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

