.form-label .text-danger {
    margin-left: 4px;
}

/* Исправления для доступности модальных окон */
.modal[aria-hidden="true"] {
    aria-hidden: unset !important;
}

.modal[inert] {
    pointer-events: none;
}

.modal[inert] * {
    pointer-events: none;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e9ecef;
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background-color: #007bff;
    color: #fff;
}

.step.completed .step-number {
    background-color: #28a745;
    color: #fff;
}

.step-label {
    font-size: 12px;
    text-align: center;
    color: #6c757d;
    font-weight: 500;
    transition: all 0.3s ease;
}

.step.active .step-label {
    color: #007bff;
    font-weight: 600;
}

.step.completed .step-label {
    color: #28a745;
}

@media (max-width: 768px) {
    .step-label {
        font-size: 10px;
    }

    .step-number {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
}

.documents-list {
    max-width: 250px;
}

.documents-list a {
    font-size: 0.8rem;
    line-height: 1.2;
    padding: 2px 0;
    color: #007bff;
    text-decoration: none;
}

.documents-list a:hover {
    background-color: rgba(0, 123, 255, 0.1);
    border-radius: 3px;
    padding: 2px 4px;
    text-decoration: none;
}

.documents-loading {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Стили для кликабельных номеров заявок */
.request-number-link {
    font-weight: 600 !important;
    transition: all 0.2s ease;
    cursor: pointer;
}

.request-number-link:hover {
    text-decoration: underline !important;
    color: #0056b3 !important;
    transform: translateY(-1px);
}

/* Стили для навбара */
.navbar {
    z-index: 1001;
    position: relative;
}

/* Стили для панели настроек агрохимии */
.agro-settings-panel {
    position: fixed;
    top: 80px;
    left: 20px;
    width: 320px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.agro-settings-panel.show {
    transform: translateX(0);
}

.agro-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px 12px 0 0;
}

.agro-settings-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.agro-settings-title i {
    font-size: 18px;
}

.agro-settings-content {
    padding: 10px;
    padding-bottom: 0;
}

.agro-settings-group {
    margin-bottom: 20px;
}

.agro-settings-label {
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.agro-settings-label i {
    color: #28a745;
    font-size: 14px;
}

.agro-settings-checkbox {
    display: inline-block;
    float: right;
}

.agro-settings-select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background-color: white;
    font-size: 14px;
    color: #333;
    transition: all 0.2s ease;
    cursor: pointer;
}

.agro-settings-select:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.agro-settings-select:hover {
    border-color: #28a745;
}

.agro-settings-select:disabled {
    border-color: #dee2e6;
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.agro-settings-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.agro-settings-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.agro-settings-btn-primary {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.agro-settings-btn-primary:hover {
    background: linear-gradient(135deg, #218838, #1ea085);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.agro-settings-btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.agro-settings-btn-secondary:hover {
    background: #e9ecef;
    color: #495057;
    transform: translateY(-1px);
}

.agro-settings-legend {
    padding-bottom: 12px;
    border-radius: 8px;
}

.agro-legend-colors {
    display: flex;
    gap: 2px;
}

.agro-legend-color {
    flex: 1;
    height: 24px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.agro-legend-labels {
    display: flex;
    justify-content: space-between;
}

.agro-legend-label-left,
.agro-legend-label-right {
    font-size: 12px;
    font-weight: 500;
    color: #495057;
    white-space: nowrap;
}

.agro-label-text {
    text-shadow: -1px -1px 0 white, 1px -1px 0 white, -1px 1px 0 white, 1px 1px 0 white;
}

.agro-label-text-9 {
    font-size: 5px;
}

.agro-label-text-10 {
    font-size: 6px;
}

.agro-label-text-11 {
    font-size: 9px;
}

.agro-label-text-12 {
    font-size: 10px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .agro-settings-panel {
        width: 280px;
        left: 10px;
        top: 70px;
    }

    .agro-settings-content {
        padding: 16px;
    }

    .agro-settings-actions {
        flex-direction: column;
    }

    .agro-settings-btn {
        width: 100%;
    }
}

.navbar .dropdown-menu {
    z-index: 1002;
}

/* Стили для поиска */
.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-input-wrapper .form-control {
    padding-right: 70px;
}

.search-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    font-size: 16px;
    padding: 8px;
    transition: all 0.2s ease;
    z-index: 10;
}

.search-icon-clear {
    right: 40px;
}

.search-icon-search {
    right: 10px;
}

.search-icon:hover {
    color: #0056b3;
    transform: translateY(-50%) scale(1.15);
}

.search-icon-clear:hover {
    color: #dc3545;
}

/* Стили для панели результатов поиска */
.search-result-panel {
    position: fixed;
    left: 20px;
    top: 80px;
    max-width: 400px;
    width: calc(100% - 40px);
    z-index: 1050;
    pointer-events: auto;
}

.search-result-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-height: calc(100vh - 150px);
    display: flex;
    flex-direction: column;
}

.search-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.search-result-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
}

.search-result-body {
    padding: 1rem;
    overflow-y: auto;
    flex: 1;
    max-height: calc(100vh - 280px);
}

.search-result-footer {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    padding: 1rem;
    border-top: 1px solid #dee2e6;
    background-color: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

/* Стили для атрибутов участка */
.search-attribute {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.search-attribute:last-child {
    border-bottom: none;
}

.search-attribute-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 4px;
}

.search-attribute-value {
    color: #212529;
    font-size: 0.95rem;
    word-break: break-word;
}

/* Адаптивность */
@media (max-width: 768px) {
    .search-result-panel {
        left: 10px;
        top: 70px;
        max-width: calc(100% - 20px);
    }

    .search-result-body {
        max-height: calc(100vh - 250px);
    }
}

/* Стили для футера */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #dee2e6;
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer .btn {
    transition: all 0.3s ease;
}

.footer .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .footer {
        padding: 8px 0;
    }

    .footer .col-md-6 {
        text-align: center !important;
        margin-bottom: 5px;
    }

    .footer .col-md-6:last-child {
        margin-bottom: 0;
    }
}

/* Стили для карты в модальном окне заказа услуг */
#map_coords {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-color: white;
}

#map_coords .leaflet-container {
    border-radius: 8px;
    background-color: white;
}

#map_coords .leaflet-pane {
    background-color: white;
}

