/* Стили для генератора QR-этикеток */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}
h1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 0;
}
.section {
    padding: 30px;
    border-bottom: 1px solid #eee;
}
.section:last-child {
    border-bottom: none;
}
h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8em;
}
.input-group {
    margin-bottom: 20px;
}
label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}
textarea, input[type="text"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}
textarea:focus, input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
textarea {
    height: 150px;
    resize: vertical;
    font-family: monospace;
}
small {
    color: #666;
    font-size: 0.9em;
    margin-top: 5px;
    display: block;
}
.constants-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}
.generate-btn, .pdf-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.2em;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    font-weight: 600;
}
.generate-btn:hover, .pdf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.label-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    max-height: 600px;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}
.label {
    background: white;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.qr-code {
    margin-bottom: 10px;
}
.label-info {
    font-size: 0.9em;
    line-height: 1.4;
}
.code-display {
    font-weight: bold;
    margin-bottom: 8px;
    font-family: monospace;
    font-size: 1.1em;
}
.code-suffix {
    background: #333;
    color: white;
    padding: 2px 4px;
    border-radius: 3px;
}
.delivery-number, .quantity, .legal-entity {
    margin-bottom: 5px;
    color: #555;
}
.status {
    text-align: center;
    padding: 20px;
    font-size: 1.1em;
    font-weight: bold;
}
.status.success { color: green; }
.status.error { color: red; }
.status.info { color: blue; }
.spreadsheet {
    border-collapse: collapse;
    width: 100%;
    min-width: 500px;
    background: #fff;
    margin-bottom: 10px;
}
.spreadsheet th, .spreadsheet td {
    border: 1px solid #bbb;
    padding: 1px 1px;
    min-width: 80px;
    text-align: left;
    font-size: 1em;
}
.spreadsheet td {
    background: #f9f9f9;
    cursor: pointer;
}
.spreadsheet td:focus {
    outline: 2px solid #667eea;
    background: #e6eaff;
}
.table-hint {
    color: #888;
    font-size: 16px;
    margin-top: 2px;
} 