/* 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
}

.flex-grow-1{flex-grow: 1 !important}

#login-window{
    background: #fff;
    padding: 1rem;
    width: 100%;
    max-width: 24rem;
    border-radius: .5rem
}

*::-webkit-scrollbar{width: 4px;height: 4px;}
*::-webkit-scrollbar-thumb {background-color: #007E3C; border-radius: 2px; border: 1px solid rgba(128,128,128,.1);}
*::-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;
}

#noPreCleaning{
    margin: 150px auto;
    padding: 30px;
    width: 600px;
    height: 220px;
    border-radius: 8px;
    border-width: 1px;
    border: 1px solid #007B26;
    text-align: center;
}

#cultureInfo{
    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{
    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;
}

#harvestersCount{
    background: url('../img/harvesters.png') no-repeat right;
}
#bunkersCount{
    background: url('../img/bunkers.png') no-repeat right;
}
#tractorsCount{
    background: url('../img/tractors.png') no-repeat 22px;
}

.harvesterGroup,
.harvesterPreCleaning{
    margin: 4px;
    height: 27px;
    border-radius: 8px;
    background: #007B2633;
    border: 1px solid #007B264D
}
.harvesterPreCleaning{
    margin: 4px 0;
}
.harvesterName{
    padding-left: 18px;
    width: 550px;
    cursor: pointer;
}
.harvesterAddList,
.harvesterDelList{
    margin-top: 5px;
    height: 15px;
    cursor: pointer;
}
.harvesterAddList{
    display: none;
}
.harvesterDelList{
    float: right;
}
.harvesterInfo{
    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;
}

#fields, #repositories{
    overflow: hidden;
    overflow-y: auto;
    height: 794px;
    border-radius: 8px;
    border-width: 2px;
    border: 2px solid #007B26
}
#fields .field, #repositories .repository{
    padding: 12px;
    height: 55px;
    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{
    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;
}

/* Стили для валидации */
.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: 0;
    right: 0;
    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;
}