/* Walk Sheet Configuration and Preview Styles */
/* QR codes, form layouts, and printable walk sheet formatting */

.walk-sheet-container {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 30px;
    margin-top: var(--padding-base);
    align-items: flex-start;
}

.walk-sheet-config {
    background-color: #f9f9f9;
    padding: var(--padding-base);
    border-radius: var(--border-radius);
}

.walk-sheet-config h3 {
    font-size: var(--font-size-lg);
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* QR Code Groups */
.qr-code-group {
    background-color: white;
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    position: relative;
}

.qr-code-group h4 {
    font-size: var(--font-size-base);
    margin-bottom: 10px;
    color: #666;
}

/* Walk Sheet Preview */
.walk-sheet-preview {
    background-color: #f5f5f5;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    min-width: 350px;
    max-width: 100%;
    margin: 0 auto;
    min-height: 950px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: auto;
}

.walk-sheet-preview h3 {
    font-size: var(--font-size-lg);
    margin-bottom: 10px;
    color: var(--dark-color);
}

.preview-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.preview-info {
    font-size: var(--font-size-xs);
    color: #666;
}

/* Walk Sheet Page - Actual Paper Size */
.walk-sheet-page {
    width: 816px; /* 8.5 inches * 96 DPI */
    height: 1056px; /* 11 inches * 96 DPI */
    background: white;
    box-shadow: var(--shadow-lg);
    padding: 48px; /* 0.5 inch margins */
    margin: 0 auto;
    overflow: hidden;
    font-size: 12pt;
    line-height: 1.6;
    position: relative;
    transform: none;
    box-sizing: border-box;
}

/* Walk Sheet Content Styles */
.ws-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 3px solid #333;
    padding-bottom: 15px;
}

.ws-title {
    font-size: 24pt;
    font-weight: bold;
    margin: 0;
    color: #000;
}

.ws-subtitle {
    font-size: 12pt;
    color: #444;
    margin: 8px 0 0 0;
}

.ws-qr-section {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
    padding: var(--padding-base);
    background-color: #f5f5f5;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.ws-qr-item {
    text-align: center;
}

.ws-qr-code {
    margin-bottom: 5px;
}

.ws-qr-code img,
.ws-qr-code canvas {
    display: block;
    margin: 0 auto;
    width: 120px;
    height: 120px;
    image-rendering: crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
}

.ws-qr-label {
    font-size: 11pt;
    font-weight: bold;
    margin-top: 10px;
    color: #333;
}

/* Walk Sheet Form Sections */
.ws-form-section {
    margin-top: 30px;
}

.ws-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--padding-base);
    margin-bottom: 18px;
}

.ws-form-group {
    border-bottom: 2px solid #ccc;
    padding-bottom: 8px;
}

.ws-form-label {
    font-size: 10pt;
    color: #555;
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.ws-form-field {
    height: 30px;
    background-color: #fafafa;
    border: 1px solid #eee;
}

.ws-form-field.circles {
    height: auto;
    background: none;
    border: none;
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 5px 0;
}

.ws-circle-option {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11pt;
}

.ws-circle {
    width: 24px;
    height: 24px;
    border: 2px solid #333;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10pt;
    font-weight: 500;
    background-color: white;
}

/* Notes Section */
.ws-notes-section {
    margin-top: 30px;
}

.ws-notes-label {
    font-size: 11pt;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.ws-notes-area {
    width: 100%;
    height: 80px;
    border: 2px solid #ccc;
    background-color: #fafafa;
    border-radius: 4px;
}

/* Walk Sheet Footer */
.ws-footer {
    position: absolute;
    bottom: 48px;
    left: 48px;
    right: 48px;
    text-align: center;
    font-size: 10pt;
    color: #666;
    padding-top: 15px;
    border-top: 1px solid #ccc;
    max-height: 80px;
    overflow: hidden;
    line-height: 1.4;
}

/* Print Styles */
@media print {
    body * {
        visibility: hidden;
    }
    
    .walk-sheet-page, .walk-sheet-page * {
        visibility: visible;
    }
    
    .walk-sheet-page {
        position: fixed;
        left: 0;
        top: 0;
        width: 8.5in;
        height: 11in;
        max-width: none;
        padding: 0.5in;
        margin: 0;
        box-shadow: none;
        font-size: 12pt;
        page-break-after: always;
    }
    
    .ws-qr-code img {
        width: 100px !important;
        height: 100px !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Container Adjustments */
.walk-sheet-container {
    display: grid;
    grid-template-columns: minmax(300px, 400px) 1fr;
    gap: 30px;
    margin-top: var(--padding-base);
    align-items: flex-start;
}

/* Large Screen Optimizations */
@media (min-width: 1600px) {
    .walk-sheet-container {
        gap: 40px;
        grid-template-columns: 1fr 2fr;
    }
    
    .walk-sheet-preview {
        max-width: 100%;
        min-height: 1100px;
        padding: 40px;
    }
    
    .walk-sheet-preview .walk-sheet-page {
        transform: none;
    }
}
