/* Минимальные стили для функциональности калькулятора */

/* Базовые настройки */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Контейнер приложения */
#app {
    min-height: 100vh;
}

/* Заголовок */
.header-content {
    text-align: center;
    padding: 16px 24px;
    background: #001529;
    color: white;
}

.header-content h1 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 600;
}

.header-content p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}

/* Основной контент */
.calculator-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

/* Вкладки */
.tabs-nav {
    border-bottom: 1px solid #f0f0f0;
    margin: 0;
    padding: 0 24px;
    display: flex;
}

.tab {
	padding: 12px 16px;
    margin: 0 32px 0 0;
	cursor: pointer;
	border-bottom: 2px solid transparent;
	transition: all 0.3s;
    color: #8c8c8c;
}

.tab:hover {
    color: #1890ff;
}

.tab.active {
    color: #1890ff;
    border-bottom-color: #1890ff;
}

.tab-content {
    padding: 24px;
}

.tab-content:not(.active) {
	display: none;
}

/* Вертикальные вкладки */
.tabs-vertical {
    display: flex;
    gap: 0; /* Убираем промежуток */
}

.tabs-vertical .tabs-nav {
    border-bottom: none;
    border-right: 1px solid #f0f0f0;
    flex-direction: column;
    width: 200px;
    padding: 0;
    flex-shrink: 0; /* Навигация не сжимается */
}

.tabs-vertical .tab {
    margin: 0;
    border-bottom: none;
    border-right: 2px solid transparent;
    text-align: left;
}

.tabs-vertical .tab.active {
    border-right-color: #1890ff;
}

.tabs-vertical .tab-content {
    flex: 1;
    padding-left: 0; /* Убираем левый отступ */
    margin-left: 0; /* Убираем левый отступ */
    width: calc(100% - 200px); /* Вычисляем ширину с учетом навигации */
}

/* Маленькие вкладки */
.tabs-small .tabs-nav {
    padding: 0 16px;
}

.tabs-small .tab {
    padding: 8px 12px;
    margin: 0 16px 0 0;
    font-size: 13px;
}

/* Карточки */
.card {
    margin-bottom: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
    background: white;
}

.card-head {
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.card-head-title {
    font-size: 16px;
    font-weight: 500;
    color: #262626;
}

.card-body {
    padding: 24px;
}

/* Формы */
.form-item {
    margin-bottom: 16px;
}

.form-item-label {
	display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #000000; /* Черный цвет для всех лейблов */
}

.form-item-required {
    color: #ff4d4f;
}

/* Убеждаемся что лейблы всегда черные */
.form-item-label,
.form-item-label.form-item-required {
    color: #000000 !important;
}

.form-item-label .help-icon {
    color: #1890ff; /* Иконки справки остаются синими */
}

.input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}

.input:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.input:disabled {
    background-color: #f5f5f5;
    color: #bfbfbf;
    cursor: not-allowed;
}

/* Input group */
.input-group {
    display: flex;
    gap: 8px;
}

.input-group .input {
    flex: 1;
}

.input-group .btn {
    white-space: nowrap;
}

/* Сетка */
.row {
    display: flex;
    margin: 0 -8px;
}

.col {
    padding: 0 8px;
}

.col-12 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-75 {
    flex: 0 0 75%;
    max-width: 75%;
}

.col-25 {
    flex: 0 0 25%;
    max-width: 25%;
}

/* Кнопки полной ширины */
.btn-full-width {
    width: 100%;
}

/* Кнопки */
.btn {
    padding: 8px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background: white;
    color: #262626;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.btn-primary {
    background: #1890ff;
    border-color: #1890ff;
    color: white;
}

.btn-primary:hover {
    background: #40a9ff;
    border-color: #40a9ff;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
}

/* Таблицы */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.table th {
    background-color: #fafafa;
    font-weight: 500;
}

/* Алерты */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.alert-info {
    background-color: #e6f7ff;
    border: 1px solid #91d5ff;
    color: #1890ff;
}

.alert-success {
    background-color: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #52c41a;
}

.alert-warning {
    background-color: #fffbe6;
    border: 1px solid #ffe58f;
    color: #faad14;
}

.alert-error {
    background-color: #fff2f0;
    border: 1px solid #ffccc7;
    color: #ff4d4f;
}

/* Специальные элементы */
.help-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: #1890ff;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 16px;
    font-size: 12px;
    margin-left: 8px;
    cursor: help;
    vertical-align: middle;
}

