/* CSS Document */

html, body{
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    flex-grow: 1
}

#login-page{
    background-image: url(/img/login-fon.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center
}

/* .row{margin: 0} */

.flex-grow-1{flex-grow: 1 !important}

#login-window{
    background: #fff;
    padding: 1rem;
    width: 100%;
    max-width: 24rem;
    border-radius: .5rem
}

*::-webkit-scrollbar{width:14px;height:14px}
*::-webkit-scrollbar-thumb {background-color:#007E3C; border-radius:7px; border:5px solid transparent; background-clip:content-box}
*::-webkit-scrollbar-thumb:hover {border-width:0}
*::-webkit-scrollbar-track {background:rgba(128,128,128,.1)}

header, .content-fhd{
    margin: 0 auto;
    width: 1920px
}

content{
    margin-top: 28px;
    padding-top: 18px;
    background-color: #FAFAFD;
    min-height: 900px
}

nav a{
    margin-right: 24px;
    color: #90909B;
    font-size: 16px
}
nav a:hover{
    color: #90909B
}
nav a.active{
    text-decoration: underline
}

.continue-creating-season{
    position: absolute;
    right: 20px;
    bottom: -60px;
}

.autoDrive{
    width: 18px;
    height: 18px;
    background: url('../img/auto-drive-S.png') no-repeat top;
}

#noPreCleaning{
    margin: 150px auto;
    padding: 30px;
    width: 600px;
    height: 220px;
    border-radius: 8px;
    border-width: 1px;
    border: 1px solid #007B26;
    text-align: center;
}

#cultureInfo,
.bunkersAndTractors{
    margin-bottom: 4px;
    padding: 8px;
    border-radius: 8px;
    border-width: 1px;
    border: 1px solid #007B26;
}
#cultureInfo td{
    white-space: nowrap
}
#cultureInfo td input[type="checkbox"]{
    transform: scale(1.5);
}
#cultureInfo td input[type="number"]{
    width: 81px;
    text-align: center;
}
#packingTime,
#operating_cost_per_hour,
#travel_speed_kmh,
#travel_speed_kpp,
#entry_interval_min,
.spRadius{
    width: 81px;
}

.form-control{
    display: inline;
}

#addPreCleaning{
    padding: 18px;
}

#freeTechnics{
    margin-bottom: 8px;
    padding: 10px;
    border-bottom: 1px solid #000;
}

.freeTechnicsCount{
    margin-left: 20px;
    width: 70px;
    height: 30px;
    color: #007B26;
    font-size: 20px;
    cursor: pointer;
}

#harvestersCount{
    background: url('../img/harvesters.png') no-repeat bottom right;
}
#bunkersCount{
    background: url('../img/bunkers.png') no-repeat top right;
}
#tractorsCount{
    background: url('../img/tractors.png') no-repeat top right;
}

.harvesterGroup,
.bunkerGroup,
.tractorGroup,
.harvesterYK,
.bunkerYK,
.tractorYK{
    margin: 4px;
    height: 27px;
    border-radius: 8px;
    background: #007B2633;
    border: 1px solid #007B264D
}
.harvesterYK{
    margin: 4px 0;
}
.bunkerYK,
.tractorYK{
    min-width: 100%;
}
.harvesterName,
.bunkerName,
.tractorName{
    padding-left: 18px;
    width: 550px;
    cursor: pointer;
}
.harvesterAddList,
.bunkerAddList,
.tractorAddList,
.harvesterDelList,
.bunkerDelList,
.tractorDelList{
    margin-top: 5px;
    height: 15px;
    cursor: pointer;
}
.harvesterAddList,
.bunkerAddList,
.tractorAddList{
    display: none;
}
.harvesterDelList,
.bunkerDelList,
.tractorDelList{
    float: right;
}
.harvesterGroupInfo,
.bunkerGroupInfo,
.tractorGroupInfo{
    display: none;
    margin: -5px 10px 0 10px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    background: #007B2633;
    border: 1px solid #007B264D
}

.filters{
    padding: 18px;
    height: 111px;
    border-radius: 8px;
    border-width: 1px;
    border: 1px solid #007B26
}

.bg-1{
    overflow: auto;
    height: 720px;
    border-radius: 8px;
    border-width: 1px;
    border: 1px solid #007B26
}

.map{
    margin-top: 18px;
    border-radius: 8px;
    border: 1px solid #007B26;
    overflow: hidden
}
.map-S{
    border-radius: 8px;
    border: 1px solid #007B26;
    overflow: hidden
}

#agroMap{
    width: 100%;
    height: 725px
}

.field-S{
    padding: 2px;
    border-radius: 4px;
    border-width: 1px;
    background: #007B260D;
    border: 1px solid #0000004D;
    color: #212125;
    font-size: 14px;
}
.field-S .fieldName{
    margin-bottom: 0;
    width: 120px;
    cursor: pointer;
}
.field-S .fieldAuto{
    padding-left: 30px;
    width: 90px;
    height: 18px;
    background: url(/img/auto-drive-S.png) no-repeat;
}
.field-S-info{
    display: none;
}
.fieldInfo{
    display: none;
    margin-top: -4px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    background: #e1f3e7;
    border: 1px solid #0000004D;
    border-top: none;
    color: #212125;
    font-size: 14px
}
.fieldName-S-info{
    font-size: 16px;
    width: 300px;
    cursor: pointer;
}
.fieldAuto-S-info{
    padding-left: 60px;
    width: 180px;
    height: 18px;
    background: url(/img/auto-drive-S.png) no-repeat;
}

