/* Print dialog styles */
.print-hidden {
    display: none !important;
}

#print-overlay, .print-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
}

#print-dialog, .print-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border: 1px solid #E85D04;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1001;
    width: 400px;
    max-height: 80vh;
    overflow-y: auto;
}

.print-dialog.show,
.print-overlay.show {
    display: block;
}

.print-title {
    font-size: 10pt;
    font-weight: bold;
    color: #E85D04;
    margin-bottom: 15px;
    padding-right: 30px;
}

.print-fields {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding: 4px;
    position: relative;
}

.print-field-row {
    padding: 8px;
    margin: 4px 0;
    background: #FFE5D9;
    border: 1px solid #FFE5D9;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: grab;
    user-select: none;
}

.print-field-row:hover {
    background: #FFD1B9;
}

.print-field-row.disabled {
    background: #f5f5f5;
    border-color: #eeeeee;
    color: #999;
}

.print-field-row.disabled:hover {
    background: #eeeeee;
}

.print-field-name {
    font-size: 10pt;
    color: #666;
    font-weight: bold;
}

.print-field-icon {
    color: #E85D04;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.print-field-row.disabled .print-field-icon {
    opacity: 0.6;
}

.print-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #FFE5D9;
}

.print-cancel, .print-apply {
    font-size: 10pt;
    font-weight: bold;
    padding: 4px 12px;
    cursor: pointer;
    border-radius: 3px;
    border: 1px solid #E85D04;
}

.print-cancel {
    color: #E85D04;
    background-color: white;
}

.print-cancel:hover {
    background-color: #FFE5D9;
}

.print-apply {
    color: white;
    background-color: #E85D04;
}

.print-apply:hover {
    background-color: #F48C06;
}

.print-field-row.dragging {
    opacity: 0.9;
    position: absolute;
    z-index: 2;
    background: #FFD1B9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: calc(100% - 8px);
    pointer-events: none;
}

.print-field-row:not(.dragging) {
    transition: transform 200ms ease;
}

.print-field-row.drag-over {
    border-top: 2px solid #E85D04;
    margin-top: 10px;
}

/* Print media query to ensure hidden columns stay hidden when printing */
@media print {
    .print-hidden {
        display: none !important;
    }
    
    .print-dialog,
    .print-overlay {
        display: none !important;
    }

    .no-print {
        display: none !important;
    }
} 