.ki-display {
    margin-top: 8px;
    padding: 8px 12px;
    background-color: #f6ffed;
    border: 1px solid #b7eb8f;
    border-radius: 6px;
    font-size: 13px;
    color: #52c41a;
}

.ki-label {
    font-weight: 500;
}

.ki-value {
    font-weight: 600;
    color: #389e0d;
}

.spd-value {
    font-weight: 600;
    color: #1890ff;
    font-size: 14px;
}

.form-help-text {
    margin-top: 4px;
    font-size: 12px;
    color: #8c8c8c;
    font-style: italic;
}

.total-result {
    margin-top: 24px;
    padding: 20px;
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    color: #52c41a;
}

.print-form-section {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

.inflation-result {
	margin: 16px 0;
    padding: 16px;
	background: #f6ffed;
	border: 1px solid #b7eb8f;
    border-radius: 6px;
}

.inflation-table {
	margin-top: 24px;
}

.inflation-table h4 {
	margin-bottom: 16px;
	color: #262626;
}

/* Утилиты */
.text-center {
    text-align: center;
}

.mb-16 {
    margin-bottom: 16px;
}

.mt-16 {
    margin-top: 16px;
}

.hidden {
    display: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .row {
        flex-direction: column;
}

    .col-12,
    .col-6,
    .col-4,
    .col-75,
    .col-25 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 16px;
    }

    .calculator-container {
	padding: 16px;
    }
    
    .card-body {
        padding: 16px;
    }
    
    .tabs-vertical .tabs-nav {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
}

    .tabs-vertical .tab-content {
        margin-left: 0;
        padding-left: 0;
        padding-top: 16px;
}

    .input-group {
    flex-direction: column;
}

    .input-group .btn {
        width: 100%;
    }
} 

/* Стили для таблицы разделов ПД в стиле Ant Design */
.ant-table-wrapper {
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
    width: 100%; /* Полная ширина контейнера */
}

.ant-table {
    font-size: 14px;
    color: #000000; /* Черный цвет текста */
    line-height: 1.5715;
    width: 100%; /* Полная ширина */
}

.ant-table-container {
    position: relative;
    width: 100%; /* Полная ширина */
}

.ant-table-content {
    overflow: auto;
    width: 100%; /* Полная ширина */
}

.ant-table-content table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    table-layout: fixed; /* Фиксированная разметка для равномерного распределения колонок */
}

.ant-table-thead > tr > th {
    position: relative;
    color: #000000; /* Черный цвет заголовков */
    font-weight: 500;
    text-align: left;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s;
}

.ant-table-cell {
    position: relative;
    padding: 16px;
    overflow-wrap: break-word;
    border-bottom: 1px solid #f0f0f0;
    color: #000000; /* Черный цвет ячеек */
}

.ant-table-tbody > tr {
    transition: all 0.3s;
}

.ant-table-tbody > tr:hover {
    background-color: #fafafa;
}

.ant-table-row-selected {
    background-color: #e6f7ff !important;
}

.ant-table-row-selected:hover {
    background-color: #bae7ff !important;
}

.ant-table-selection-column {
    width: 60px;
    text-align: center;
}

/* Стили чекбоксов */
.ant-checkbox-wrapper {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    color: rgba(0, 0, 0, 0.85);
    font-size: 14px;
    line-height: 1.5715;
    list-style: none;
    display: inline-flex;
    align-items: baseline;
    cursor: pointer;
}

.ant-checkbox {
    position: relative;
    top: 0.2em;
    line-height: 1;
    white-space: nowrap;
    outline: none;
    cursor: pointer;
}

.ant-checkbox-input {
    position: absolute;
    left: 0;
    z-index: 1;
    cursor: pointer;
    opacity: 0;
    top: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

.ant-checkbox-inner {
    position: relative;
    top: 0;
    left: 0;
    display: block;
    width: 16px;
    height: 16px;
    direction: ltr;
    background-color: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 2px;
    border-collapse: separate;
    transition: all 0.3s;
}

.ant-checkbox-inner::after {
    position: absolute;
    top: 50%;
    left: 21.5%;
    display: table;
    width: 5.71428571px;
    height: 9.14285714px;
    border: 2px solid #fff;
    border-top: 0;
    border-left: 0;
    transform: rotate(45deg) scale(0) translate(-50%, -50%);
    opacity: 0;
    content: ' ';
    transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6);
}

.ant-checkbox-input:checked + .ant-checkbox-inner {
    background-color: #1890ff;
    border-color: #1890ff;
}