.field-block .fieldName{
    width: 280px;
    cursor: pointer;
}
.field-block .fieldSort{
    font-size: 14px;
    line-height: 14px;
    width: 140px;
}
.field-block .fieldInfo{
    margin-top: -8px;
}

#fields, #repositories{
    overflow: hidden;
    overflow-y: auto;
    height: 794px;
    border-radius: 8px;
    border-width: 2px;
    border: 2px solid #007B26
}
#fields .field, #repositories .repository, .field-block .field{
    padding: 6px;
    border-radius: 8px;
    border-width: 1px;
    background: #007B260D;
    border: 1px solid #0000004D;
    color: #212125;
    font-size: 16px
}
.fieldUnloading{
    padding: 4px;
    height: 36px;
    border-radius: 4px;
    border-width: 1px;
    background: #007B260D;
    border: 1px solid #0000004D;
    color: #212125;
    font-size: 14px;
    line-height: 24px;
}
.unloadingName{
    width: 400px;
}
#fields .field .fieldName, .repositoryName{
    width: 300px;
    cursor: pointer;
}
#fields .field .fieldAuto, .field-block .field .fieldAuto{
    width: 72px;
    height: 27px;
    background: url(/img/auto-drive.png) no-repeat;
}
#fields .field .fieldSquare{
    width: 120px;
}
.repositoryTime{
    width: 180px;
}
#fields .field .fieldButton, .repositoryButton, .fieldButtonUnloading{
    display: flex;
    gap: 18px;
    align-items: center;
}
#fields .field .fieldButton img, .repositoryButton img, .fieldButtonUnloading img{
    display: block;
    height: 16px;
    cursor: pointer;
}
#fields .fieldInfo, #repositories .repositoryInfo{
    display: none;
    margin-top: -22px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    background: #e1f3e7;
    border: 1px solid #0000004D;
    color: #212125;
    font-size: 16px
}

#fieldSHPText, #fieldManuallyText, #fieldSHPPoint, #fieldSave, #fieldEditPoint, #typeCultureForm, .viewCultureForm, #buttonSortCultureForm, #setSort, #buttonForm{
    display: none
}

.buttonEdit{
    display:flex;
    gap:18px;
    align-items:center
}

.buttonEdit .edit{
    cursor: pointer;
}

.col-form-label{
    height: 20px;
    line-height: 14px;
}
.form-control, .custom-select{
    padding: 0 8px;
    height: 26px;
    line-height: 26px;
    font-size: 14px;
}

.viewsCulture{
    padding-left:8px;
    text-align:left;
    font-size:16px;
    line-height:30px;
}

.table thead th, .table td{
    /* text-align: center; */
    vertical-align: middle;
    padding: 4px 14px;
    /* font-size: 14px; */
}

.nav-tabs .nav-link.active{
    background-color: #007B2666;
    border-color: transparent;
    text-decoration: none;
}

.btn-green{
    font-size: 14px;
    color: #007B26;
    background: #007B2626;
}
.btn-green-w{
    font-size: 16px;
    color: #FFF;
    background: #007B26A6;
}
.btn-green-b{
    width: 100%;
    font-size: 16px;
    color: #00000080;
    background: #007B2616;
}

#messageFixed{
	position:absolute;
	top:0;
	left:50%;
	transform:translateX(-50%);
	width:550px;
	z-index:9999
}
.alert-arrow {
    border:1px solid #60c060;
	background-color:#FFF;
    color:#54a754;
}
.alert-arrow .alert-icon {
    position:relative;
    width:3rem;
    background-color:#60c060;
}
.alert-arrow .alert-icon::after {
    content:"";
    position:absolute;
    width:0;
    height:0;
    border-top:.75rem solid transparent;
    border-bottom:.75rem solid transparent;
    border-left:.75rem solid #60c060;
    right:-.74rem;
    top:50%;
    transform:translateY(-50%);
}
.alert-arrow .close {
    font-size:1rem;
    color:#cacaca;
}
/* warning */
.alert-arrow-warning {
	border:1px solid #fc9700;
	background-color:#FFF;
	color:#d68000;
}
.alert-arrow-warning .alert-icon {
	background-color:#fc9700;
}
.alert-arrow-warning .alert-icon::after {
	border-left:.75rem solid #fc9700;
}
/* danger */
.alert-arrow-danger {
	border:1px solid #da4932;
	background-color:#FFF;
	color:#ca452e;
}
.alert-arrow-danger .alert-icon {
	background-color:#da4932;
}
.alert-arrow-danger .alert-icon::after {
	border-left:.75rem solid #da4932;
}

#editForm{
    position: relative;
}

