* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #d9dde3;  /* серый фон */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Обёртка: логотип + форма колонкой */
.page-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

/* Логотип сверху */

.logo-block a {
    text-decoration: none;
    display: inline-block;
}

.logo-block a:hover {
    opacity: 0.8;
    transition: 0.3s;
}

.logo-block {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
}

.logo-block img {
    max-width: 280px;
    height: auto;
    display: inline-block;
}

/* Форма */
.container {
    max-width: 380px; /* было 440px */
    width: fit-content;
    min-width: 320px;
    background: white;
    padding: 24px 28px;
    border-radius: 13px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
h1 {
    text-align: center;
    color: #333;
    margin-bottom: 22px;
    font-size: 22px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #555;
    font-size: 13px;
}

select, input {
    width: 100%;
    padding: 9px 11px;
    border: 2px solid #e0e0e0;
    border-radius: 7px;
    font-size: 13px;
    transition: all 0.3s ease;
    background: #fafafa;
    box-sizing: border-box;
}

select:focus, input:focus {
    border-color: #1a7fd4;
    outline: none;
    background: white;
    box-shadow: 0 0 0 4px rgba(26, 127, 212, 0.15);
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
}

input[readonly] {
    background: #f0f2f5;
    color: #333;
    cursor: default;
    border-color: #e8e8e8;
}

input[readonly]:focus {
    border-color: #e8e8e8;
    box-shadow: none;
}

#loading {
    text-align: center;
    color: #888;
    margin-top: 9px;
    font-size: 13px;
}

/* ============================================
   ОБЩИЙ СТИЛЬ КНОПОК (для всех страниц)
   ============================================ */
.btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: #1a7fd4;
    color: #ffffff;
    border: 2px solid #1a7fd4;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(26, 127, 212, 0.3);
}

.btn:hover {
    background: #005a9e;
    border-color: #005a9e;
    box-shadow: 0 4px 12px rgba(0, 90, 158, 0.4);
}

.btn:active {
    transform: scale(0.97);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Узкая кнопка (для печати этикеток) */
.btn-small {
    width: 72%;
    margin: 10px auto 0;
    padding: 9px 14px;
    font-size: 13px;
    transition: 0.3s;
}

.btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 90, 158, 0.4);
}

.btn-small:active {
    transform: scale(0.97);
}

/* Адаптивность */
@media (max-width: 480px) {
    .container {
        padding: 20px 18px;
    }
    h1 {
        font-size: 20px;
    }
}
/* Кликабельный логотип */
.logo-block a {
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.logo-block a:hover img {
    opacity: 0.8;
    transition: 0.3s;
}
/* Навигация (кнопки Корректировка / Факт маркировки) */
/* Навигация (контейнер) */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.nav-links a {
    display: inline-block;
    padding: 9px 18px;
    background: #1a7fd4;      /* ← синий фон */
    color: #ffffff;           /* ← белый текст */
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border: 2px solid #1a7fd4;
    border-radius: 8px;
    transition: 0.3s;
    box-shadow: 0 2px 6px rgba(26, 127, 212, 0.3);
}

.nav-links a:hover {
    background: #005a9e;      /* ← темнее при наведении */
    border-color: #005a9e;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 90, 158, 0.4);
}

.nav-links a:hover {
    background: #005a9e;
    border-color: #005a9e;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 90, 158, 0.4);
}
.nav-links a:active {
    transform: scale(0.97);
}
/* Кнопки в панели управления */
.site-links .btn {
    width: auto;
    padding: 9px 18px;
    font-size: 13px;
    margin: 0;
}

.panel-links .btn {
    width: auto;
    padding: 10px 24px;
    font-size: 14px;
    margin: 0;
}
/* Эффект при наведении на кнопки в панели */
.site-links .btn:hover,
.panel-links .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 90, 158, 0.4);
}

.site-links .btn:active,
.panel-links .btn:active {
    transform: scale(0.97);
}
/* Узкая кнопка (для навигации / панели) */
.btn-inline {
    display: inline-block;
    width: auto;
    padding: 9px 18px;
    font-size: 13px;
    margin: 0;
    transition: 0.3s;
}

.btn-inline:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 90, 158, 0.4);
}

.btn-inline:active {
    transform: scale(0.97);
}