/* Скрываем элементы управления масштабом */
#map_coords .leaflet-control-zoom {
    display: none !important;
}

/* Отключаем курсор перетаскивания */
#map_coords .leaflet-container {
    cursor: default !important;
}

/* Стили для редактируемых ячеек */
.editable-x,
.editable-y,
.editable-part {
    cursor: pointer;
}

/* Стили для мер линий */
.line-measure {
    font-family: 'Courier New', monospace;
    font-weight: 500;
    color: #495057;
}

.line-measure:empty::before {
    content: '—';
    color: #6c757d;
    font-style: italic;
}

/* Ограничение высоты модального окна orderServiceModal */
#orderServiceModal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Стили для таблицы координат */
.table-pu-coords {
    font-size: 0.9rem;
}

.table-pu-coords th {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    font-weight: 600;
    font-size: 0.85rem;
}

.table-pu-coords td {
    vertical-align: middle;
    border-color: #dee2e6;
}

.table-pu-coords .form-control {
    font-size: 0.85rem;
    padding: 0.375rem 0.5rem;
}

/* Стили для кнопок управления координатами */
.btn-coord-add {
    transition: all 0.2s ease;
}

.btn-coord-add:hover {
    transform: scale(1.05);
}

.btn-remove-coord {
    transition: all 0.2s ease;
}

.btn-remove-coord:hover {
    transform: scale(1.05);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    #map_coords {
        height: 300px !important;
        width: 100% !important;
    }

    .table-pu-coords {
        font-size: 0.8rem;
    }

    .table-pu-coords th,
    .table-pu-coords td {
        padding: 0.5rem 0.25rem;
    }
}

/* Стили для маркеров точек координат на карте */
.coordinate-marker {
    background: transparent;
    border: none;
}

.marker-number {
    width: 20px;
    height: 20px;
    background-color: #ffffff;
    color: #000000;
    border: 2px solid #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.marker-number:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

/* Стили для всплывающих подсказок */
.leaflet-popup-content {
    font-size: 0.9rem;
    line-height: 1.4;
}

.leaflet-popup-content strong {
    color: #2c3e50;
}

/* Стили для кнопки возврата к услуге */
.return-to-service-control {
    z-index: 1000;
}

.return-to-service-control .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.return-to-service-control .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Стили для блока площади */
#areaDetails {
    font-size: 0.9rem;
    line-height: 1.4;
}

#areaDetails strong {
    color: #495057;
}