/* Стили для гос. номера */
.license-plate-container {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.plate-input-group {
    padding-left: 10px;
    display: flex;
    align-items: center;
    border: 1px solid #000;
    border-radius: 4px;
    height: 40px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.plate-input-group:focus-within {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.plate-input-group.valid {
    border-color: #27ae60;
    background: #f8fff9;
}

.plate-input-group.error {
    border-color: #e74c3c;
    background: #fff8f8;
}

.plate-input {
    text-align: center;
    height: 40px;
    font-size: 36px;
    border: none;
    border-radius: 0;
    background: transparent;
    transition: all 0.3s ease;
    text-transform: uppercase;
    outline: none;
    position: relative;
}

/* Стили для placeholder - делаем его еле заметным */
.plate-input::placeholder {
    color: #d1d5db; /* Очень светлый серый цвет */
    opacity: 0.6; /* Дополнительная прозрачность */
    font-weight: 300; /* Более тонкий шрифт */
}

.plate-input:nth-child(1) {
    width: 45px;
}

.plate-input:nth-child(2) {
    width: 70px;
}

.plate-input:nth-child(3) {
    width: 65px;
}

/* Разделители между полями */
.plate-input:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 30px;
    background: #e1e8ed;
}

.plate-input-group:focus-within .plate-input:not(:last-child)::after {
    background: #667eea;
}

.plate-input-group.valid .plate-input:not(:last-child)::after {
    background: #27ae60;
}

.plate-input-group.error .plate-input:not(:last-child)::after {
    background: #e74c3c;
}

.plate-region{
    margin-left: 16px;
    padding-left: 6px;   
    border-left: 1px solid #000;
    height: 40px;
}
.plate-input-region{
    border: none;
    background: transparent;
    width: 60px;
    height: 24px;
    padding: 0 5px;
    line-height: 24px;
    font-size: 24px;
    outline: none;
}
.plate-input-region::placeholder {
    color: #d1d5db; /* Очень светлый серый цвет */
    opacity: 0.6; /* Дополнительная прозрачность */
    font-weight: 300; /* Более тонкий шрифт */
}

.flag-icon {
    margin-top: -18px;
    padding-left: 6px; 
    width: 55px;
}

/* Цветовые состояния поля */
.field-block {
    border-radius: 4px;
    margin-bottom: 6px;
    border-left: 5px solid #ccc;
    transition: border-left-color 0.3s, background 0.3s;
    font-size: 14px;
}
.field-block.color-gray     { border-left-color: #9e9e9e; background: rgba(158,158,158,0.18); }
.field-block.color-green    { border-left-color: #4caf50; background: rgba(76,175,80,0.12); }
.field-block.color-yellow   { border-left-color: #ffc107; background: rgba(255,193,7,0.15); }
.field-block.color-red      { border-left-color: #f44336; background: rgba(244,67,54,0.12); }
.field-block.color-black    { border-left-color: #424242; background: rgba(66,66,66,0.15); }
.field-block.color-blue     { border-left-color: #2196f3; background: rgba(33,150,243,0.12); }
.field-block.color-harvested{ border-left-color: #4caf50; background: rgba(76,175,80,0.07); }
.field-block.color-active   { border-left-color: #9c27b0; background: rgba(156,39,176,0.15); outline: 2px solid #9c27b0; }
.field-header {
    cursor: pointer;
    padding: 6px 8px;
    display: flex;
    align-items: center;
}
.field-header:hover { background: rgba(0,0,0,0.04); }
.field-header .fieldName {
    font-size: 16px;
    font-weight: 600
}
.field-header .fieldAuto {
    width: 72px;
    height: 27px;
    background: url(/img/auto-drive.png) no-repeat;
}
.field-details {
    padding: 0 8px 6px 8px;
    font-size: 12px;
}
.field-details .table { margin-bottom: 4px; font-size: 12px; }
.field-details .route-btn {
    display: block;
    width: auto;
    margin-left: auto;
    font-size: 12px;
    padding: 2px 8px;
}

/* Стили для валидации */
.license-plate-container .validation-message {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 5px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.license-plate-container .validation-message.success {
    color: #27ae60;
}

.license-plate-container .validation-message.error {
    color: #e74c3c;
}

/* Стили для календаря */
.date-hint {
    display: block;
    color: #7f8c8d;
    font-size: 0.9em;
    margin-top: 5px;
    font-style: italic;
}

#date-input[readonly]  {
    cursor: pointer;
    background: #f8f9fa;
}

.calendar-popup {
    position: absolute;
    top: 200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    background: white;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    padding: 10px 5px;
}

.calendar-popup.show {
    display: block;
}

.calendar-container {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: flex-start;
}

.calendar {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
    position: relative;
}

.nav-btn {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: absolute;
    z-index: 2;
}

.nav-btn:hover {
    background: #5a6fd8;
    transform: scale(1.1);
}

#prev1, #prev2 {
    left: 0;
}

#next1, #next2 {
    right: 0;
}

.month-year-selector {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 50px;
}

.month-select, .year-select {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.month-select {
    min-width: 90px; /* Месяц - оптимальная ширина для равномерного расстояния */
}

.year-select {
    min-width: 60px; /* Год уже, так как 4 цифры */
}

.month-select:focus, .year-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.month-select:hover, .year-select:hover {
    border-color: #667eea;
    background: #f8f9fa;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
    justify-items: center;
    width: 100%;
    margin-bottom: 15px;
}

.weekday {
    text-align: center;
    font-weight: 600;
    color: #7f8c8d;
    padding: 10px 5px;
    font-size: 0.9em;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    justify-items: center;
    width: 100%;
}

.day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 35px;
    height: 40px;
}

.day:hover {
    background: #e3f2fd;
    border-color: #2196f3;
}

.day.selected {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.day.range-start {
    background: #667eea;
    color: white;
    border-color: #667eea;
    font-weight: bold;
    position: relative;
}

.day.range-start:hover {
    background: #5a6fd8;
    border-color: #5a6fd8;
    transform: scale(1.05);
}

.day.range-start::after {
    content: 'Начало';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #667eea;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
    z-index: 1001;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.day.range-end {
    background: #27ae60;
    color: white;
    border-color: #27ae60;
    font-weight: bold;
    position: relative;
}

.day.range-end:hover {
    background: #229954;
    border-color: #229954;
    transform: scale(1.05);
}

.day.range-end::after {
    content: 'Конец';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #27ae60;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
    z-index: 1001;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.day.in-range {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #1976d2;
    position: relative;
}

.day.in-range::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(33, 150, 243, 0.1) 50%, transparent 70%);
    border-radius: 8px;
    pointer-events: none;
}

/* Стили для предварительного диапазона при наведении */
.day.in-range:hover {
    background: #bbdefb;
    border-color: #1976d2;
    color: #0d47a1;
}

.day.disabled {
    color: #bdc3c7;
    cursor: not-allowed;
    background: #f5f5f5;
}

.day.empty {
    visibility: hidden;
    pointer-events: none;
    background: transparent;
    border: none;
    cursor: default;
}

.day.today {
    border-color: #f39c12;
    font-weight: bold;
}

.calendar-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.action-btn {
    padding: 6px 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn {
    background: #95a5a6;
    color: white;
}

.cancel-btn:hover {
    background: #7f8c8d;
}

.apply-btn {
    background: #27ae60;
    color: white;
}

.apply-btn:hover {
    background: #229954;
}

/* Кнопка отправки */
.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Оверлей */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay.show {
    display: block;
    opacity: 1;
}

/* Результат */
.result {
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    display: none;
}

.result.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.result.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Графики */
    #line-menu {
      min-width: 160px;
      font-size: 14px;
    }

    #line-menu .menu {
      cursor: pointer;
      padding: 6px 8px;
      margin-bottom: 4px;
      border-radius: 4px;
      border: 1px solid transparent;
      user-select: none;
      transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
      /* цвета и прозрачность назначаются из JS, чтобы учитывать data-color */
    }

    #line-menu .menu.menu-active {
      font-weight: 600;
    }

    #line {
      position: relative;
      flex: 1 1 auto;
      /* max-width: 900px; */
      height: 600px; /* фиксированная высота */
      border: 1px solid #ccc;
      box-sizing: border-box;
    }

    /* Сырые данные скрываем, используем только для построения */
    #line .graphics {
      display: none;
    }

    .chart-controls {
      position: absolute;
      top: 1px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 14px;
      user-select: none;
    }

    .chart-controls button {
      padding: 2px 8px;
      cursor: pointer;
    }

    .chart-tooltip {
      position: absolute;
      width: 220px;
      background: rgba(0, 0, 0, 0.85);
      color: #fff;
      padding: 6px 10px;
      font-size: 12px;
      border-radius: 4px;
      pointer-events: none;
      z-index: 10;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
      display: none;
      box-sizing: border-box;
    }

    .chart-axis-text {
      font-size: 10px;
      fill: #555;
    }

    .chart-axis-line {
      stroke: #777;
      stroke-width: 1;
    }

    .chart-grid-line {
      stroke: #eee;
      stroke-width: 1;
    }

    .series-group {
      transform-origin: 50% 100%;
      transform-box: fill-box;
      transition: transform 0.4s ease, opacity 0.4s ease;
    }

    .series-group.series-appearing {
      transform: scaleY(0);
      opacity: 0;
    }

    .series-group.series-hiding {
      transform: scaleY(0);
      opacity: 0;
    }
/* ── Outlined input fields (harvester type form) ── */
.ht-outlined-field {
    position: relative;
}
.ht-outlined-input {
    border: 1.5px solid #bbb;
    border-radius: 4px;
    padding: 22px 10px 6px 10px;
    font-size: 15px;
    height: auto;
    background: #fff;
    width: 100%;
    outline: none;
    transition: border-color 0.2s;
    -moz-appearance: textfield;
}
.ht-outlined-input:focus {
    border-color: #555;
}
.ht-outlined-input::-webkit-inner-spin-button,
.ht-outlined-input::-webkit-outer-spin-button {
    opacity: 1;
}
.ht-outlined-label {
    position: absolute;
    top: 5px;
    left: 10px;
    font-size: 11px;
    color: #888;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    max-width: calc(100% - 14px);
    text-overflow: ellipsis;
}
.ht-speeds-label {
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
}

/* ===== Главная страница «Дирижёр» ===== */
.home-hero{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #007B26 0%, #00A33A 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0,123,38,.18);
}
.home-hero-text{flex: 1; max-width: 1200px}
.home-title{
    margin: 0 0 4px 0;
    font-size: 44px;
    font-weight: 700;
    letter-spacing: .5px;
}
.home-subtitle{
    margin: 0 0 14px 0;
    font-size: 18px;
    opacity: .9;
    font-weight: 300;
}
.home-lead{
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
    max-width: 1100px;
    opacity: .95;
}
.home-hero-icon{
    margin-left: 32px;
    flex-shrink: 0;
}
.home-hero-icon i{
    font-size: 96px;
    opacity: .25;
}

.home-section-title{
    margin: 0 0 16px 0;
    font-size: 20px;
    font-weight: 600;
    color: #212125;
}
.home-section-title i{color: #007B26}

.home-features .col-md-6,
.home-features .col-lg-4{
    padding: 6px;
}
.home-feature{
    display: flex;
    align-items: flex-start;
    height: 100%;
    padding: 16px 18px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #007B264D;
    transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.home-feature:hover{
    box-shadow: 0 4px 14px rgba(0,123,38,.12);
    border-color: #007B26;
    transform: translateY(-2px);
}
.home-feature-icon{
    flex-shrink: 0;
    margin-right: 14px;
    width: 44px;
    height: 44px;
    font-size: 22px;
    color: #007B26;
    background: #007B260D;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.home-feature-title{
    margin-bottom: 2px;
    font-size: 16px;
    font-weight: 600;
    color: #212125;
}
.home-feature-text{
    font-size: 14px;
    color: #555;
    line-height: 1.45;
}

.home-tiles{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.home-tile{
    display: flex;
    align-items: center;
    padding: 16px 18px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #007B264D;
    color: #212125;
    text-decoration: none;
    transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease, background .15s ease;
}
.home-tile:hover{
    text-decoration: none;
    color: #212125;
    background: #007B260D;
    border-color: #007B26;
    box-shadow: 0 4px 14px rgba(0,123,38,.12);
    transform: translateY(-2px);
}
.home-tile-icon{
    flex-shrink: 0;
    margin-right: 14px;
    width: 44px;
    height: 44px;
    font-size: 22px;
    color: #007B26;
    background: #007B260D;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.home-tile-title{
    font-size: 15px;
    font-weight: 600;
}
.home-tile-wide{
    width: 100%;
    padding: 20px 24px;
    background: linear-gradient(90deg, #007B260D 0%, #fff 60%);
}
.home-tile-wide .home-tile-icon{
    width: 56px;
    height: 56px;
    font-size: 28px;
    margin-right: 18px;
    background: #007B26;
    color: #fff;
}
.home-tile-wide .home-tile-body{flex: 1}
.home-tile-label{
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #007B26;
    font-weight: 600;
}
.home-tile-wide .home-tile-title{
    font-size: 20px;
    margin: 2px 0;
}
.home-tile-hint{
    font-size: 13px;
    color: #555;
}
.home-tile-hint i{transition: transform .15s ease}
.home-tile-wide:hover .home-tile-hint i{transform: translateX(4px)}

/* ===== Страница «Справочники» ===== */
.references-hero{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-radius: 12px;
    background: linear-gradient(135deg, #007B26 0%, #00A33A 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0,123,38,.18);
}
.references-hero-text{flex: 1}
.references-title{
    margin: 0 0 4px 0;
    font-size: 28px;
    font-weight: 700;
}
.references-subtitle{
    margin: 0;
    font-size: 15px;
    opacity: .9;
    font-weight: 300;
}
.references-summary{
    display: flex;
    gap: 32px;
    margin-left: 32px;
}
.references-summary-item{text-align: center}
.references-summary-value{
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
}
.references-summary-label{
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .8px;
    opacity: .85;
}

.references-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.reference-card{
    position: relative;
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #007B264D;
    color: #212125;
    text-decoration: none;
    transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.reference-card:hover{
    text-decoration: none;
    color: #212125;
    border-color: #007B26;
    box-shadow: 0 6px 18px rgba(0,123,38,.15);
    transform: translateY(-3px);
}
.reference-card-icon{
    flex-shrink: 0;
    margin-right: 16px;
    width: 56px;
    height: 56px;
    font-size: 26px;
    color: #007B26;
    background: #007B260D;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.reference-card:hover .reference-card-icon{
    background: #007B26;
    color: #fff;
}
.reference-card-body{flex: 1; min-width: 0}
.reference-card-title{
    font-size: 14px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 4px;
}
.reference-card-count{
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.reference-card-number{
    font-size: 28px;
    font-weight: 700;
    color: #007B26;
    line-height: 1;
}
.reference-card-unit{
    font-size: 13px;
    color: #90909B;
}
.reference-card-extra{
    margin-top: 6px;
    font-size: 12px;
    color: #555;
}
.reference-card-extra i{color: #007B26}
.reference-card-arrow{
    position: absolute;
    top: 16px;
    right: 18px;
    color: #007B264D;
    font-size: 13px;
    transition: transform .15s ease, color .15s ease;
}
.reference-card:hover .reference-card-arrow{
    color: #007B26;
    transform: translateX(3px);
}

.reference-card-empty .reference-card-number{color: #90909B}
.reference-card-empty .reference-card-icon{
    color: #90909B;
    background: #90909B1A;
}
.reference-card-empty:hover .reference-card-icon{
    background: #007B26;
    color: #fff;
}

/* ===== Боковое меню сезона (правая панель на /seasons) ===== */
.season-side-menu{
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.season-side-menu-item{
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #007B2633;
    color: #212125;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.season-side-menu-item:hover{
    text-decoration: none;
    color: #212125;
    background: #007B260D;
    border-color: #007B26;
    box-shadow: 0 2px 8px rgba(0,123,38,.10);
    transform: translateX(2px);
}
.season-side-menu-icon{
    flex-shrink: 0;
    width: 18px;
    margin-right: 12px;
    font-size: 14px;
    color: #007B26;
    text-align: center;
}
.season-side-menu-label{
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}
.season-side-menu-arrow{
    font-size: 11px;
    color: #007B264D;
    transition: transform .15s ease, color .15s ease;
}
.season-side-menu-item:hover .season-side-menu-arrow{
    color: #007B26;
    transform: translateX(3px);
}
.season-side-menu-item.disabled{
    cursor: not-allowed;
    color: #B0B0B8;
    background: #FAFAFA;
    border-color: #E5E5E5;
}
.season-side-menu-item.disabled .season-side-menu-icon{color: #B0B0B8}
.season-side-menu-item.disabled:hover{
    background: #FAFAFA;
    border-color: #E5E5E5;
    box-shadow: none;
    transform: none;
}

.section-menu-title{
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 4px 0;
    font-size: 12px;
    font-weight: 600;
    color: #6C757D;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.section-menu-title i{
    font-size: 13px;
    color: #007B26;
}
.calc-block{
    padding: 12px 12px 6px;
    border-radius: 10px;
    background: #007B2606;
    border: 1px solid #007B2620;
}
.calc-stats{
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.calc-stat-card{
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #E5E5E5;
    border-left: 4px solid #B0B0B8;
    transition: box-shadow .15s ease, transform .15s ease;
}
.calc-stat-card:hover{
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transform: translateX(2px);
}
.calc-stat-icon{
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    margin-right: 12px;
    font-size: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F4F4F6;
    color: #B0B0B8;
}
.calc-stat-body{flex: 1; min-width: 0}
.calc-stat-label{
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #90909B;
    line-height: 1.2;
    margin-bottom: 2px;
}
.calc-stat-value{
    font-size: 17px;
    font-weight: 700;
    color: #212125;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.calc-stat-unit{
    font-size: 12px;
    font-weight: 400;
    color: #90909B;
    margin-left: 2px;
}
.calc-stat-pct{
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    color: #007B26;
    background: #007B2620;
}

.calc-stat-potential{border-left-color: #6C757D}
.calc-stat-potential .calc-stat-icon{background: #6C757D1A; color: #6C757D}

.calc-stat-harvested{border-left-color: #17A2B8}
.calc-stat-harvested .calc-stat-icon{background: #17A2B81A; color: #17A2B8}

.calc-stat-costs{border-left-color: #FD7E14}
.calc-stat-costs .calc-stat-icon{background: #FD7E141A; color: #FD7E14}
.calc-stat-costs .calc-stat-value{color: #FD7E14}

.calc-stat-positive{
    border-left-color: #007B26;
    background: linear-gradient(90deg, #007B260D 0%, #fff 60%);
}
.calc-stat-positive .calc-stat-icon{background: #007B26; color: #fff}
.calc-stat-positive .calc-stat-value{color: #007B26; font-size: 19px}

.calc-stat-negative{
    border-left-color: #DC3545;
    background: linear-gradient(90deg, #DC35450D 0%, #fff 60%);
}
.calc-stat-negative .calc-stat-icon{background: #DC3545; color: #fff}
.calc-stat-negative .calc-stat-value{color: #DC3545; font-size: 19px}

/* ===== Список полей сезона (seasonInfoFields — правая колонка) ===== */
#fields-info{
    overflow: hidden;
    overflow-y: auto;
    max-height: 800px;
    padding-right: 4px;
}
#fields-info .field{
    padding: 6px 8px;
    margin-bottom: 4px;
    border-radius: 8px;
    background: #007B260D;
    border: 1px solid #0000004D;
    color: #212125;
    font-size: 15px;
    align-items: center;
}
#fields-info .field .fieldName{
    flex: 0 0 90px;
    cursor: pointer;
    font-weight: 600;
}
#fields-info .field .fieldAuto{
    flex: 0 0 90px;
    height: 18px;
    background: url(/img/auto-drive-S.png) no-repeat;
}
#fields-info .field .fieldSort{
    flex: 1;
    font-size: 13px;
    line-height: 16px;
    padding: 0 6px;
}
#fields-info .field .fieldSquare{
    flex: 0 0 75px;
    text-align: right;
    font-size: 14px;
    font-weight: 500;
}
#fields-info .fieldInfo{
    display: none;
    margin: -4px 8px 6px 8px;
    border-radius: 0 0 8px 8px;
    background: #e1f3e7;
    border: 1px solid #0000004D;
    border-top: none;
    font-size: 13px;
}
#fields-info .fieldInfo .table{margin-bottom: 0; font-size: 13px}
#fields-info .fieldInfo .table td{padding: .35rem .5rem}

/* ===== Profile page ===== */
#profile-page{
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 16px;
    background: linear-gradient(180deg, #FAFAFD 0%, #f1f7f2 100%);
}
#profile-card{
    width: 100%;
    max-width: 560px;
    background: #fff;
    border-radius: 16px;
    padding: 32px 36px;
    box-shadow: 0 10px 30px rgba(0, 123, 38, .08), 0 2px 8px rgba(0,0,0,.04);
    border: 1px solid #E8EEEA;
}
#profile-card .profile-header{
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #EEF2EF;
}
#profile-card .profile-header h3{
    margin: 0;
    color: #1a1a1a;
    font-weight: 600;
}

#profile-card .profile-org{
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    margin-bottom: 28px;
    background: #f1f9f3;
    border: 1px solid #c9e6d2;
    border-radius: 12px;
}
#profile-card .profile-org-icon{
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #007B26;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0,123,38,.25);
}
#profile-card .profile-org-body{flex: 1; min-width: 0}
#profile-card .profile-org-label{
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #6b8a73;
    margin-bottom: 2px;
}
#profile-card .profile-org-title{
    font-size: 20px;
    line-height: 1.3;
    color: #0d3d1c;
    word-break: break-word;
}
#profile-card .profile-org-title b{font-weight: 700}
#profile-card .profile-org-hint{
    margin-top: 6px;
    font-size: 12px;
    color: #6b8a73;
}

#profile-card .profile-field{
    margin-bottom: 18px;
}
#profile-card .profile-field label{
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #4a5a4f;
    font-weight: 500;
}
#profile-card .profile-input{
    display: block !important;
    width: 100%;
    height: 42px;
    line-height: 42px;
    padding: 0 14px;
    font-size: 15px;
    color: #1a1a1a;
    background: #fff;
    border: 1px solid #d8e1dc;
    border-radius: 10px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
    font-family: inherit;
}
#profile-card select.profile-input{
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3e%3cpath fill='none' stroke='%23007B26' stroke-width='2' d='M1 1l5 5 5-5'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}
#profile-card .profile-input:focus{
    border-color: #007B26;
    box-shadow: 0 0 0 3px rgba(0,123,38,.15);
}
#profile-card .profile-input::placeholder{color: #c4ccc7}

#profile-card .profile-hint{
    margin-top: 6px;
    font-size: 12px;
    color: #8a9890;
}

#profile-card .profile-actions{
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #EEF2EF;
}
#profile-card .btn-cancel,
#profile-card .btn-save{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 22px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
    text-decoration: none;
}
#profile-card .btn-cancel{
    color: #6b7a72;
    background: #fff;
    border-color: #d8e1dc;
}
#profile-card .btn-cancel:hover{
    color: #1a1a1a;
    border-color: #b9c6bf;
    text-decoration: none;
}
#profile-card .btn-save{
    color: #fff;
    background: #007B26;
    border-color: #007B26;
    box-shadow: 0 4px 12px rgba(0,123,38,.25);
}
#profile-card .btn-save:hover{
    background: #00691f;
    border-color: #00691f;
    box-shadow: 0 6px 16px rgba(0,123,38,.3);
}

/* ===== Field card — кнопка «симуляция» в шапке ===== */
.field-header .sim-btn{
    margin-left: 8px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: transparent;
    color: #007B26;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    opacity: .85;
    transition: opacity .15s, transform .15s;
}
.field-header .sim-btn:hover{
    opacity: 1;
    transform: scale(1.1);
}
.field-header .sim-btn:focus{outline: none}

/* ===== Harvest Simulator Modal ===== */
body.sim-modal-open{overflow: hidden}

.sim-modal{
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.sim-modal-backdrop{
    position: absolute;
    inset: 0;
    background: rgba(15, 30, 20, .55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.sim-modal-window{
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: 92vh;
    max-height: 92vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 123, 38, .25), 0 4px 16px rgba(0,0,0,.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #E8EEEA;
}

.sim-modal-header{
    flex: 0 0 auto;
    padding: 16px 24px;
    border-bottom: 1px solid #EEF2EF;
    background: linear-gradient(180deg, #ffffff 0%, #f5faf6 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sim-modal-header h4{
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}
.sim-modal-header .sim-field-name{
    color: #007B26;
    font-weight: 700;
}
.sim-modal-close{
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: #6b7a72;
    font-size: 18px;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.sim-modal-close:hover{
    background: #f1f7f2;
    color: #1a1a1a;
}

.sim-modal-body{
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    gap: 0;
}
.sim-stage{
    flex: 1 1 auto;
    min-width: 0;
    background:
        repeating-linear-gradient(45deg, #f9fdfa 0 10px, #f3f9f4 10px 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.sim-placeholder{
    text-align: center;
    color: #5a6b62;
    padding: 40px;
    background: #fff;
    border: 2px dashed #c9e6d2;
    border-radius: 16px;
    max-width: 480px;
}
.sim-placeholder b{color: #007B26}

.sim-sidebar{
    flex: 0 0 300px;
    border-left: 1px solid #EEF2EF;
    background: #fafbfa;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.sim-sidebar > div{
    padding: 16px;
    border-bottom: 1px solid #EEF2EF;
}
.sim-sidebar > div:last-child{border-bottom: none}
.sim-params-title{
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #6b8a73;
    margin-bottom: 10px;
    font-weight: 600;
}
.sim-param{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 4px 0;
    font-size: 14px;
}
.sim-param span{color: #5a6b62}
.sim-param b{color: #1a1a1a}

.sim-combines{flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column}
.sim-combines-list{
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
}
.sim-combine-row{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed #e3ebe6;
}
.sim-combine-row:last-child{border-bottom: none}
.sim-combine-color{
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    border-radius: 3px;
}
.sim-combine-info{flex: 1 1 auto; min-width: 0; font-size: 13px}
.sim-combine-name{font-weight: 600; color: #1a1a1a}
.sim-combine-stats{color: #6b8a73; font-size: 12px}
.sim-combine-fill{
    width: 100%;
    height: 6px;
    background: #e8eeea;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}
.sim-combine-fill > div{
    height: 100%;
    background: #007B26;
    width: 0;
    transition: width .2s;
}

.sim-clock-box{
    text-align: center;
    padding: 18px 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f1f9f3 100%);
}
.sim-clock{
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 36px;
    font-weight: 700;
    color: #007B26;
    letter-spacing: 2px;
    line-height: 1;
}
.sim-clock-label{
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #6b8a73;
    margin-top: 4px;
}

.sim-modal-footer{
    flex: 0 0 auto;
    padding: 14px 24px;
    border-top: 1px solid #EEF2EF;
    background: #fafbfa;
    display: flex;
    align-items: center;
    gap: 14px;
}
.sim-play{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #007B26;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,123,38,.25);
    transition: background .15s, transform .1s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sim-play:hover:not(:disabled){background: #00691f; transform: scale(1.05)}
.sim-play:disabled{background: #b9c6bf; cursor: not-allowed; box-shadow: none}
.sim-timeline{
    flex: 1 1 auto;
    height: 6px;
    accent-color: #007B26;
    cursor: pointer;
}
.sim-timeline:disabled{cursor: not-allowed; opacity: .6}
.sim-time{
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 14px;
    color: #5a6b62;
    min-width: 110px;
    text-align: right;
}
.sim-speed-label{
    margin: 0;
    font-size: 14px;
    color: #5a6b62;
    display: flex;
    align-items: center;
    gap: 4px;
}
.sim-speed{
    border: 1px solid #d8e1dc;
    background: #fff;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 14px;
    cursor: pointer;
}
.sim-speed:disabled{background: #f1f5f2; cursor: not-allowed}

/* ===== Simulator SVG-сцена ===== */
.sim-stage{
    flex-direction: column;
    padding: 16px;
    gap: 8px;
}
.sim-svg{
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    background:
        repeating-linear-gradient(45deg, #f9fdfa 0 14px, #f3f9f4 14px 28px);
    border-radius: 12px;
    border: 1px solid #d8e1dc;
}
.sim-field-poly{
    fill: #f6e9a8;
    stroke: #b48b1e;
    stroke-width: 0.6;
    fill-opacity: .85;
    stroke-linejoin: round;
}
.sim-swath{
    stroke: #c98e1e;
    stroke-width: 0.25;
    stroke-opacity: .55;
    fill: none;
    stroke-dasharray: 2 2;
}
.sim-dir-arrow{
    stroke: #007B26;
    stroke-width: 0.8;
    fill: none;
    stroke-linecap: round;
}
.sim-unload-marker{
    fill: #ff9800;
    stroke: #b35900;
    stroke-width: 0.4;
}

.sim-stage-legend{
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #EEF2EF;
    border-radius: 10px;
    font-size: 12px;
    color: #5a6b62;
}
.sim-leg-item{display: flex; align-items: center; gap: 6px}
.sim-leg-swatch{
    width: 14px; height: 14px;
    border-radius: 3px;
    display: inline-block;
    border: 1px solid rgba(0,0,0,.1);
}
.sim-leg-field{background: #f6e9a8; border-color: #b48b1e}
.sim-leg-swath{
    background: transparent;
    border: 1px dashed #c98e1e;
    height: 6px;
    margin-top: 4px;
    border-radius: 0;
}
.sim-leg-dir{background: #007B26; border-color: #007B26; height: 4px; margin-top: 5px}
.sim-leg-unload{background: #ff9800; border-color: #b35900; border-radius: 50%}

/* ===== Симуляция: сводка в сайдбаре ===== */
.sim-summary{
    padding: 16px;
    border-bottom: 1px solid #EEF2EF;
    background: #f7faf8;
}
.sim-summary .sim-params-title{
    display: flex;
    align-items: center;
    gap: 8px;
}
.sim-tag{
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: .3px;
}
.sim-tag-plan{background: #d4ecd9; color: #006621}
.sim-tag-fact{background: #fde6c2; color: #8a4500}

/* ===== Иконки техники в SVG-сцене ===== */
.sim-swath-done{
    stroke-width: 1.4;
    stroke-linecap: round;
    pointer-events: none;
}
.sim-combine .sim-combine-body{
    stroke: rgba(0,0,0,.4);
    stroke-width: 0.5;
}
.sim-combine.sim-combine-idle .sim-combine-body{
    stroke: #b00020;
    stroke-width: 1.2;
}
.sim-bunker .sim-bunker-body{
    fill: #3a8a3a;
    stroke: rgba(0,0,0,.4);
    stroke-width: 0.5;
}
.sim-bunker.sim-bunker-full .sim-bunker-body{
    fill: #ff9800;
}
.sim-bunker.sim-bunker-load .sim-bunker-body{
    fill: #6cb46c;
}
.sim-icon-label{
    fill: #fff;
    font-weight: 700;
    pointer-events: none;
    user-select: none;
    font-family: Arial, sans-serif;
}

/* ===== Блок «Бункеры-перегрузчики» в сайдбаре ===== */
.sim-bunkers{flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column}
.sim-bunkers-list{
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
}
.sim-bunker-row{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed #e3ebe6;
}
.sim-bunker-row:last-child{border-bottom: none}
.sim-bunker-num{
    flex: 0 0 28px;
    width: 28px; height: 28px;
    border-radius: 8px;
    background: #3a8a3a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}
.sim-bunker-info{flex: 1 1 auto; min-width: 0; font-size: 12px}
.sim-bunker-state{margin-bottom: 2px}
.sim-bunker-state-tag{
    display: inline-block;
    padding: 1px 8px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    background: #e8eeea;
    color: #4a5a4f;
}
.sim-bunker-st-load     {background: #d4ecd9; color: #006621}
.sim-bunker-st-travel-ld{background: #fde6c2; color: #8a4500}
.sim-bunker-st-unload   {background: #fcd4d4; color: #841717}
.sim-bunker-st-travel-em{background: #e0e7ff; color: #1e3a8a}
.sim-bunker-st-maneuver {background: #fef3c7; color: #7c5400}
.sim-bunker-st-wait     {background: #e8eeea; color: #4a5a4f}
.sim-bunker-st-done     {background: #c9e6d2; color: #1a4823}
.sim-bunker-meta{color: #6b8a73; font-size: 11px; margin-bottom: 4px}
.sim-bunker-fill{
    width: 100%;
    height: 5px;
    background: #e8eeea;
    border-radius: 3px;
    overflow: hidden;
}
.sim-bunker-fill > div{
    height: 100%;
    background: #3a8a3a;
    width: 0;
    transition: width .2s;
}