.ant-checkbox-input:checked + .ant-checkbox-inner::after {
    opacity: 1;
    transform: rotate(45deg) scale(1) translate(-50%, -50%);
    transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;
}

.ant-checkbox-input:indeterminate + .ant-checkbox-inner {
    background-color: #1890ff;
    border-color: #1890ff;
}

.ant-checkbox-input:indeterminate + .ant-checkbox-inner::after {
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background-color: #fff;
    border: 0;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    content: ' ';
}

.ant-checkbox:hover .ant-checkbox-inner {
    border-color: #1890ff;
}

.ant-checkbox-input:disabled + .ant-checkbox-inner {
    background-color: #f5f5f5;
    border-color: #d9d9d9;
    cursor: not-allowed;
}

.ant-checkbox-input:disabled + .ant-checkbox-inner::after {
    border-color: rgba(0, 0, 0, 0.25);
}

.ant-checkbox-wrapper:hover .ant-checkbox-input:disabled + .ant-checkbox-inner {
    border-color: #d9d9d9;
}

/* Стили для тегов */
.ant-tag {
    box-sizing: border-box;
    margin: 0;
    padding: 0 7px;
    color: rgba(0, 0, 0, 0.85);
    font-size: 12px;
    line-height: 20px;
    white-space: nowrap;
    background: #fafafa;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    opacity: 1;
    transition: all 0.3s;
    display: inline-block;
    height: auto;
    margin-inline-end: 8px;
    padding-inline: 7px;
    font-size: 12px;
    line-height: 20px;
    white-space: nowrap;
    border-radius: 6px;
    cursor: default;
    opacity: 1;
    transition: all 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
}

.ant-tag-blue {
    color: #1890ff;
    background: #e6f7ff;
    border-color: #91d5ff;
}

/* Стили для input number */
.ant-input-number {
    position: relative;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    color: rgba(0, 0, 0, 0.85);
    font-size: 14px;
    line-height: 1.5715;
    background-color: #fff;
    background-image: none;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    transition: all 0.3s;
    display: inline-block;
    width: 90px;
    height: 32px;
}

.ant-input-number-sm {
    padding: 0 7px;
    height: 24px;
    font-size: 12px;
}

.ant-input-number-input {
    width: 100%;
    height: 100%;
    padding: 0;
    text-align: left;
    background-color: transparent;
    border: none;
    border-radius: 6px;
    outline: none;
    transition: all 0.3s linear;
    appearance: textfield;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    text-align: center;
}

.ant-input-number:hover {
    border-color: #40a9ff;
    border-right-width: 1px;
}

.ant-input-number:focus-within {
    border-color: #40a9ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
    border-right-width: 1px;
    outline: 0;
}

