.plp-container {
    font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
    max-width: 1400px;
    margin: 20px auto;
    background: #ffffff;
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}
.plp-container h2 {
    margin-top: 0;
    color: #222;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 18px;
}
.plp-form {
    background: linear-gradient(135deg, #fdfdfd 0%, #f5f7fb 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #e8ebf1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.plp-form-section {
    background: #fff;
    border: 1px solid #e8ebf1;
    border-radius: 10px;
    padding: 14px 16px;
}
.plp-form-section h3 {
    margin: 0 0 10px 0;
    font-size: 15px;
    color: #222;
    font-weight: 700;
}
.plp-form .plp-row {
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 120px;
    gap: 12px;
    align-items: center;
}
.plp-row label {
    font-weight: 600;
    color: #48515f;
    font-size: 14px;
}
.plp-row input {
    padding: 10px 12px;
    border: 1px solid #cfd7e3;
    border-radius: 8px;
    width: 100%;
    font-size: 15px;
    background: #fff;
    box-sizing: border-box;
}
.plp-row input:focus {
    border-color: #fc4444;
    box-shadow: 0 0 0 2px rgba(252,68,68,0.15);
    outline: none;
}
.plp-btn {
    background: linear-gradient(135deg, #fc4444, #dd3333);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    margin-top: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(221, 51, 51, 0.25);
}
.plp-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(221, 51, 51, 0.3);
}

.plp-editor {
    margin-top: 20px;
}
.plp-stats {
    display: flex;
    gap: 14px;
    background: linear-gradient(135deg, #f7fbff 0%, #eef6ff 100%);
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    border: 1px solid #dbeafe;
}
.plp-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    background: rgba(255,255,255,0.8);
    padding: 8px 10px;
    border-radius: 8px;
}
.plp-stat-label { color: #5b6472; }
.plp-stat-value { font-weight: 700; color: #1565c0; font-size: 18px; }
.plp-stat-of { color: #999; }

.plp-workspace {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.plp-palette {
    width: 300px;
    background: linear-gradient(180deg, #fcfcfd 0%, #f7f9fc 100%);
    border: 1px solid #e8ebf1;
    border-radius: 12px;
    padding: 15px;
    flex-shrink: 0;
}
.plp-palette h4 {
    margin-top: 0;
    color: #222;
    font-size: 17px;
    margin-bottom: 10px;
}
.plp-palette h5 {
    margin: 12px 0 8px 0;
    color: #666;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.plp-palette-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 76px;
    padding: 12px;
    background: #fff;
    border: 1px dashed #d8dee8;
    border-radius: 8px;
}

.plp-truck-area {
    flex-grow: 1;
    overflow-x: auto;
}
.plp-truck-area h4 {
    margin-top: 0;
    color: #333;
    font-size: 16px;
}
.plp-hints {
    display: flex;
    gap: 16px;
    background: #fff8e1;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #8a4b00;
    flex-wrap: wrap;
    border: 1px solid #ffe2a8;
}
.plp-hints span {
    white-space: nowrap;
}
.plp-truck {
    position: relative;
    background: #f7f8fa;
    border: 2px solid #666;
    border-radius: 10px;
    margin: 10px 0;
    overflow: hidden;
    background-image: 
        linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}
.plp-truck-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

/* Стили паллет */
.plp-pallet {
    position: absolute;
    box-sizing: border-box;
    cursor: grab;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid;
    border-radius: 4px;
    transition: box-shadow 0.2s, transform 0.1s;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.plp-pallet:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 20;
}
.plp-pallet.dragging {
    cursor: grabbing;
    opacity: 0.85;
    z-index: 100;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    transform: scale(1.05);
}
.plp-drag-preview {
    position: fixed;
    z-index: 1000;
    pointer-events: none;
    opacity: 0.95;
    box-shadow: 0 12px 24px rgba(0,0,0,0.35);
    transform: scale(1.03);
}
.plp-pallet.euro {
    background: linear-gradient(135deg, #ffcc80 0%, #ffb74d 100%);
    border-color: #e65100;
}
.plp-pallet.std {
    background: linear-gradient(135deg, #90caf9 0%, #64b5f6 100%);
    border-color: #1565c0;
}
.plp-pallet.custom {
    background: linear-gradient(135deg, #e1bee7 0%, #ba68c8 100%);
    border-color: #6a1b9a;
}
.plp-pallet.in-truck {
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.plp-pallet.in-palette {
    position: relative;
    cursor: grab;
    margin: 2px;
}
.plp-pallet.hidden-in-palette {
    visibility: hidden;
    pointer-events: none;
}

.plp-pallet-inner {
    font-size: 11px;
    font-weight: bold;
    color: rgba(0,0,0,0.7);
    text-align: center;
    pointer-events: none;
}

.plp-pallet-rotate {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: #333;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    z-index: 30;
    padding: 0;
}

.plp-pallet-rotate:hover {
    background: #fff;
}

.plp-pallet.euro .plp-pallet-inner {
    color: #bf360c;
}
.plp-pallet.std .plp-pallet-inner {
    color: #0d47a1;
}