.ant-input-number-input:disabled {
    color: rgba(0, 0, 0, 0.25);
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* Стили для типографики */
.ant-typography {
    color: rgba(0, 0, 0, 0.85);
    word-break: break-word;
    line-height: 1.5715;
}

.ant-typography-caption {
    color: rgba(0, 0, 0, 0.45);
    font-size: 12px;
}

/* Стили для кодов разделов */
.section-code {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #1890ff;
    background-color: #e6f7ff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    border: 1px solid #91d5ff;
} 

/* Стили для состояний валидации полей ввода */
.ant-input-number-input:invalid {
    border-color: #ff4d4f !important;
    background-color: #fff2f0 !important;
}

.ant-input-number-input.error {
    border-color: #ff4d4f !important;
    background-color: #fff2f0 !important;
    color: #ff4d4f !important;
}

.ant-input-number-input.warning {
    border-color: #faad14 !important;
    background-color: #fffbe6 !important;
    color: #faad14 !important;
}

.ant-input-number-input.success {
    border-color: #52c41a !important;
    background-color: #f6ffed !important;
    color: #52c41a !important;
}

/* Анимация для полей с ошибками */
.ant-input-number-input.error {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { tooltip: translateX(2px); }
}

/* Стили для поля общего объема ПД */
.total-volume-input {
    font-weight: bold !important;
    text-align: center !important;
    font-size: 14px !important;
    }
    
.total-volume-input.over-limit {
    border-color: #ff4d4f !important;
    background-color: #fff2f0 !important;
    color: #ff4d4f !important;
    animation: pulse-error 1s ease-in-out infinite;
}

@keyframes pulse-error {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
} 

/* Стили для полей ввода сумм РИИ */
.rii-section-amount-input {
    text-align: right !important;
    font-family: 'Courier New', monospace !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
    height: 38px !important;
    line-height: 38px !important;
    padding: 6px 11px !important;
    font-size: 14px !important;
    }
    
.rii-section-amount-input:focus {
    text-align: right !important;
    }
    
/* Стили для контейнера полей сумм */
.ant-input-number-sm {
    min-width: 120px;
}

/* Обновляем стили для больших полей */
.ant-input-number-lg {
    min-width: 120px;
    height: 40px !important;
    font-size: 14px !important;
}

/* Расширяем стили валидации для полей РИИ */
.rii-section-amount-input:invalid {
    border-color: #ff4d4f !important;
    background-color: #fff2f0 !important;
}

.rii-section-amount-input.error {
    border-color: #ff4d4f !important;
    background-color: #fff2f0 !important;
    color: #ff4d4f !important;
}

.rii-section-amount-input.warning {
    border-color: #faad14 !important;
    background-color: #fffbe6 !important;
    color: #faad14 !important;
}

.rii-section-amount-input.success {
    border-color: #52c41a !important;
    background-color: #f6ffed !important;
    color: #52c41a !important;
} 

/* Стили для больших полей ввода */
.ant-input-number-lg {
    height: 40px !important; /* Такой же размер как поле даты */
    font-size: 14px !important;
}

.ant-input-number-lg .ant-input-number-input {
    height: 38px !important;
    line-height: 38px !important;
    padding: 6px 11px !important;
    font-size: 14px !important;
}

/* Выравнивание ячеек с полями ввода */
.ant-table-cell:last-child {
    text-align: center !important;
}

.ant-table-cell .ant-input-number {
    margin: 0 auto !important;
}

/* Стили для полей ввода процентов ПД */
.section-percentage-input {
    text-align: center !important;
    font-weight: 500 !important;
    }

.section-percentage-input:focus {
    text-align: center !important;
} 

/* Стили для поля итоговой стоимости */
.total-result-input {
    font-weight: bold !important;
    font-size: 14px !important; /* Такой же размер как у других полей */
    text-align: right !important;
    background-color: #f6ffed !important;
    border-color: #52c41a !important;
    color: #52c41a !important;
    height: 40px !important; /* Такая же высота как у поля коэффициента П */
    padding: 8px 12px !important; /* Такие же отступы */
}

.total-result-input:disabled {
    background-color: #f6ffed !important;
    border-color: #52c41a !important;
    color: #52c41a !important;
    cursor: default !important;
    opacity: 1 !important;
}

.total-result-input::placeholder {
    color: #8c8c8c !important;
    font-weight: normal !important;
}

/* Стили для поля коэффициента П для единообразия */
#p {
    height: 40px !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
} 

/* Стили для навигации справочников */
.tabs-vertical .reference-nav {
    width: 280px; /* Делаем навигацию шире */
    min-width: 280px;
    flex-shrink: 0;
}

.reference-nav .tab {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reference-nav .tab:hover {
    background-color: #f5f5f5;
}

.reference-nav .tab.active {
    background-color: #e6f7ff;
    border-right: 2px solid #1890ff;
    color: #1890ff;
    font-weight: 600;
}

/* Контент справочников */
.tabs-vertical .tab-content {
    flex: 1;
    padding-left: 0; /* Убираем левый отступ */
    margin-left: 0; /* Убираем левый отступ */
}

/* Специальные стили для подвкладок справочников */
#reference-tab .tab-content {
    padding-left: 0 !important;
    margin-left: 0 !important;
    width: calc(100% - 280px) !important; /* Учитываем ширину навигации справочников 280px */
    padding: 24px; /* Добавляем внутренние отступы для контента */
}

/* Карточки в справочниках занимают полную ширину */
#reference-tab .card {
    width: 100%;
        margin-left: 0;
    margin-right: 0;
}

/* Контейнер справочников */
#reference-tab .tabs-vertical {
    gap: 0; /* Убираем промежуток между навигацией и контентом */
}

/* Навигация справочников */
.tabs-vertical .reference-nav {
    width: 280px;
    min-width: 280px;
    flex-shrink: 0;
    margin-right: 0; /* Убираем правый отступ */
}

/* Стили для таблицы индексов инфляции - обновляем для 2 колонок */
.inflation-table .ant-table-wrapper {
        width: 100%;
    }

.inflation-table .ant-table {
    width: 100%;
}

.inflation-table .ant-table-content table {
    table-layout: fixed;
}

/* Задаем ширину колонок в таблице инфляции для 2 колонок */
.inflation-table .ant-table-cell:nth-child(1) {
    width: 30%; /* Год */
}

.inflation-table .ant-table-cell:nth-child(2) {
    width: 70%; /* Индекс */
}

.inflation-table .ant-table-cell {
    padding: 16px;
}

/* Стили для справочных таблиц РИИ (только название) */
#riiSectionsRefTable .ant-table-cell {
    padding: 16px;
    text-align: left;
}

/* Стили для справочных таблиц ПД (название + процент) */
#pdSectionsRefTable .ant-table-cell:nth-child(1) {
    width: 70%; /* Название */
}

#pdSectionsRefTable .ant-table-cell:nth-child(2) {
    width: 30%; /* % по умолчанию */
    text-align: center;
}

#pdSectionsRefTable .ant-table-cell {
    padding: 16px;
}

/* Контейнеры таблиц для полной ширины */
.sections-table-container {
    width: 100%;
} 

/* Стили для кнопки добавления локального раздела ПД */
.add-custom-section-btn {
    margin-bottom: 16px;
    width: 100%;
}

/* Стили для ошибки валидации общего объема */
.volume-validation-error {
    border-color: #ff4d4f !important;
    background-color: #fff2f0 !important;
}

/* Стили для Ant Design тултипов */
.ant-tooltip {
    position: absolute;
    z-index: 1070;
    display: block;
    visibility: visible;
    font-size: 14px;
    line-height: 1.5715;
    color: rgba(0, 0, 0, 0.85);
    font-variant: tabular-nums;
    font-feature-settings: 'tnum';
}

.ant-tooltip-hidden {
    display: none;
}

.ant-tooltip-placement-top,
.ant-tooltip-placement-topLeft,
.ant-tooltip-placement-topRight {
    padding-bottom: 10px;
}

.ant-tooltip-placement-bottom,
.ant-tooltip-placement-bottomLeft,
.ant-tooltip-placement-bottomRight {
    padding-top: 10px;
}

.ant-tooltip-placement-left,
.ant-tooltip-placement-leftTop,
.ant-tooltip-placement-leftBottom {
    padding-right: 10px;
}

.ant-tooltip-placement-right,
.ant-tooltip-placement-rightTop,
.ant-tooltip-placement-rightBottom {
    padding-left: 10px;
}

.ant-tooltip-content {
    position: relative;
}

.ant-tooltip-arrow {
    position: absolute;
    display: block;
    width: 13px;
    height: 13px;
    overflow: hidden;
    background: transparent;
    pointer-events: none;
}

.ant-tooltip-arrow-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    width: 5px;
    height: 5px;
    margin: auto;
    background-color: rgba(0, 0, 0, 0.85);
    content: '';
    pointer-events: auto;
    transform: rotate(45deg);
}

.ant-tooltip-inner {
    min-width: 30px;
    min-height: 32px;
    padding: 8px 12px;
    color: #fff;
    text-align: left;
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.85);
    border-radius: 6px;
    box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
    word-wrap: break-word;
}

/* Кастомные стили для тултипов */
.custom-tooltip .ant-tooltip-inner {
    max-width: 300px;
    font-size: 13px;
    line-height: 1.4;
}

/* Стили для триггеров тултипов */
.ant-tooltip-trigger {
    display: inline-block;
    cursor: help;
}

.ant-tooltip-trigger .help-icon {
    color: #1890ff;
    background: transparent;
    border: 1px solid #1890ff;
    transition: all 0.3s;
}

.ant-tooltip-trigger:hover .help-icon {
    color: white;
    background: #1890ff;
    transform: scale(1.1);
}

/* Анимации для тултипов */
.ant-tooltip-zoom-big-fast-appear,
.ant-tooltip-zoom-big-fast-enter {
    animation-duration: 0.1s;
    animation-fill-mode: both;
    animation-play-state: paused;
}

.ant-tooltip-zoom-big-fast-appear.ant-tooltip-zoom-big-fast-appear-active,
.ant-tooltip-zoom-big-fast-enter.ant-tooltip-zoom-big-fast-enter-active {
    animation-name: antTooltipZoomBigIn;
    animation-play-state: running;
}

.ant-tooltip-zoom-big-fast-leave {
    animation-duration: 0.1s;
    animation-fill-mode: both;
    animation-play-state: paused;
}

.ant-tooltip-zoom-big-fast-leave.ant-tooltip-zoom-big-fast-leave-active {
    animation-name: antTooltipZoomBigOut;
    animation-play-state: running;
}

@keyframes antTooltipZoomBigIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes antTooltipZoomBigOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.8);
    }
} 

/* Стили для индекса инфляции */
#kiDisplay {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
} 